]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/ppc/configure
sim: drop use of bfd/configure.host
[thirdparty/binutils-gdb.git] / sim / ppc / 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
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
b7026657 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
c906108c 402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
421 as_expr=expr
422else
423 as_expr=false
424fi
c906108c 425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
427 as_basename=basename
428else
429 as_basename=false
430fi
c906108c 431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
c906108c 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
b7026657
AC
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
c906108c 456
b7026657
AC
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 463
c906108c 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
b7026657 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
b7026657 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 482 t loop
81ecdfbb 483 s/-\n.*//
b7026657 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
b7026657
AC
496 # Exit status is that of the last command.
497 exit
498}
c906108c 499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
b7026657 511esac
c906108c 512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
b7026657 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
b7026657 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
b7026657 533 fi
b7026657 534else
d0ac1c44 535 as_ln_s='cp -pR'
b7026657 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c906108c 539
b7026657 540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
c906108c 546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c906108c 549
b7026657
AC
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 552
b7026657
AC
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
c906108c 559
b7026657 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 564
c906108c 565#
b7026657 566# Initializations.
c906108c 567#
b7026657 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
b7026657 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
b7026657
AC
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
b7026657
AC
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
b7026657
AC
584
585ac_unique_file="Makefile.in"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
81ecdfbb 589#ifdef HAVE_SYS_TYPES_H
b7026657
AC
590# include <sys/types.h>
591#endif
81ecdfbb 592#ifdef HAVE_SYS_STAT_H
b7026657
AC
593# include <sys/stat.h>
594#endif
81ecdfbb 595#ifdef STDC_HEADERS
b7026657
AC
596# include <stdlib.h>
597# include <stddef.h>
598#else
81ecdfbb 599# ifdef HAVE_STDLIB_H
b7026657
AC
600# include <stdlib.h>
601# endif
602#endif
81ecdfbb
RW
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
81ecdfbb 609#ifdef HAVE_STRINGS_H
b7026657
AC
610# include <strings.h>
611#endif
81ecdfbb 612#ifdef HAVE_INTTYPES_H
b7026657 613# include <inttypes.h>
b7026657 614#endif
81ecdfbb
RW
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
b7026657
AC
619# include <unistd.h>
620#endif"
c906108c 621
81ecdfbb
RW
622ac_subst_vars='LTLIBOBJS
623sim_fpu
624sim_fpu_cflags
625sim_targ_vals
626sim_callback
627sim_devzero
628sim_termio
81ecdfbb
RW
629sim_model_issue
630sim_model
631sim_monitor
632sim_reserved
81ecdfbb 633sim_timebase
81ecdfbb
RW
634sim_hostbitsize
635sim_igen_smp
ce39bd38 636sim_smp
9bbf6f91 637sim_hostendian
ce39bd38 638sim_xor_endian
81ecdfbb
RW
639sim_pk_obj
640sim_pk_src
641sim_hw_obj
642sim_hw_src
643sim_icache
644sim_filter
645sim_jump
646sim_decode_mechanism
647sim_dup
648sim_switch
649sim_opcode
650sim_config
651sim_line_nr
652sim_warnings
81ecdfbb
RW
653RANLIB
654AR
81ecdfbb
RW
655CFLAGS_FOR_BUILD
656CC_FOR_BUILD
657LIBOBJS
aadc9410
MF
658zlibinc
659zlibdir
81ecdfbb
RW
660target_os
661target_vendor
662target_cpu
663target
664host_os
665host_vendor
666host_cpu
667host
668build_os
669build_vendor
670build_cpu
671build
672REPORT_BUGS_TEXI
673REPORT_BUGS_TO
674PKGVERSION
675EGREP
676GREP
677CPP
678CATOBJEXT
679GENCAT
680INSTOBJEXT
681DATADIRNAME
682CATALOGS
683POSUB
684GMSGFMT
685XGETTEXT
686INCINTL
687LIBINTL_DEP
688LIBINTL
689USE_NLS
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697INSTALL_DATA
698INSTALL_SCRIPT
699INSTALL_PROGRAM
6ffe910a
MF
700WERROR_CFLAGS
701WARN_CFLAGS
6ffe910a 702sim_reserved_bits
6ffe910a
MF
703sim_inline
704sim_hw
705sim_hw_objs
706sim_hw_cflags
707sim_default_model
708sim_scache
709sim_float
6ffe910a
MF
710sim_endian
711sim_bitsize
6ffe910a 712sim_alignment
81ecdfbb
RW
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
6ffe910a 750SHELL'
b7026657 751ac_subst_files=''
81ecdfbb
RW
752ac_user_opts='
753enable_option_checking
754enable_sim_alignment
755enable_sim_assert
756enable_sim_bitsize
81ecdfbb
RW
757enable_sim_config
758enable_sim_decode_mechanism
759enable_sim_default_model
760enable_sim_duplicate
761enable_sim_endian
762enable_sim_env
763enable_sim_filter
764enable_sim_float
765enable_sim_hardware
766enable_sim_hostbitsize
767enable_sim_hostendian
768enable_sim_icache
769enable_sim_inline
770enable_sim_jump
771enable_sim_line_nr
772enable_sim_model
773enable_sim_model_issue
774enable_sim_monitor
775enable_sim_opcode
776enable_sim_packages
81ecdfbb
RW
777enable_sim_reserved_bits
778enable_sim_smp
81ecdfbb
RW
779enable_sim_stdio
780enable_sim_switch
781enable_sim_timebase
782enable_sim_trace
783enable_sim_warnings
784enable_sim_xor_endian
785with_pkgversion
786with_bugurl
aadc9410 787with_system_zlib
2974be62 788enable_plugins
81ecdfbb
RW
789'
790 ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798CPP'
799
c906108c
SS
800
801# Initialize some variables set by options.
b7026657
AC
802ac_init_help=
803ac_init_version=false
81ecdfbb
RW
804ac_unrecognized_opts=
805ac_unrecognized_sep=
c906108c
SS
806# The variables have the same names as the options, with
807# dashes changed to underlines.
b7026657 808cache_file=/dev/null
c906108c 809exec_prefix=NONE
c906108c 810no_create=
c906108c
SS
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
c906108c
SS
819verbose=
820x_includes=NONE
821x_libraries=NONE
b7026657
AC
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 828# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
c906108c
SS
834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
c906108c
SS
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
81ecdfbb
RW
839docdir='${datarootdir}/doc/${PACKAGE}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
c906108c 848
c906108c 849ac_prev=
81ecdfbb 850ac_dashdash=
c906108c
SS
851for ac_option
852do
c906108c
SS
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
81ecdfbb 855 eval $ac_prev=\$ac_option
c906108c
SS
856 ac_prev=
857 continue
858 fi
859
81ecdfbb 860 case $ac_option in
d0ac1c44
SM
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
81ecdfbb 864 esac
c906108c
SS
865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
81ecdfbb
RW
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
c906108c
SS
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 875 bindir=$ac_optarg ;;
c906108c
SS
876
877 -build | --build | --buil | --bui | --bu)
b7026657 878 ac_prev=build_alias ;;
c906108c 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 880 build_alias=$ac_optarg ;;
c906108c
SS
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
c906108c 891
81ecdfbb 892 -datadir | --datadir | --datadi | --datad)
c906108c 893 ac_prev=datadir ;;
81ecdfbb 894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 895 datadir=$ac_optarg ;;
c906108c 896
81ecdfbb
RW
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
c906108c 904 -disable-* | --disable-*)
81ecdfbb 905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 906 # Reject names that are not valid shell variable names.
81ecdfbb 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 908 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913"enable_$ac_useropt"
914"*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
c906108c
SS
929
930 -enable-* | --enable-*)
81ecdfbb 931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 932 # Reject names that are not valid shell variable names.
81ecdfbb 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 934 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
c906108c 943 esac
81ecdfbb 944 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
b7026657 953 exec_prefix=$ac_optarg ;;
c906108c
SS
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
b7026657
AC
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
c906108c
SS
965
966 -host | --host | --hos | --ho)
b7026657 967 ac_prev=host_alias ;;
c906108c 968 -host=* | --host=* | --hos=* | --ho=*)
b7026657 969 host_alias=$ac_optarg ;;
c906108c 970
81ecdfbb
RW
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
c906108c
SS
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 982 includedir=$ac_optarg ;;
c906108c
SS
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 987 infodir=$ac_optarg ;;
c906108c
SS
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 992 libdir=$ac_optarg ;;
c906108c
SS
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
b7026657 999 libexecdir=$ac_optarg ;;
c906108c 1000
81ecdfbb
RW
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
c906108c 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1007 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1011 localstatedir=$ac_optarg ;;
c906108c
SS
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1016 mandir=$ac_optarg ;;
c906108c
SS
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1023 | --no-cr | --no-c | -n)
c906108c
SS
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1037 oldincludedir=$ac_optarg ;;
c906108c
SS
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1042 prefix=$ac_optarg ;;
c906108c
SS
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1049 program_prefix=$ac_optarg ;;
c906108c
SS
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1056 program_suffix=$ac_optarg ;;
c906108c
SS
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1073 program_transform_name=$ac_optarg ;;
c906108c 1074
81ecdfbb
RW
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
c906108c
SS
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
b7026657 1093 sbindir=$ac_optarg ;;
c906108c
SS
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
b7026657 1104 sharedstatedir=$ac_optarg ;;
c906108c
SS
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
b7026657 1109 site=$ac_optarg ;;
eb2d80b4 1110
c906108c
SS
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1114 srcdir=$ac_optarg ;;
c906108c
SS
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1121 sysconfdir=$ac_optarg ;;
c906108c
SS
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1124 ac_prev=target_alias ;;
c906108c 1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1126 target_alias=$ac_optarg ;;
c906108c
SS
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
b7026657
AC
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
c906108c
SS
1133
1134 -with-* | --with-*)
81ecdfbb 1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1136 # Reject names that are not valid shell variable names.
81ecdfbb 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1138 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
c906108c 1147 esac
81ecdfbb 1148 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1149
1150 -without-* | --without-*)
81ecdfbb 1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1152 # Reject names that are not valid shell variable names.
81ecdfbb 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1154 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159"with_$ac_useropt"
1160"*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
c906108c
SS
1165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1175 x_includes=$ac_optarg ;;
c906108c
SS
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1182 x_libraries=$ac_optarg ;;
c906108c 1183
d0ac1c44
SM
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185Try \`$0 --help' for more information"
c906108c
SS
1186 ;;
1187
b7026657
AC
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1194 esac
1195 eval $ac_envvar=\$ac_optarg
b7026657
AC
1196 export $ac_envvar ;;
1197
c906108c 1198 *)
b7026657 1199 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
b7026657 1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1211 as_fn_error $? "missing argument to $ac_option"
c906108c 1212fi
c906108c 1213
81ecdfbb
RW
1214if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
d0ac1c44 1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1219 esac
81ecdfbb 1220fi
c906108c 1221
81ecdfbb
RW
1222# Check all directory arguments for consistency.
1223for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
c906108c 1227do
81ecdfbb
RW
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
b7026657 1236 case $ac_val in
81ecdfbb
RW
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1239 esac
d0ac1c44 1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1241done
1242
b7026657
AC
1243# There might be people who depend on the old broken behavior: `$host'
1244# used to hold the argument of --host etc.
1245# FIXME: To remove some day.
1246build=$build_alias
1247host=$host_alias
1248target=$target_alias
1249
1250# FIXME: To remove some day.
1251if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
b7026657
AC
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1256 fi
1257fi
c906108c 1258
b7026657
AC
1259ac_tool_prefix=
1260test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262test "$silent" = yes && exec 6>/dev/null
c906108c 1263
c906108c 1264
81ecdfbb
RW
1265ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266ac_ls_di=`ls -di .` &&
1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1268 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1270 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1271
1272
c906108c
SS
1273# Find the source files, if location was not specified.
1274if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
81ecdfbb
RW
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282$as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\).*/{
1296 s//\1/
1297 q
1298 }
1299 s/.*/./; q'`
c906108c 1300 srcdir=$ac_confdir
81ecdfbb 1301 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1302 srcdir=..
1303 fi
1304else
1305 ac_srcdir_defaulted=no
1306fi
81ecdfbb
RW
1307if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1310fi
1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312ac_abs_confdir=`(
d0ac1c44 1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1314 pwd)`
1315# When building in place, set srcdir=.
1316if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1318fi
1319# Remove unnecessary trailing slashes from srcdir.
1320# Double slashes in file names in object file debugging info
1321# mess up M-x gdb in Emacs.
1322case $srcdir in
1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324esac
1325for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330done
c906108c 1331
b7026657
AC
1332#
1333# Report the --help message.
1334#
1335if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339\`configure' configures this package to adapt to many kinds of systems.
c906108c 1340
b7026657 1341Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1342
b7026657
AC
1343To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1345
b7026657 1346Defaults for the options are specified in brackets.
c906108c 1347
b7026657
AC
1348Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
d0ac1c44 1353 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358
b7026657
AC
1359Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1361 [$ac_default_prefix]
b7026657 1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1363 [PREFIX]
c906108c 1364
b7026657
AC
1365By default, \`make install' will install all the files in
1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368for instance \`--prefix=\$HOME'.
c906108c 1369
b7026657 1370For better control, use the options below.
c906108c 1371
b7026657 1372Fine tuning of the installation directories:
81ecdfbb
RW
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1392_ACEOF
1393
1394 cat <<\_ACEOF
1395
1396Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 --target=TARGET configure for building compilers for TARGET [HOST]
1405_ACEOF
c906108c 1406fi
c906108c 1407
b7026657 1408if test -n "$ac_init_help"; then
c906108c 1409
b7026657 1410 cat <<\_ACEOF
cd0fc7c3 1411
b7026657 1412Optional Features:
81ecdfbb 1413 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
1416 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1417 --enable-sim-assert Specify whether to perform random assertions.
1418 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
b7026657
AC
1419 --enable-sim-config=file Override default config file
1420 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1421 --enable-sim-default-model=which Specify default PowerPC to model.
1422 --enable-sim-duplicate Expand (duplicate) semantic functions.
1423 --enable-sim-endian=endian Specify target byte endian orientation.
1424 --enable-sim-env=env Specify target environment (operating, virtual, user).
1425 --enable-sim-filter=rule Specify filter rules.
1426 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1427 --enable-sim-hardware=list Specify the hardware to be included in the build.
1428 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
1429 --enable-sim-hostendian=end Specify host byte endian orientation.
1430 --enable-sim-icache=size Specify instruction-decode cache size and type.
1431 --enable-sim-inline=inlines Specify which functions should be inlined.
1432 --enable-sim-jump Jump between semantic code (instead of call/return).
1433 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1434 --enable-sim-model=which Specify PowerPC to model.
1435 --enable-sim-model-issue Specify whether to simulate model specific actions
1436 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1437 --enable-sim-opcode=which Override default opcode lookup.
1438 --enable-sim-packages=list Specify the packages to be included in the build.
b7026657
AC
1439 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
1440 --enable-sim-smp=n Specify number of processors to configure for.
b7026657
AC
1441 --enable-sim-stdio Specify whether to use stdio for console input/output.
1442 --enable-sim-switch Use a switch instead of a table for instruction call.
1443 --enable-sim-timebase Specify whether the PPC timebase is supported.
1444 --enable-sim-trace Specify whether tracing is supported.
1445 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1446 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
2974be62 1447 --enable-plugins Enable support for plugins
b7026657 1448
6efef468
JM
1449Optional Packages:
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1453 --with-bugurl=URL Direct users to URL to report a bug
aadc9410 1454 --with-system-zlib use installed libz
6efef468 1455
b7026657
AC
1456Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
81ecdfbb 1461 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1463 you have headers in a nonstandard directory <include dir>
b7026657
AC
1464 CPP C preprocessor
1465
1466Use these variables to override the choices made by `configure' or to help
1467it to find libraries and programs with nonstandard names/locations.
1468
81ecdfbb 1469Report bugs to the package provider.
b7026657 1470_ACEOF
81ecdfbb 1471ac_status=$?
b7026657
AC
1472fi
1473
1474if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
b7026657 1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
b7026657
AC
1480 ac_builddir=.
1481
81ecdfbb
RW
1482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1497
1498case $srcdir in
81ecdfbb 1499 .) # We are building in place.
b7026657 1500 ac_srcdir=.
81ecdfbb
RW
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1504 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1511esac
81ecdfbb
RW
1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1522 else
81ecdfbb
RW
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1526 done
1527fi
1528
81ecdfbb 1529test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1530if $ac_init_version; then
1531 cat <<\_ACEOF
81ecdfbb 1532configure
d0ac1c44 1533generated by GNU Autoconf 2.69
b7026657 1534
d0ac1c44 1535Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
1538_ACEOF
81ecdfbb 1539 exit
b7026657 1540fi
b7026657 1541
81ecdfbb
RW
1542## ------------------------ ##
1543## Autoconf initialization. ##
1544## ------------------------ ##
b7026657 1545
81ecdfbb
RW
1546# ac_fn_c_try_compile LINENO
1547# --------------------------
1548# Try to compile conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_compile ()
b7026657 1550{
81ecdfbb
RW
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1554case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1572 ac_retval=0
1573else
1574 $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1576
81ecdfbb
RW
1577 ac_retval=1
1578fi
d0ac1c44
SM
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
b7026657 1581
81ecdfbb 1582} # ac_fn_c_try_compile
b7026657 1583
81ecdfbb
RW
1584# ac_fn_c_try_run LINENO
1585# ----------------------
1586# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1587# that executables *can* be run.
1588ac_fn_c_try_run ()
1589{
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_link"
1592case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>&5
1599 ac_status=$?
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1602 { { case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_try") 2>&5
1609 ac_status=$?
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; }; }; then :
1612 ac_retval=0
1613else
1614 $as_echo "$as_me: program exited with status $ac_status" >&5
1615 $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1617
81ecdfbb
RW
1618 ac_retval=$ac_status
1619fi
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
b7026657 1623
81ecdfbb 1624} # ac_fn_c_try_run
b7026657 1625
81ecdfbb
RW
1626# ac_fn_c_try_cpp LINENO
1627# ----------------------
1628# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_cpp ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1647 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 }; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657fi
d0ac1c44
SM
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
81ecdfbb
RW
1660
1661} # ac_fn_c_try_cpp
1662
1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664# -------------------------------------------------------
1665# Tests whether HEADER exists and can be compiled using the include files in
1666# INCLUDES, setting the cache variable VAR accordingly.
1667ac_fn_c_check_header_compile ()
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1672if eval \${$3+:} false; then :
81ecdfbb
RW
1673 $as_echo_n "(cached) " >&6
1674else
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h. */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681 eval "$3=yes"
1682else
1683 eval "$3=no"
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686fi
1687eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
d0ac1c44 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1691
1692} # ac_fn_c_check_header_compile
1693
1694# ac_fn_c_try_link LINENO
1695# -----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_link ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
d0ac1c44 1721 test -x conftest$ac_exeext
81ecdfbb
RW
1722 }; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729fi
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
81ecdfbb
RW
1737
1738} # ac_fn_c_try_link
1739
81ecdfbb
RW
1740# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1741# ----------------------------------------------------
1742# Tries to find if the field MEMBER exists in type AGGR, after including
1743# INCLUDES, setting cache variable VAR accordingly.
1744ac_fn_c_check_member ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1748$as_echo_n "checking for $2.$3... " >&6; }
d0ac1c44 1749if eval \${$4+:} false; then :
81ecdfbb
RW
1750 $as_echo_n "(cached) " >&6
1751else
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h. */
1754$5
1755int
1756main ()
1757{
1758static $2 ac_aggr;
1759if (ac_aggr.$3)
1760return 0;
1761 ;
1762 return 0;
1763}
1764_ACEOF
1765if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$4=yes"
1767else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h. */
1770$5
1771int
1772main ()
1773{
1774static $2 ac_aggr;
1775if (sizeof ac_aggr.$3)
1776return 0;
1777 ;
1778 return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_compile "$LINENO"; then :
1782 eval "$4=yes"
1783else
1784 eval "$4=no"
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789fi
1790eval ac_res=\$$4
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
d0ac1c44 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1794
1795} # ac_fn_c_check_member
1796
d0ac1c44
SM
1797# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1798# ---------------------------------------------
1799# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1800# accordingly.
81ecdfbb
RW
1801ac_fn_c_check_decl ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6ffe910a
MF
1804 as_decl_name=`echo $2|sed 's/ *(.*//'`
1805 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1807$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 1808if eval \${$3+:} false; then :
81ecdfbb
RW
1809 $as_echo_n "(cached) " >&6
1810else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813$4
1814int
1815main ()
1816{
6ffe910a
MF
1817#ifndef $as_decl_name
1818#ifdef __cplusplus
1819 (void) $as_decl_use;
1820#else
1821 (void) $as_decl_name;
1822#endif
81ecdfbb
RW
1823#endif
1824
1825 ;
1826 return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"; then :
1830 eval "$3=yes"
1831else
1832 eval "$3=no"
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835fi
1836eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
d0ac1c44 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1840
1841} # ac_fn_c_check_decl
1842
1843# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1844# -------------------------------------------
1845# Tests whether TYPE exists after having included INCLUDES, setting cache
1846# variable VAR accordingly.
1847ac_fn_c_check_type ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1852if eval \${$3+:} false; then :
81ecdfbb
RW
1853 $as_echo_n "(cached) " >&6
1854else
1855 eval "$3=no"
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858$4
1859int
1860main ()
1861{
1862if (sizeof ($2))
1863 return 0;
1864 ;
1865 return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h. */
1871$4
1872int
1873main ()
1874{
1875if (sizeof (($2)))
1876 return 0;
1877 ;
1878 return 0;
1879}
1880_ACEOF
1881if ac_fn_c_try_compile "$LINENO"; then :
1882
1883else
1884 eval "$3=yes"
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887fi
1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889fi
1890eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
d0ac1c44 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1894
1895} # ac_fn_c_check_type
1896
1897# ac_fn_c_check_func LINENO FUNC VAR
1898# ----------------------------------
1899# Tests whether FUNC exists, setting the cache variable VAR accordingly
1900ac_fn_c_check_func ()
1901{
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1905if eval \${$3+:} false; then :
81ecdfbb
RW
1906 $as_echo_n "(cached) " >&6
1907else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1912#define $2 innocuous_$2
1913
1914/* System header to define __stub macros and hopefully few prototypes,
1915 which can conflict with char $2 (); below.
1916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1917 <limits.h> exists even on freestanding compilers. */
1918
1919#ifdef __STDC__
1920# include <limits.h>
1921#else
1922# include <assert.h>
1923#endif
1924
1925#undef $2
1926
1927/* Override any GCC internal prototype to avoid an error.
1928 Use char because int might match the return type of a GCC
1929 builtin and then its argument prototype would still apply. */
1930#ifdef __cplusplus
1931extern "C"
1932#endif
1933char $2 ();
1934/* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937#if defined __stub_$2 || defined __stub___$2
1938choke me
1939#endif
1940
1941int
1942main ()
1943{
1944return $2 ();
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_link "$LINENO"; then :
1950 eval "$3=yes"
1951else
1952 eval "$3=no"
1953fi
1954rm -f core conftest.err conftest.$ac_objext \
1955 conftest$ac_exeext conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
d0ac1c44 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1961
1962} # ac_fn_c_check_func
aadc9410
MF
1963
1964# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1965# -------------------------------------------------------
1966# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967# the include files in INCLUDES and setting the cache variable VAR
1968# accordingly.
1969ac_fn_c_check_header_mongrel ()
1970{
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1972 if eval \${$3+:} false; then :
aadc9410
MF
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1975if eval \${$3+:} false; then :
aadc9410
MF
1976 $as_echo_n "(cached) " >&6
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981else
1982 # Is the header compilable?
1983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984$as_echo_n "checking $2 usability... " >&6; }
1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988#include <$2>
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_header_compiler=yes
1992else
1993 ac_header_compiler=no
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997$as_echo "$ac_header_compiler" >&6; }
1998
1999# Is the header present?
2000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001$as_echo_n "checking $2 presence... " >&6; }
2002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004#include <$2>
2005_ACEOF
2006if ac_fn_c_try_cpp "$LINENO"; then :
2007 ac_header_preproc=yes
2008else
2009 ac_header_preproc=no
2010fi
d0ac1c44 2011rm -f conftest.err conftest.i conftest.$ac_ext
aadc9410
MF
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013$as_echo "$ac_header_preproc" >&6; }
2014
2015# So? What about this header?
2016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017 yes:no: )
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 ;;
2023 no:yes:* )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2027$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2031$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035esac
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2038if eval \${$3+:} false; then :
aadc9410
MF
2039 $as_echo_n "(cached) " >&6
2040else
2041 eval "$3=\$ac_header_compiler"
2042fi
2043eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
2046fi
d0ac1c44 2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
aadc9410
MF
2048
2049} # ac_fn_c_check_header_mongrel
81ecdfbb
RW
2050cat >config.log <<_ACEOF
2051This file contains any messages produced by compilers while
2052running configure, to aid debugging if configure makes a mistake.
2053
2054It was created by $as_me, which was
d0ac1c44 2055generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2056
2057 $ $0 $@
2058
2059_ACEOF
2060exec 5>>config.log
2061{
2062cat <<_ASUNAME
2063## --------- ##
2064## Platform. ##
2065## --------- ##
2066
2067hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2068uname -m = `(uname -m) 2>/dev/null || echo unknown`
2069uname -r = `(uname -r) 2>/dev/null || echo unknown`
2070uname -s = `(uname -s) 2>/dev/null || echo unknown`
2071uname -v = `(uname -v) 2>/dev/null || echo unknown`
2072
2073/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2074/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2075
2076/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2077/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2078/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2079/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2080/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2081/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2082/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2083
2084_ASUNAME
2085
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 $as_echo "PATH: $as_dir"
2092 done
2093IFS=$as_save_IFS
2094
2095} >&5
2096
2097cat >&5 <<_ACEOF
b7026657
AC
2098
2099
2100## ----------- ##
2101## Core tests. ##
2102## ----------- ##
2103
2104_ACEOF
2105
2106
2107# Keep a trace of the command line.
2108# Strip out --no-create and --no-recursion so they do not pile up.
2109# Strip out --silent because we don't want to record it for future runs.
2110# Also quote any args containing shell meta-characters.
2111# Make two passes to allow for proper duplicate-argument suppression.
2112ac_configure_args=
2113ac_configure_args0=
2114ac_configure_args1=
b7026657
AC
2115ac_must_keep_next=false
2116for ac_pass in 1 2
2117do
2118 for ac_arg
2119 do
2120 case $ac_arg in
2121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123 | -silent | --silent | --silen | --sile | --sil)
2124 continue ;;
81ecdfbb
RW
2125 *\'*)
2126 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2127 esac
2128 case $ac_pass in
81ecdfbb 2129 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2130 2)
81ecdfbb 2131 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2132 if test $ac_must_keep_next = true; then
2133 ac_must_keep_next=false # Got value, back to normal.
2134 else
2135 case $ac_arg in
2136 *=* | --config-cache | -C | -disable-* | --disable-* \
2137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139 | -with-* | --with-* | -without-* | --without-* | --x)
2140 case "$ac_configure_args0 " in
2141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2142 esac
2143 ;;
2144 -* ) ac_must_keep_next=true ;;
2145 esac
2146 fi
81ecdfbb 2147 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2148 ;;
2149 esac
2150 done
2151done
81ecdfbb
RW
2152{ ac_configure_args0=; unset ac_configure_args0;}
2153{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2154
2155# When interrupted or exit'd, cleanup temporary files, and complete
2156# config.log. We remove comments because anyway the quotes in there
2157# would cause problems or look ugly.
81ecdfbb
RW
2158# WARNING: Use '\'' to represent an apostrophe within the trap.
2159# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2160trap 'exit_status=$?
2161 # Save into config.log some information that might help in debugging.
2162 {
2163 echo
2164
d0ac1c44 2165 $as_echo "## ---------------- ##
b7026657 2166## Cache variables. ##
d0ac1c44 2167## ---------------- ##"
b7026657
AC
2168 echo
2169 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2170(
2171 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172 eval ac_val=\$$ac_var
2173 case $ac_val in #(
2174 *${as_nl}*)
2175 case $ac_var in #(
2176 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2178 esac
2179 case $ac_var in #(
2180 _ | IFS | as_nl) ;; #(
2181 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182 *) { eval $ac_var=; unset $ac_var;} ;;
2183 esac ;;
2184 esac
2185 done
b7026657 2186 (set) 2>&1 |
81ecdfbb
RW
2187 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188 *${as_nl}ac_space=\ *)
b7026657 2189 sed -n \
81ecdfbb
RW
2190 "s/'\''/'\''\\\\'\'''\''/g;
2191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2192 ;; #(
b7026657 2193 *)
81ecdfbb 2194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2195 ;;
81ecdfbb
RW
2196 esac |
2197 sort
2198)
b7026657
AC
2199 echo
2200
d0ac1c44 2201 $as_echo "## ----------------- ##
b7026657 2202## Output variables. ##
d0ac1c44 2203## ----------------- ##"
b7026657
AC
2204 echo
2205 for ac_var in $ac_subst_vars
2206 do
81ecdfbb
RW
2207 eval ac_val=\$$ac_var
2208 case $ac_val in
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 esac
2211 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2212 done | sort
2213 echo
2214
2215 if test -n "$ac_subst_files"; then
d0ac1c44 2216 $as_echo "## ------------------- ##
81ecdfbb 2217## File substitutions. ##
d0ac1c44 2218## ------------------- ##"
b7026657
AC
2219 echo
2220 for ac_var in $ac_subst_files
2221 do
81ecdfbb
RW
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2227 done | sort
2228 echo
2229 fi
2230
2231 if test -s confdefs.h; then
d0ac1c44 2232 $as_echo "## ----------- ##
b7026657 2233## confdefs.h. ##
d0ac1c44 2234## ----------- ##"
b7026657 2235 echo
81ecdfbb 2236 cat confdefs.h
b7026657
AC
2237 echo
2238 fi
2239 test "$ac_signal" != 0 &&
81ecdfbb
RW
2240 $as_echo "$as_me: caught signal $ac_signal"
2241 $as_echo "$as_me: exit $exit_status"
b7026657 2242 } >&5
81ecdfbb
RW
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2245 exit $exit_status
81ecdfbb 2246' 0
b7026657 2247for ac_signal in 1 2 13 15; do
81ecdfbb 2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2249done
2250ac_signal=0
2251
2252# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2253rm -f -r conftest* confdefs.h
2254
2255$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2256
2257# Predefined preprocessor variables.
2258
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_NAME "$PACKAGE_NAME"
2261_ACEOF
2262
b7026657
AC
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2265_ACEOF
2266
b7026657
AC
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_VERSION "$PACKAGE_VERSION"
2269_ACEOF
2270
b7026657
AC
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_STRING "$PACKAGE_STRING"
2273_ACEOF
2274
b7026657
AC
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277_ACEOF
2278
81ecdfbb
RW
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_URL "$PACKAGE_URL"
2281_ACEOF
2282
b7026657
AC
2283
2284# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2285# Prefer an explicitly selected file to automatically selected ones.
2286ac_site_file1=NONE
2287ac_site_file2=NONE
2288if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2289 # We do not want a PATH search for config.site.
2290 case $CONFIG_SITE in #((
2291 -*) ac_site_file1=./$CONFIG_SITE;;
2292 */*) ac_site_file1=$CONFIG_SITE;;
2293 *) ac_site_file1=./$CONFIG_SITE;;
2294 esac
81ecdfbb
RW
2295elif test "x$prefix" != xNONE; then
2296 ac_site_file1=$prefix/share/config.site
2297 ac_site_file2=$prefix/etc/config.site
2298else
2299 ac_site_file1=$ac_default_prefix/share/config.site
2300 ac_site_file2=$ac_default_prefix/etc/config.site
2301fi
2302for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2303do
2304 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2305 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2308 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2309 . "$ac_site_file" \
2310 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312as_fn_error $? "failed to load site script $ac_site_file
2313See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2314 fi
2315done
2316
2317if test -r "$cache_file"; then
d0ac1c44
SM
2318 # Some versions of bash will fail to source /dev/null (special files
2319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2323 case $cache_file in
81ecdfbb
RW
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
b7026657
AC
2326 esac
2327 fi
2328else
81ecdfbb
RW
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2331 >$cache_file
2332fi
2333
2334# Check that the precious variables saved in the cache have kept the same
2335# value.
2336ac_cache_corrupted=false
81ecdfbb 2337for ac_var in $ac_precious_vars; do
b7026657
AC
2338 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2339 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2340 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2341 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2342 case $ac_old_set,$ac_new_set in
2343 set,)
81ecdfbb
RW
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2345$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2346 ac_cache_corrupted=: ;;
2347 ,set)
81ecdfbb
RW
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2349$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2350 ac_cache_corrupted=: ;;
2351 ,);;
2352 *)
2353 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2354 # differences in whitespace do not lead to failure.
2355 ac_old_val_w=`echo x $ac_old_val`
2356 ac_new_val_w=`echo x $ac_new_val`
2357 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2359$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2360 ac_cache_corrupted=:
2361 else
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2363$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2364 eval $ac_var=\$ac_old_val
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2367$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2369$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2370 fi;;
2371 esac
2372 # Pass precious variables to config.status.
2373 if test "$ac_new_set" = set; then
2374 case $ac_new_val in
81ecdfbb 2375 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2376 *) ac_arg=$ac_var=$ac_new_val ;;
2377 esac
2378 case " $ac_configure_args " in
2379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2380 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2381 esac
2382 fi
2383done
2384if $ac_cache_corrupted; then
81ecdfbb
RW
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2388$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2389 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2390fi
81ecdfbb
RW
2391## -------------------- ##
2392## Main body of script. ##
2393## -------------------- ##
b7026657
AC
2394
2395ac_ext=c
2396ac_cpp='$CPP $CPPFLAGS'
2397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
6ffe910a
MF
2401
2402# This file contains common code used by all simulators.
2403#
2404# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2405# directory. It is intended to be invoked before any target specific stuff.
2406# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2407# It is intended to be invoked last.
2408#
50df264d 2409# See README-HACKING for more details.
6ffe910a
MF
2410
2411# Include global overrides and fixes for Autoconf.
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
6bb11ab3
L
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
37f980dc
SM
2445
2446
6bb11ab3
L
2447# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2448#
2449# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2450# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2451# Written by Gordon Matzigkeit, 1996
2452#
2453# This file is free software; the Free Software Foundation gives
2454# unlimited permission to copy and/or distribute it, with or without
2455# modifications, as long as this notice is preserved.
2456
2457
2458
2459# serial 56 LT_INIT
2460
2461
2462# LT_PREREQ(VERSION)
2463# ------------------
2464# Complain and exit if this libtool version is less that VERSION.
2465
2466
2467
2468# _LT_CHECK_BUILDDIR
2469# ------------------
2470# Complain if the absolute build directory name contains unusual characters
2471
2472
2473
2474# LT_INIT([OPTIONS])
2475# ------------------
2476# LT_INIT
2477
2478# Old names:
2479# This is what autoupdate's m4 run will expand. It fires
2480# the warning (with _au_warn_XXX), outputs it into the
2481# updated configure.ac (with AC_DIAGNOSE), and then outputs
2482# the replacement expansion.
2483
2484
2485# This is an auxiliary macro that is also run when
2486# autoupdate runs m4. It simply calls m4_warning, but
2487# we need a wrapper so that each warning is emitted only
2488# once. We break the quoting in m4_warning's argument in
2489# order to expand this macro's arguments, not AU_DEFUN's.
2490
2491
2492# Finally, this is the expansion that is picked up by
2493# autoconf. It tells the user to run autoupdate, and
2494# then outputs the replacement expansion. We do not care
2495# about autoupdate's warning because that contains
2496# information on what to do *after* running autoupdate.
2497
2498# This is what autoupdate's m4 run will expand. It fires
2499# the warning (with _au_warn_XXX), outputs it into the
2500# updated configure.ac (with AC_DIAGNOSE), and then outputs
2501# the replacement expansion.
2502
2503
2504# This is an auxiliary macro that is also run when
2505# autoupdate runs m4. It simply calls m4_warning, but
2506# we need a wrapper so that each warning is emitted only
2507# once. We break the quoting in m4_warning's argument in
2508# order to expand this macro's arguments, not AU_DEFUN's.
2509
2510
2511# Finally, this is the expansion that is picked up by
2512# autoconf. It tells the user to run autoupdate, and
2513# then outputs the replacement expansion. We do not care
2514# about autoupdate's warning because that contains
2515# information on what to do *after* running autoupdate.
2516
2517
2518
2519# _LT_CC_BASENAME(CC)
2520# -------------------
2521# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2522
2523
2524
2525# _LT_FILEUTILS_DEFAULTS
2526# ----------------------
2527# It is okay to use these file commands and assume they have been set
2528# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2529# _LT_FILEUTILS_DEFAULTS
2530
2531
2532# _LT_SETUP
2533# ---------
2534# _LT_SETUP
2535
2536
2537# _LT_PREPARE_SED_QUOTE_VARS
2538# --------------------------
2539# Define a few sed substitution that help us do robust quoting.
2540
2541
2542# _LT_PROG_LTMAIN
2543# ---------------
2544# Note that this code is called both from `configure', and `config.status'
2545# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2546# `config.status' has no value for ac_aux_dir unless we are using Automake,
2547# so we pass a copy along to make sure it has a sensible value anyway.
2548# _LT_PROG_LTMAIN
2549
2550
2551## ------------------------------------- ##
2552## Accumulate code for creating libtool. ##
2553## ------------------------------------- ##
2554
2555# So that we can recreate a full libtool script including additional
2556# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2557# in macros and then make a single call at the end using the `libtool'
2558# label.
2559
2560
2561# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2562# ----------------------------------------
2563# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2564
2565
2566# Initialize.
2567
2568
2569
2570# _LT_CONFIG_LIBTOOL([COMMANDS])
2571# ------------------------------
2572# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2573
2574
2575# Initialize.
2576
2577
2578
2579# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2580# -----------------------------------------------------
2581
2582
2583
2584# _LT_FORMAT_COMMENT([COMMENT])
2585# -----------------------------
2586# Add leading comment marks to the start of each line, and a trailing
2587# full-stop to the whole comment if one is not present already.
2588
2589
2590
2591
2592## ------------------------ ##
2593## FIXME: Eliminate VARNAME ##
2594## ------------------------ ##
2595
2596
2597# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2598# -------------------------------------------------------------------
2599# CONFIGNAME is the name given to the value in the libtool script.
2600# VARNAME is the (base) name used in the configure script.
2601# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2602# VARNAME. Any other value will be used directly.
2603
2604
2605
2606# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2607# --------------------------------------------------------
2608
2609
2610
2611# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2612# ------------------------------------------------
2613
2614
2615
2616# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2617# ---------------------------------------------------------
2618
2619
2620
2621# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2622# --------------------------------------------------
2623
2624
2625
2626# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2627# ---------------------------------------------------
2628
2629
2630
2631# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2632# ---------------------------------------------------
2633
2634
2635
2636
2637# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2638# ------------------------------------------------
2639
2640
2641
2642
2643# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2644# ------------------------------------
2645# Quote a variable value, and forward it to `config.status' so that its
2646# declaration there will have the same value as in `configure'. VARNAME
2647# must have a single quote delimited value for this to work.
2648
2649
2650
2651# _LT_CONFIG_STATUS_DECLARATIONS
2652# ------------------------------
2653# We delimit libtool config variables with single quotes, so when
2654# we write them to config.status, we have to be sure to quote all
2655# embedded single quotes properly. In configure, this macro expands
2656# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2657#
2658# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2659
2660
2661
2662# _LT_LIBTOOL_TAGS
2663# ----------------
2664# Output comment and list of tags supported by the script
2665
2666
2667
2668# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2669# -----------------------------------
2670# Extract the dictionary values for VARNAME (optionally with TAG) and
2671# expand to a commented shell variable setting:
2672#
2673# # Some comment about what VAR is for.
2674# visible_name=$lt_internal_name
2675
2676
2677
2678# _LT_LIBTOOL_CONFIG_VARS
2679# -----------------------
2680# Produce commented declarations of non-tagged libtool config variables
2681# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2682# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2683# section) are produced by _LT_LIBTOOL_TAG_VARS.
2684
2685
2686
2687# _LT_LIBTOOL_TAG_VARS(TAG)
2688# -------------------------
2689
2690
2691
2692# _LT_TAGVAR(VARNAME, [TAGNAME])
2693# ------------------------------
2694
2695
2696
2697# _LT_CONFIG_COMMANDS
2698# -------------------
2699# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2700# variables for single and double quote escaping we saved from calls
2701# to _LT_DECL, we can put quote escaped variables declarations
2702# into `config.status', and then the shell code to quote escape them in
2703# for loops in `config.status'. Finally, any additional code accumulated
2704# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2705#_LT_CONFIG_COMMANDS
2706
2707
2708# Initialize.
2709
2710
2711# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2712# ------------------------------------
2713# Generate a child script FILE with all initialization necessary to
2714# reuse the environment learned by the parent script, and make the
2715# file executable. If COMMENT is supplied, it is inserted after the
2716# `#!' sequence but before initialization text begins. After this
2717# macro, additional text can be appended to FILE to form the body of
2718# the child script. The macro ends with non-zero status if the
2719# file could not be fully written (such as if the disk is full).
2720# _LT_GENERATED_FILE_INIT
2721
2722# LT_OUTPUT
2723# ---------
2724# This macro allows early generation of the libtool script (before
2725# AC_OUTPUT is called), incase it is used in configure for compilation
2726# tests.
2727# LT_OUTPUT
2728
2729
2730# _LT_CONFIG(TAG)
2731# ---------------
2732# If TAG is the built-in tag, create an initial libtool script with a
2733# default configuration from the untagged config vars. Otherwise add code
2734# to config.status for appending the configuration named by TAG from the
2735# matching tagged config vars.
2736# _LT_CONFIG
2737
2738
2739# LT_SUPPORTED_TAG(TAG)
2740# ---------------------
2741# Trace this macro to discover what tags are supported by the libtool
2742# --tag option, using:
2743# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2744
2745
2746
2747# C support is built-in for now
2748
2749
2750
2751
2752# LT_LANG(LANG)
2753# -------------
2754# Enable libtool support for the given language if not already enabled.
2755# LT_LANG
2756
2757
2758# _LT_LANG(LANGNAME)
2759# ------------------
2760# _LT_LANG
2761
2762
2763# _LT_LANG_DEFAULT_CONFIG
2764# -----------------------
2765# _LT_LANG_DEFAULT_CONFIG
2766
2767# Obsolete macros:
2768# This is what autoupdate's m4 run will expand. It fires
2769# the warning (with _au_warn_XXX), outputs it into the
2770# updated configure.ac (with AC_DIAGNOSE), and then outputs
2771# the replacement expansion.
2772
2773
2774# This is an auxiliary macro that is also run when
2775# autoupdate runs m4. It simply calls m4_warning, but
2776# we need a wrapper so that each warning is emitted only
2777# once. We break the quoting in m4_warning's argument in
2778# order to expand this macro's arguments, not AU_DEFUN's.
2779
2780
2781# Finally, this is the expansion that is picked up by
2782# autoconf. It tells the user to run autoupdate, and
2783# then outputs the replacement expansion. We do not care
2784# about autoupdate's warning because that contains
2785# information on what to do *after* running autoupdate.
2786
2787# This is what autoupdate's m4 run will expand. It fires
2788# the warning (with _au_warn_XXX), outputs it into the
2789# updated configure.ac (with AC_DIAGNOSE), and then outputs
2790# the replacement expansion.
2791
2792
2793# This is an auxiliary macro that is also run when
2794# autoupdate runs m4. It simply calls m4_warning, but
2795# we need a wrapper so that each warning is emitted only
2796# once. We break the quoting in m4_warning's argument in
2797# order to expand this macro's arguments, not AU_DEFUN's.
2798
2799
2800# Finally, this is the expansion that is picked up by
2801# autoconf. It tells the user to run autoupdate, and
2802# then outputs the replacement expansion. We do not care
2803# about autoupdate's warning because that contains
2804# information on what to do *after* running autoupdate.
2805
2806# This is what autoupdate's m4 run will expand. It fires
2807# the warning (with _au_warn_XXX), outputs it into the
2808# updated configure.ac (with AC_DIAGNOSE), and then outputs
2809# the replacement expansion.
2810
2811
2812# This is an auxiliary macro that is also run when
2813# autoupdate runs m4. It simply calls m4_warning, but
2814# we need a wrapper so that each warning is emitted only
2815# once. We break the quoting in m4_warning's argument in
2816# order to expand this macro's arguments, not AU_DEFUN's.
2817
2818
2819# Finally, this is the expansion that is picked up by
2820# autoconf. It tells the user to run autoupdate, and
2821# then outputs the replacement expansion. We do not care
2822# about autoupdate's warning because that contains
2823# information on what to do *after* running autoupdate.
2824
2825# This is what autoupdate's m4 run will expand. It fires
2826# the warning (with _au_warn_XXX), outputs it into the
2827# updated configure.ac (with AC_DIAGNOSE), and then outputs
2828# the replacement expansion.
2829
2830
2831# This is an auxiliary macro that is also run when
2832# autoupdate runs m4. It simply calls m4_warning, but
2833# we need a wrapper so that each warning is emitted only
2834# once. We break the quoting in m4_warning's argument in
2835# order to expand this macro's arguments, not AU_DEFUN's.
2836
2837
2838# Finally, this is the expansion that is picked up by
2839# autoconf. It tells the user to run autoupdate, and
2840# then outputs the replacement expansion. We do not care
2841# about autoupdate's warning because that contains
2842# information on what to do *after* running autoupdate.
2843
2844# This is what autoupdate's m4 run will expand. It fires
2845# the warning (with _au_warn_XXX), outputs it into the
2846# updated configure.ac (with AC_DIAGNOSE), and then outputs
2847# the replacement expansion.
2848
2849
2850# This is an auxiliary macro that is also run when
2851# autoupdate runs m4. It simply calls m4_warning, but
2852# we need a wrapper so that each warning is emitted only
2853# once. We break the quoting in m4_warning's argument in
2854# order to expand this macro's arguments, not AU_DEFUN's.
2855
2856
2857# Finally, this is the expansion that is picked up by
2858# autoconf. It tells the user to run autoupdate, and
2859# then outputs the replacement expansion. We do not care
2860# about autoupdate's warning because that contains
2861# information on what to do *after* running autoupdate.
2862
2863
2864
2865# _LT_TAG_COMPILER
2866# ----------------
2867# _LT_TAG_COMPILER
2868
2869
2870# _LT_COMPILER_BOILERPLATE
2871# ------------------------
2872# Check for compiler boilerplate output or warnings with
2873# the simple compiler test code.
2874# _LT_COMPILER_BOILERPLATE
2875
2876
2877# _LT_LINKER_BOILERPLATE
2878# ----------------------
2879# Check for linker boilerplate output or warnings with
2880# the simple link test code.
2881# _LT_LINKER_BOILERPLATE
2882
2883# _LT_REQUIRED_DARWIN_CHECKS
2884# -------------------------
2885
2886
2887
2888# _LT_DARWIN_LINKER_FEATURES
2889# --------------------------
2890# Checks for linker and compiler features on darwin
2891
2892
2893# _LT_SYS_MODULE_PATH_AIX
2894# -----------------------
2895# Links a minimal program and checks the executable
2896# for the system default hardcoded library path. In most cases,
2897# this is /usr/lib:/lib, but when the MPI compilers are used
2898# the location of the communication and MPI libs are included too.
2899# If we don't find anything, use the default library path according
2900# to the aix ld manual.
2901# _LT_SYS_MODULE_PATH_AIX
2902
2903
2904# _LT_SHELL_INIT(ARG)
2905# -------------------
2906# _LT_SHELL_INIT
2907
2908
2909
2910# _LT_PROG_ECHO_BACKSLASH
2911# -----------------------
2912# Find how we can fake an echo command that does not interpret backslash.
2913# In particular, with Autoconf 2.60 or later we add some code to the start
2914# of the generated configure script which will find a shell with a builtin
2915# printf (which we can use as an echo command).
2916# _LT_PROG_ECHO_BACKSLASH
2917
2918
2919# _LT_ENABLE_LOCK
2920# ---------------
2921# _LT_ENABLE_LOCK
2922
2923
2924# _LT_CMD_OLD_ARCHIVE
2925# -------------------
2926# _LT_CMD_OLD_ARCHIVE
2927
2928
2929# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2930# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2931# ----------------------------------------------------------------
2932# Check whether the given compiler option works
2933# _LT_COMPILER_OPTION
2934
2935# Old name:
2936# This is what autoupdate's m4 run will expand. It fires
2937# the warning (with _au_warn_XXX), outputs it into the
2938# updated configure.ac (with AC_DIAGNOSE), and then outputs
2939# the replacement expansion.
2940
2941
2942# This is an auxiliary macro that is also run when
2943# autoupdate runs m4. It simply calls m4_warning, but
2944# we need a wrapper so that each warning is emitted only
2945# once. We break the quoting in m4_warning's argument in
2946# order to expand this macro's arguments, not AU_DEFUN's.
2947
2948
2949# Finally, this is the expansion that is picked up by
2950# autoconf. It tells the user to run autoupdate, and
2951# then outputs the replacement expansion. We do not care
2952# about autoupdate's warning because that contains
2953# information on what to do *after* running autoupdate.
2954
2955
2956
2957# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2958# [ACTION-SUCCESS], [ACTION-FAILURE])
2959# ----------------------------------------------------
2960# Check whether the given linker option works
2961# _LT_LINKER_OPTION
2962
2963# Old name:
2964# This is what autoupdate's m4 run will expand. It fires
2965# the warning (with _au_warn_XXX), outputs it into the
2966# updated configure.ac (with AC_DIAGNOSE), and then outputs
2967# the replacement expansion.
2968
2969
2970# This is an auxiliary macro that is also run when
2971# autoupdate runs m4. It simply calls m4_warning, but
2972# we need a wrapper so that each warning is emitted only
2973# once. We break the quoting in m4_warning's argument in
2974# order to expand this macro's arguments, not AU_DEFUN's.
2975
2976
2977# Finally, this is the expansion that is picked up by
2978# autoconf. It tells the user to run autoupdate, and
2979# then outputs the replacement expansion. We do not care
2980# about autoupdate's warning because that contains
2981# information on what to do *after* running autoupdate.
2982
2983
2984
2985# LT_CMD_MAX_LEN
2986#---------------
2987# LT_CMD_MAX_LEN
2988
2989# Old name:
2990# This is what autoupdate's m4 run will expand. It fires
2991# the warning (with _au_warn_XXX), outputs it into the
2992# updated configure.ac (with AC_DIAGNOSE), and then outputs
2993# the replacement expansion.
2994
2995
2996# This is an auxiliary macro that is also run when
2997# autoupdate runs m4. It simply calls m4_warning, but
2998# we need a wrapper so that each warning is emitted only
2999# once. We break the quoting in m4_warning's argument in
3000# order to expand this macro's arguments, not AU_DEFUN's.
3001
3002
3003# Finally, this is the expansion that is picked up by
3004# autoconf. It tells the user to run autoupdate, and
3005# then outputs the replacement expansion. We do not care
3006# about autoupdate's warning because that contains
3007# information on what to do *after* running autoupdate.
3008
3009
3010
3011# _LT_HEADER_DLFCN
3012# ----------------
3013# _LT_HEADER_DLFCN
3014
3015
3016# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3017# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3018# ----------------------------------------------------------------
3019# _LT_TRY_DLOPEN_SELF
3020
3021
3022# LT_SYS_DLOPEN_SELF
3023# ------------------
3024# LT_SYS_DLOPEN_SELF
3025
3026# Old name:
3027# This is what autoupdate's m4 run will expand. It fires
3028# the warning (with _au_warn_XXX), outputs it into the
3029# updated configure.ac (with AC_DIAGNOSE), and then outputs
3030# the replacement expansion.
3031
3032
3033# This is an auxiliary macro that is also run when
3034# autoupdate runs m4. It simply calls m4_warning, but
3035# we need a wrapper so that each warning is emitted only
3036# once. We break the quoting in m4_warning's argument in
3037# order to expand this macro's arguments, not AU_DEFUN's.
3038
3039
3040# Finally, this is the expansion that is picked up by
3041# autoconf. It tells the user to run autoupdate, and
3042# then outputs the replacement expansion. We do not care
3043# about autoupdate's warning because that contains
3044# information on what to do *after* running autoupdate.
3045
3046
3047
3048# _LT_COMPILER_C_O([TAGNAME])
3049# ---------------------------
3050# Check to see if options -c and -o are simultaneously supported by compiler.
3051# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3052# _LT_COMPILER_C_O
3053
3054
3055# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3056# ----------------------------------
3057# Check to see if we can do hard links to lock some files if needed
3058# _LT_COMPILER_FILE_LOCKS
3059
3060
3061# _LT_CHECK_OBJDIR
3062# ----------------
3063# _LT_CHECK_OBJDIR
3064
3065
3066# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3067# --------------------------------------
3068# Check hardcoding attributes.
3069# _LT_LINKER_HARDCODE_LIBPATH
3070
3071
3072# _LT_CMD_STRIPLIB
3073# ----------------
3074# _LT_CMD_STRIPLIB
3075
3076
3077# _LT_SYS_DYNAMIC_LINKER([TAG])
3078# -----------------------------
3079# PORTME Fill in your ld.so characteristics
3080# _LT_SYS_DYNAMIC_LINKER
3081
3082
3083# _LT_PATH_TOOL_PREFIX(TOOL)
3084# --------------------------
3085# find a file program which can recognize shared library
3086# _LT_PATH_TOOL_PREFIX
3087
3088# Old name:
3089# This is what autoupdate's m4 run will expand. It fires
3090# the warning (with _au_warn_XXX), outputs it into the
3091# updated configure.ac (with AC_DIAGNOSE), and then outputs
3092# the replacement expansion.
3093
3094
3095# This is an auxiliary macro that is also run when
3096# autoupdate runs m4. It simply calls m4_warning, but
3097# we need a wrapper so that each warning is emitted only
3098# once. We break the quoting in m4_warning's argument in
3099# order to expand this macro's arguments, not AU_DEFUN's.
3100
3101
3102# Finally, this is the expansion that is picked up by
3103# autoconf. It tells the user to run autoupdate, and
3104# then outputs the replacement expansion. We do not care
3105# about autoupdate's warning because that contains
3106# information on what to do *after* running autoupdate.
3107
3108
3109
3110# _LT_PATH_MAGIC
3111# --------------
3112# find a file program which can recognize a shared library
3113# _LT_PATH_MAGIC
3114
3115
3116# LT_PATH_LD
3117# ----------
3118# find the pathname to the GNU or non-GNU linker
3119# LT_PATH_LD
3120
3121# Old names:
3122# This is what autoupdate's m4 run will expand. It fires
3123# the warning (with _au_warn_XXX), outputs it into the
3124# updated configure.ac (with AC_DIAGNOSE), and then outputs
3125# the replacement expansion.
3126
3127
3128# This is an auxiliary macro that is also run when
3129# autoupdate runs m4. It simply calls m4_warning, but
3130# we need a wrapper so that each warning is emitted only
3131# once. We break the quoting in m4_warning's argument in
3132# order to expand this macro's arguments, not AU_DEFUN's.
3133
3134
3135# Finally, this is the expansion that is picked up by
3136# autoconf. It tells the user to run autoupdate, and
3137# then outputs the replacement expansion. We do not care
3138# about autoupdate's warning because that contains
3139# information on what to do *after* running autoupdate.
3140
3141# This is what autoupdate's m4 run will expand. It fires
3142# the warning (with _au_warn_XXX), outputs it into the
3143# updated configure.ac (with AC_DIAGNOSE), and then outputs
3144# the replacement expansion.
3145
3146
3147# This is an auxiliary macro that is also run when
3148# autoupdate runs m4. It simply calls m4_warning, but
3149# we need a wrapper so that each warning is emitted only
3150# once. We break the quoting in m4_warning's argument in
3151# order to expand this macro's arguments, not AU_DEFUN's.
3152
3153
3154# Finally, this is the expansion that is picked up by
3155# autoconf. It tells the user to run autoupdate, and
3156# then outputs the replacement expansion. We do not care
3157# about autoupdate's warning because that contains
3158# information on what to do *after* running autoupdate.
3159
3160
3161
3162# _LT_PATH_LD_GNU
3163#- --------------
3164# _LT_PATH_LD_GNU
3165
3166
3167# _LT_CMD_RELOAD
3168# --------------
3169# find reload flag for linker
3170# -- PORTME Some linkers may need a different reload flag.
3171# _LT_CMD_RELOAD
3172
3173
3174# _LT_CHECK_MAGIC_METHOD
3175# ----------------------
3176# how to check for library dependencies
3177# -- PORTME fill in with the dynamic library characteristics
3178# _LT_CHECK_MAGIC_METHOD
3179
3180
3181# LT_PATH_NM
3182# ----------
3183# find the pathname to a BSD- or MS-compatible name lister
3184# LT_PATH_NM
3185
3186# Old names:
3187# This is what autoupdate's m4 run will expand. It fires
3188# the warning (with _au_warn_XXX), outputs it into the
3189# updated configure.ac (with AC_DIAGNOSE), and then outputs
3190# the replacement expansion.
3191
3192
3193# This is an auxiliary macro that is also run when
3194# autoupdate runs m4. It simply calls m4_warning, but
3195# we need a wrapper so that each warning is emitted only
3196# once. We break the quoting in m4_warning's argument in
3197# order to expand this macro's arguments, not AU_DEFUN's.
3198
3199
3200# Finally, this is the expansion that is picked up by
3201# autoconf. It tells the user to run autoupdate, and
3202# then outputs the replacement expansion. We do not care
3203# about autoupdate's warning because that contains
3204# information on what to do *after* running autoupdate.
3205
3206# This is what autoupdate's m4 run will expand. It fires
3207# the warning (with _au_warn_XXX), outputs it into the
3208# updated configure.ac (with AC_DIAGNOSE), and then outputs
3209# the replacement expansion.
3210
3211
3212# This is an auxiliary macro that is also run when
3213# autoupdate runs m4. It simply calls m4_warning, but
3214# we need a wrapper so that each warning is emitted only
3215# once. We break the quoting in m4_warning's argument in
3216# order to expand this macro's arguments, not AU_DEFUN's.
3217
3218
3219# Finally, this is the expansion that is picked up by
3220# autoconf. It tells the user to run autoupdate, and
3221# then outputs the replacement expansion. We do not care
3222# about autoupdate's warning because that contains
3223# information on what to do *after* running autoupdate.
3224
3225
3226
3227# LT_LIB_M
3228# --------
3229# check for math library
3230# LT_LIB_M
3231
3232# Old name:
3233# This is what autoupdate's m4 run will expand. It fires
3234# the warning (with _au_warn_XXX), outputs it into the
3235# updated configure.ac (with AC_DIAGNOSE), and then outputs
3236# the replacement expansion.
3237
3238
3239# This is an auxiliary macro that is also run when
3240# autoupdate runs m4. It simply calls m4_warning, but
3241# we need a wrapper so that each warning is emitted only
3242# once. We break the quoting in m4_warning's argument in
3243# order to expand this macro's arguments, not AU_DEFUN's.
3244
3245
3246# Finally, this is the expansion that is picked up by
3247# autoconf. It tells the user to run autoupdate, and
3248# then outputs the replacement expansion. We do not care
3249# about autoupdate's warning because that contains
3250# information on what to do *after* running autoupdate.
3251
3252
3253
3254# _LT_COMPILER_NO_RTTI([TAGNAME])
3255# -------------------------------
3256# _LT_COMPILER_NO_RTTI
3257
3258
3259# _LT_CMD_GLOBAL_SYMBOLS
3260# ----------------------
3261 # _LT_CMD_GLOBAL_SYMBOLS
3262
3263
3264# _LT_COMPILER_PIC([TAGNAME])
3265# ---------------------------
3266# _LT_COMPILER_PIC
3267
3268
3269# _LT_LINKER_SHLIBS([TAGNAME])
3270# ----------------------------
3271# See if the linker supports building shared libraries.
3272# _LT_LINKER_SHLIBS
3273
3274
3275# _LT_LANG_C_CONFIG([TAG])
3276# ------------------------
3277# Ensure that the configuration variables for a C compiler are suitably
3278# defined. These variables are subsequently used by _LT_CONFIG to write
3279# the compiler configuration to `libtool'.
3280# _LT_LANG_C_CONFIG
3281
3282
3283# _LT_LANG_CXX_CONFIG([TAG])
3284# --------------------------
3285# Ensure that the configuration variables for a C++ compiler are suitably
3286# defined. These variables are subsequently used by _LT_CONFIG to write
3287# the compiler configuration to `libtool'.
3288# _LT_LANG_CXX_CONFIG
3289
3290
3291# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3292# ---------------------------------
3293# Figure out "hidden" library dependencies from verbose
3294# compiler output when linking a shared library.
3295# Parse the compiler output and extract the necessary
3296# objects, libraries and library flags.
3297# _LT_SYS_HIDDEN_LIBDEPS
3298
3299
3300# _LT_LANG_F77_CONFIG([TAG])
3301# --------------------------
3302# Ensure that the configuration variables for a Fortran 77 compiler are
3303# suitably defined. These variables are subsequently used by _LT_CONFIG
3304# to write the compiler configuration to `libtool'.
3305# _LT_LANG_F77_CONFIG
3306
3307
3308# _LT_LANG_FC_CONFIG([TAG])
3309# -------------------------
3310# Ensure that the configuration variables for a Fortran compiler are
3311# suitably defined. These variables are subsequently used by _LT_CONFIG
3312# to write the compiler configuration to `libtool'.
3313# _LT_LANG_FC_CONFIG
3314
3315
3316# _LT_LANG_GCJ_CONFIG([TAG])
3317# --------------------------
3318# Ensure that the configuration variables for the GNU Java Compiler compiler
3319# are suitably defined. These variables are subsequently used by _LT_CONFIG
3320# to write the compiler configuration to `libtool'.
3321# _LT_LANG_GCJ_CONFIG
3322
3323
3324# _LT_LANG_RC_CONFIG([TAG])
3325# -------------------------
3326# Ensure that the configuration variables for the Windows resource compiler
3327# are suitably defined. These variables are subsequently used by _LT_CONFIG
3328# to write the compiler configuration to `libtool'.
3329# _LT_LANG_RC_CONFIG
3330
3331
3332# LT_PROG_GCJ
3333# -----------
3334
3335
3336# Old name:
3337# This is what autoupdate's m4 run will expand. It fires
3338# the warning (with _au_warn_XXX), outputs it into the
3339# updated configure.ac (with AC_DIAGNOSE), and then outputs
3340# the replacement expansion.
3341
3342
3343# This is an auxiliary macro that is also run when
3344# autoupdate runs m4. It simply calls m4_warning, but
3345# we need a wrapper so that each warning is emitted only
3346# once. We break the quoting in m4_warning's argument in
3347# order to expand this macro's arguments, not AU_DEFUN's.
3348
3349
3350# Finally, this is the expansion that is picked up by
3351# autoconf. It tells the user to run autoupdate, and
3352# then outputs the replacement expansion. We do not care
3353# about autoupdate's warning because that contains
3354# information on what to do *after* running autoupdate.
3355
3356
3357
3358# LT_PROG_RC
3359# ----------
3360
3361
3362# Old name:
3363# This is what autoupdate's m4 run will expand. It fires
3364# the warning (with _au_warn_XXX), outputs it into the
3365# updated configure.ac (with AC_DIAGNOSE), and then outputs
3366# the replacement expansion.
3367
3368
3369# This is an auxiliary macro that is also run when
3370# autoupdate runs m4. It simply calls m4_warning, but
3371# we need a wrapper so that each warning is emitted only
3372# once. We break the quoting in m4_warning's argument in
3373# order to expand this macro's arguments, not AU_DEFUN's.
3374
3375
3376# Finally, this is the expansion that is picked up by
3377# autoconf. It tells the user to run autoupdate, and
3378# then outputs the replacement expansion. We do not care
3379# about autoupdate's warning because that contains
3380# information on what to do *after* running autoupdate.
3381
3382
3383
3384# _LT_DECL_EGREP
3385# --------------
3386# If we don't have a new enough Autoconf to choose the best grep
3387# available, choose the one first in the user's PATH.
3388
3389
3390
3391# _LT_DECL_OBJDUMP
3392# --------------
3393# If we don't have a new enough Autoconf to choose the best objdump
3394# available, choose the one first in the user's PATH.
3395
3396
3397
3398# _LT_DECL_SED
3399# ------------
3400# Check for a fully-functional sed program, that truncates
3401# as few characters as possible. Prefer GNU sed if found.
3402# _LT_DECL_SED
3403
3404#m4_ifndef
3405
3406# Old name:
3407# This is what autoupdate's m4 run will expand. It fires
3408# the warning (with _au_warn_XXX), outputs it into the
3409# updated configure.ac (with AC_DIAGNOSE), and then outputs
3410# the replacement expansion.
3411
3412
3413# This is an auxiliary macro that is also run when
3414# autoupdate runs m4. It simply calls m4_warning, but
3415# we need a wrapper so that each warning is emitted only
3416# once. We break the quoting in m4_warning's argument in
3417# order to expand this macro's arguments, not AU_DEFUN's.
3418
3419
3420# Finally, this is the expansion that is picked up by
3421# autoconf. It tells the user to run autoupdate, and
3422# then outputs the replacement expansion. We do not care
3423# about autoupdate's warning because that contains
3424# information on what to do *after* running autoupdate.
3425
3426
3427
3428# _LT_CHECK_SHELL_FEATURES
3429# ------------------------
3430# Find out whether the shell is Bourne or XSI compatible,
3431# or has some other useful features.
3432# _LT_CHECK_SHELL_FEATURES
3433
3434
3435# _LT_PROG_XSI_SHELLFNS
3436# ---------------------
3437# Bourne and XSI compatible variants of some useful shell functions.
3438
3439
3440# Helper functions for option handling. -*- Autoconf -*-
3441#
3442# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3443# Inc.
3444# Written by Gary V. Vaughan, 2004
3445#
3446# This file is free software; the Free Software Foundation gives
3447# unlimited permission to copy and/or distribute it, with or without
3448# modifications, as long as this notice is preserved.
3449
3450# serial 6 ltoptions.m4
3451
3452# This is to help aclocal find these macros, as it can't see m4_define.
3453
3454
3455
3456# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3457# ------------------------------------------
3458
3459
3460
3461# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3462# ---------------------------------------
3463# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3464# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3465# saved as a flag.
3466
3467
3468
3469# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3470# ------------------------------------------------------------
3471# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3472
3473
3474
3475# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3476# -------------------------------------------------------
3477# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3478# are set.
3479
3480
3481
3482# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3483# ----------------------------------------
3484# OPTION-LIST is a space-separated list of Libtool options associated
3485# with MACRO-NAME. If any OPTION has a matching handler declared with
3486# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3487# the unknown option and exit.
3488# _LT_SET_OPTIONS
3489
3490
3491## --------------------------------- ##
3492## Macros to handle LT_INIT options. ##
3493## --------------------------------- ##
3494
3495# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3496# -----------------------------------------
3497
3498
3499
3500# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3501# -----------------------------------------------
3502# LT_OPTION_DEFINE
3503
3504
3505# dlopen
3506# ------
3507
3508
3509# This is what autoupdate's m4 run will expand. It fires
3510# the warning (with _au_warn_XXX), outputs it into the
3511# updated configure.ac (with AC_DIAGNOSE), and then outputs
3512# the replacement expansion.
3513
3514
3515# This is an auxiliary macro that is also run when
3516# autoupdate runs m4. It simply calls m4_warning, but
3517# we need a wrapper so that each warning is emitted only
3518# once. We break the quoting in m4_warning's argument in
3519# order to expand this macro's arguments, not AU_DEFUN's.
3520
3521
3522# Finally, this is the expansion that is picked up by
3523# autoconf. It tells the user to run autoupdate, and
3524# then outputs the replacement expansion. We do not care
3525# about autoupdate's warning because that contains
3526# information on what to do *after* running autoupdate.
3527
3528
3529
3530
3531# win32-dll
3532# ---------
3533# Declare package support for building win32 dll's.
3534# win32-dll
3535
3536# This is what autoupdate's m4 run will expand. It fires
3537# the warning (with _au_warn_XXX), outputs it into the
3538# updated configure.ac (with AC_DIAGNOSE), and then outputs
3539# the replacement expansion.
3540
3541
3542# This is an auxiliary macro that is also run when
3543# autoupdate runs m4. It simply calls m4_warning, but
3544# we need a wrapper so that each warning is emitted only
3545# once. We break the quoting in m4_warning's argument in
3546# order to expand this macro's arguments, not AU_DEFUN's.
3547
3548
3549# Finally, this is the expansion that is picked up by
3550# autoconf. It tells the user to run autoupdate, and
3551# then outputs the replacement expansion. We do not care
3552# about autoupdate's warning because that contains
3553# information on what to do *after* running autoupdate.
3554
3555
3556
3557
3558# _LT_ENABLE_SHARED([DEFAULT])
3559# ----------------------------
3560# implement the --enable-shared flag, and supports the `shared' and
3561# `disable-shared' LT_INIT options.
3562# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3563# _LT_ENABLE_SHARED
3564
3565
3566
3567
3568# Old names:
3569
3570
3571
3572
3573# This is what autoupdate's m4 run will expand. It fires
3574# the warning (with _au_warn_XXX), outputs it into the
3575# updated configure.ac (with AC_DIAGNOSE), and then outputs
3576# the replacement expansion.
3577
3578
3579# This is an auxiliary macro that is also run when
3580# autoupdate runs m4. It simply calls m4_warning, but
3581# we need a wrapper so that each warning is emitted only
3582# once. We break the quoting in m4_warning's argument in
3583# order to expand this macro's arguments, not AU_DEFUN's.
3584
3585
3586# Finally, this is the expansion that is picked up by
3587# autoconf. It tells the user to run autoupdate, and
3588# then outputs the replacement expansion. We do not care
3589# about autoupdate's warning because that contains
3590# information on what to do *after* running autoupdate.
3591
3592# This is what autoupdate's m4 run will expand. It fires
3593# the warning (with _au_warn_XXX), outputs it into the
3594# updated configure.ac (with AC_DIAGNOSE), and then outputs
3595# the replacement expansion.
3596
3597
3598# This is an auxiliary macro that is also run when
3599# autoupdate runs m4. It simply calls m4_warning, but
3600# we need a wrapper so that each warning is emitted only
3601# once. We break the quoting in m4_warning's argument in
3602# order to expand this macro's arguments, not AU_DEFUN's.
3603
3604
3605# Finally, this is the expansion that is picked up by
3606# autoconf. It tells the user to run autoupdate, and
3607# then outputs the replacement expansion. We do not care
3608# about autoupdate's warning because that contains
3609# information on what to do *after* running autoupdate.
3610
3611
3612
3613
3614
3615# _LT_ENABLE_STATIC([DEFAULT])
3616# ----------------------------
3617# implement the --enable-static flag, and support the `static' and
3618# `disable-static' LT_INIT options.
3619# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3620# _LT_ENABLE_STATIC
3621
3622
3623
3624
3625# Old names:
3626
3627
3628
3629
3630# This is what autoupdate's m4 run will expand. It fires
3631# the warning (with _au_warn_XXX), outputs it into the
3632# updated configure.ac (with AC_DIAGNOSE), and then outputs
3633# the replacement expansion.
3634
3635
3636# This is an auxiliary macro that is also run when
3637# autoupdate runs m4. It simply calls m4_warning, but
3638# we need a wrapper so that each warning is emitted only
3639# once. We break the quoting in m4_warning's argument in
3640# order to expand this macro's arguments, not AU_DEFUN's.
3641
3642
3643# Finally, this is the expansion that is picked up by
3644# autoconf. It tells the user to run autoupdate, and
3645# then outputs the replacement expansion. We do not care
3646# about autoupdate's warning because that contains
3647# information on what to do *after* running autoupdate.
3648
3649# This is what autoupdate's m4 run will expand. It fires
3650# the warning (with _au_warn_XXX), outputs it into the
3651# updated configure.ac (with AC_DIAGNOSE), and then outputs
3652# the replacement expansion.
3653
3654
3655# This is an auxiliary macro that is also run when
3656# autoupdate runs m4. It simply calls m4_warning, but
3657# we need a wrapper so that each warning is emitted only
3658# once. We break the quoting in m4_warning's argument in
3659# order to expand this macro's arguments, not AU_DEFUN's.
3660
3661
3662# Finally, this is the expansion that is picked up by
3663# autoconf. It tells the user to run autoupdate, and
3664# then outputs the replacement expansion. We do not care
3665# about autoupdate's warning because that contains
3666# information on what to do *after* running autoupdate.
3667
3668
3669
3670
3671
3672# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3673# ----------------------------------
3674# implement the --enable-fast-install flag, and support the `fast-install'
3675# and `disable-fast-install' LT_INIT options.
3676# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3677# _LT_ENABLE_FAST_INSTALL
3678
3679
3680
3681
3682# Old names:
3683# This is what autoupdate's m4 run will expand. It fires
3684# the warning (with _au_warn_XXX), outputs it into the
3685# updated configure.ac (with AC_DIAGNOSE), and then outputs
3686# the replacement expansion.
3687
3688
3689# This is an auxiliary macro that is also run when
3690# autoupdate runs m4. It simply calls m4_warning, but
3691# we need a wrapper so that each warning is emitted only
3692# once. We break the quoting in m4_warning's argument in
3693# order to expand this macro's arguments, not AU_DEFUN's.
3694
3695
3696# Finally, this is the expansion that is picked up by
3697# autoconf. It tells the user to run autoupdate, and
3698# then outputs the replacement expansion. We do not care
3699# about autoupdate's warning because that contains
3700# information on what to do *after* running autoupdate.
3701
3702
3703# This is what autoupdate's m4 run will expand. It fires
3704# the warning (with _au_warn_XXX), outputs it into the
3705# updated configure.ac (with AC_DIAGNOSE), and then outputs
3706# the replacement expansion.
3707
3708
3709# This is an auxiliary macro that is also run when
3710# autoupdate runs m4. It simply calls m4_warning, but
3711# we need a wrapper so that each warning is emitted only
3712# once. We break the quoting in m4_warning's argument in
3713# order to expand this macro's arguments, not AU_DEFUN's.
3714
3715
3716# Finally, this is the expansion that is picked up by
3717# autoconf. It tells the user to run autoupdate, and
3718# then outputs the replacement expansion. We do not care
3719# about autoupdate's warning because that contains
3720# information on what to do *after* running autoupdate.
3721
3722
3723
3724
3725# _LT_WITH_PIC([MODE])
3726# --------------------
3727# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3728# LT_INIT options.
3729# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3730# _LT_WITH_PIC
3731
3732
3733
3734
3735# Old name:
3736# This is what autoupdate's m4 run will expand. It fires
3737# the warning (with _au_warn_XXX), outputs it into the
3738# updated configure.ac (with AC_DIAGNOSE), and then outputs
3739# the replacement expansion.
3740
3741
3742# This is an auxiliary macro that is also run when
3743# autoupdate runs m4. It simply calls m4_warning, but
3744# we need a wrapper so that each warning is emitted only
3745# once. We break the quoting in m4_warning's argument in
3746# order to expand this macro's arguments, not AU_DEFUN's.
3747
3748
3749# Finally, this is the expansion that is picked up by
3750# autoconf. It tells the user to run autoupdate, and
3751# then outputs the replacement expansion. We do not care
3752# about autoupdate's warning because that contains
3753# information on what to do *after* running autoupdate.
3754
3755
3756
3757## ----------------- ##
3758## LTDL_INIT Options ##
3759## ----------------- ##
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3771#
3772# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3773# Written by Gary V. Vaughan, 2004
3774#
3775# This file is free software; the Free Software Foundation gives
3776# unlimited permission to copy and/or distribute it, with or without
3777# modifications, as long as this notice is preserved.
3778
3779# serial 6 ltsugar.m4
3780
3781# This is to help aclocal find these macros, as it can't see m4_define.
3782
3783
3784
3785# lt_join(SEP, ARG1, [ARG2...])
3786# -----------------------------
3787# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3788# associated separator.
3789# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3790# versions in m4sugar had bugs.
3791
3792
3793
3794
3795# lt_car(LIST)
3796# lt_cdr(LIST)
3797# ------------
3798# Manipulate m4 lists.
3799# These macros are necessary as long as will still need to support
3800# Autoconf-2.59 which quotes differently.
3801
3802
3803
3804
3805
3806# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3807# ------------------------------------------
3808# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3809# Note that neither SEPARATOR nor STRING are expanded; they are appended
3810# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3811# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3812# than defined and empty).
3813#
3814# This macro is needed until we can rely on Autoconf 2.62, since earlier
3815# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3816
3817
3818
3819
3820# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3821# ----------------------------------------------------------
3822# Produce a SEP delimited list of all paired combinations of elements of
3823# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3824# has the form PREFIXmINFIXSUFFIXn.
3825# Needed until we can rely on m4_combine added in Autoconf 2.62.
3826
3827
3828
3829# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3830# -----------------------------------------------------------------------
3831# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3832# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3833
3834
3835
3836# lt_dict_add(DICT, KEY, VALUE)
3837# -----------------------------
3838
3839
3840
3841# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3842# --------------------------------------------
3843
3844
3845
3846# lt_dict_fetch(DICT, KEY, [SUBKEY])
3847# ----------------------------------
3848
3849
3850
3851# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3852# -----------------------------------------------------------------
3853
3854
3855
3856# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3857# --------------------------------------------------------------
3858
3859
3860# ltversion.m4 -- version numbers -*- Autoconf -*-
3861#
3862# Copyright (C) 2004 Free Software Foundation, Inc.
3863# Written by Scott James Remnant, 2004
3864#
3865# This file is free software; the Free Software Foundation gives
3866# unlimited permission to copy and/or distribute it, with or without
3867# modifications, as long as this notice is preserved.
3868
3869# Generated from ltversion.in.
3870
3871# serial 3134 ltversion.m4
3872# This file is part of GNU Libtool
3873
3874
3875
3876
3877
3878
3879# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3880#
3881# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3882# Written by Scott James Remnant, 2004.
3883#
3884# This file is free software; the Free Software Foundation gives
3885# unlimited permission to copy and/or distribute it, with or without
3886# modifications, as long as this notice is preserved.
3887
3888# serial 4 lt~obsolete.m4
3889
3890# These exist entirely to fool aclocal when bootstrapping libtool.
3891#
3892# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3893# which have later been changed to m4_define as they aren't part of the
3894# exported API, or moved to Autoconf or Automake where they belong.
3895#
3896# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3897# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3898# using a macro with the same name in our local m4/libtool.m4 it'll
3899# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3900# and doesn't know about Autoconf macros at all.)
3901#
3902# So we provide this file, which has a silly filename so it's always
3903# included after everything else. This provides aclocal with the
3904# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3905# because those macros already exist, or will be overwritten later.
3906# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3907#
3908# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3909# Yes, that means every name once taken will need to remain here until
3910# we give up compatibility with versions before 1.7, at which point
3911# we need to keep only those names which we still refer to.
3912
3913# This is to help aclocal find these macros, as it can't see m4_define.
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
6ffe910a
MF
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
5f3ef9d0
JB
3978## -*- Autoconf -*-
3979
3980# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3981# Free Software Foundation, Inc.
3982#
3983# This file is free software; the Free Software Foundation
3984# gives unlimited permission to copy and/or distribute it,
3985# with or without modifications, as long as this notice is preserved.
3986
3987# serial 8
3988
3989# Based on depend.m4 from automake 1.9, modified for standalone use in
3990# an environment where GNU make is required.
3991
3992# ZW_PROG_COMPILER_DEPENDENCIES
3993# -----------------------------
3994# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3995# sets fooDEPMODE accordingly. Cache-variable compatible with
3996# original; not side-effect compatible. As the users of this macro
3997# may require accurate dependencies for correct builds, it does *not*
3998# honor --disable-dependency-checking, and failure to detect a usable
3999# method is an error. depcomp is assumed to be located in
4000# $ac_aux_dir.
4001#
4002# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4003
4004
4005
4006# AM_SET_DEPDIR
4007# -------------
4008# Choose a directory name for dependency files.
4009
4010
4011# ZW_CREATE_DEPDIR
4012# ----------------
4013# As AM_SET_DEPDIR, but also create the directory at config.status time.
4014
4015
6ffe910a
MF
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
6ffe910a
MF
4055
4056
4057
4058
4059
6ffe910a
MF
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
6ffe910a
MF
4075
4076
4077
4078
4079
4080# intl sister-directory configuration rules.
4081#
4082
4083# The idea behind this macro is that there's no need to repeat all the
4084# autoconf probes done by the intl directory - it's already done them
4085# for us. In fact, there's no need even to look at the cache for the
4086# answers. All we need to do is nab a few pieces of information.
4087# The intl directory is set up to make this easy, by generating a
4088# small file which can be sourced as a shell script; then we produce
4089# the necessary substitutions and definitions for this directory.
4090
4091
4092
4093# Autoconf M4 include file defining utility macros for complex Canadian
4094# cross builds.
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104####
4105# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4106# or AC_INIT.
4107# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4108
4109####
4110# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4111# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4112
4113
4114####
4115# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4116# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4117
4118
4119
4120# Backported from Autoconf 2.5x; can go away when and if
4121# we switch. Put the OS path separator in $PATH_SEPARATOR.
4122
4123
4124
4125
37f980dc
SM
4126
4127
4128
4129
6ffe910a
MF
4130# ACX_HAVE_GCC_FOR_TARGET
4131# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4132
4133
4134# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4135# Searching for installed target binutils. We need to take extra care,
4136# else we may find the wrong assembler, linker, etc., and lose.
4137#
4138# First try --with-build-time-tools, if specified.
4139#
4140# For build != host, we ask the installed GCC for the name of the tool it
4141# uses, and accept it if it is an absolute path. This is because the
4142# only good choice for a compiler is the same GCC version that is being
4143# installed (or we couldn't make target libraries), and we assume that
4144# on the host system we'll have not only the same GCC version, but also
4145# the same binutils version.
4146#
4147# For build == host, search the same directories that the installed
4148# compiler will search. We used to do this for the assembler, linker,
4149# and nm only; for simplicity of configuration, however, we extend this
4150# criterion to tools (such as ar and ranlib) that are never invoked by
4151# the compiler, to avoid mismatches.
4152#
4153# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4154# if build == target. This makes the most sense only when bootstrapping,
4155# but we also do so when build != host. In this case, we hope that the
4156# build and host systems will have similar contents of MD_EXEC_PREFIX.
4157#
4158# If we do not find a suitable binary, then try the user's path.
4159
4160
4161###
4162# AC_PROG_CPP_WERROR
4163# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4164# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4165# For now, using this also overrides header checks to use only the
4166# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4167# bit harder from here).
4168# Eventually autoconf will default to checking headers with the compiler
4169# instead, and we'll have to do this differently.
4170
4171# AC_PROG_CPP_WERROR
4172
4173# Test for GNAT.
5f3ef9d0
JB
4174# We require the gnatbind & gnatmake programs, as well as a compiler driver
4175# that understands Ada. We use the user's CC setting, already found, and
4176# possibly add $1 to the command-line parameters.
6ffe910a
MF
4177#
4178# Sets the shell variable have_gnat to yes or no as appropriate, and
4179# substitutes GNATBIND and GNATMAKE.
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
b7026657
AC
4200
4201
b7026657
AC
4202
4203
4204
4205ac_aux_dir=
81ecdfbb 4206for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
4207 if test -f "$ac_dir/install-sh"; then
4208 ac_aux_dir=$ac_dir
4209 ac_install_sh="$ac_aux_dir/install-sh -c"
4210 break
4211 elif test -f "$ac_dir/install.sh"; then
4212 ac_aux_dir=$ac_dir
4213 ac_install_sh="$ac_aux_dir/install.sh -c"
4214 break
4215 elif test -f "$ac_dir/shtool"; then
4216 ac_aux_dir=$ac_dir
4217 ac_install_sh="$ac_aux_dir/shtool install -c"
4218 break
4219 fi
b7026657
AC
4220done
4221if test -z "$ac_aux_dir"; then
d0ac1c44 4222 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 4223fi
81ecdfbb
RW
4224
4225# These three variables are undocumented and unsupported,
4226# and are intended to be withdrawn in a future Autoconf release.
4227# They can cause serious problems if a builder's source tree is in a directory
4228# whose full name contains unusual characters.
4229ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4230ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4231ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4232
b7026657
AC
4233
4234# Find a good install program. We prefer a C program (faster),
4235# so one script is as good as another. But avoid the broken or
4236# incompatible versions:
4237# SysV /etc/install, /usr/sbin/install
4238# SunOS /usr/etc/install
4239# IRIX /sbin/install
4240# AIX /bin/install
4241# AmigaOS /C/install, which installs bootblocks on floppy discs
4242# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4243# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4244# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4245# OS/2's system install, which has a completely different semantic
4246# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
4247# Reject install programs that cannot install multiple files.
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4249$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 4250if test -z "$INSTALL"; then
d0ac1c44 4251if ${ac_cv_path_install+:} false; then :
81ecdfbb 4252 $as_echo_n "(cached) " >&6
b7026657
AC
4253else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4259 # Account for people who put trailing slashes in PATH elements.
4260case $as_dir/ in #((
4261 ./ | .// | /[cC]/* | \
b7026657 4262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 4263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
4264 /usr/ucb/* ) ;;
4265 *)
4266 # OSF1 and SCO ODT 3.0 have their own names for install.
4267 # Don't use installbsd from OSF since it installs stuff as root
4268 # by default.
4269 for ac_prog in ginstall scoinst install; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4271 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
b7026657
AC
4272 if test $ac_prog = install &&
4273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4274 # AIX install. It has an incompatible calling convention.
4275 :
4276 elif test $ac_prog = install &&
4277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4278 # program-specific install script used by HP pwplus--don't use.
4279 :
4280 else
81ecdfbb
RW
4281 rm -rf conftest.one conftest.two conftest.dir
4282 echo one > conftest.one
4283 echo two > conftest.two
4284 mkdir conftest.dir
4285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4286 test -s conftest.one && test -s conftest.two &&
4287 test -s conftest.dir/conftest.one &&
4288 test -s conftest.dir/conftest.two
4289 then
4290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4291 break 3
4292 fi
b7026657
AC
4293 fi
4294 fi
4295 done
4296 done
4297 ;;
4298esac
b7026657 4299
81ecdfbb
RW
4300 done
4301IFS=$as_save_IFS
4302
4303rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
4304
4305fi
4306 if test "${ac_cv_path_install+set}" = set; then
4307 INSTALL=$ac_cv_path_install
4308 else
81ecdfbb
RW
4309 # As a last resort, use the slow shell script. Don't cache a
4310 # value for INSTALL within a source directory, because that will
b7026657 4311 # break other packages using the cache if that directory is
81ecdfbb 4312 # removed, or if the value is a relative name.
b7026657
AC
4313 INSTALL=$ac_install_sh
4314 fi
4315fi
81ecdfbb
RW
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4317$as_echo "$INSTALL" >&6; }
b7026657
AC
4318
4319# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4320# It thinks the first close brace ends the variable substitution.
4321test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4322
4323test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4324
4325test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4326
4327ac_ext=c
4328ac_cpp='$CPP $CPPFLAGS'
4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4334set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4337if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4338 $as_echo_n "(cached) " >&6
c906108c
SS
4339else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342else
b7026657
AC
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
81ecdfbb 4348 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4352 break 2
4353 fi
4354done
81ecdfbb
RW
4355 done
4356IFS=$as_save_IFS
b7026657 4357
c906108c
SS
4358fi
4359fi
b7026657 4360CC=$ac_cv_prog_CC
c906108c 4361if test -n "$CC"; then
81ecdfbb
RW
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363$as_echo "$CC" >&6; }
b7026657 4364else
81ecdfbb
RW
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366$as_echo "no" >&6; }
b7026657
AC
4367fi
4368
81ecdfbb 4369
b7026657
AC
4370fi
4371if test -z "$ac_cv_prog_CC"; then
4372 ac_ct_CC=$CC
4373 # Extract the first word of "gcc", so it can be a program name with args.
4374set dummy gcc; ac_word=$2
81ecdfbb
RW
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4377if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4378 $as_echo_n "(cached) " >&6
b7026657
AC
4379else
4380 if test -n "$ac_ct_CC"; then
4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
81ecdfbb 4388 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4390 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4392 break 2
4393 fi
4394done
81ecdfbb
RW
4395 done
4396IFS=$as_save_IFS
b7026657
AC
4397
4398fi
4399fi
4400ac_ct_CC=$ac_cv_prog_ac_ct_CC
4401if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4403$as_echo "$ac_ct_CC" >&6; }
c906108c 4404else
81ecdfbb
RW
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406$as_echo "no" >&6; }
b7026657
AC
4407fi
4408
81ecdfbb
RW
4409 if test "x$ac_ct_CC" = x; then
4410 CC=""
4411 else
4412 case $cross_compiling:$ac_tool_warned in
4413yes:)
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416ac_tool_warned=yes ;;
4417esac
4418 CC=$ac_ct_CC
4419 fi
b7026657
AC
4420else
4421 CC="$ac_cv_prog_CC"
c906108c
SS
4422fi
4423
4424if test -z "$CC"; then
81ecdfbb
RW
4425 if test -n "$ac_tool_prefix"; then
4426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 4427set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4430if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4431 $as_echo_n "(cached) " >&6
b7026657
AC
4432else
4433 if test -n "$CC"; then
4434 ac_cv_prog_CC="$CC" # Let the user override the test.
4435else
4436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
81ecdfbb 4441 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4443 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4445 break 2
4446 fi
4447done
81ecdfbb
RW
4448 done
4449IFS=$as_save_IFS
b7026657
AC
4450
4451fi
4452fi
4453CC=$ac_cv_prog_CC
4454if test -n "$CC"; then
81ecdfbb
RW
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4456$as_echo "$CC" >&6; }
b7026657 4457else
81ecdfbb
RW
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459$as_echo "no" >&6; }
b7026657
AC
4460fi
4461
b7026657 4462
81ecdfbb 4463 fi
b7026657
AC
4464fi
4465if test -z "$CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467set dummy cc; ac_word=$2
81ecdfbb
RW
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4469$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4470if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4471 $as_echo_n "(cached) " >&6
c906108c
SS
4472else
4473 if test -n "$CC"; then
4474 ac_cv_prog_CC="$CC" # Let the user override the test.
4475else
c906108c 4476 ac_prog_rejected=no
b7026657
AC
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
81ecdfbb 4482 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657
AC
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4486 continue
4487 fi
4488 ac_cv_prog_CC="cc"
81ecdfbb 4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4490 break 2
4491 fi
4492done
81ecdfbb
RW
4493 done
4494IFS=$as_save_IFS
b7026657 4495
c906108c
SS
4496if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_CC
4499 shift
b7026657 4500 if test $# != 0; then
c906108c
SS
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set CC to just the basename; use the full file name.
4504 shift
b7026657 4505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
4506 fi
4507fi
4508fi
4509fi
b7026657 4510CC=$ac_cv_prog_CC
c906108c 4511if test -n "$CC"; then
81ecdfbb
RW
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4513$as_echo "$CC" >&6; }
c906108c 4514else
81ecdfbb
RW
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516$as_echo "no" >&6; }
c906108c
SS
4517fi
4518
81ecdfbb 4519
b7026657
AC
4520fi
4521if test -z "$CC"; then
4522 if test -n "$ac_tool_prefix"; then
81ecdfbb 4523 for ac_prog in cl.exe
b7026657
AC
4524 do
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4529if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4530 $as_echo_n "(cached) " >&6
c906108c
SS
4531else
4532 if test -n "$CC"; then
4533 ac_cv_prog_CC="$CC" # Let the user override the test.
4534else
b7026657
AC
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
81ecdfbb 4540 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4544 break 2
4545 fi
4546done
81ecdfbb
RW
4547 done
4548IFS=$as_save_IFS
b7026657
AC
4549
4550fi
4551fi
4552CC=$ac_cv_prog_CC
4553if test -n "$CC"; then
81ecdfbb
RW
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4555$as_echo "$CC" >&6; }
b7026657 4556else
81ecdfbb
RW
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; }
b7026657
AC
4559fi
4560
81ecdfbb 4561
b7026657
AC
4562 test -n "$CC" && break
4563 done
4564fi
4565if test -z "$CC"; then
4566 ac_ct_CC=$CC
81ecdfbb 4567 for ac_prog in cl.exe
b7026657
AC
4568do
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4573if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4574 $as_echo_n "(cached) " >&6
b7026657
AC
4575else
4576 if test -n "$ac_ct_CC"; then
4577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4578else
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
81ecdfbb 4584 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4586 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4588 break 2
4589 fi
4590done
81ecdfbb
RW
4591 done
4592IFS=$as_save_IFS
b7026657
AC
4593
4594fi
4595fi
4596ac_ct_CC=$ac_cv_prog_ac_ct_CC
4597if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4599$as_echo "$ac_ct_CC" >&6; }
b7026657 4600else
81ecdfbb
RW
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602$as_echo "no" >&6; }
b7026657
AC
4603fi
4604
81ecdfbb 4605
b7026657
AC
4606 test -n "$ac_ct_CC" && break
4607done
4608
81ecdfbb
RW
4609 if test "x$ac_ct_CC" = x; then
4610 CC=""
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613yes:)
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616ac_tool_warned=yes ;;
4617esac
4618 CC=$ac_ct_CC
4619 fi
b7026657
AC
4620fi
4621
4622fi
4623
4624
81ecdfbb
RW
4625test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4627as_fn_error $? "no acceptable C compiler found in \$PATH
4628See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
4629
4630# Provide some information about the compiler.
81ecdfbb
RW
4631$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4632set X $ac_compile
4633ac_compiler=$2
4634for ac_option in --version -v -V -qversion; do
4635 { { ac_try="$ac_compiler $ac_option >&5"
4636case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
4640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641$as_echo "$ac_try_echo"; } >&5
4642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 4643 ac_status=$?
81ecdfbb
RW
4644 if test -s conftest.err; then
4645 sed '10a\
4646... rest of stderr output deleted ...
4647 10q' conftest.err >conftest.er1
4648 cat conftest.er1 >&5
81ecdfbb 4649 fi
d0ac1c44 4650 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4652 test $ac_status = 0; }
4653done
b7026657 4654
81ecdfbb 4655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4656/* end confdefs.h. */
4657
4658int
4659main ()
4660{
4661
4662 ;
4663 return 0;
4664}
4665_ACEOF
4666ac_clean_files_save=$ac_clean_files
d0ac1c44 4667ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b7026657
AC
4668# Try to create an executable without -o first, disregard a.out.
4669# It will help us diagnose broken compilers, and finding out an intuition
4670# of exeext.
d0ac1c44
SM
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4672$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4673ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4674
4675# The possible output files:
4676ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4677
4678ac_rmfiles=
4679for ac_file in $ac_files
4680do
4681 case $ac_file in
4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4683 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4684 esac
4685done
4686rm -f $ac_rmfiles
4687
4688if { { ac_try="$ac_link_default"
4689case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692esac
4693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4694$as_echo "$ac_try_echo"; } >&5
4695 (eval "$ac_link_default") 2>&5
4696 ac_status=$?
4697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4698 test $ac_status = 0; }; then :
4699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4700# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4701# in a Makefile. We should not override ac_cv_exeext if it was cached,
4702# so that the user can short-circuit this test for compilers unknown to
4703# Autoconf.
4704for ac_file in $ac_files ''
b7026657
AC
4705do
4706 test -f "$ac_file" || continue
4707 case $ac_file in
81ecdfbb 4708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
4709 ;;
4710 [ab].out )
4711 # We found the default executable, but exeext='' is most
4712 # certainly right.
4713 break;;
4714 *.* )
81ecdfbb
RW
4715 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4716 then :; else
4717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4718 fi
4719 # We set ac_cv_exeext here because the later test for it is not
4720 # safe: cross compilers may not add the suffix if given an `-o'
4721 # argument, so we may need to know it at that point already.
4722 # Even if this section looks crufty: it has the advantage of
4723 # actually working.
b7026657
AC
4724 break;;
4725 * )
4726 break;;
4727 esac
4728done
81ecdfbb
RW
4729test "$ac_cv_exeext" = no && ac_cv_exeext=
4730
b7026657 4731else
81ecdfbb
RW
4732 ac_file=''
4733fi
81ecdfbb 4734if test -z "$ac_file"; then :
d0ac1c44
SM
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736$as_echo "no" >&6; }
4737$as_echo "$as_me: failed program was:" >&5
b7026657
AC
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
81ecdfbb
RW
4740{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4742as_fn_error 77 "C compiler cannot create executables
4743See \`config.log' for more details" "$LINENO" 5; }
4744else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4746$as_echo "yes" >&6; }
b7026657 4747fi
d0ac1c44
SM
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4749$as_echo_n "checking for C compiler default output file name... " >&6; }
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4751$as_echo "$ac_file" >&6; }
b7026657 4752ac_exeext=$ac_cv_exeext
b7026657 4753
d0ac1c44 4754rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 4755ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4757$as_echo_n "checking for suffix of executables... " >&6; }
4758if { { ac_try="$ac_link"
4759case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762esac
4763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4764$as_echo "$ac_try_echo"; } >&5
4765 (eval "$ac_link") 2>&5
b7026657 4766 ac_status=$?
81ecdfbb
RW
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }; then :
b7026657
AC
4769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4770# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4771# work properly (i.e., refer to `conftest.exe'), while it won't with
4772# `rm'.
4773for ac_file in conftest.exe conftest conftest.*; do
4774 test -f "$ac_file" || continue
4775 case $ac_file in
81ecdfbb 4776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 4777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
4778 break;;
4779 * ) break;;
4780 esac
4781done
c906108c 4782else
81ecdfbb
RW
4783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4785as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4786See \`config.log' for more details" "$LINENO" 5; }
c906108c 4787fi
d0ac1c44 4788rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4790$as_echo "$ac_cv_exeext" >&6; }
c906108c 4791
b7026657
AC
4792rm -f conftest.$ac_ext
4793EXEEXT=$ac_cv_exeext
4794ac_exeext=$EXEEXT
d0ac1c44
SM
4795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h. */
4797#include <stdio.h>
4798int
4799main ()
4800{
4801FILE *f = fopen ("conftest.out", "w");
4802 return ferror (f) || fclose (f) != 0;
4803
4804 ;
4805 return 0;
4806}
4807_ACEOF
4808ac_clean_files="$ac_clean_files conftest.out"
4809# Check that the compiler produces executables we can run. If not, either
4810# the compiler is broken, or we cross compile.
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4812$as_echo_n "checking whether we are cross compiling... " >&6; }
4813if test "$cross_compiling" != yes; then
4814 { { ac_try="$ac_link"
4815case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818esac
4819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4820$as_echo "$ac_try_echo"; } >&5
4821 (eval "$ac_link") 2>&5
4822 ac_status=$?
4823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4824 test $ac_status = 0; }
4825 if { ac_try='./conftest$ac_cv_exeext'
4826 { { case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829esac
4830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831$as_echo "$ac_try_echo"; } >&5
4832 (eval "$ac_try") 2>&5
4833 ac_status=$?
4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }; }; then
4836 cross_compiling=no
4837 else
4838 if test "$cross_compiling" = maybe; then
4839 cross_compiling=yes
4840 else
4841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843as_fn_error $? "cannot run C compiled programs.
4844If you meant to cross compile, use \`--host'.
4845See \`config.log' for more details" "$LINENO" 5; }
4846 fi
4847 fi
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4850$as_echo "$cross_compiling" >&6; }
4851
4852rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4853ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4855$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4856if ${ac_cv_objext+:} false; then :
81ecdfbb 4857 $as_echo_n "(cached) " >&6
b7026657 4858else
81ecdfbb 4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4860/* end confdefs.h. */
4861
4862int
4863main ()
4864{
4865
4866 ;
4867 return 0;
4868}
4869_ACEOF
4870rm -f conftest.o conftest.obj
81ecdfbb
RW
4871if { { ac_try="$ac_compile"
4872case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875esac
4876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4877$as_echo "$ac_try_echo"; } >&5
4878 (eval "$ac_compile") 2>&5
4879 ac_status=$?
4880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4881 test $ac_status = 0; }; then :
4882 for ac_file in conftest.o conftest.obj conftest.*; do
4883 test -f "$ac_file" || continue;
b7026657 4884 case $ac_file in
81ecdfbb 4885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
4886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4887 break;;
4888 esac
4889done
c906108c 4890else
81ecdfbb 4891 $as_echo "$as_me: failed program was:" >&5
b7026657 4892sed 's/^/| /' conftest.$ac_ext >&5
c906108c 4893
81ecdfbb
RW
4894{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4896as_fn_error $? "cannot compute suffix of object files: cannot compile
4897See \`config.log' for more details" "$LINENO" 5; }
c906108c 4898fi
b7026657
AC
4899rm -f conftest.$ac_cv_objext conftest.$ac_ext
4900fi
81ecdfbb
RW
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4902$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
4903OBJEXT=$ac_cv_objext
4904ac_objext=$OBJEXT
81ecdfbb
RW
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4906$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4907if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4908 $as_echo_n "(cached) " >&6
c906108c 4909else
81ecdfbb 4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4911/* end confdefs.h. */
4912
4913int
4914main ()
4915{
4916#ifndef __GNUC__
4917 choke me
c906108c 4918#endif
c906108c 4919
b7026657
AC
4920 ;
4921 return 0;
4922}
4923_ACEOF
81ecdfbb 4924if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
4925 ac_compiler_gnu=yes
4926else
81ecdfbb 4927 ac_compiler_gnu=no
b7026657 4928fi
81ecdfbb 4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
4930ac_cv_c_compiler_gnu=$ac_compiler_gnu
4931
4932fi
81ecdfbb
RW
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4934$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4935if test $ac_compiler_gnu = yes; then
4936 GCC=yes
4937else
4938 GCC=
4939fi
b7026657
AC
4940ac_test_CFLAGS=${CFLAGS+set}
4941ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4943$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4944if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4945 $as_echo_n "(cached) " >&6
4946else
4947 ac_save_c_werror_flag=$ac_c_werror_flag
4948 ac_c_werror_flag=yes
4949 ac_cv_prog_cc_g=no
4950 CFLAGS="-g"
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4952/* end confdefs.h. */
c906108c 4953
b7026657
AC
4954int
4955main ()
4956{
c906108c 4957
b7026657
AC
4958 ;
4959 return 0;
4960}
4961_ACEOF
81ecdfbb 4962if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4963 ac_cv_prog_cc_g=yes
4964else
81ecdfbb
RW
4965 CFLAGS=""
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h. */
4968
4969int
4970main ()
4971{
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977if ac_fn_c_try_compile "$LINENO"; then :
4978
4979else
4980 ac_c_werror_flag=$ac_save_c_werror_flag
4981 CFLAGS="-g"
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h. */
4984
4985int
4986main ()
4987{
c906108c 4988
81ecdfbb
RW
4989 ;
4990 return 0;
4991}
4992_ACEOF
4993if ac_fn_c_try_compile "$LINENO"; then :
4994 ac_cv_prog_cc_g=yes
4995fi
4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997fi
4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4999fi
81ecdfbb
RW
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 ac_c_werror_flag=$ac_save_c_werror_flag
b7026657 5002fi
81ecdfbb
RW
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5004$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 5005if test "$ac_test_CFLAGS" = set; then
b7026657 5006 CFLAGS=$ac_save_CFLAGS
c906108c
SS
5007elif test $ac_cv_prog_cc_g = yes; then
5008 if test "$GCC" = yes; then
5009 CFLAGS="-g -O2"
5010 else
5011 CFLAGS="-g"
5012 fi
5013else
5014 if test "$GCC" = yes; then
5015 CFLAGS="-O2"
5016 else
5017 CFLAGS=
5018 fi
5019fi
81ecdfbb
RW
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5021$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 5022if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 5023 $as_echo_n "(cached) " >&6
b7026657 5024else
81ecdfbb 5025 ac_cv_prog_cc_c89=no
b7026657 5026ac_save_CC=$CC
81ecdfbb 5027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5028/* end confdefs.h. */
5029#include <stdarg.h>
5030#include <stdio.h>
d0ac1c44 5031struct stat;
b7026657
AC
5032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5033struct buf { int x; };
5034FILE * (*rcsopen) (struct buf *, struct stat *, int);
5035static char *e (p, i)
5036 char **p;
5037 int i;
5038{
5039 return p[i];
5040}
5041static char *f (char * (*g) (char **, int), char **p, ...)
5042{
5043 char *s;
5044 va_list v;
5045 va_start (v,p);
5046 s = g (p, va_arg (v,int));
5047 va_end (v);
5048 return s;
5049}
c906108c 5050
b7026657
AC
5051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5052 function prototypes and stuff, but not '\xHH' hex character constants.
5053 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5054 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
5055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5056 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5057 that's true only with -std. */
b7026657
AC
5058int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5059
81ecdfbb
RW
5060/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5061 inside strings and character constants. */
5062#define FOO(x) 'x'
5063int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5064
b7026657
AC
5065int test (int i, double x);
5066struct s1 {int (*f) (int a);};
5067struct s2 {int (*f) (double a);};
5068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5069int argc;
5070char **argv;
5071int
5072main ()
5073{
5074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5075 ;
5076 return 0;
5077}
5078_ACEOF
81ecdfbb
RW
5079for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
5081do
5082 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 ac_cv_prog_cc_c89=$ac_arg
b7026657 5085fi
81ecdfbb
RW
5086rm -f core conftest.err conftest.$ac_objext
5087 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 5088done
81ecdfbb 5089rm -f conftest.$ac_ext
b7026657 5090CC=$ac_save_CC
c906108c 5091
c906108c 5092fi
81ecdfbb
RW
5093# AC_CACHE_VAL
5094case "x$ac_cv_prog_cc_c89" in
5095 x)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5097$as_echo "none needed" >&6; } ;;
5098 xno)
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5100$as_echo "unsupported" >&6; } ;;
b7026657 5101 *)
81ecdfbb
RW
5102 CC="$CC $ac_cv_prog_cc_c89"
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5104$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 5105esac
81ecdfbb 5106if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 5107
c906108c 5108fi
b7026657 5109
b7026657
AC
5110ac_ext=c
5111ac_cpp='$CPP $CPPFLAGS'
5112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115
5116
5117# Put a plausible default for CC_FOR_BUILD in Makefile.
5118if test "x$cross_compiling" = "xno"; then
5119 CC_FOR_BUILD='$(CC)'
c906108c 5120else
b7026657 5121 CC_FOR_BUILD=gcc
c906108c 5122fi
4b164edf 5123CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
c906108c 5124
b7026657 5125ALL_LINGUAS=
20e95c23
DJ
5126# If we haven't got the data from the intl directory,
5127# assume NLS is disabled.
5128USE_NLS=no
5129LIBINTL=
5130LIBINTL_DEP=
5131INCINTL=
5132XGETTEXT=
5133GMSGFMT=
5134POSUB=
e85e3205 5135
29035cbe
NH
5136if test -f ../../intl/config.intl; then
5137 . ../../intl/config.intl
20e95c23 5138fi
81ecdfbb
RW
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5140$as_echo_n "checking whether NLS is requested... " >&6; }
20e95c23 5141if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
c906108c 5144else
81ecdfbb
RW
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146$as_echo "yes" >&6; }
c906108c 5147
81ecdfbb 5148$as_echo "#define ENABLE_NLS 1" >>confdefs.h
20e95c23
DJ
5149
5150
81ecdfbb
RW
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5152$as_echo_n "checking for catalogs to be installed... " >&6; }
20e95c23
DJ
5153 # Look for .po and .gmo files in the source directory.
5154 CATALOGS=
5155 XLINGUAS=
5156 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5157 # If there aren't any .gmo files the shell will give us the
5158 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5159 # weeded out.
5160 case "$cat" in *\**)
5161 continue;;
5162 esac
5163 # The quadruple backslash is collapsed to a double backslash
5164 # by the backticks, then collapsed again by the double quotes,
5165 # leaving us with one backslash in the sed expression (right
5166 # before the dot that mustn't act as a wildcard).
5167 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5168 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5169 # The user is allowed to set LINGUAS to a list of languages to
5170 # install catalogs for. If it's empty that means "all of them."
5171 if test "x$LINGUAS" = x; then
5172 CATALOGS="$CATALOGS $cat"
5173 XLINGUAS="$XLINGUAS $lang"
5174 else
5175 case "$LINGUAS" in *$lang*)
5176 CATALOGS="$CATALOGS $cat"
5177 XLINGUAS="$XLINGUAS $lang"
5178 ;;
5179 esac
5180 fi
5181 done
5182 LINGUAS="$XLINGUAS"
81ecdfbb
RW
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5184$as_echo "$LINGUAS" >&6; }
20e95c23
DJ
5185
5186
5187 DATADIRNAME=share
5188
5189 INSTOBJEXT=.mo
5190
5191 GENCAT=gencat
5192
5193 CATOBJEXT=.gmo
b7026657 5194
c906108c 5195fi
20e95c23
DJ
5196
5197
81ecdfbb
RW
5198# Check whether --enable-sim-alignment was given.
5199if test "${enable_sim_alignment+set}" = set; then :
5200 enableval=$enable_sim_alignment; case "${enableval}" in
20e95c23
DJ
5201 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5202 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5203 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
d0ac1c44 5204 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
20e95c23
DJ
5205esac
5206if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5207 echo "Setting alignment flags = $sim_alignment" 6>&1
c906108c 5208fi
c906108c 5209else
20e95c23 5210 sim_alignment=""
81ecdfbb 5211fi
20e95c23 5212
81ecdfbb 5213
ce39bd38
MF
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
5215$as_echo_n "checking whether to enable sim asserts... " >&6; }
5216sim_assert="1"
81ecdfbb
RW
5217# Check whether --enable-sim-assert was given.
5218if test "${enable_sim_assert+set}" = set; then :
5219 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
5220 yes) sim_assert="1";;
5221 no) sim_assert="0";;
d0ac1c44 5222 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
20e95c23 5223esac
81ecdfbb 5224fi
b7026657 5225
ce39bd38
MF
5226cat >>confdefs.h <<_ACEOF
5227#define WITH_ASSERT $sim_assert
5228_ACEOF
5229
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
5231$as_echo "$sim_assert" >&6; }
5232
81ecdfbb
RW
5233
5234# Check whether --enable-sim-bitsize was given.
5235if test "${enable_sim_bitsize+set}" = set; then :
5236 enableval=$enable_sim_bitsize; case "${enableval}" in
20e95c23 5237 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
d0ac1c44 5238 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
20e95c23
DJ
5239esac
5240if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5241 echo "Setting bitsize flags = $sim_bitsize" 6>&1
c906108c 5242fi
b7026657 5243else
20e95c23 5244 sim_bitsize=""
81ecdfbb 5245fi
20e95c23 5246
81ecdfbb 5247
81ecdfbb
RW
5248# Check whether --enable-sim-config was given.
5249if test "${enable_sim_config+set}" = set; then :
5250 enableval=$enable_sim_config; case "${enableval}" in
d0ac1c44 5251 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
20e95c23
DJ
5252 *) if test -f "${srcdir}/${enableval}"; then
5253 sim_config="${enableval}";
5254 elif test -f "${srcdir}/${enableval}-config.h"; then
5255 sim_config="${enableval}-config.h"
5256 else
d0ac1c44 5257 as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5;
20e95c23
DJ
5258 sim_config=std-config.h
5259 fi;;
5260esac
5261if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5262 echo "Setting config flags = $sim_config" 6>&1
b7026657 5263fi
b7026657 5264else
20e95c23
DJ
5265 sim_config="std-config.h"
5266if test x"$silent" != x"yes"; then
5267 echo "Setting config flags = $sim_config" 6>&1
b7026657 5268fi
81ecdfbb
RW
5269fi
5270
c906108c 5271
81ecdfbb
RW
5272# Check whether --enable-sim-decode-mechanism was given.
5273if test "${enable_sim_decode_mechanism+set}" = set; then :
5274 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
d0ac1c44 5275 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
20e95c23 5276 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
d0ac1c44 5277 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
20e95c23
DJ
5278 sim_decode_mechanism="switch";;
5279esac
5280if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5281 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5282fi
b7026657 5283else
20e95c23
DJ
5284 sim_decode_mechanism=""
5285if test x"$silent" != x"yes"; then
5286 echo "Setting decode mechanism flags = $sim_decode_mechanism"
b7026657 5287fi
81ecdfbb
RW
5288fi
5289
b7026657 5290
81ecdfbb
RW
5291# Check whether --enable-sim-default-model was given.
5292if test "${enable_sim_default_model+set}" = set; then :
5293 enableval=$enable_sim_default_model; case "${enableval}" in
d0ac1c44 5294 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
20e95c23
DJ
5295 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5296esac
5297if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5298 echo "Setting default-model flags = $sim_default_model" 6>&1
5299fi
5300else
5301 sim_default_model=""
81ecdfbb
RW
5302fi
5303
b7026657 5304
81ecdfbb
RW
5305# Check whether --enable-sim-duplicate was given.
5306if test "${enable_sim_duplicate+set}" = set; then :
5307 enableval=$enable_sim_duplicate; case "${enableval}" in
20e95c23
DJ
5308 yes) sim_dup="-E";;
5309 no) sim_dup="";;
d0ac1c44 5310 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
20e95c23
DJ
5311esac
5312if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5313 echo "Setting duplicate flags = $sim_dup" 6>&1
5314fi
b7026657 5315else
20e95c23
DJ
5316 sim_dup="-E"
5317if test x"$silent" != x"yes"; then
5318 echo "Setting duplicate flags = $sim_dup" 6>&1
5319fi
81ecdfbb
RW
5320fi
5321
20e95c23 5322
81ecdfbb
RW
5323# Check whether --enable-sim-endian was given.
5324if test "${enable_sim_endian+set}" = set; then :
5325 enableval=$enable_sim_endian; case "${enableval}" in
20e95c23
DJ
5326 yes) case "$target" in
5327 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5328 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5329 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5330 esac;;
5331 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5332 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5333 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
d0ac1c44 5334 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
20e95c23
DJ
5335esac
5336if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5337 echo "Setting endian flags = $sim_endian" 6>&1
5338fi
5339else
5340 sim_endian=""
81ecdfbb
RW
5341fi
5342
20e95c23 5343
ce39bd38
MF
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
5345$as_echo_n "checking default sim environment setting... " >&6; }
5346sim_env="0"
81ecdfbb
RW
5347# Check whether --enable-sim-env was given.
5348if test "${enable_sim_env+set}" = set; then :
5349 enableval=$enable_sim_env; case "${enableval}" in
ce39bd38
MF
5350 operating | os | oea) sim_env="OPERATING_ENVIRONMENT";;
5351 virtual | vea) sim_env="VIRTUAL_ENVIRONMENT";;
5352 user | uea) sim_env="USER_ENVIRONMENT";;
5353 no) sim_env="0";;
d0ac1c44 5354 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-env" "$LINENO" 5;;
20e95c23 5355esac
81ecdfbb
RW
5356fi
5357
ce39bd38
MF
5358cat >>confdefs.h <<_ACEOF
5359#define WITH_ENVIRONMENT $sim_env
5360_ACEOF
5361
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_env" >&5
5363$as_echo "$sim_env" >&6; }
5364
81ecdfbb
RW
5365
5366# Check whether --enable-sim-filter was given.
5367if test "${enable_sim_filter+set}" = set; then :
5368 enableval=$enable_sim_filter; case "${enableval}" in
d0ac1c44 5369 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
20e95c23
DJ
5370 no) sim_filter="";;
5371 *) sim_filter="-F $enableval";;
5372esac
5373if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5374 echo "Setting filter flags = $sim_filter" 6>&1
5375fi
5376else
5377 sim_filter="-F 32,f,o"
5378if test x"$silent" != x"yes"; then
5379 echo "Setting filter flags = $sim_filter" 6>&1
5380fi
81ecdfbb 5381fi
20e95c23 5382
81ecdfbb
RW
5383
5384# Check whether --enable-sim-float was given.
5385if test "${enable_sim_float+set}" = set; then :
5386 enableval=$enable_sim_float; case "${enableval}" in
20e95c23
DJ
5387 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5388 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5389 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5390 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
d0ac1c44 5391 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
20e95c23
DJ
5392esac
5393if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5394 echo "Setting float flags = $sim_float" 6>&1
5395fi
5396else
5397
5398case "${target}" in
5399 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5400 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5401 *) sim_float=""
5402esac
5403
81ecdfbb
RW
5404fi
5405
20e95c23 5406
81ecdfbb
RW
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
5408$as_echo_n "checking if union semun defined... " >&6; }
d0ac1c44 5409if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
81ecdfbb 5410 $as_echo_n "(cached) " >&6
00a0b122 5411else
81ecdfbb 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5413/* end confdefs.h. */
5414
5415#include <sys/types.h>
5416#include <sys/ipc.h>
5417#include <sys/sem.h>
5418int
5419main ()
5420{
5421union semun arg ;
5422 ;
5423 return 0;
5424}
5425_ACEOF
81ecdfbb 5426if ac_fn_c_try_compile "$LINENO"; then :
00a0b122
JS
5427 ac_cv_has_union_semun="yes"
5428else
81ecdfbb 5429 ac_cv_has_union_semun="no"
00a0b122 5430fi
81ecdfbb
RW
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
5433$as_echo "$ac_cv_has_union_semun" >&6; }
00a0b122
JS
5434
5435fi
81ecdfbb
RW
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
5437$as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
00a0b122
JS
5438
5439
5440if test "$ac_cv_has_union_semun" = "yes"; then
81ecdfbb
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5442$as_echo_n "checking whether System V semaphores are supported... " >&6; }
d0ac1c44 5443if ${ac_cv_sysv_sem+:} false; then :
81ecdfbb 5444 $as_echo_n "(cached) " >&6
00a0b122
JS
5445else
5446
81ecdfbb 5447 if test "$cross_compiling" = yes; then :
00a0b122
JS
5448 :
5449else
81ecdfbb 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5451/* end confdefs.h. */
5452
5453 #include <sys/types.h>
5454 #include <sys/ipc.h>
5455 #include <sys/sem.h>
5456 int main () {
5457 union semun arg ;
5458
5459 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5460 if (id == -1)
5461 exit(1);
5462 arg.val = 0; /* avoid implicit type cast to union */
5463 if (semctl(id, 0, IPC_RMID, arg) == -1)
5464 exit(1);
5465 exit(0);
5466 }
5467
5468_ACEOF
81ecdfbb 5469if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5470 ac_cv_sysv_sem="yes"
5471else
81ecdfbb 5472 ac_cv_sysv_sem="no"
00a0b122 5473fi
81ecdfbb
RW
5474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5475 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5476fi
5477
81ecdfbb 5478
00a0b122 5479fi
81ecdfbb
RW
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5481$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122 5482else # semun is not defined
81ecdfbb
RW
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5484$as_echo_n "checking whether System V semaphores are supported... " >&6; }
d0ac1c44 5485if ${ac_cv_sysv_sem+:} false; then :
81ecdfbb 5486 $as_echo_n "(cached) " >&6
00a0b122
JS
5487else
5488
81ecdfbb 5489 if test "$cross_compiling" = yes; then :
00a0b122
JS
5490 :
5491else
81ecdfbb 5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5493/* end confdefs.h. */
5494
5495 #include <sys/types.h>
5496 #include <sys/ipc.h>
5497 #include <sys/sem.h>
5498 union semun {
5499 int val;
5500 struct semid_ds *buf;
5501 ushort *array;
5502 };
5503 int main () {
5504 union semun arg ;
5505
5506 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5507 if (id == -1)
5508 exit(1);
5509 arg.val = 0; /* avoid implicit type cast to union */
5510 if (semctl(id, 0, IPC_RMID, arg) == -1)
5511 exit(1);
5512 exit(0);
5513 }
5514
5515_ACEOF
81ecdfbb 5516if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5517 ac_cv_sysv_sem="yes"
5518else
81ecdfbb 5519 ac_cv_sysv_sem="no"
00a0b122 5520fi
81ecdfbb
RW
5521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5522 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5523fi
5524
81ecdfbb 5525
00a0b122 5526fi
81ecdfbb
RW
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5528$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122
JS
5529fi
5530
81ecdfbb
RW
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
5532$as_echo_n "checking whether System V shared memory is supported... " >&6; }
d0ac1c44 5533if ${ac_cv_sysv_shm+:} false; then :
81ecdfbb 5534 $as_echo_n "(cached) " >&6
00a0b122
JS
5535else
5536
81ecdfbb 5537if test "$cross_compiling" = yes; then :
00a0b122
JS
5538 :
5539else
81ecdfbb 5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5541/* end confdefs.h. */
5542
5543#include <sys/types.h>
5544#include <sys/ipc.h>
5545#include <sys/shm.h>
5546int main () {
5547 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
5548 if (id == -1)
5549 exit(1);
5550 if (shmctl(id, IPC_RMID, 0) == -1)
5551 exit(1);
5552 exit(0);
5553}
5554
5555_ACEOF
81ecdfbb 5556if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5557 ac_cv_sysv_shm="yes"
5558else
81ecdfbb 5559 ac_cv_sysv_shm="no"
00a0b122 5560fi
81ecdfbb
RW
5561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5562 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5563fi
5564
81ecdfbb 5565
00a0b122 5566fi
81ecdfbb
RW
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
5568$as_echo "$ac_cv_sysv_shm" >&6; }
00a0b122
JS
5569
5570if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5571 sim_sysv_ipc_hw=",sem,shm";
5572else
5573 sim_sysv_ipc_hw="";
5574fi
5575
5576if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
bf0275b1
DE
5577
5578$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5579
00a0b122
JS
5580fi
5581
5582
81ecdfbb
RW
5583# Check whether --enable-sim-hardware was given.
5584if test "${enable_sim_hardware+set}" = set; then :
5585 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
20e95c23
DJ
5586case "${enableval}" in
5587 yes) ;;
d0ac1c44 5588 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
20e95c23
DJ
5589 ,*) hardware="${hardware}${enableval}";;
5590 *,) hardware="${enableval}${hardware}";;
5591 *) hardware="${enableval}"'';;
5592esac
5593sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5594sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5595if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5596 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5597fi
5598else
00a0b122 5599 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
20e95c23
DJ
5600sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5601sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5602if test x"$silent" != x"yes"; then
5603 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5604fi
81ecdfbb
RW
5605fi
5606
5607# Check whether --enable-sim-hostbitsize was given.
5608if test "${enable_sim_hostbitsize+set}" = set; then :
5609 enableval=$enable_sim_hostbitsize; case "${enableval}" in
20e95c23 5610 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
d0ac1c44 5611 *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
20e95c23
DJ
5612esac
5613if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5614 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5615fi
5616else
5617 sim_hostbitsize=""
20e95c23 5618fi
b7026657 5619
20e95c23 5620
20e95c23
DJ
5621ac_ext=c
5622ac_cpp='$CPP $CPPFLAGS'
5623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5627$as_echo_n "checking how to run the C preprocessor... " >&6; }
20e95c23
DJ
5628# On Suns, sometimes $CPP names a directory.
5629if test -n "$CPP" && test -d "$CPP"; then
5630 CPP=
5631fi
5632if test -z "$CPP"; then
d0ac1c44 5633 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 5634 $as_echo_n "(cached) " >&6
c906108c 5635else
20e95c23
DJ
5636 # Double quotes because CPP needs to be expanded
5637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5638 do
81ecdfbb
RW
5639 ac_preproc_ok=false
5640for ac_c_preproc_warn_flag in '' yes
5641do
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 5649/* end confdefs.h. */
81ecdfbb
RW
5650#ifdef __STDC__
5651# include <limits.h>
20e95c23 5652#else
81ecdfbb 5653# include <assert.h>
20e95c23 5654#endif
81ecdfbb 5655 Syntax error
20e95c23 5656_ACEOF
81ecdfbb 5657if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5658
81ecdfbb
RW
5659else
5660 # Broken: fails on valid input.
5661continue
b7026657 5662fi
d0ac1c44 5663rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 5664
81ecdfbb
RW
5665 # OK, works on sane cases. Now check whether nonexistent headers
5666 # can be detected and how.
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 5668/* end confdefs.h. */
81ecdfbb 5669#include <ac_nonexistent.h>
20e95c23 5670_ACEOF
81ecdfbb
RW
5671if ac_fn_c_try_cpp "$LINENO"; then :
5672 # Broken: success on invalid input.
5673continue
20e95c23 5674else
81ecdfbb
RW
5675 # Passes both tests.
5676ac_preproc_ok=:
5677break
20e95c23 5678fi
d0ac1c44 5679rm -f conftest.err conftest.i conftest.$ac_ext
058ad269 5680
20e95c23 5681done
81ecdfbb 5682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5683rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
5684if $ac_preproc_ok; then :
5685 break
35689115 5686fi
35689115 5687
81ecdfbb
RW
5688 done
5689 ac_cv_prog_CPP=$CPP
35689115
HPN
5690
5691fi
81ecdfbb
RW
5692 CPP=$ac_cv_prog_CPP
5693else
5694 ac_cv_prog_CPP=$CPP
35689115 5695fi
81ecdfbb
RW
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5697$as_echo "$CPP" >&6; }
5698ac_preproc_ok=false
5699for ac_c_preproc_warn_flag in '' yes
35689115 5700do
81ecdfbb
RW
5701 # Use a header file that comes with gcc, so configuring glibc
5702 # with a fresh cross-compiler works.
5703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704 # <limits.h> exists even on freestanding compilers.
5705 # On the NeXT, cc -E runs the code through the compiler's parser,
5706 # not just through cpp. "Syntax error" is here to catch this case.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 5708/* end confdefs.h. */
81ecdfbb
RW
5709#ifdef __STDC__
5710# include <limits.h>
5711#else
5712# include <assert.h>
5713#endif
5714 Syntax error
35689115 5715_ACEOF
81ecdfbb 5716if ac_fn_c_try_cpp "$LINENO"; then :
35689115 5717
81ecdfbb
RW
5718else
5719 # Broken: fails on valid input.
5720continue
35689115 5721fi
d0ac1c44 5722rm -f conftest.err conftest.i conftest.$ac_ext
35689115 5723
81ecdfbb
RW
5724 # OK, works on sane cases. Now check whether nonexistent headers
5725 # can be detected and how.
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 5727/* end confdefs.h. */
81ecdfbb 5728#include <ac_nonexistent.h>
35689115 5729_ACEOF
81ecdfbb
RW
5730if ac_fn_c_try_cpp "$LINENO"; then :
5731 # Broken: success on invalid input.
5732continue
35689115 5733else
81ecdfbb
RW
5734 # Passes both tests.
5735ac_preproc_ok=:
5736break
35689115 5737fi
d0ac1c44 5738rm -f conftest.err conftest.i conftest.$ac_ext
35689115 5739
81ecdfbb
RW
5740done
5741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5742rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 5743if $ac_preproc_ok; then :
35689115 5744
35689115 5745else
81ecdfbb
RW
5746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5748as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5749See \`config.log' for more details" "$LINENO" 5; }
35689115 5750fi
35689115 5751
81ecdfbb
RW
5752ac_ext=c
5753ac_cpp='$CPP $CPPFLAGS'
5754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756ac_compiler_gnu=$ac_cv_c_compiler_gnu
35689115 5757
35689115 5758
81ecdfbb
RW
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5760$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5761if ${ac_cv_path_GREP+:} false; then :
81ecdfbb
RW
5762 $as_echo_n "(cached) " >&6
5763else
5764 if test -z "$GREP"; then
5765 ac_path_GREP_found=false
5766 # Loop through the user's path and test for each of PROGNAME-LIST
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5769do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_prog in grep ggrep; do
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5775 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
5776# Check for GNU ac_path_GREP and select it if it is found.
5777 # Check for GNU $ac_path_GREP
5778case `"$ac_path_GREP" --version 2>&1` in
5779*GNU*)
5780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5781*)
5782 ac_count=0
5783 $as_echo_n 0123456789 >"conftest.in"
5784 while :
5785 do
5786 cat "conftest.in" "conftest.in" >"conftest.tmp"
5787 mv "conftest.tmp" "conftest.in"
5788 cp "conftest.in" "conftest.nl"
5789 $as_echo 'GREP' >> "conftest.nl"
5790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5792 as_fn_arith $ac_count + 1 && ac_count=$as_val
5793 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5794 # Best one so far, save it but keep looking for a better one
5795 ac_cv_path_GREP="$ac_path_GREP"
5796 ac_path_GREP_max=$ac_count
5797 fi
5798 # 10*(2^10) chars as input seems more than enough
5799 test $ac_count -gt 10 && break
5800 done
5801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5802esac
35689115 5803
81ecdfbb
RW
5804 $ac_path_GREP_found && break 3
5805 done
5806 done
5807 done
5808IFS=$as_save_IFS
5809 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5810 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5811 fi
5812else
5813 ac_cv_path_GREP=$GREP
35689115
HPN
5814fi
5815
81ecdfbb
RW
5816fi
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5818$as_echo "$ac_cv_path_GREP" >&6; }
5819 GREP="$ac_cv_path_GREP"
35689115 5820
35689115 5821
81ecdfbb
RW
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5823$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5824if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb
RW
5825 $as_echo_n "(cached) " >&6
5826else
5827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5828 then ac_cv_path_EGREP="$GREP -E"
5829 else
5830 if test -z "$EGREP"; then
5831 ac_path_EGREP_found=false
5832 # Loop through the user's path and test for each of PROGNAME-LIST
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_prog in egrep; do
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5841 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
5842# Check for GNU ac_path_EGREP and select it if it is found.
5843 # Check for GNU $ac_path_EGREP
5844case `"$ac_path_EGREP" --version 2>&1` in
5845*GNU*)
5846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5847*)
5848 ac_count=0
5849 $as_echo_n 0123456789 >"conftest.in"
5850 while :
5851 do
5852 cat "conftest.in" "conftest.in" >"conftest.tmp"
5853 mv "conftest.tmp" "conftest.in"
5854 cp "conftest.in" "conftest.nl"
5855 $as_echo 'EGREP' >> "conftest.nl"
5856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5858 as_fn_arith $ac_count + 1 && ac_count=$as_val
5859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5860 # Best one so far, save it but keep looking for a better one
5861 ac_cv_path_EGREP="$ac_path_EGREP"
5862 ac_path_EGREP_max=$ac_count
5863 fi
5864 # 10*(2^10) chars as input seems more than enough
5865 test $ac_count -gt 10 && break
5866 done
5867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35689115
HPN
5868esac
5869
81ecdfbb
RW
5870 $ac_path_EGREP_found && break 3
5871 done
5872 done
5873 done
5874IFS=$as_save_IFS
5875 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5876 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5877 fi
5878else
5879 ac_cv_path_EGREP=$EGREP
5880fi
5881
5882 fi
5883fi
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5885$as_echo "$ac_cv_path_EGREP" >&6; }
5886 EGREP="$ac_cv_path_EGREP"
35689115
HPN
5887
5888
81ecdfbb
RW
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5890$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5891if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
5892 $as_echo_n "(cached) " >&6
5893else
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h. */
5896#include <stdlib.h>
5897#include <stdarg.h>
5898#include <string.h>
5899#include <float.h>
c906108c 5900
b7026657
AC
5901int
5902main ()
5903{
81ecdfbb 5904
b7026657
AC
5905 ;
5906 return 0;
5907}
5908_ACEOF
81ecdfbb
RW
5909if ac_fn_c_try_compile "$LINENO"; then :
5910 ac_cv_header_stdc=yes
b7026657 5911else
81ecdfbb
RW
5912 ac_cv_header_stdc=no
5913fi
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 5915
81ecdfbb
RW
5916if test $ac_cv_header_stdc = yes; then
5917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5919/* end confdefs.h. */
81ecdfbb
RW
5920#include <string.h>
5921
b7026657 5922_ACEOF
81ecdfbb
RW
5923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "memchr" >/dev/null 2>&1; then :
b7026657 5925
81ecdfbb
RW
5926else
5927 ac_cv_header_stdc=no
b7026657 5928fi
81ecdfbb 5929rm -f conftest*
b7026657 5930
81ecdfbb 5931fi
b7026657 5932
81ecdfbb
RW
5933if test $ac_cv_header_stdc = yes; then
5934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h. */
5937#include <stdlib.h>
b7026657 5938
b7026657 5939_ACEOF
81ecdfbb
RW
5940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5941 $EGREP "free" >/dev/null 2>&1; then :
c906108c 5942
81ecdfbb
RW
5943else
5944 ac_cv_header_stdc=no
c906108c 5945fi
81ecdfbb 5946rm -f conftest*
c906108c 5947
81ecdfbb 5948fi
c906108c 5949
81ecdfbb
RW
5950if test $ac_cv_header_stdc = yes; then
5951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5952 if test "$cross_compiling" = yes; then :
5953 :
b7026657 5954else
81ecdfbb 5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5956/* end confdefs.h. */
81ecdfbb
RW
5957#include <ctype.h>
5958#include <stdlib.h>
5959#if ((' ' & 0x0FF) == 0x020)
5960# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5961# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5962#else
5963# define ISLOWER(c) \
5964 (('a' <= (c) && (c) <= 'i') \
5965 || ('j' <= (c) && (c) <= 'r') \
5966 || ('s' <= (c) && (c) <= 'z'))
5967# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5968#endif
b7026657 5969
81ecdfbb 5970#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
5971int
5972main ()
5973{
81ecdfbb
RW
5974 int i;
5975 for (i = 0; i < 256; i++)
5976 if (XOR (islower (i), ISLOWER (i))
5977 || toupper (i) != TOUPPER (i))
5978 return 2;
b7026657
AC
5979 return 0;
5980}
5981_ACEOF
81ecdfbb 5982if ac_fn_c_try_run "$LINENO"; then :
b7026657 5983
81ecdfbb
RW
5984else
5985 ac_cv_header_stdc=no
5986fi
5987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5988 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 5989fi
81ecdfbb 5990
b7026657 5991fi
b7026657 5992fi
81ecdfbb
RW
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5994$as_echo "$ac_cv_header_stdc" >&6; }
5995if test $ac_cv_header_stdc = yes; then
b7026657 5996
81ecdfbb 5997$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 5998
81ecdfbb 5999fi
b7026657 6000
81ecdfbb
RW
6001# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6003 inttypes.h stdint.h unistd.h
6004do :
6005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6006ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6007"
d0ac1c44 6008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
6009 cat >>confdefs.h <<_ACEOF
6010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657 6011_ACEOF
c906108c 6012
c906108c
SS
6013fi
6014
81ecdfbb
RW
6015done
6016
b7026657 6017
81ecdfbb
RW
6018# Check whether --enable-sim-hostendian was given.
6019if test "${enable_sim_hostendian+set}" = set; then :
6020 enableval=$enable_sim_hostendian; case "${enableval}" in
6021 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6022 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6023 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
d0ac1c44 6024 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
81ecdfbb
RW
6025esac
6026if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6027 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6028fi
6029else
b7026657 6030
81ecdfbb
RW
6031if test "x$cross_compiling" = "xno"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6033$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6034if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 6035 $as_echo_n "(cached) " >&6
b7026657 6036else
81ecdfbb
RW
6037 ac_cv_c_bigendian=unknown
6038 # See if we're dealing with a universal compiler.
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6040/* end confdefs.h. */
81ecdfbb
RW
6041#ifndef __APPLE_CC__
6042 not a universal capable compiler
6043 #endif
6044 typedef int dummy;
6045
6046_ACEOF
6047if ac_fn_c_try_compile "$LINENO"; then :
6048
6049 # Check for potential -arch flags. It is not universal unless
6050 # there are at least two -arch flags with different values.
6051 ac_arch=
6052 ac_prev=
6053 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6054 if test -n "$ac_prev"; then
6055 case $ac_word in
6056 i?86 | x86_64 | ppc | ppc64)
6057 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6058 ac_arch=$ac_word
6059 else
6060 ac_cv_c_bigendian=universal
6061 break
6062 fi
6063 ;;
6064 esac
6065 ac_prev=
6066 elif test "x$ac_word" = "x-arch"; then
6067 ac_prev=arch
6068 fi
6069 done
6070fi
6071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 if test $ac_cv_c_bigendian = unknown; then
6073 # See if sys/param.h defines the BYTE_ORDER macro.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h. */
6076#include <sys/types.h>
6077 #include <sys/param.h>
6078
b7026657
AC
6079int
6080main ()
6081{
81ecdfbb
RW
6082#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6083 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6084 && LITTLE_ENDIAN)
6085 bogus endian macros
6086 #endif
6087
b7026657
AC
6088 ;
6089 return 0;
6090}
6091_ACEOF
81ecdfbb
RW
6092if ac_fn_c_try_compile "$LINENO"; then :
6093 # It does; now see whether it defined to BIG_ENDIAN or not.
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6095/* end confdefs.h. */
81ecdfbb
RW
6096#include <sys/types.h>
6097 #include <sys/param.h>
6098
b7026657
AC
6099int
6100main ()
6101{
81ecdfbb
RW
6102#if BYTE_ORDER != BIG_ENDIAN
6103 not big endian
6104 #endif
6105
b7026657
AC
6106 ;
6107 return 0;
6108}
6109_ACEOF
81ecdfbb
RW
6110if ac_fn_c_try_compile "$LINENO"; then :
6111 ac_cv_c_bigendian=yes
b7026657 6112else
81ecdfbb 6113 ac_cv_c_bigendian=no
b7026657 6114fi
81ecdfbb 6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6116fi
81ecdfbb
RW
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 if test $ac_cv_c_bigendian = unknown; then
6120 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h. */
6123#include <limits.h>
c906108c 6124
81ecdfbb
RW
6125int
6126main ()
6127{
6128#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6129 bogus endian macros
6130 #endif
b7026657 6131
81ecdfbb
RW
6132 ;
6133 return 0;
6134}
b7026657 6135_ACEOF
81ecdfbb
RW
6136if ac_fn_c_try_compile "$LINENO"; then :
6137 # It does; now see whether it defined to _BIG_ENDIAN or not.
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6139/* end confdefs.h. */
81ecdfbb 6140#include <limits.h>
b7026657
AC
6141
6142int
6143main ()
6144{
81ecdfbb
RW
6145#ifndef _BIG_ENDIAN
6146 not big endian
6147 #endif
6148
b7026657
AC
6149 ;
6150 return 0;
6151}
6152_ACEOF
81ecdfbb
RW
6153if ac_fn_c_try_compile "$LINENO"; then :
6154 ac_cv_c_bigendian=yes
c906108c 6155else
81ecdfbb 6156 ac_cv_c_bigendian=no
c906108c 6157fi
81ecdfbb 6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6159fi
81ecdfbb
RW
6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 fi
6162 if test $ac_cv_c_bigendian = unknown; then
6163 # Compile a test program.
6164 if test "$cross_compiling" = yes; then :
6165 # Try to guess by grepping values from an object file.
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6167/* end confdefs.h. */
81ecdfbb
RW
6168short int ascii_mm[] =
6169 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6170 short int ascii_ii[] =
6171 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6172 int use_ascii (int i) {
6173 return ascii_mm[i] + ascii_ii[i];
6174 }
6175 short int ebcdic_ii[] =
6176 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6177 short int ebcdic_mm[] =
6178 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6179 int use_ebcdic (int i) {
6180 return ebcdic_mm[i] + ebcdic_ii[i];
6181 }
6182 extern int foo;
b7026657
AC
6183
6184int
6185main ()
6186{
81ecdfbb 6187return use_ascii (foo) == use_ebcdic (foo);
b7026657
AC
6188 ;
6189 return 0;
6190}
6191_ACEOF
81ecdfbb
RW
6192if ac_fn_c_try_compile "$LINENO"; then :
6193 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6194 ac_cv_c_bigendian=yes
6195 fi
6196 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6197 if test "$ac_cv_c_bigendian" = unknown; then
6198 ac_cv_c_bigendian=no
6199 else
6200 # finding both strings is unlikely to happen, but who knows?
6201 ac_cv_c_bigendian=unknown
6202 fi
6203 fi
6204fi
6205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6208/* end confdefs.h. */
81ecdfbb 6209$ac_includes_default
b7026657
AC
6210int
6211main ()
6212{
81ecdfbb
RW
6213
6214 /* Are we little or big endian? From Harbison&Steele. */
6215 union
6216 {
6217 long int l;
6218 char c[sizeof (long int)];
6219 } u;
6220 u.l = 1;
6221 return u.c[sizeof (long int) - 1] == 1;
6222
b7026657
AC
6223 ;
6224 return 0;
6225}
6226_ACEOF
81ecdfbb
RW
6227if ac_fn_c_try_run "$LINENO"; then :
6228 ac_cv_c_bigendian=no
b7026657 6229else
81ecdfbb
RW
6230 ac_cv_c_bigendian=yes
6231fi
6232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6233 conftest.$ac_objext conftest.beam conftest.$ac_ext
6234fi
6235
6236 fi
6237fi
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6239$as_echo "$ac_cv_c_bigendian" >&6; }
6240 case $ac_cv_c_bigendian in #(
6241 yes)
6242 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6243;; #(
6244 no)
6245 ;; #(
6246 universal)
6247
6248$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
b7026657 6249
81ecdfbb
RW
6250 ;; #(
6251 *)
d0ac1c44 6252 as_fn_error $? "unknown endianness
81ecdfbb
RW
6253 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6254 esac
6255
6256 if test $ac_cv_c_bigendian = yes; then
6257 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6258 else
6259 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6260 fi
6261else
6262 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
6263fi
6264fi
6265
6266
6267# Check whether --enable-sim-icache was given.
6268if test "${enable_sim_icache+set}" = set; then :
6269 enableval=$enable_sim_icache; icache="-R"
6270 case "${enableval}" in
6271 yes) icache="1024"; sim_icache="-I $icache";;
6272 no) sim_icache="-R";;
6273 *) icache=1024
6274 sim_icache="-"
6275 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6276 case "$x" in
6277 define) sim_icache="${sim_icache}R";;
6278 semantic) sim_icache="${sim_icache}C";;
6279 insn) sim_icache="${sim_icache}S";;
6280 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
d0ac1c44 6281 *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
81ecdfbb
RW
6282 esac
6283 done
6284 sim_icache="${sim_icache}I $icache";;
6285esac
6286if test x"$silent" != x"yes" && test x"$icache" != x""; then
6287 echo "Setting instruction cache size to $icache ($sim_icache)"
b7026657 6288fi
81ecdfbb
RW
6289else
6290 sim_icache="-CSRI 1024"
6291if test x"$silent" != x"yes"; then
6292 echo "Setting instruction cache size to 1024 ($sim_icache)"
b7026657 6293fi
b7026657 6294fi
b7026657
AC
6295
6296
81ecdfbb
RW
6297# Check whether --enable-sim-inline was given.
6298if test "${enable_sim_inline+set}" = set; then :
6299 enableval=$enable_sim_inline; sim_inline=""
6300case "$enableval" in
6301 no) sim_inline="-DDEFAULT_INLINE=0";;
6302 0) sim_inline="-DDEFAULT_INLINE=0";;
6303 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
6304 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6305 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6306 new_flag=""
6307 case "$x" in
6308 *_INLINE=*) new_flag="-D$x";;
6309 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6310 *_INLINE) new_flag="-D$x=ALL_INLINE";;
6311 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
6312 esac
6313 if test x"$sim_inline" = x""; then
6314 sim_inline="$new_flag"
6315 else
6316 sim_inline="$sim_inline $new_flag"
6317 fi
6318 done;;
6319esac
6320if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6321 echo "Setting inline flags = $sim_inline" 6>&1
b7026657 6322fi
c906108c 6323else
81ecdfbb
RW
6324 if test x"$GCC" != ""; then
6325 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6326 if test x"$silent" != x"yes"; then
6327 echo "Setting inline flags = $sim_inline" 6>&1
6328 fi
c906108c 6329else
81ecdfbb 6330 sim_inline=""
c906108c 6331fi
c906108c 6332fi
b7026657 6333
c906108c 6334
81ecdfbb
RW
6335# Check whether --enable-sim-jump was given.
6336if test "${enable_sim_jump+set}" = set; then :
6337 enableval=$enable_sim_jump; case "${enableval}" in
6338 yes) sim_jump="-J";;
6339 no) sim_jump="";;
d0ac1c44 6340 *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
81ecdfbb
RW
6341esac
6342if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
6343 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 6344fi
c906108c 6345else
81ecdfbb
RW
6346 sim_jump=""
6347if test x"$silent" != x"yes"; then
6348 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 6349fi
c906108c 6350fi
c906108c 6351
b7026657 6352
81ecdfbb
RW
6353# Check whether --enable-sim-line-nr was given.
6354if test "${enable_sim_line_nr+set}" = set; then :
6355 enableval=$enable_sim_line_nr; case "${enableval}" in
6356 yes) sim_line_nr="";;
6357 no) sim_line_nr="-L";;
d0ac1c44 6358 *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
81ecdfbb
RW
6359esac
6360if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
6361 echo "Setting warning flags = $sim_line_nr" 6>&1
c906108c 6362fi
c906108c 6363else
81ecdfbb
RW
6364 sim_line_nr=""
6365fi
b7026657 6366
c906108c 6367
81ecdfbb
RW
6368# Check whether --enable-sim-model was given.
6369if test "${enable_sim_model+set}" = set; then :
6370 enableval=$enable_sim_model; case "${enableval}" in
d0ac1c44 6371 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
81ecdfbb
RW
6372 *) sim_model="-DWITH_MODEL=${enableval}";;
6373esac
6374if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
6375 echo "Setting model flags = $sim_model" 6>&1
6376fi
c906108c 6377else
81ecdfbb
RW
6378 sim_model=""
6379fi
6380
b7026657 6381
81ecdfbb
RW
6382# Check whether --enable-sim-model-issue was given.
6383if test "${enable_sim_model_issue+set}" = set; then :
6384 enableval=$enable_sim_model_issue; case "${enableval}" in
6385 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6386 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
d0ac1c44 6387 *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
81ecdfbb
RW
6388esac
6389if test x"$silent" != x"yes"; then
6390 echo "Setting model-issue flags = $sim_model_issue" 6>&1
c906108c 6391fi
81ecdfbb
RW
6392else
6393 sim_model_issue=""
c906108c 6394fi
b7026657 6395
81ecdfbb
RW
6396
6397# Check whether --enable-sim-monitor was given.
6398if test "${enable_sim_monitor+set}" = set; then :
6399 enableval=$enable_sim_monitor; case "${enableval}" in
6400 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6401 no) sim_monitor="-DWITH_MON=0";;
6402 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6403 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
d0ac1c44 6404 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";;
81ecdfbb
RW
6405esac
6406if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
6407 echo "Setting monitor flags = $sim_monitor" 6>&1
6408fi
c906108c 6409else
81ecdfbb 6410 sim_monitor=""
c906108c 6411fi
c906108c 6412
81ecdfbb
RW
6413
6414# Check whether --enable-sim-opcode was given.
6415if test "${enable_sim_opcode+set}" = set; then :
6416 enableval=$enable_sim_opcode; case "${enableval}" in
d0ac1c44 6417 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
81ecdfbb
RW
6418 *) if test -f "${srcdir}/${enableval}"; then
6419 sim_opcode="${enableval}"
6420 elif test -f "${srcdir}/dc-${enableval}"; then
6421 sim_opcode="dc-${enableval}"
6422 else
d0ac1c44 6423 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
81ecdfbb
RW
6424 sim_opcode="dc-complex"
6425 fi;;
6426esac
6427if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
6428 echo "Setting opcode flags = $sim_opcode" 6>&1
6429fi
6430else
6431 sim_opcode="dc-complex"
6432if test x"$silent" != x"yes"; then
6433 echo "Setting opcode flags = $sim_opcode"
c906108c
SS
6434fi
6435fi
c906108c
SS
6436
6437
81ecdfbb
RW
6438# Check whether --enable-sim-packages was given.
6439if test "${enable_sim_packages+set}" = set; then :
6440 enableval=$enable_sim_packages; packages=disklabel
6441case "${enableval}" in
6442 yes) ;;
d0ac1c44 6443 no) as_fn_error $? "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
81ecdfbb
RW
6444 ,*) packages="${packages}${enableval}";;
6445 *,) packages="${enableval}${packages}";;
6446 *) packages="${enableval}"'';;
6447esac
6448sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6449sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6450if test x"$silent" != x"yes" && test x"$packages" != x""; then
6451 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6452fi
c906108c 6453else
81ecdfbb
RW
6454 packages=disklabel
6455sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6456sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6457if test x"$silent" != x"yes"; then
6458 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
b7026657 6459fi
c906108c 6460fi
b7026657 6461
c906108c 6462
81ecdfbb
RW
6463# Check whether --enable-sim-reserved-bits was given.
6464if test "${enable_sim_reserved_bits+set}" = set; then :
6465 enableval=$enable_sim_reserved_bits; case "${enableval}" in
6466 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
6467 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
d0ac1c44 6468 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
81ecdfbb
RW
6469esac
6470if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
6471 echo "Setting reserved flags = $sim_reserved" 6>&1
6472fi
6473else
6474 sim_reserved=""
b7026657 6475fi
81ecdfbb
RW
6476
6477
6478# Check whether --enable-sim-smp was given.
6479if test "${enable_sim_smp+set}" = set; then :
6480 enableval=$enable_sim_smp; case "${enableval}" in
6481 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
6482 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
6483 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
6484esac
6485if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
6486 echo "Setting smp flags = $sim_smp" 6>&1
c906108c 6487fi
b7026657 6488else
81ecdfbb
RW
6489 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
6490if test x"$silent" != x"yes"; then
6491 echo "Setting smp flags = $sim_smp" 6>&1
6492fi
c906108c
SS
6493fi
6494
c906108c 6495
ce39bd38
MF
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
6497$as_echo_n "checking for sim stdio debug behavior... " >&6; }
6498sim_stdio=0
81ecdfbb
RW
6499# Check whether --enable-sim-stdio was given.
6500if test "${enable_sim_stdio+set}" = set; then :
6501 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
6502 yes) sim_stdio="DO_USE_STDIO";;
6503 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 6504 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
81ecdfbb 6505esac
81ecdfbb 6506fi
c906108c 6507
ce39bd38
MF
6508cat >>confdefs.h <<_ACEOF
6509#define WITH_STDIO $sim_stdio
6510_ACEOF
6511
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
6513$as_echo "$sim_stdio" >&6; }
6514
b7026657 6515
81ecdfbb
RW
6516# Check whether --enable-sim-switch was given.
6517if test "${enable_sim_switch+set}" = set; then :
6518 enableval=$enable_sim_switch; case "${enableval}" in
6519 yes) sim_switch="-s";;
6520 no) sim_switch="";;
d0ac1c44 6521 *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
81ecdfbb
RW
6522esac
6523if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
6524 echo "Setting switch flags = $sim_switch" 6>&1
6525fi
6526else
6527 sim_switch="";
6528if test x"$silent" != x"yes"; then
6529 echo "Setting switch flags = $sim_switch" 6>&1
c906108c 6530fi
c906108c 6531fi
c906108c
SS
6532
6533
81ecdfbb
RW
6534# Check whether --enable-sim-timebase was given.
6535if test "${enable_sim_timebase+set}" = set; then :
6536 enableval=$enable_sim_timebase; case "${enableval}" in
6537 yes) sim_timebase="-DWITH_TIME_BASE=1";;
6538 no) sim_timebase="-DWITH_TIME_BASE=0";;
d0ac1c44 6539 *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
81ecdfbb
RW
6540esac
6541if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
6542 echo "Setting timebase flags = $sim_timebase" 6>&1
6543fi
c906108c 6544else
81ecdfbb 6545 sim_timebase=""
c906108c 6546fi
81ecdfbb
RW
6547
6548
ce39bd38
MF
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
6550$as_echo_n "checking for sim trace settings... " >&6; }
6551sim_trace="1"
81ecdfbb
RW
6552# Check whether --enable-sim-trace was given.
6553if test "${enable_sim_trace+set}" = set; then :
6554 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
6555 yes) sim_trace="1";;
6556 no) sim_trace="0";;
d0ac1c44 6557 *) as_fn_error $? "--enable-sim-trace does not take a value" "$LINENO" 5;;
81ecdfbb 6558esac
81ecdfbb 6559fi
b7026657 6560
ce39bd38
MF
6561cat >>confdefs.h <<_ACEOF
6562#define WITH_TRACE $sim_trace
6563_ACEOF
6564
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
6566$as_echo "$sim_trace" >&6; }
6567
c906108c 6568
81ecdfbb
RW
6569# Check whether --enable-sim-warnings was given.
6570if test "${enable_sim_warnings+set}" = set; then :
6571 enableval=$enable_sim_warnings; case "${enableval}" in
6572 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6573 no) sim_warnings="-w";;
6574 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6575esac
6576if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
6577 echo "Setting warning flags = $sim_warnings" 6>&1
c906108c 6578fi
c906108c 6579else
81ecdfbb
RW
6580 sim_warnings=""
6581fi
b7026657 6582
81ecdfbb
RW
6583
6584# Check whether --enable-sim-xor-endian was given.
6585if test "${enable_sim_xor_endian+set}" = set; then :
6586 enableval=$enable_sim_xor_endian; case "${enableval}" in
6587 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
6588 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
6589 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
6590esac
6591if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
6592 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6593fi
c906108c 6594else
81ecdfbb 6595 sim_xor_endian=""
c906108c 6596fi
c906108c 6597
b7026657 6598
b7026657 6599
c906108c 6600
81ecdfbb
RW
6601# Check whether --with-pkgversion was given.
6602if test "${with_pkgversion+set}" = set; then :
6603 withval=$with_pkgversion; case "$withval" in
d0ac1c44 6604 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
81ecdfbb
RW
6605 no) PKGVERSION= ;;
6606 *) PKGVERSION="($withval) " ;;
6607 esac
6608else
6609 PKGVERSION="(GDB) "
c906108c
SS
6610
6611fi
6612
6613
b7026657
AC
6614
6615
6616
81ecdfbb
RW
6617# Check whether --with-bugurl was given.
6618if test "${with_bugurl+set}" = set; then :
6619 withval=$with_bugurl; case "$withval" in
d0ac1c44 6620 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
81ecdfbb
RW
6621 no) BUGURL=
6622 ;;
6623 *) BUGURL="$withval"
6624 ;;
6625 esac
6626else
dfb856ba 6627 BUGURL="https://www.gnu.org/software/gdb/bugs/"
b7026657 6628
81ecdfbb 6629fi
b7026657 6630
81ecdfbb
RW
6631 case ${BUGURL} in
6632 "")
6633 REPORT_BUGS_TO=
6634 REPORT_BUGS_TEXI=
6635 ;;
6636 *)
6637 REPORT_BUGS_TO="<$BUGURL>"
6638 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6639 ;;
6640 esac;
b7026657
AC
6641
6642
6643
6644
81ecdfbb
RW
6645cat >>confdefs.h <<_ACEOF
6646#define PKGVERSION "$PKGVERSION"
6647_ACEOF
b7026657
AC
6648
6649
81ecdfbb
RW
6650cat >>confdefs.h <<_ACEOF
6651#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6652_ACEOF
b7026657
AC
6653
6654
81ecdfbb
RW
6655# Make sure we can run config.sub.
6656$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 6657 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
6658
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6660$as_echo_n "checking build system type... " >&6; }
d0ac1c44 6661if ${ac_cv_build+:} false; then :
81ecdfbb
RW
6662 $as_echo_n "(cached) " >&6
6663else
6664 ac_build_alias=$build_alias
6665test "x$ac_build_alias" = x &&
6666 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6667test "x$ac_build_alias" = x &&
d0ac1c44 6668 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 6669ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 6670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
6671
6672fi
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6674$as_echo "$ac_cv_build" >&6; }
6675case $ac_cv_build in
6676*-*-*) ;;
d0ac1c44 6677*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb
RW
6678esac
6679build=$ac_cv_build
6680ac_save_IFS=$IFS; IFS='-'
6681set x $ac_cv_build
6682shift
6683build_cpu=$1
6684build_vendor=$2
6685shift; shift
6686# Remember, the first character of IFS is used to create $*,
6687# except with old shells:
6688build_os=$*
6689IFS=$ac_save_IFS
6690case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6691
6692
81ecdfbb
RW
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6694$as_echo_n "checking host system type... " >&6; }
d0ac1c44 6695if ${ac_cv_host+:} false; then :
81ecdfbb
RW
6696 $as_echo_n "(cached) " >&6
6697else
6698 if test "x$host_alias" = x; then
6699 ac_cv_host=$ac_cv_build
6700else
6701 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 6702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 6703fi
b7026657 6704
81ecdfbb
RW
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6707$as_echo "$ac_cv_host" >&6; }
6708case $ac_cv_host in
6709*-*-*) ;;
d0ac1c44 6710*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb
RW
6711esac
6712host=$ac_cv_host
6713ac_save_IFS=$IFS; IFS='-'
6714set x $ac_cv_host
6715shift
6716host_cpu=$1
6717host_vendor=$2
6718shift; shift
6719# Remember, the first character of IFS is used to create $*,
6720# except with old shells:
6721host_os=$*
6722IFS=$ac_save_IFS
6723case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6724
6725
81ecdfbb
RW
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6727$as_echo_n "checking target system type... " >&6; }
d0ac1c44 6728if ${ac_cv_target+:} false; then :
81ecdfbb
RW
6729 $as_echo_n "(cached) " >&6
6730else
6731 if test "x$target_alias" = x; then
6732 ac_cv_target=$ac_cv_host
6733else
6734 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 6735 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 6736fi
b7026657 6737
81ecdfbb
RW
6738fi
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6740$as_echo "$ac_cv_target" >&6; }
6741case $ac_cv_target in
6742*-*-*) ;;
d0ac1c44 6743*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb
RW
6744esac
6745target=$ac_cv_target
6746ac_save_IFS=$IFS; IFS='-'
6747set x $ac_cv_target
6748shift
6749target_cpu=$1
6750target_vendor=$2
6751shift; shift
6752# Remember, the first character of IFS is used to create $*,
6753# except with old shells:
6754target_os=$*
6755IFS=$ac_save_IFS
6756case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6757
6758
81ecdfbb
RW
6759# The aliases save the names the user supplied, while $host etc.
6760# will get canonicalized.
6761test -n "$target_alias" &&
6762 test "$program_prefix$program_suffix$program_transform_name" = \
6763 NONENONEs,x,x, &&
6764 program_prefix=${target_alias}-
b7026657 6765
81ecdfbb
RW
6766test "$program_prefix" != NONE &&
6767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6768# Use a double $ so make ignores it.
6769test "$program_suffix" != NONE &&
6770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6771# Double any \ or $.
6772# By default was `s,x,x', remove it if useless.
6773ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6774program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b7026657
AC
6775
6776
81ecdfbb
RW
6777# BFD conditionally uses zlib, so we must link it in if libbfd does, by
6778# using the same condition.
5912fadd 6779
aadc9410 6780 # Use the system's zlib library.
7fed4b0b
L
6781 zlibdir="-L\$(top_builddir)/../zlib"
6782 zlibinc="-I\$(top_srcdir)/../zlib"
5912fadd 6783
aadc9410
MF
6784# Check whether --with-system-zlib was given.
6785if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
6786 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6787 zlibdir=
6788 zlibinc=
6789 fi
b7026657 6790
81ecdfbb 6791fi
b7026657 6792
b7026657
AC
6793
6794
5912fadd 6795
b7026657 6796
2974be62
AM
6797# BFD uses libdl when when plugins enabled.
6798
6799 maybe_plugins=no
6800 for ac_header in dlfcn.h
6801do :
6802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6803"
d0ac1c44 6804if test "x$ac_cv_header_dlfcn_h" = xyes; then :
2974be62
AM
6805 cat >>confdefs.h <<_ACEOF
6806#define HAVE_DLFCN_H 1
6807_ACEOF
6808 maybe_plugins=yes
6809fi
6810
6811done
6812
6813 for ac_header in windows.h
6814do :
6815 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6816"
d0ac1c44 6817if test "x$ac_cv_header_windows_h" = xyes; then :
2974be62
AM
6818 cat >>confdefs.h <<_ACEOF
6819#define HAVE_WINDOWS_H 1
6820_ACEOF
6821 maybe_plugins=yes
6822fi
6823
6824done
6825
6826
6827 # Check whether --enable-plugins was given.
6828if test "${enable_plugins+set}" = set; then :
6829 enableval=$enable_plugins; case "${enableval}" in
6830 no) plugins=no ;;
6831 *) plugins=yes
6832 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 6833 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
2974be62
AM
6834 fi ;;
6835 esac
6836else
6837 plugins=$maybe_plugins
6838
6839fi
6840
6841 if test "$plugins" = "yes"; then
37f980dc
SM
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6843$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 6844if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
6845 $as_echo_n "(cached) " >&6
6846else
6847 ac_func_search_save_LIBS=$LIBS
6848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h. */
6850
6851/* Override any GCC internal prototype to avoid an error.
6852 Use char because int might match the return type of a GCC
6853 builtin and then its argument prototype would still apply. */
6854#ifdef __cplusplus
6855extern "C"
6856#endif
37f980dc 6857char dlsym ();
2974be62
AM
6858int
6859main ()
6860{
37f980dc 6861return dlsym ();
2974be62
AM
6862 ;
6863 return 0;
6864}
6865_ACEOF
6866for ac_lib in '' dl; do
6867 if test -z "$ac_lib"; then
6868 ac_res="none required"
6869 else
6870 ac_res=-l$ac_lib
6871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6872 fi
6873 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 6874 ac_cv_search_dlsym=$ac_res
2974be62
AM
6875fi
6876rm -f core conftest.err conftest.$ac_objext \
6877 conftest$ac_exeext
d0ac1c44 6878 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
6879 break
6880fi
6881done
d0ac1c44 6882if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
6883
6884else
37f980dc 6885 ac_cv_search_dlsym=no
2974be62
AM
6886fi
6887rm conftest.$ac_ext
6888LIBS=$ac_func_search_save_LIBS
6889fi
37f980dc
SM
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6891$as_echo "$ac_cv_search_dlsym" >&6; }
6892ac_res=$ac_cv_search_dlsym
2974be62
AM
6893if test "$ac_res" != no; then :
6894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6895
6896fi
6897
6898 fi
6899
6900
81ecdfbb
RW
6901case ${host} in
6902 *mingw32*)
b7026657 6903
81ecdfbb 6904$as_echo "#define USE_WIN32API 1" >>confdefs.h
b7026657 6905
81ecdfbb
RW
6906 ;;
6907esac
b7026657 6908
81ecdfbb 6909ac_config_headers="$ac_config_headers config.h:config.in"
b7026657
AC
6910
6911
81ecdfbb 6912ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
d0ac1c44 6913if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
b7026657 6914
81ecdfbb
RW
6915cat >>confdefs.h <<_ACEOF
6916#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6917_ACEOF
b7026657
AC
6918
6919
81ecdfbb 6920$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
b7026657 6921
81ecdfbb 6922fi
b7026657
AC
6923
6924
81ecdfbb 6925ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
d0ac1c44 6926if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
b7026657 6927
81ecdfbb
RW
6928cat >>confdefs.h <<_ACEOF
6929#define HAVE_STRUCT_STAT_ST_BLOCKS 1
6930_ACEOF
b7026657
AC
6931
6932
81ecdfbb 6933$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
b7026657 6934
81ecdfbb
RW
6935else
6936 case " $LIBOBJS " in
6937 *" fileblocks.$ac_objext "* ) ;;
6938 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6939 ;;
6940esac
b7026657 6941
81ecdfbb 6942fi
b7026657
AC
6943
6944
81ecdfbb 6945ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
d0ac1c44 6946if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
81ecdfbb
RW
6947
6948cat >>confdefs.h <<_ACEOF
6949#define HAVE_STRUCT_STAT_ST_RDEV 1
b7026657 6950_ACEOF
b7026657 6951
b7026657 6952
81ecdfbb 6953$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
c906108c 6954
81ecdfbb 6955fi
c906108c 6956
81ecdfbb
RW
6957
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6959$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
d0ac1c44 6960if ${ac_cv_struct_tm+:} false; then :
81ecdfbb
RW
6961 $as_echo_n "(cached) " >&6
6962else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h. */
6965#include <sys/types.h>
6966#include <time.h>
c906108c 6967
b7026657
AC
6968int
6969main ()
6970{
81ecdfbb
RW
6971struct tm tm;
6972 int *p = &tm.tm_sec;
6973 return !p;
b7026657
AC
6974 ;
6975 return 0;
6976}
6977_ACEOF
81ecdfbb
RW
6978if ac_fn_c_try_compile "$LINENO"; then :
6979 ac_cv_struct_tm=time.h
b7026657 6980else
81ecdfbb 6981 ac_cv_struct_tm=sys/time.h
b7026657 6982fi
81ecdfbb 6983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 6984fi
81ecdfbb
RW
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6986$as_echo "$ac_cv_struct_tm" >&6; }
6987if test $ac_cv_struct_tm = sys/time.h; then
6988
6989$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
c906108c 6990
c906108c 6991fi
c906108c 6992
81ecdfbb
RW
6993ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6994#include <$ac_cv_struct_tm>
6995
6996"
d0ac1c44 6997if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
c906108c 6998
81ecdfbb
RW
6999cat >>confdefs.h <<_ACEOF
7000#define HAVE_STRUCT_TM_TM_ZONE 1
7001_ACEOF
b7026657
AC
7002
7003
81ecdfbb 7004fi
b7026657 7005
81ecdfbb 7006if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
b7026657 7007
81ecdfbb 7008$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
b7026657 7009
81ecdfbb
RW
7010else
7011 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7012"
d0ac1c44 7013if test "x$ac_cv_have_decl_tzname" = xyes; then :
81ecdfbb
RW
7014 ac_have_decl=1
7015else
7016 ac_have_decl=0
7017fi
b7026657 7018
81ecdfbb
RW
7019cat >>confdefs.h <<_ACEOF
7020#define HAVE_DECL_TZNAME $ac_have_decl
7021_ACEOF
b7026657 7022
81ecdfbb
RW
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7024$as_echo_n "checking for tzname... " >&6; }
d0ac1c44 7025if ${ac_cv_var_tzname+:} false; then :
81ecdfbb
RW
7026 $as_echo_n "(cached) " >&6
7027else
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029/* end confdefs.h. */
7030#include <time.h>
7031#if !HAVE_DECL_TZNAME
7032extern char *tzname[];
7033#endif
b7026657 7034
81ecdfbb
RW
7035int
7036main ()
7037{
7038return tzname[0][0];
7039 ;
7040 return 0;
7041}
7042_ACEOF
7043if ac_fn_c_try_link "$LINENO"; then :
7044 ac_cv_var_tzname=yes
7045else
7046 ac_cv_var_tzname=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7052$as_echo "$ac_cv_var_tzname" >&6; }
7053 if test $ac_cv_var_tzname = yes; then
b7026657 7054
81ecdfbb 7055$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
b7026657 7056
81ecdfbb
RW
7057 fi
7058fi
b7026657
AC
7059
7060
81ecdfbb
RW
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7062$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
d0ac1c44 7063if ${ac_cv_type_uid_t+:} false; then :
81ecdfbb
RW
7064 $as_echo_n "(cached) " >&6
7065else
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h. */
7068#include <sys/types.h>
b7026657 7069
81ecdfbb
RW
7070_ACEOF
7071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "uid_t" >/dev/null 2>&1; then :
7073 ac_cv_type_uid_t=yes
7074else
7075 ac_cv_type_uid_t=no
7076fi
7077rm -f conftest*
b7026657 7078
81ecdfbb
RW
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7081$as_echo "$ac_cv_type_uid_t" >&6; }
7082if test $ac_cv_type_uid_t = no; then
b7026657 7083
81ecdfbb 7084$as_echo "#define uid_t int" >>confdefs.h
b7026657
AC
7085
7086
81ecdfbb 7087$as_echo "#define gid_t int" >>confdefs.h
b7026657 7088
b7026657 7089fi
81ecdfbb
RW
7090
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7092$as_echo_n "checking type of array argument to getgroups... " >&6; }
d0ac1c44 7093if ${ac_cv_type_getgroups+:} false; then :
81ecdfbb 7094 $as_echo_n "(cached) " >&6
b7026657 7095else
81ecdfbb
RW
7096 if test "$cross_compiling" = yes; then :
7097 ac_cv_type_getgroups=cross
7098else
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7100/* end confdefs.h. */
81ecdfbb 7101/* Thanks to Mike Rendell for this test. */
b7026657 7102$ac_includes_default
81ecdfbb
RW
7103#define NGID 256
7104#undef MAX
7105#define MAX(x, y) ((x) > (y) ? (x) : (y))
7106
7107int
7108main ()
7109{
7110 gid_t gidset[NGID];
7111 int i, n;
7112 union { gid_t gval; long int lval; } val;
7113
7114 val.lval = -1;
7115 for (i = 0; i < NGID; i++)
7116 gidset[i] = val.gval;
7117 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7118 gidset);
7119 /* Exit non-zero if getgroups seems to require an array of ints. This
7120 happens when gid_t is short int but getgroups modifies an array
7121 of ints. */
7122 return n > 0 && gidset[n] != val.gval;
7123}
b7026657 7124_ACEOF
81ecdfbb
RW
7125if ac_fn_c_try_run "$LINENO"; then :
7126 ac_cv_type_getgroups=gid_t
b7026657 7127else
81ecdfbb
RW
7128 ac_cv_type_getgroups=int
7129fi
7130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7131 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 7132fi
b7026657 7133
81ecdfbb
RW
7134if test $ac_cv_type_getgroups = cross; then
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7136/* end confdefs.h. */
81ecdfbb
RW
7137#include <unistd.h>
7138
b7026657 7139_ACEOF
81ecdfbb
RW
7140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7141 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
7142 ac_cv_type_getgroups=gid_t
b7026657 7143else
81ecdfbb 7144 ac_cv_type_getgroups=int
c906108c 7145fi
81ecdfbb 7146rm -f conftest*
b7026657 7147
c906108c 7148fi
81ecdfbb
RW
7149fi
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7151$as_echo "$ac_cv_type_getgroups" >&6; }
7152
7153cat >>confdefs.h <<_ACEOF
7154#define GETGROUPS_T $ac_cv_type_getgroups
7155_ACEOF
7156
7157
7158ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
d0ac1c44 7159if test "x$ac_cv_type_mode_t" = xyes; then :
b7026657 7160
c906108c 7161else
b7026657 7162
81ecdfbb
RW
7163cat >>confdefs.h <<_ACEOF
7164#define mode_t int
b7026657
AC
7165_ACEOF
7166
c906108c 7167fi
b7026657 7168
81ecdfbb 7169ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
d0ac1c44 7170if test "x$ac_cv_type_off_t" = xyes; then :
c906108c 7171
81ecdfbb 7172else
b7026657 7173
81ecdfbb
RW
7174cat >>confdefs.h <<_ACEOF
7175#define off_t long int
7176_ACEOF
b7026657 7177
81ecdfbb 7178fi
b7026657 7179
81ecdfbb 7180ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
d0ac1c44 7181if test "x$ac_cv_type_pid_t" = xyes; then :
b7026657 7182
81ecdfbb 7183else
b7026657 7184
81ecdfbb
RW
7185cat >>confdefs.h <<_ACEOF
7186#define pid_t int
b7026657 7187_ACEOF
81ecdfbb
RW
7188
7189fi
7190
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7192$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 7193if ${ac_cv_type_signal+:} false; then :
81ecdfbb
RW
7194 $as_echo_n "(cached) " >&6
7195else
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7197/* end confdefs.h. */
c906108c 7198#include <sys/types.h>
81ecdfbb 7199#include <signal.h>
b7026657
AC
7200
7201int
7202main ()
7203{
81ecdfbb 7204return *(signal (0, 0)) (0) == 1;
b7026657
AC
7205 ;
7206 return 0;
7207}
7208_ACEOF
81ecdfbb
RW
7209if ac_fn_c_try_compile "$LINENO"; then :
7210 ac_cv_type_signal=int
b7026657 7211else
81ecdfbb 7212 ac_cv_type_signal=void
b7026657 7213fi
81ecdfbb 7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 7215fi
81ecdfbb
RW
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7217$as_echo "$ac_cv_type_signal" >&6; }
7218
7219cat >>confdefs.h <<_ACEOF
7220#define RETSIGTYPE $ac_cv_type_signal
b7026657
AC
7221_ACEOF
7222
b7026657 7223
81ecdfbb 7224ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
d0ac1c44 7225if test "x$ac_cv_type_size_t" = xyes; then :
81ecdfbb 7226
b7026657 7227else
81ecdfbb
RW
7228
7229cat >>confdefs.h <<_ACEOF
7230#define size_t unsigned int
b7026657 7231_ACEOF
81ecdfbb
RW
7232
7233fi
7234
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7236$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
d0ac1c44 7237if ${ac_cv_type_uid_t+:} false; then :
81ecdfbb
RW
7238 $as_echo_n "(cached) " >&6
7239else
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7241/* end confdefs.h. */
81ecdfbb 7242#include <sys/types.h>
b7026657 7243
b7026657 7244_ACEOF
81ecdfbb
RW
7245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7246 $EGREP "uid_t" >/dev/null 2>&1; then :
7247 ac_cv_type_uid_t=yes
b7026657 7248else
81ecdfbb
RW
7249 ac_cv_type_uid_t=no
7250fi
7251rm -f conftest*
b7026657
AC
7252
7253fi
81ecdfbb
RW
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7255$as_echo "$ac_cv_type_uid_t" >&6; }
7256if test $ac_cv_type_uid_t = no; then
7257
7258$as_echo "#define uid_t int" >>confdefs.h
7259
7260
7261$as_echo "#define gid_t int" >>confdefs.h
7262
7263fi
7264
7265
7266for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
7267do :
7268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7269ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 7270if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
7271 cat >>confdefs.h <<_ACEOF
7272#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657 7273_ACEOF
c906108c 7274
81ecdfbb
RW
7275fi
7276done
7277
7278
68ed2854 7279for ac_header in fcntl.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h unistd.h sys/vfs.h sys/statfs.h
81ecdfbb
RW
7280do :
7281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7282ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7283if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
7284 cat >>confdefs.h <<_ACEOF
7285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7286_ACEOF
7287
7288fi
7289
7290done
7291
7292ac_header_dirent=no
7293for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7294 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7296$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0ac1c44 7297if eval \${$as_ac_Header+:} false; then :
81ecdfbb
RW
7298 $as_echo_n "(cached) " >&6
7299else
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301/* end confdefs.h. */
7302#include <sys/types.h>
7303#include <$ac_hdr>
7304
b7026657
AC
7305int
7306main ()
7307{
81ecdfbb
RW
7308if ((DIR *) 0)
7309return 0;
b7026657
AC
7310 ;
7311 return 0;
7312}
7313_ACEOF
81ecdfbb
RW
7314if ac_fn_c_try_compile "$LINENO"; then :
7315 eval "$as_ac_Header=yes"
b7026657 7316else
81ecdfbb 7317 eval "$as_ac_Header=no"
c906108c 7318fi
81ecdfbb 7319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 7320fi
81ecdfbb
RW
7321eval ac_res=\$$as_ac_Header
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7323$as_echo "$ac_res" >&6; }
d0ac1c44 7324if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
7325 cat >>confdefs.h <<_ACEOF
7326#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7327_ACEOF
b7026657 7328
81ecdfbb 7329ac_header_dirent=$ac_hdr; break
c906108c
SS
7330fi
7331
81ecdfbb
RW
7332done
7333# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7334if test $ac_header_dirent = dirent.h; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7336$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 7337if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 7338 $as_echo_n "(cached) " >&6
c906108c 7339else
b7026657 7340 ac_func_search_save_LIBS=$LIBS
81ecdfbb 7341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
7342/* end confdefs.h. */
7343
81ecdfbb
RW
7344/* Override any GCC internal prototype to avoid an error.
7345 Use char because int might match the return type of a GCC
7346 builtin and then its argument prototype would still apply. */
b7026657
AC
7347#ifdef __cplusplus
7348extern "C"
7349#endif
b7026657
AC
7350char opendir ();
7351int
7352main ()
7353{
81ecdfbb 7354return opendir ();
b7026657
AC
7355 ;
7356 return 0;
7357}
7358_ACEOF
81ecdfbb
RW
7359for ac_lib in '' dir; do
7360 if test -z "$ac_lib"; then
7361 ac_res="none required"
7362 else
7363 ac_res=-l$ac_lib
7364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7365 fi
7366 if ac_fn_c_try_link "$LINENO"; then :
7367 ac_cv_search_opendir=$ac_res
7368fi
7369rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext
d0ac1c44 7371 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
7372 break
7373fi
7374done
d0ac1c44 7375if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 7376
b7026657 7377else
81ecdfbb
RW
7378 ac_cv_search_opendir=no
7379fi
7380rm conftest.$ac_ext
7381LIBS=$ac_func_search_save_LIBS
7382fi
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7384$as_echo "$ac_cv_search_opendir" >&6; }
7385ac_res=$ac_cv_search_opendir
7386if test "$ac_res" != no; then :
7387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657
AC
7388
7389fi
81ecdfbb
RW
7390
7391else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7393$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 7394if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
7395 $as_echo_n "(cached) " >&6
7396else
7397 ac_func_search_save_LIBS=$LIBS
7398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7399/* end confdefs.h. */
c906108c 7400
81ecdfbb
RW
7401/* Override any GCC internal prototype to avoid an error.
7402 Use char because int might match the return type of a GCC
7403 builtin and then its argument prototype would still apply. */
b7026657
AC
7404#ifdef __cplusplus
7405extern "C"
7406#endif
b7026657
AC
7407char opendir ();
7408int
7409main ()
7410{
81ecdfbb 7411return opendir ();
b7026657
AC
7412 ;
7413 return 0;
7414}
7415_ACEOF
81ecdfbb
RW
7416for ac_lib in '' x; do
7417 if test -z "$ac_lib"; then
7418 ac_res="none required"
7419 else
7420 ac_res=-l$ac_lib
7421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7422 fi
7423 if ac_fn_c_try_link "$LINENO"; then :
7424 ac_cv_search_opendir=$ac_res
b7026657 7425fi
81ecdfbb
RW
7426rm -f core conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext
d0ac1c44 7428 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
7429 break
7430fi
7431done
d0ac1c44 7432if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
7433
7434else
7435 ac_cv_search_opendir=no
c906108c 7436fi
81ecdfbb 7437rm conftest.$ac_ext
b7026657
AC
7438LIBS=$ac_func_search_save_LIBS
7439fi
81ecdfbb
RW
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7441$as_echo "$ac_cv_search_opendir" >&6; }
7442ac_res=$ac_cv_search_opendir
7443if test "$ac_res" != no; then :
7444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657 7445
c906108c
SS
7446fi
7447
7448fi
7449
7450
7451sim_termio=""
81ecdfbb
RW
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
7453$as_echo_n "checking for struct termios... " >&6; }
d0ac1c44 7454if ${ac_cv_termios_struct+:} false; then :
81ecdfbb 7455 $as_echo_n "(cached) " >&6
b7026657 7456else
81ecdfbb 7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7458/* end confdefs.h. */
c906108c
SS
7459#include <sys/types.h>
7460#include <sys/termios.h>
b7026657
AC
7461int
7462main ()
7463{
c906108c
SS
7464static struct termios x;
7465 x.c_iflag = 0;
7466 x.c_oflag = 0;
7467 x.c_cflag = 0;
7468 x.c_lflag = 0;
7469 x.c_cc[NCCS] = 0;
b7026657
AC
7470 ;
7471 return 0;
7472}
7473_ACEOF
81ecdfbb 7474if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7475 ac_cv_termios_struct=yes
7476else
81ecdfbb 7477 ac_cv_termios_struct=no
c906108c 7478fi
81ecdfbb 7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7480fi
7481
81ecdfbb
RW
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
7483$as_echo "$ac_cv_termios_struct" >&6; }
c906108c
SS
7484if test $ac_cv_termios_struct = yes; then
7485 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
7486fi
7487
7488if test "$ac_cv_termios_struct" = "yes"; then
81ecdfbb
RW
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
7490$as_echo_n "checking for c_line field in struct termios... " >&6; }
d0ac1c44 7491 if ${ac_cv_termios_cline+:} false; then :
81ecdfbb 7492 $as_echo_n "(cached) " >&6
b7026657 7493else
81ecdfbb 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7495/* end confdefs.h. */
c906108c
SS
7496#include <sys/types.h>
7497#include <sys/termios.h>
b7026657
AC
7498int
7499main ()
7500{
c906108c 7501static struct termios x; x.c_line = 0;
b7026657
AC
7502 ;
7503 return 0;
7504}
7505_ACEOF
81ecdfbb 7506if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7507 ac_cv_termios_cline=yes
7508else
81ecdfbb 7509 ac_cv_termios_cline=no
c906108c 7510fi
81ecdfbb 7511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7512fi
7513
7514
81ecdfbb
RW
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
7516$as_echo "$ac_cv_termios_cline" >&6; }
c906108c
SS
7517 if test $ac_cv_termios_cline = yes; then
7518 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
7519 fi
7520else
7521 ac_cv_termios_cline=no
7522fi
7523
7524if test "$ac_cv_termios_struct" != "yes"; then
81ecdfbb
RW
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
7526$as_echo_n "checking for struct termio... " >&6; }
d0ac1c44 7527 if ${ac_cv_termio_struct+:} false; then :
81ecdfbb 7528 $as_echo_n "(cached) " >&6
b7026657 7529else
81ecdfbb 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7531/* end confdefs.h. */
c906108c
SS
7532#include <sys/types.h>
7533#include <sys/termio.h>
b7026657
AC
7534int
7535main ()
7536{
c906108c
SS
7537static struct termio x;
7538 x.c_iflag = 0;
7539 x.c_oflag = 0;
7540 x.c_cflag = 0;
7541 x.c_lflag = 0;
7542 x.c_cc[NCC] = 0;
b7026657
AC
7543 ;
7544 return 0;
7545}
7546_ACEOF
81ecdfbb 7547if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7548 ac_cv_termio_struct=yes
7549else
81ecdfbb 7550 ac_cv_termio_struct=no
c906108c 7551fi
81ecdfbb 7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7553fi
7554
81ecdfbb
RW
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
7556$as_echo "$ac_cv_termio_struct" >&6; }
c906108c
SS
7557 if test $ac_cv_termio_struct = yes; then
7558 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
7559 fi
7560else
7561 ac_cv_termio_struct=no
7562fi
7563
7564if test "$ac_cv_termio_struct" = "yes"; then
81ecdfbb
RW
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
7566$as_echo_n "checking for c_line field in struct termio... " >&6; }
d0ac1c44 7567 if ${ac_cv_termio_cline+:} false; then :
81ecdfbb 7568 $as_echo_n "(cached) " >&6
b7026657 7569else
81ecdfbb 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7571/* end confdefs.h. */
c906108c
SS
7572#include <sys/types.h>
7573#include <sys/termio.h>
b7026657
AC
7574int
7575main ()
7576{
c906108c 7577static struct termio x; x.c_line = 0;
b7026657
AC
7578 ;
7579 return 0;
7580}
7581_ACEOF
81ecdfbb 7582if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7583 ac_cv_termio_cline=yes
7584else
81ecdfbb 7585 ac_cv_termio_cline=no
c906108c 7586fi
81ecdfbb 7587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7588fi
7589
7590
81ecdfbb
RW
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
7592$as_echo "$ac_cv_termio_cline" >&6; }
c906108c
SS
7593 if test $ac_cv_termio_cline = yes; then
7594 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
7595 fi
7596else
7597 ac_cv_termio_cline=no
7598fi
7599
81ecdfbb
RW
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
7601$as_echo_n "checking for struct statfs... " >&6; }
d0ac1c44 7602if ${ac_cv_struct_statfs+:} false; then :
81ecdfbb 7603 $as_echo_n "(cached) " >&6
1f362c96 7604else
81ecdfbb 7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7606/* end confdefs.h. */
1f362c96
AC
7607#include <sys/types.h>
7608#ifdef HAVE_SYS_PARAM_H
7609#include <sys/param.h>
7610#endif
7611#ifdef HAVE_SYS_MOUNT_H
7612#include <sys/mount.h>
7613#endif
7614#ifdef HAVE_SYS_VFS_H
7615#include <sys/vfs.h>
7616#endif
7617#ifdef HAVE_SYS_STATFS_H
7618#include <sys/statfs.h>
7619#endif
b7026657
AC
7620int
7621main ()
7622{
1f362c96 7623static struct statfs s;
b7026657
AC
7624 ;
7625 return 0;
7626}
7627_ACEOF
81ecdfbb 7628if ac_fn_c_try_compile "$LINENO"; then :
1f362c96
AC
7629 ac_cv_struct_statfs=yes
7630else
81ecdfbb 7631 ac_cv_struct_statfs=no
1f362c96 7632fi
81ecdfbb 7633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1f362c96
AC
7634fi
7635
81ecdfbb
RW
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
7637$as_echo "$ac_cv_struct_statfs" >&6; }
1f362c96 7638if test $ac_cv_struct_statfs = yes; then
b7026657 7639
81ecdfbb 7640$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
1f362c96
AC
7641
7642fi
7643
81ecdfbb 7644ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
d0ac1c44 7645if test "x$ac_cv_type_long_long" = xyes; then :
30e66173
MI
7646
7647cat >>confdefs.h <<_ACEOF
7648#define HAVE_LONG_LONG 1
7649_ACEOF
7650
7651
7652fi
7653
7654
c906108c 7655sim_devzero=""
81ecdfbb
RW
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
7657$as_echo_n "checking for /dev/zero... " >&6; }
d0ac1c44 7658if ${ac_cv_devzero+:} false; then :
81ecdfbb 7659 $as_echo_n "(cached) " >&6
c906108c 7660else
81ecdfbb 7661 if test "$cross_compiling" = yes; then :
c906108c
SS
7662 ac_cv_devzero=no
7663else
81ecdfbb 7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7665/* end confdefs.h. */
c906108c
SS
7666#include <fcntl.h>
7667main () {
7668 char buf[2048];
7669 int i;
7670 int fd = open ("/dev/zero", O_RDONLY);
7671 if (fd < 0)
7672 return 1;
7673 for (i = 0; i < sizeof (buf); i++)
7674 buf[i] = 1;
7675 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
7676 return 1;
7677 for (i = 0; i < sizeof (buf); i++)
7678 if (buf[i])
7679 return 1;
7680 return 0;
7681}
b7026657 7682_ACEOF
81ecdfbb 7683if ac_fn_c_try_run "$LINENO"; then :
c906108c
SS
7684 ac_cv_devzero=yes
7685else
81ecdfbb 7686 ac_cv_devzero=no
c906108c 7687fi
81ecdfbb
RW
7688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7689 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 7690fi
81ecdfbb 7691
c906108c
SS
7692fi
7693
81ecdfbb
RW
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
7695$as_echo "$ac_cv_devzero" >&6; }
c906108c
SS
7696if test $ac_cv_devzero = yes; then
7697 sim_devzero="-DHAVE_DEVZERO"
7698else
7699 sim_devzero=""
7700fi
7701
81ecdfbb
RW
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
7703$as_echo_n "checking for common simulator directory... " >&6; }
c906108c 7704if test -f "${srcdir}/../common/callback.c"; then
81ecdfbb
RW
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7706$as_echo "yes" >&6; }
c906108c
SS
7707 sim_callback="callback.o targ-map.o"
7708 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
7709else
81ecdfbb
RW
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
c906108c
SS
7712 sim_callback=""
7713 sim_targ_vals=""
7714fi
7715
81ecdfbb
RW
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
7717$as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
d29d5195 7718if test -f "${srcdir}/../common/sim-fpu.c"; then
81ecdfbb
RW
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7720$as_echo "yes" >&6; }
3e5e53f9 7721 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
3a11ea24 7722 sim_fpu="sim-fpu.o"
d29d5195 7723else
81ecdfbb
RW
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725$as_echo "no" >&6; }
d29d5195 7726 sim_fpu_cflags=
b7026657 7727 sim_fpu=
c906108c 7728fi
cd0fc7c3 7729
68a3e151
NF
7730# Since we run commands on the build system, we have to create a
7731# separate config header for the build system if build != host.
7732if test x$host = x$build; then
7733 ac_config_commands="$ac_config_commands build-config.h"
7734
7735else
7736 tempdir=build.$$
7737 rm -rf $tempdir
7738 mkdir $tempdir
7739 cd $tempdir
7740 case ${srcdir} in
7741 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
7742 *) realsrcdir=../${srcdir};;
7743 esac
7744 saved_CFLAGS="${CFLAGS}"
7745 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
7746 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
7747 ${realsrcdir}/configure \
7748 --enable-languages=${enable_languages-all} \
7749 --target=$target_alias --host=$build_alias --build=$build_alias
7750 CFLAGS="${saved_CFLAGS}"
7751 mv config.h ../build-config.h
7752 cd ..
7753 rm -rf $tempdir
7754fi
7755
c906108c
SS
7756
7757
7758
7759
7760
7761AR=${AR-ar}
7762
b7026657
AC
7763if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7765set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7768if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 7769 $as_echo_n "(cached) " >&6
c906108c
SS
7770else
7771 if test -n "$RANLIB"; then
7772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7773else
b7026657
AC
7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
81ecdfbb 7779 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 7781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
7783 break 2
7784 fi
7785done
81ecdfbb
RW
7786 done
7787IFS=$as_save_IFS
b7026657 7788
c906108c
SS
7789fi
7790fi
b7026657 7791RANLIB=$ac_cv_prog_RANLIB
c906108c 7792if test -n "$RANLIB"; then
81ecdfbb
RW
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7794$as_echo "$RANLIB" >&6; }
b7026657 7795else
81ecdfbb
RW
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
b7026657
AC
7798fi
7799
81ecdfbb 7800
b7026657
AC
7801fi
7802if test -z "$ac_cv_prog_RANLIB"; then
7803 ac_ct_RANLIB=$RANLIB
7804 # Extract the first word of "ranlib", so it can be a program name with args.
7805set dummy ranlib; ac_word=$2
81ecdfbb
RW
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7808if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 7809 $as_echo_n "(cached) " >&6
b7026657
AC
7810else
7811 if test -n "$ac_ct_RANLIB"; then
7812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
81ecdfbb 7819 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 7821 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
7823 break 2
7824 fi
7825done
81ecdfbb
RW
7826 done
7827IFS=$as_save_IFS
b7026657 7828
b7026657
AC
7829fi
7830fi
7831ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7832if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7834$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 7835else
81ecdfbb
RW
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
b7026657
AC
7838fi
7839
81ecdfbb
RW
7840 if test "x$ac_ct_RANLIB" = x; then
7841 RANLIB=":"
7842 else
7843 case $cross_compiling:$ac_tool_warned in
7844yes:)
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847ac_tool_warned=yes ;;
7848esac
7849 RANLIB=$ac_ct_RANLIB
7850 fi
c906108c 7851else
b7026657 7852 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
7853fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
c906108c
SS
7887
7888
d29d5195 7889
c906108c
SS
7890
7891
81ecdfbb
RW
7892ac_config_files="$ac_config_files Makefile"
7893
7894ac_config_commands="$ac_config_commands default"
7895
b7026657 7896cat >confcache <<\_ACEOF
c906108c
SS
7897# This file is a shell script that caches the results of configure
7898# tests run on this system so they can be shared between configure
b7026657
AC
7899# scripts and configure runs, see configure's option --config-cache.
7900# It is not useful on other systems. If it contains results you don't
7901# want to keep, you may remove or edit it.
c906108c 7902#
b7026657
AC
7903# config.status only pays attention to the cache file if you give it
7904# the --recheck option to rerun configure.
c906108c 7905#
b7026657
AC
7906# `ac_cv_env_foo' variables (set or unset) will be overridden when
7907# loading this file, other *unset* `ac_cv_foo' will be assigned the
7908# following values.
7909
7910_ACEOF
7911
c906108c
SS
7912# The following way of writing the cache mishandles newlines in values,
7913# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 7914# So, we kill variables containing newlines.
c906108c
SS
7915# Ultrix sh set writes to stderr and can't be redirected directly,
7916# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
7917(
7918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7919 eval ac_val=\$$ac_var
7920 case $ac_val in #(
7921 *${as_nl}*)
7922 case $ac_var in #(
7923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7924$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7925 esac
7926 case $ac_var in #(
7927 _ | IFS | as_nl) ;; #(
7928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7929 *) { eval $ac_var=; unset $ac_var;} ;;
7930 esac ;;
7931 esac
7932 done
7933
b7026657 7934 (set) 2>&1 |
81ecdfbb
RW
7935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7936 *${as_nl}ac_space=\ *)
7937 # `set' does not quote correctly, so add quotes: double-quote
7938 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
7939 sed -n \
7940 "s/'/'\\\\''/g;
7941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 7942 ;; #(
b7026657
AC
7943 *)
7944 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 7945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 7946 ;;
81ecdfbb
RW
7947 esac |
7948 sort
7949) |
b7026657 7950 sed '
81ecdfbb 7951 /^ac_cv_env_/b end
b7026657 7952 t clear
81ecdfbb 7953 :clear
b7026657
AC
7954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7955 t end
81ecdfbb
RW
7956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7957 :end' >>confcache
7958if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7959 if test -w "$cache_file"; then
d0ac1c44 7960 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7962$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
7963 if test ! -f "$cache_file" || test -h "$cache_file"; then
7964 cat confcache >"$cache_file"
7965 else
7966 case $cache_file in #(
7967 */* | ?:*)
7968 mv -f confcache "$cache_file"$$ &&
7969 mv -f "$cache_file"$$ "$cache_file" ;; #(
7970 *)
7971 mv -f confcache "$cache_file" ;;
7972 esac
7973 fi
7974 fi
c906108c 7975 else
81ecdfbb
RW
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7977$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
7978 fi
7979fi
7980rm -f confcache
7981
c906108c
SS
7982test "x$prefix" = xNONE && prefix=$ac_default_prefix
7983# Let make expand exec_prefix.
7984test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7985
c906108c
SS
7986DEFS=-DHAVE_CONFIG_H
7987
b7026657
AC
7988ac_libobjs=
7989ac_ltlibobjs=
d0ac1c44 7990U=
b7026657
AC
7991for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7992 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
7993 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7994 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7995 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7996 # will be set to the directory where LIBOBJS objects are built.
7997 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7998 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
7999done
8000LIBOBJS=$ac_libobjs
c906108c 8001
b7026657
AC
8002LTLIBOBJS=$ac_ltlibobjs
8003
8004
8005
81ecdfbb 8006
d0ac1c44 8007: "${CONFIG_STATUS=./config.status}"
81ecdfbb 8008ac_write_fail=0
b7026657
AC
8009ac_clean_files_save=$ac_clean_files
8010ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8012$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8013as_write_fail=0
8014cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
8015#! $SHELL
8016# Generated by $as_me.
c906108c 8017# Run this file to recreate the current configuration.
c906108c 8018# Compiler output produced by configure, useful for debugging
b7026657 8019# configure, is in config.log if it exists.
c906108c 8020
b7026657
AC
8021debug=false
8022ac_cs_recheck=false
8023ac_cs_silent=false
b7026657 8024
81ecdfbb
RW
8025SHELL=\${CONFIG_SHELL-$SHELL}
8026export SHELL
8027_ASEOF
8028cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8029## -------------------- ##
8030## M4sh Initialization. ##
8031## -------------------- ##
8032
8033# Be more Bourne compatible
8034DUALCASE=1; export DUALCASE # for MKS sh
8035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
8036 emulate sh
8037 NULLCMD=:
81ecdfbb 8038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
8039 # is contrary to our usage. Disable this feature.
8040 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
8041 setopt NO_GLOB_SUBST
8042else
8043 case `(set -o) 2>/dev/null` in #(
8044 *posix*) :
8045 set -o posix ;; #(
8046 *) :
8047 ;;
8048esac
b7026657 8049fi
b7026657 8050
81ecdfbb
RW
8051
8052as_nl='
8053'
8054export as_nl
8055# Printing a long string crashes Solaris 7 /usr/bin/printf.
8056as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8057as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8058as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8059# Prefer a ksh shell builtin over an external printf program on Solaris,
8060# but without wasting forks for bash or zsh.
8061if test -z "$BASH_VERSION$ZSH_VERSION" \
8062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8063 as_echo='print -r --'
8064 as_echo_n='print -rn --'
8065elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8066 as_echo='printf %s\n'
8067 as_echo_n='printf %s'
8068else
8069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8071 as_echo_n='/usr/ucb/echo -n'
8072 else
8073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8074 as_echo_n_body='eval
8075 arg=$1;
8076 case $arg in #(
8077 *"$as_nl"*)
8078 expr "X$arg" : "X\\(.*\\)$as_nl";
8079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8080 esac;
8081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8082 '
8083 export as_echo_n_body
8084 as_echo_n='sh -c $as_echo_n_body as_echo'
8085 fi
8086 export as_echo_body
8087 as_echo='sh -c $as_echo_body as_echo'
b7026657
AC
8088fi
8089
81ecdfbb
RW
8090# The user is always right.
8091if test "${PATH_SEPARATOR+set}" != set; then
8092 PATH_SEPARATOR=:
8093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8095 PATH_SEPARATOR=';'
8096 }
8097fi
8098
8099
8100# IFS
8101# We need space, tab and new line, in precisely that order. Quoting is
8102# there to prevent editors from complaining about space-tab.
8103# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8104# splitting by setting IFS to empty value.)
8105IFS=" "" $as_nl"
8106
8107# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 8108as_myself=
81ecdfbb
RW
8109case $0 in #((
8110 *[\\/]* ) as_myself=$0 ;;
8111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8117 done
8118IFS=$as_save_IFS
b7026657 8119
81ecdfbb
RW
8120 ;;
8121esac
8122# We did not find ourselves, most probably we were run as `sh COMMAND'
8123# in which case we are not to be found in the path.
8124if test "x$as_myself" = x; then
8125 as_myself=$0
8126fi
8127if test ! -f "$as_myself"; then
8128 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8129 exit 1
8130fi
8131
8132# Unset variables that we do not need and which cause bugs (e.g. in
8133# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8134# suppresses any "Segmentation fault" message there. '((' could
8135# trigger a bug in pdksh 5.2.14.
8136for as_var in BASH_ENV ENV MAIL MAILPATH
8137do eval test x\${$as_var+set} = xset \
8138 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8139done
b7026657
AC
8140PS1='$ '
8141PS2='> '
8142PS4='+ '
8143
8144# NLS nuisances.
81ecdfbb
RW
8145LC_ALL=C
8146export LC_ALL
8147LANGUAGE=C
8148export LANGUAGE
8149
8150# CDPATH.
8151(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8152
8153
d0ac1c44
SM
8154# as_fn_error STATUS ERROR [LINENO LOG_FD]
8155# ----------------------------------------
81ecdfbb
RW
8156# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8157# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 8158# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
8159as_fn_error ()
8160{
d0ac1c44
SM
8161 as_status=$1; test $as_status -eq 0 && as_status=1
8162 if test "$4"; then
8163 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8164 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 8165 fi
d0ac1c44 8166 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
8167 as_fn_exit $as_status
8168} # as_fn_error
8169
c906108c 8170
81ecdfbb
RW
8171# as_fn_set_status STATUS
8172# -----------------------
8173# Set $? to STATUS, without forking.
8174as_fn_set_status ()
8175{
8176 return $1
8177} # as_fn_set_status
8178
8179# as_fn_exit STATUS
8180# -----------------
8181# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8182as_fn_exit ()
8183{
8184 set +e
8185 as_fn_set_status $1
8186 exit $1
8187} # as_fn_exit
8188
8189# as_fn_unset VAR
8190# ---------------
8191# Portably unset VAR.
8192as_fn_unset ()
8193{
8194 { eval $1=; unset $1;}
8195}
8196as_unset=as_fn_unset
8197# as_fn_append VAR VALUE
8198# ----------------------
8199# Append the text in VALUE to the end of the definition contained in VAR. Take
8200# advantage of any shell optimizations that allow amortized linear growth over
8201# repeated appends, instead of the typical quadratic growth present in naive
8202# implementations.
8203if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8204 eval 'as_fn_append ()
8205 {
8206 eval $1+=\$2
8207 }'
8208else
8209 as_fn_append ()
8210 {
8211 eval $1=\$$1\$2
8212 }
8213fi # as_fn_append
8214
8215# as_fn_arith ARG...
8216# ------------------
8217# Perform arithmetic evaluation on the ARGs, and store the result in the
8218# global $as_val. Take advantage of shells that can avoid forks. The arguments
8219# must be portable across $(()) and expr.
8220if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8221 eval 'as_fn_arith ()
8222 {
8223 as_val=$(( $* ))
8224 }'
8225else
8226 as_fn_arith ()
8227 {
8228 as_val=`expr "$@" || test $? -eq 1`
8229 }
8230fi # as_fn_arith
8231
8232
8233if expr a : '\(a\)' >/dev/null 2>&1 &&
8234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
8235 as_expr=expr
8236else
8237 as_expr=false
8238fi
c906108c 8239
81ecdfbb 8240if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
8241 as_basename=basename
8242else
8243 as_basename=false
8244fi
c906108c 8245
81ecdfbb
RW
8246if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8247 as_dirname=dirname
8248else
8249 as_dirname=false
8250fi
c906108c 8251
81ecdfbb 8252as_me=`$as_basename -- "$0" ||
b7026657
AC
8253$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8254 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
8255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8256$as_echo X/"$0" |
8257 sed '/^.*\/\([^/][^/]*\)\/*$/{
8258 s//\1/
8259 q
8260 }
8261 /^X\/\(\/\/\)$/{
8262 s//\1/
8263 q
8264 }
8265 /^X\/\(\/\).*/{
8266 s//\1/
8267 q
8268 }
8269 s/.*/./; q'`
b7026657 8270
b7026657
AC
8271# Avoid depending upon Character Ranges.
8272as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8274as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8275as_cr_digits='0123456789'
8276as_cr_alnum=$as_cr_Letters$as_cr_digits
8277
81ecdfbb
RW
8278ECHO_C= ECHO_N= ECHO_T=
8279case `echo -n x` in #(((((
8280-n*)
8281 case `echo 'xy\c'` in
8282 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8283 xy) ECHO_C='\c';;
8284 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8285 ECHO_T=' ';;
8286 esac;;
8287*)
8288 ECHO_N='-n';;
b7026657
AC
8289esac
8290
b7026657 8291rm -f conf$$ conf$$.exe conf$$.file
81ecdfbb
RW
8292if test -d conf$$.dir; then
8293 rm -f conf$$.dir/conf$$.file
8294else
8295 rm -f conf$$.dir
8296 mkdir conf$$.dir 2>/dev/null
8297fi
8298if (echo >conf$$.file) 2>/dev/null; then
8299 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 8300 as_ln_s='ln -s'
81ecdfbb
RW
8301 # ... but there are two gotchas:
8302 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8303 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 8304 # In both cases, we have to default to `cp -pR'.
81ecdfbb 8305 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 8306 as_ln_s='cp -pR'
81ecdfbb
RW
8307 elif ln conf$$.file conf$$ 2>/dev/null; then
8308 as_ln_s=ln
8309 else
d0ac1c44 8310 as_ln_s='cp -pR'
c906108c 8311 fi
b7026657 8312else
d0ac1c44 8313 as_ln_s='cp -pR'
b7026657 8314fi
81ecdfbb
RW
8315rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8316rmdir conf$$.dir 2>/dev/null
8317
8318
8319# as_fn_mkdir_p
8320# -------------
8321# Create "$as_dir" as a directory, including parents if necessary.
8322as_fn_mkdir_p ()
8323{
8324
8325 case $as_dir in #(
8326 -*) as_dir=./$as_dir;;
8327 esac
8328 test -d "$as_dir" || eval $as_mkdir_p || {
8329 as_dirs=
8330 while :; do
8331 case $as_dir in #(
8332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8333 *) as_qdir=$as_dir;;
8334 esac
8335 as_dirs="'$as_qdir' $as_dirs"
8336 as_dir=`$as_dirname -- "$as_dir" ||
8337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8338 X"$as_dir" : 'X\(//\)[^/]' \| \
8339 X"$as_dir" : 'X\(//\)$' \| \
8340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8341$as_echo X"$as_dir" |
8342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8343 s//\1/
8344 q
8345 }
8346 /^X\(\/\/\)[^/].*/{
8347 s//\1/
8348 q
8349 }
8350 /^X\(\/\/\)$/{
8351 s//\1/
8352 q
8353 }
8354 /^X\(\/\).*/{
8355 s//\1/
8356 q
8357 }
8358 s/.*/./; q'`
8359 test -d "$as_dir" && break
8360 done
8361 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 8362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b7026657 8363
81ecdfbb
RW
8364
8365} # as_fn_mkdir_p
b7026657 8366if mkdir -p . 2>/dev/null; then
81ecdfbb 8367 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
8368else
8369 test -d ./-p && rmdir ./-p
8370 as_mkdir_p=false
8371fi
8372
d0ac1c44
SM
8373
8374# as_fn_executable_p FILE
8375# -----------------------
8376# Test if FILE is an executable regular file.
8377as_fn_executable_p ()
8378{
8379 test -f "$1" && test -x "$1"
8380} # as_fn_executable_p
8381as_test_x='test -x'
8382as_executable_p=as_fn_executable_p
b7026657
AC
8383
8384# Sed expression to map a string onto a valid CPP name.
8385as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8386
8387# Sed expression to map a string onto a valid variable name.
8388as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8389
8390
b7026657 8391exec 6>&1
81ecdfbb
RW
8392## ----------------------------------- ##
8393## Main body of $CONFIG_STATUS script. ##
8394## ----------------------------------- ##
8395_ASEOF
8396test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8397
8398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8399# Save the log message, to keep $0 and so on meaningful, and to
b7026657 8400# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
8401# values after options handling.
8402ac_log="
b7026657 8403This file was extended by $as_me, which was
d0ac1c44 8404generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
8405
8406 CONFIG_FILES = $CONFIG_FILES
8407 CONFIG_HEADERS = $CONFIG_HEADERS
8408 CONFIG_LINKS = $CONFIG_LINKS
8409 CONFIG_COMMANDS = $CONFIG_COMMANDS
8410 $ $0 $@
8411
81ecdfbb
RW
8412on `(hostname || uname -n) 2>/dev/null | sed 1q`
8413"
8414
b7026657
AC
8415_ACEOF
8416
81ecdfbb
RW
8417case $ac_config_files in *"
8418"*) set x $ac_config_files; shift; ac_config_files=$*;;
8419esac
b7026657 8420
81ecdfbb
RW
8421case $ac_config_headers in *"
8422"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8423esac
b7026657 8424
b7026657 8425
81ecdfbb
RW
8426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8427# Files that config.status was made for.
8428config_files="$ac_config_files"
8429config_headers="$ac_config_headers"
8430config_commands="$ac_config_commands"
b7026657 8431
81ecdfbb 8432_ACEOF
b7026657 8433
81ecdfbb 8434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 8435ac_cs_usage="\
81ecdfbb
RW
8436\`$as_me' instantiates files and other configuration actions
8437from templates according to the current configuration. Unless the files
8438and actions are specified as TAGs, all are instantiated by default.
b7026657 8439
81ecdfbb 8440Usage: $0 [OPTION]... [TAG]...
b7026657
AC
8441
8442 -h, --help print this help, then exit
81ecdfbb 8443 -V, --version print version number and configuration settings, then exit
d0ac1c44 8444 --config print configuration, then exit
81ecdfbb
RW
8445 -q, --quiet, --silent
8446 do not print progress messages
b7026657
AC
8447 -d, --debug don't remove temporary files
8448 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
8449 --file=FILE[:TEMPLATE]
8450 instantiate the configuration file FILE
8451 --header=FILE[:TEMPLATE]
8452 instantiate the configuration header FILE
b7026657
AC
8453
8454Configuration files:
8455$config_files
8456
8457Configuration headers:
8458$config_headers
8459
8460Configuration commands:
8461$config_commands
8462
81ecdfbb 8463Report bugs to the package provider."
b7026657 8464
81ecdfbb
RW
8465_ACEOF
8466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 8467ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
8468ac_cs_version="\\
8469config.status
d0ac1c44
SM
8470configured by $0, generated by GNU Autoconf 2.69,
8471 with options \\"\$ac_cs_config\\"
b7026657 8472
d0ac1c44 8473Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
8474This config.status script is free software; the Free Software Foundation
8475gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
8476
8477ac_pwd='$ac_pwd'
8478srcdir='$srcdir'
8479INSTALL='$INSTALL'
8480test -n "\$AWK" || AWK=awk
b7026657
AC
8481_ACEOF
8482
81ecdfbb
RW
8483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8484# The default lists apply if the user does not specify any file.
b7026657
AC
8485ac_need_defaults=:
8486while test $# != 0
8487do
8488 case $1 in
d0ac1c44 8489 --*=?*)
81ecdfbb
RW
8490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
8492 ac_shift=:
8493 ;;
d0ac1c44
SM
8494 --*=)
8495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8496 ac_optarg=
8497 ac_shift=:
8498 ;;
81ecdfbb 8499 *)
b7026657
AC
8500 ac_option=$1
8501 ac_optarg=$2
8502 ac_shift=shift
8503 ;;
b7026657
AC
8504 esac
8505
8506 case $ac_option in
8507 # Handling of the options.
b7026657
AC
8508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8509 ac_cs_recheck=: ;;
81ecdfbb
RW
8510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8511 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
8512 --config | --confi | --conf | --con | --co | --c )
8513 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 8514 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
8515 debug=: ;;
8516 --file | --fil | --fi | --f )
8517 $ac_shift
81ecdfbb
RW
8518 case $ac_optarg in
8519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 8520 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
8521 esac
8522 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
8523 ac_need_defaults=false;;
8524 --header | --heade | --head | --hea )
8525 $ac_shift
81ecdfbb
RW
8526 case $ac_optarg in
8527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8528 esac
8529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 8530 ac_need_defaults=false;;
81ecdfbb
RW
8531 --he | --h)
8532 # Conflict between --help and --header
d0ac1c44 8533 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
8534Try \`$0 --help' for more information.";;
8535 --help | --hel | -h )
8536 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
8537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8539 ac_cs_silent=: ;;
8540
8541 # This is an error.
d0ac1c44 8542 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 8543Try \`$0 --help' for more information." ;;
b7026657 8544
81ecdfbb
RW
8545 *) as_fn_append ac_config_targets " $1"
8546 ac_need_defaults=false ;;
b7026657
AC
8547
8548 esac
8549 shift
c906108c 8550done
b7026657
AC
8551
8552ac_configure_extra_args=
8553
8554if $ac_cs_silent; then
8555 exec 6>/dev/null
8556 ac_configure_extra_args="$ac_configure_extra_args --silent"
8557fi
8558
8559_ACEOF
81ecdfbb 8560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 8561if \$ac_cs_recheck; then
d0ac1c44 8562 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
8563 shift
8564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8565 CONFIG_SHELL='$SHELL'
8566 export CONFIG_SHELL
8567 exec "\$@"
c906108c 8568fi
c906108c 8569
b7026657 8570_ACEOF
81ecdfbb
RW
8571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8572exec 5>>config.log
8573{
8574 echo
8575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8576## Running $as_me. ##
8577_ASBOX
8578 $as_echo "$ac_log"
8579} >&5
c906108c 8580
81ecdfbb
RW
8581_ACEOF
8582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8583_ACEOF
b7026657 8584
81ecdfbb 8585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 8586
81ecdfbb 8587# Handling of arguments.
b7026657
AC
8588for ac_config_target in $ac_config_targets
8589do
81ecdfbb
RW
8590 case $ac_config_target in
8591 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
68a3e151 8592 "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
81ecdfbb
RW
8593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8594 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8595
d0ac1c44 8596 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 8597 esac
b7026657 8598done
c906108c 8599
81ecdfbb 8600
b7026657
AC
8601# If the user did not use the arguments to specify the items to instantiate,
8602# then the envvar interface is used. Set only those that are not.
8603# We use the long form for the default assignment because of an extremely
8604# bizarre bug on SunOS 4.1.3.
8605if $ac_need_defaults; then
8606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8609fi
8610
8611# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 8612# simply because there is no reason against having it here, and in addition,
b7026657 8613# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
8614# Hook for its removal unless debugging.
8615# Note that there is a small window in which the directory will not be cleaned:
8616# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
8617$debug ||
8618{
d0ac1c44 8619 tmp= ac_tmp=
81ecdfbb 8620 trap 'exit_status=$?
d0ac1c44
SM
8621 : "${ac_tmp:=$tmp}"
8622 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
8623' 0
8624 trap 'as_fn_exit 1' 1 2 13 15
b7026657 8625}
b7026657
AC
8626# Create a (secure) tmp directory for tmp files.
8627
8628{
81ecdfbb 8629 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 8630 test -d "$tmp"
b7026657
AC
8631} ||
8632{
81ecdfbb
RW
8633 tmp=./conf$$-$RANDOM
8634 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
8635} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8636ac_tmp=$tmp
81ecdfbb
RW
8637
8638# Set up the scripts for CONFIG_FILES section.
8639# No need to generate them if there are no CONFIG_FILES.
8640# This happens for instance with `./config.status config.h'.
8641if test -n "$CONFIG_FILES"; then
8642
8643
8644ac_cr=`echo X | tr X '\015'`
8645# On cygwin, bash can eat \r inside `` if the user requested igncr.
8646# But we know of no other shell where ac_cr would be empty at this
8647# point, so we can use a bashism as a fallback.
8648if test "x$ac_cr" = x; then
8649 eval ac_cr=\$\'\\r\'
8650fi
8651ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8652if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 8653 ac_cs_awk_cr='\\r'
81ecdfbb
RW
8654else
8655 ac_cs_awk_cr=$ac_cr
8656fi
8657
d0ac1c44 8658echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
8659_ACEOF
8660
8661
b7026657 8662{
81ecdfbb
RW
8663 echo "cat >conf$$subs.awk <<_ACEOF" &&
8664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8665 echo "_ACEOF"
8666} >conf$$subs.sh ||
d0ac1c44
SM
8667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8668ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
8669ac_delim='%!_!# '
8670for ac_last_try in false false false false false :; do
8671 . ./conf$$subs.sh ||
d0ac1c44 8672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
8673
8674 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8675 if test $ac_delim_n = $ac_delim_num; then
8676 break
8677 elif $ac_last_try; then
d0ac1c44 8678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
8679 else
8680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8681 fi
8682done
8683rm -f conf$$subs.sh
8684
8685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 8686cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
8687_ACEOF
8688sed -n '
8689h
8690s/^/S["/; s/!.*/"]=/
8691p
8692g
8693s/^[^!]*!//
8694:repl
8695t repl
8696s/'"$ac_delim"'$//
8697t delim
8698:nl
8699h
d0ac1c44 8700s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
8701t more1
8702s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8703p
8704n
8705b repl
8706:more1
8707s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8708p
8709g
8710s/.\{148\}//
8711t nl
8712:delim
8713h
d0ac1c44 8714s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
8715t more2
8716s/["\\]/\\&/g; s/^/"/; s/$/"/
8717p
8718b
8719:more2
8720s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8721p
8722g
8723s/.\{148\}//
8724t delim
8725' <conf$$subs.awk | sed '
8726/^[^""]/{
8727 N
8728 s/\n//
b7026657 8729}
81ecdfbb
RW
8730' >>$CONFIG_STATUS || ac_write_fail=1
8731rm -f conf$$subs.awk
8732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8733_ACAWK
d0ac1c44 8734cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
8735 for (key in S) S_is_set[key] = 1
8736 FS = "\a"
b7026657 8737
81ecdfbb
RW
8738}
8739{
8740 line = $ 0
8741 nfields = split(line, field, "@")
8742 substed = 0
8743 len = length(field[1])
8744 for (i = 2; i < nfields; i++) {
8745 key = field[i]
8746 keylen = length(key)
8747 if (S_is_set[key]) {
8748 value = S[key]
8749 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8750 len += length(value) + length(field[++i])
8751 substed = 1
8752 } else
8753 len += 1 + keylen
8754 }
b7026657 8755
81ecdfbb
RW
8756 print line
8757}
b7026657 8758
81ecdfbb
RW
8759_ACAWK
8760_ACEOF
8761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8762if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8763 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8764else
8765 cat
d0ac1c44
SM
8766fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8767 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
8768_ACEOF
8769
d0ac1c44
SM
8770# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8771# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
8772# trailing colons and then remove the whole line if VPATH becomes empty
8773# (actually we leave an empty line to preserve line numbers).
8774if test "x$srcdir" = x.; then
d0ac1c44
SM
8775 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8776h
8777s///
8778s/^/:/
8779s/[ ]*$/:/
8780s/:\$(srcdir):/:/g
8781s/:\${srcdir}:/:/g
8782s/:@srcdir@:/:/g
8783s/^:*//
81ecdfbb 8784s/:*$//
d0ac1c44
SM
8785x
8786s/\(=[ ]*\).*/\1/
8787G
8788s/\n//
81ecdfbb
RW
8789s/^[^=]*=[ ]*$//
8790}'
8791fi
b7026657 8792
81ecdfbb
RW
8793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8794fi # test -n "$CONFIG_FILES"
b7026657 8795
81ecdfbb
RW
8796# Set up the scripts for CONFIG_HEADERS section.
8797# No need to generate them if there are no CONFIG_HEADERS.
8798# This happens for instance with `./config.status Makefile'.
8799if test -n "$CONFIG_HEADERS"; then
d0ac1c44 8800cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 8801BEGIN {
b7026657
AC
8802_ACEOF
8803
81ecdfbb
RW
8804# Transform confdefs.h into an awk script `defines.awk', embedded as
8805# here-document in config.status, that substitutes the proper values into
8806# config.h.in to produce config.h.
8807
8808# Create a delimiter string that does not exist in confdefs.h, to ease
8809# handling of long lines.
8810ac_delim='%!_!# '
8811for ac_last_try in false false :; do
d0ac1c44
SM
8812 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8813 if test -z "$ac_tt"; then
81ecdfbb
RW
8814 break
8815 elif $ac_last_try; then
d0ac1c44 8816 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
8817 else
8818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 8819 fi
81ecdfbb 8820done
c906108c 8821
81ecdfbb
RW
8822# For the awk script, D is an array of macro values keyed by name,
8823# likewise P contains macro parameters if any. Preserve backslash
8824# newline sequences.
8825
8826ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8827sed -n '
8828s/.\{148\}/&'"$ac_delim"'/g
8829t rset
8830:rset
8831s/^[ ]*#[ ]*define[ ][ ]*/ /
8832t def
8833d
8834:def
8835s/\\$//
8836t bsnl
8837s/["\\]/\\&/g
8838s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8839D["\1"]=" \3"/p
8840s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8841d
8842:bsnl
8843s/["\\]/\\&/g
8844s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8845D["\1"]=" \3\\\\\\n"\\/p
8846t cont
8847s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8848t cont
8849d
8850:cont
8851n
8852s/.\{148\}/&'"$ac_delim"'/g
8853t clear
8854:clear
8855s/\\$//
8856t bsnlc
8857s/["\\]/\\&/g; s/^/"/; s/$/"/p
8858d
8859:bsnlc
8860s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8861b cont
8862' <confdefs.h | sed '
8863s/'"$ac_delim"'/"\\\
8864"/g' >>$CONFIG_STATUS || ac_write_fail=1
8865
8866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8867 for (key in D) D_is_set[key] = 1
8868 FS = "\a"
8869}
8870/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8871 line = \$ 0
8872 split(line, arg, " ")
8873 if (arg[1] == "#") {
8874 defundef = arg[2]
8875 mac1 = arg[3]
8876 } else {
8877 defundef = substr(arg[1], 2)
8878 mac1 = arg[2]
8879 }
8880 split(mac1, mac2, "(") #)
8881 macro = mac2[1]
8882 prefix = substr(line, 1, index(line, defundef) - 1)
8883 if (D_is_set[macro]) {
8884 # Preserve the white space surrounding the "#".
8885 print prefix "define", macro P[macro] D[macro]
8886 next
8887 } else {
8888 # Replace #undef with comments. This is necessary, for example,
8889 # in the case of _POSIX_SOURCE, which is predefined and required
8890 # on some systems where configure will not decide to define it.
8891 if (defundef == "undef") {
8892 print "/*", prefix defundef, macro, "*/"
8893 next
8894 }
8895 }
8896}
8897{ print }
8898_ACAWK
b7026657 8899_ACEOF
81ecdfbb 8900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 8901 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
8902fi # test -n "$CONFIG_HEADERS"
8903
8904
8905eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8906shift
8907for ac_tag
8908do
8909 case $ac_tag in
8910 :[FHLC]) ac_mode=$ac_tag; continue;;
8911 esac
8912 case $ac_mode$ac_tag in
8913 :[FHL]*:*);;
d0ac1c44 8914 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
8915 :[FH]-) ac_tag=-:-;;
8916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8917 esac
8918 ac_save_IFS=$IFS
8919 IFS=:
8920 set x $ac_tag
8921 IFS=$ac_save_IFS
8922 shift
8923 ac_file=$1
8924 shift
8925
8926 case $ac_mode in
8927 :L) ac_source=$1;;
8928 :[FH])
8929 ac_file_inputs=
8930 for ac_f
8931 do
8932 case $ac_f in
d0ac1c44 8933 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
8934 *) # Look for the file first in the build tree, then in the source tree
8935 # (if the path is not absolute). The absolute path cannot be DOS-style,
8936 # because $ac_f cannot contain `:'.
8937 test -f "$ac_f" ||
8938 case $ac_f in
8939 [\\/$]*) false;;
8940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8941 esac ||
d0ac1c44 8942 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
8943 esac
8944 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8945 as_fn_append ac_file_inputs " '$ac_f'"
8946 done
8947
8948 # Let's still pretend it is `configure' which instantiates (i.e., don't
8949 # use $as_me), people would be surprised to read:
8950 # /* config.h. Generated by config.status. */
8951 configure_input='Generated from '`
8952 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8953 `' by configure.'
8954 if test x"$ac_file" != x-; then
8955 configure_input="$ac_file. $configure_input"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8957$as_echo "$as_me: creating $ac_file" >&6;}
8958 fi
8959 # Neutralize special characters interpreted by sed in replacement strings.
8960 case $configure_input in #(
8961 *\&* | *\|* | *\\* )
8962 ac_sed_conf_input=`$as_echo "$configure_input" |
8963 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8964 *) ac_sed_conf_input=$configure_input;;
8965 esac
8966
8967 case $ac_tag in
d0ac1c44
SM
8968 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
8970 esac
8971 ;;
c906108c
SS
8972 esac
8973
81ecdfbb 8974 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
8975$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8976 X"$ac_file" : 'X\(//\)[^/]' \| \
8977 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
8978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8979$as_echo X"$ac_file" |
8980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8981 s//\1/
8982 q
8983 }
8984 /^X\(\/\/\)[^/].*/{
8985 s//\1/
8986 q
8987 }
8988 /^X\(\/\/\)$/{
8989 s//\1/
8990 q
8991 }
8992 /^X\(\/\).*/{
8993 s//\1/
8994 q
8995 }
8996 s/.*/./; q'`
8997 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
8998 ac_builddir=.
8999
81ecdfbb
RW
9000case "$ac_dir" in
9001.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9002*)
9003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9004 # A ".." for each directory in $ac_dir_suffix.
9005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9006 case $ac_top_builddir_sub in
9007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9009 esac ;;
9010esac
9011ac_abs_top_builddir=$ac_pwd
9012ac_abs_builddir=$ac_pwd$ac_dir_suffix
9013# for backward compatibility:
9014ac_top_builddir=$ac_top_build_prefix
c906108c 9015
b7026657 9016case $srcdir in
81ecdfbb 9017 .) # We are building in place.
b7026657 9018 ac_srcdir=.
81ecdfbb
RW
9019 ac_top_srcdir=$ac_top_builddir_sub
9020 ac_abs_top_srcdir=$ac_pwd ;;
9021 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 9022 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
9023 ac_top_srcdir=$srcdir
9024 ac_abs_top_srcdir=$srcdir ;;
9025 *) # Relative name.
9026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9027 ac_top_srcdir=$ac_top_build_prefix$srcdir
9028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 9029esac
81ecdfbb 9030ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 9031
b7026657 9032
81ecdfbb
RW
9033 case $ac_mode in
9034 :F)
9035 #
9036 # CONFIG_FILE
9037 #
b7026657
AC
9038
9039 case $INSTALL in
9040 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 9041 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 9042 esac
81ecdfbb 9043_ACEOF
c906108c 9044
81ecdfbb
RW
9045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9046# If the template does not know about datarootdir, expand it.
9047# FIXME: This hack should be removed a few years after 2.60.
9048ac_datarootdir_hack=; ac_datarootdir_seen=
9049ac_sed_dataroot='
9050/datarootdir/ {
9051 p
9052 q
9053}
9054/@datadir@/p
9055/@docdir@/p
9056/@infodir@/p
9057/@localedir@/p
9058/@mandir@/p'
9059case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9060*datarootdir*) ac_datarootdir_seen=yes;;
9061*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9063$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9064_ACEOF
9065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9066 ac_datarootdir_hack='
9067 s&@datadir@&$datadir&g
9068 s&@docdir@&$docdir&g
9069 s&@infodir@&$infodir&g
9070 s&@localedir@&$localedir&g
9071 s&@mandir@&$mandir&g
9072 s&\\\${datarootdir}&$datarootdir&g' ;;
9073esac
b7026657 9074_ACEOF
81ecdfbb
RW
9075
9076# Neutralize VPATH when `$srcdir' = `.'.
9077# Shell code in configure.ac might set extrasub.
9078# FIXME: do we really want to maintain this feature?
9079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9080ac_sed_extra="$ac_vpsub
b7026657
AC
9081$extrasub
9082_ACEOF
81ecdfbb 9083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
9084:t
9085/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
9086s|@configure_input@|$ac_sed_conf_input|;t t
9087s&@top_builddir@&$ac_top_builddir_sub&;t t
9088s&@top_build_prefix@&$ac_top_build_prefix&;t t
9089s&@srcdir@&$ac_srcdir&;t t
9090s&@abs_srcdir@&$ac_abs_srcdir&;t t
9091s&@top_srcdir@&$ac_top_srcdir&;t t
9092s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9093s&@builddir@&$ac_builddir&;t t
9094s&@abs_builddir@&$ac_abs_builddir&;t t
9095s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9096s&@INSTALL@&$ac_INSTALL&;t t
9097$ac_datarootdir_hack
9098"
d0ac1c44
SM
9099eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9100 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
9101
9102test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
9103 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9104 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9105 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 9107which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 9108$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 9109which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 9110
d0ac1c44 9111 rm -f "$ac_tmp/stdin"
b7026657 9112 case $ac_file in
d0ac1c44
SM
9113 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9114 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 9115 esac \
d0ac1c44 9116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
9117 ;;
9118 :H)
9119 #
9120 # CONFIG_HEADER
9121 #
b7026657 9122 if test x"$ac_file" != x-; then
81ecdfbb
RW
9123 {
9124 $as_echo "/* $configure_input */" \
d0ac1c44
SM
9125 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9126 } >"$ac_tmp/config.h" \
9127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9128 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9130$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 9131 else
81ecdfbb 9132 rm -f "$ac_file"
d0ac1c44
SM
9133 mv "$ac_tmp/config.h" "$ac_file" \
9134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c906108c 9135 fi
b7026657 9136 else
81ecdfbb 9137 $as_echo "/* $configure_input */" \
d0ac1c44
SM
9138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9139 || as_fn_error $? "could not create -" "$LINENO" 5
c906108c 9140 fi
81ecdfbb 9141 ;;
b7026657 9142
81ecdfbb
RW
9143 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9144$as_echo "$as_me: executing $ac_file commands" >&6;}
9145 ;;
9146 esac
b7026657 9147
b7026657 9148
81ecdfbb 9149 case $ac_file$ac_mode in
68a3e151 9150 "build-config.h":C) cp config.h build-config.h ;;
81ecdfbb 9151 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 9152
b7026657 9153 esac
81ecdfbb 9154done # for ac_tag
c906108c 9155
b7026657 9156
81ecdfbb 9157as_fn_exit 0
b7026657 9158_ACEOF
b7026657
AC
9159ac_clean_files=$ac_clean_files_save
9160
81ecdfbb 9161test $ac_write_fail = 0 ||
d0ac1c44 9162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 9163
b7026657
AC
9164
9165# configure is writing to config.log, and then calls config.status.
9166# config.status does its own redirection, appending to config.log.
9167# Unfortunately, on DOS this fails, as config.log is still kept open
9168# by configure, so config.status won't be able to write to it; its
9169# output is simply discarded. So we exec the FD to /dev/null,
9170# effectively closing config.log, so it can be properly (re)opened and
9171# appended to by config.status. When coming back to configure, we
9172# need to make the FD available again.
9173if test "$no_create" != yes; then
9174 ac_cs_success=:
9175 ac_config_status_args=
9176 test "$silent" = yes &&
9177 ac_config_status_args="$ac_config_status_args --quiet"
9178 exec 5>/dev/null
9179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9180 exec 5>>config.log
9181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9182 # would make configure fail if this is the last instruction.
d0ac1c44 9183 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
9184fi
9185if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9187$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 9188fi
c906108c 9189