]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/ppc/configure
sim: mips: fix format warnings when setting up memory
[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 622ac_subst_vars='LTLIBOBJS
a48ff3ef 623LIBOBJS
81ecdfbb
RW
624sim_fpu
625sim_fpu_cflags
626sim_targ_vals
627sim_callback
628sim_devzero
629sim_termio
81ecdfbb 630sim_model_issue
136da8cd 631sim_default_model
81ecdfbb
RW
632sim_model
633sim_monitor
634sim_reserved
136da8cd 635sim_float
81ecdfbb 636sim_timebase
81ecdfbb 637sim_hostbitsize
136da8cd 638sim_bitsize
81ecdfbb 639sim_igen_smp
ce39bd38 640sim_smp
9bbf6f91 641sim_hostendian
ce39bd38 642sim_xor_endian
136da8cd
MF
643sim_endian
644sim_inline
81ecdfbb
RW
645sim_pk_obj
646sim_pk_src
647sim_hw_obj
648sim_hw_src
649sim_icache
650sim_filter
651sim_jump
652sim_decode_mechanism
653sim_dup
654sim_switch
655sim_opcode
656sim_config
657sim_line_nr
658sim_warnings
81ecdfbb
RW
659RANLIB
660AR
81ecdfbb
RW
661CFLAGS_FOR_BUILD
662CC_FOR_BUILD
aadc9410
MF
663zlibinc
664zlibdir
81ecdfbb
RW
665target_os
666target_vendor
667target_cpu
668target
669host_os
670host_vendor
671host_cpu
672host
673build_os
674build_vendor
675build_cpu
676build
be2bc30f 677WERROR_CFLAGS
81ecdfbb
RW
678EGREP
679GREP
680CPP
681CATOBJEXT
682GENCAT
683INSTOBJEXT
684DATADIRNAME
685CATALOGS
686POSUB
687GMSGFMT
688XGETTEXT
689INCINTL
690LIBINTL_DEP
691LIBINTL
692USE_NLS
693OBJEXT
694EXEEXT
695ac_ct_CC
696CPPFLAGS
697LDFLAGS
698CFLAGS
699CC
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
6ffe910a 740SHELL'
b7026657 741ac_subst_files=''
81ecdfbb
RW
742ac_user_opts='
743enable_option_checking
81ecdfbb
RW
744enable_sim_assert
745enable_sim_bitsize
81ecdfbb
RW
746enable_sim_config
747enable_sim_decode_mechanism
748enable_sim_default_model
749enable_sim_duplicate
750enable_sim_endian
81ecdfbb
RW
751enable_sim_filter
752enable_sim_float
753enable_sim_hardware
754enable_sim_hostbitsize
755enable_sim_hostendian
756enable_sim_icache
757enable_sim_inline
758enable_sim_jump
759enable_sim_line_nr
760enable_sim_model
761enable_sim_model_issue
762enable_sim_monitor
763enable_sim_opcode
764enable_sim_packages
81ecdfbb
RW
765enable_sim_reserved_bits
766enable_sim_smp
81ecdfbb
RW
767enable_sim_switch
768enable_sim_timebase
be2bc30f 769enable_werror
81ecdfbb
RW
770enable_sim_warnings
771enable_sim_xor_endian
aadc9410 772with_system_zlib
2974be62 773enable_plugins
81ecdfbb
RW
774'
775 ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP'
784
c906108c
SS
785
786# Initialize some variables set by options.
b7026657
AC
787ac_init_help=
788ac_init_version=false
81ecdfbb
RW
789ac_unrecognized_opts=
790ac_unrecognized_sep=
c906108c
SS
791# The variables have the same names as the options, with
792# dashes changed to underlines.
b7026657 793cache_file=/dev/null
c906108c 794exec_prefix=NONE
c906108c 795no_create=
c906108c
SS
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
c906108c
SS
804verbose=
805x_includes=NONE
806x_libraries=NONE
b7026657
AC
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 813# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
c906108c
SS
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
c906108c
SS
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
81ecdfbb
RW
824docdir='${datarootdir}/doc/${PACKAGE}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
c906108c 833
c906108c 834ac_prev=
81ecdfbb 835ac_dashdash=
c906108c
SS
836for ac_option
837do
c906108c
SS
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
81ecdfbb 840 eval $ac_prev=\$ac_option
c906108c
SS
841 ac_prev=
842 continue
843 fi
844
81ecdfbb 845 case $ac_option in
d0ac1c44
SM
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
81ecdfbb 849 esac
c906108c
SS
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
81ecdfbb
RW
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
c906108c
SS
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 860 bindir=$ac_optarg ;;
c906108c
SS
861
862 -build | --build | --buil | --bui | --bu)
b7026657 863 ac_prev=build_alias ;;
c906108c 864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 865 build_alias=$ac_optarg ;;
c906108c
SS
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
c906108c 876
81ecdfbb 877 -datadir | --datadir | --datadi | --datad)
c906108c 878 ac_prev=datadir ;;
81ecdfbb 879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 880 datadir=$ac_optarg ;;
c906108c 881
81ecdfbb
RW
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
c906108c 889 -disable-* | --disable-*)
81ecdfbb 890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 891 # Reject names that are not valid shell variable names.
81ecdfbb 892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 893 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
c906108c
SS
914
915 -enable-* | --enable-*)
81ecdfbb 916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 917 # Reject names that are not valid shell variable names.
81ecdfbb 918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 919 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924"enable_$ac_useropt"
925"*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
c906108c 928 esac
81ecdfbb 929 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
b7026657 938 exec_prefix=$ac_optarg ;;
c906108c
SS
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
b7026657
AC
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
c906108c
SS
950
951 -host | --host | --hos | --ho)
b7026657 952 ac_prev=host_alias ;;
c906108c 953 -host=* | --host=* | --hos=* | --ho=*)
b7026657 954 host_alias=$ac_optarg ;;
c906108c 955
81ecdfbb
RW
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
c906108c
SS
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 967 includedir=$ac_optarg ;;
c906108c
SS
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 972 infodir=$ac_optarg ;;
c906108c
SS
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 977 libdir=$ac_optarg ;;
c906108c
SS
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
b7026657 984 libexecdir=$ac_optarg ;;
c906108c 985
81ecdfbb
RW
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
c906108c 991 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 992 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 996 localstatedir=$ac_optarg ;;
c906108c
SS
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1001 mandir=$ac_optarg ;;
c906108c
SS
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1008 | --no-cr | --no-c | -n)
c906108c
SS
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1022 oldincludedir=$ac_optarg ;;
c906108c
SS
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1027 prefix=$ac_optarg ;;
c906108c
SS
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1034 program_prefix=$ac_optarg ;;
c906108c
SS
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1041 program_suffix=$ac_optarg ;;
c906108c
SS
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1058 program_transform_name=$ac_optarg ;;
c906108c 1059
81ecdfbb
RW
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
c906108c
SS
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
b7026657 1078 sbindir=$ac_optarg ;;
c906108c
SS
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
b7026657 1089 sharedstatedir=$ac_optarg ;;
c906108c
SS
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
b7026657 1094 site=$ac_optarg ;;
eb2d80b4 1095
c906108c
SS
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1099 srcdir=$ac_optarg ;;
c906108c
SS
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1106 sysconfdir=$ac_optarg ;;
c906108c
SS
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1109 ac_prev=target_alias ;;
c906108c 1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1111 target_alias=$ac_optarg ;;
c906108c
SS
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
b7026657
AC
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
c906108c
SS
1118
1119 -with-* | --with-*)
81ecdfbb 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1121 # Reject names that are not valid shell variable names.
81ecdfbb 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1123 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
c906108c 1132 esac
81ecdfbb 1133 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1134
1135 -without-* | --without-*)
81ecdfbb 1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1137 # Reject names that are not valid shell variable names.
81ecdfbb 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1139 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
c906108c
SS
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1160 x_includes=$ac_optarg ;;
c906108c
SS
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1167 x_libraries=$ac_optarg ;;
c906108c 1168
d0ac1c44
SM
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
c906108c
SS
1171 ;;
1172
b7026657
AC
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1179 esac
1180 eval $ac_envvar=\$ac_optarg
b7026657
AC
1181 export $ac_envvar ;;
1182
c906108c 1183 *)
b7026657 1184 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
b7026657 1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1196 as_fn_error $? "missing argument to $ac_option"
c906108c 1197fi
c906108c 1198
81ecdfbb
RW
1199if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
d0ac1c44 1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1204 esac
81ecdfbb 1205fi
c906108c 1206
81ecdfbb
RW
1207# Check all directory arguments for consistency.
1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
c906108c 1212do
81ecdfbb
RW
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
b7026657 1221 case $ac_val in
81ecdfbb
RW
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1224 esac
d0ac1c44 1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1226done
1227
b7026657
AC
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
b7026657
AC
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242fi
c906108c 1243
b7026657
AC
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
c906108c 1248
c906108c 1249
81ecdfbb
RW
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1253 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1255 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1256
1257
c906108c
SS
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
81ecdfbb
RW
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
c906108c 1285 srcdir=$ac_confdir
81ecdfbb 1286 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1287 srcdir=..
1288 fi
1289else
1290 ac_srcdir_defaulted=no
1291fi
81ecdfbb
RW
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
d0ac1c44 1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1299 pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
c906108c 1316
b7026657
AC
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324\`configure' configures this package to adapt to many kinds of systems.
c906108c 1325
b7026657 1326Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1327
b7026657
AC
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1330
b7026657 1331Defaults for the options are specified in brackets.
c906108c 1332
b7026657
AC
1333Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
d0ac1c44 1338 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
b7026657
AC
1344Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1346 [$ac_default_prefix]
b7026657 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1348 [PREFIX]
c906108c 1349
b7026657
AC
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
c906108c 1354
b7026657 1355For better control, use the options below.
c906108c 1356
b7026657 1357Fine tuning of the installation directories:
81ecdfbb
RW
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1377_ACEOF
1378
1379 cat <<\_ACEOF
1380
1381Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390_ACEOF
c906108c 1391fi
c906108c 1392
b7026657 1393if test -n "$ac_init_help"; then
c906108c 1394
b7026657 1395 cat <<\_ACEOF
cd0fc7c3 1396
b7026657 1397Optional Features:
81ecdfbb 1398 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
1401 --enable-sim-assert Specify whether to perform random assertions.
1402 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
b7026657
AC
1403 --enable-sim-config=file Override default config file
1404 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1405 --enable-sim-default-model=which Specify default PowerPC to model.
1406 --enable-sim-duplicate Expand (duplicate) semantic functions.
1407 --enable-sim-endian=endian Specify target byte endian orientation.
b7026657
AC
1408 --enable-sim-filter=rule Specify filter rules.
1409 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1410 --enable-sim-hardware=list Specify the hardware to be included in the build.
1411 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
1412 --enable-sim-hostendian=end Specify host byte endian orientation.
1413 --enable-sim-icache=size Specify instruction-decode cache size and type.
1414 --enable-sim-inline=inlines Specify which functions should be inlined.
1415 --enable-sim-jump Jump between semantic code (instead of call/return).
1416 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1417 --enable-sim-model=which Specify PowerPC to model.
1418 --enable-sim-model-issue Specify whether to simulate model specific actions
1419 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1420 --enable-sim-opcode=which Override default opcode lookup.
1421 --enable-sim-packages=list Specify the packages to be included in the build.
b7026657
AC
1422 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
1423 --enable-sim-smp=n Specify number of processors to configure for.
b7026657
AC
1424 --enable-sim-switch Use a switch instead of a table for instruction call.
1425 --enable-sim-timebase Specify whether the PPC timebase is supported.
be2bc30f 1426 --enable-werror treat compile warnings as errors
b7026657
AC
1427 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1428 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
2974be62 1429 --enable-plugins Enable support for plugins
b7026657 1430
6efef468
JM
1431Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1434 --with-system-zlib use installed libz
6efef468 1435
b7026657
AC
1436Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
81ecdfbb 1441 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1442 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1443 you have headers in a nonstandard directory <include dir>
b7026657
AC
1444 CPP C preprocessor
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
81ecdfbb 1449Report bugs to the package provider.
b7026657 1450_ACEOF
81ecdfbb 1451ac_status=$?
b7026657
AC
1452fi
1453
1454if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
b7026657 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
b7026657
AC
1460 ac_builddir=.
1461
81ecdfbb
RW
1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1477
1478case $srcdir in
81ecdfbb 1479 .) # We are building in place.
b7026657 1480 ac_srcdir=.
81ecdfbb
RW
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1484 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1491esac
81ecdfbb
RW
1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1502 else
81ecdfbb
RW
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1506 done
1507fi
1508
81ecdfbb 1509test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1510if $ac_init_version; then
1511 cat <<\_ACEOF
81ecdfbb 1512configure
d0ac1c44 1513generated by GNU Autoconf 2.69
b7026657 1514
d0ac1c44 1515Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
1518_ACEOF
81ecdfbb 1519 exit
b7026657 1520fi
b7026657 1521
81ecdfbb
RW
1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
b7026657 1525
81ecdfbb
RW
1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
b7026657 1530{
81ecdfbb
RW
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553else
1554 $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1556
81ecdfbb
RW
1557 ac_retval=1
1558fi
d0ac1c44
SM
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
b7026657 1561
81ecdfbb 1562} # ac_fn_c_try_compile
b7026657 1563
81ecdfbb
RW
1564# ac_fn_c_try_run LINENO
1565# ----------------------
1566# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1567# that executables *can* be run.
1568ac_fn_c_try_run ()
1569{
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_link"
1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>&5
1579 ac_status=$?
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1582 { { case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_try") 2>&5
1589 ac_status=$?
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; }; }; then :
1592 ac_retval=0
1593else
1594 $as_echo "$as_me: program exited with status $ac_status" >&5
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1597
81ecdfbb
RW
1598 ac_retval=$ac_status
1599fi
1600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
b7026657 1603
81ecdfbb 1604} # ac_fn_c_try_run
b7026657 1605
81ecdfbb
RW
1606# ac_fn_c_try_cpp LINENO
1607# ----------------------
1608# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_cpp ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if { { ac_try="$ac_cpp conftest.$ac_ext"
1613case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1625 fi
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1627 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 }; then :
1631 ac_retval=0
1632else
1633 $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637fi
d0ac1c44
SM
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
81ecdfbb
RW
1640
1641} # ac_fn_c_try_cpp
1642
1643# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644# -------------------------------------------------------
1645# Tests whether HEADER exists and can be compiled using the include files in
1646# INCLUDES, setting the cache variable VAR accordingly.
1647ac_fn_c_check_header_compile ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1652if eval \${$3+:} false; then :
81ecdfbb
RW
1653 $as_echo_n "(cached) " >&6
1654else
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656/* end confdefs.h. */
1657$4
1658#include <$2>
1659_ACEOF
1660if ac_fn_c_try_compile "$LINENO"; then :
1661 eval "$3=yes"
1662else
1663 eval "$3=no"
1664fi
1665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666fi
1667eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669$as_echo "$ac_res" >&6; }
d0ac1c44 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1671
1672} # ac_fn_c_check_header_compile
1673
1674# ac_fn_c_try_link LINENO
1675# -----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_link ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
d0ac1c44 1701 test -x conftest$ac_exeext
81ecdfbb
RW
1702 }; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
81ecdfbb
RW
1717
1718} # ac_fn_c_try_link
1719
81ecdfbb
RW
1720# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1721# -------------------------------------------
1722# Tests whether TYPE exists after having included INCLUDES, setting cache
1723# variable VAR accordingly.
1724ac_fn_c_check_type ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1729if eval \${$3+:} false; then :
81ecdfbb
RW
1730 $as_echo_n "(cached) " >&6
1731else
1732 eval "$3=no"
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h. */
1735$4
1736int
1737main ()
1738{
1739if (sizeof ($2))
1740 return 0;
1741 ;
1742 return 0;
1743}
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748$4
1749int
1750main ()
1751{
1752if (sizeof (($2)))
1753 return 0;
1754 ;
1755 return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759
1760else
1761 eval "$3=yes"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
d0ac1c44 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1771
1772} # ac_fn_c_check_type
81ecdfbb
RW
1773cat >config.log <<_ACEOF
1774This file contains any messages produced by compilers while
1775running configure, to aid debugging if configure makes a mistake.
1776
1777It was created by $as_me, which was
d0ac1c44 1778generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1779
1780 $ $0 $@
1781
1782_ACEOF
1783exec 5>>config.log
1784{
1785cat <<_ASUNAME
1786## --------- ##
1787## Platform. ##
1788## --------- ##
1789
1790hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1791uname -m = `(uname -m) 2>/dev/null || echo unknown`
1792uname -r = `(uname -r) 2>/dev/null || echo unknown`
1793uname -s = `(uname -s) 2>/dev/null || echo unknown`
1794uname -v = `(uname -v) 2>/dev/null || echo unknown`
1795
1796/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1797/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1798
1799/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1800/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1801/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1802/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1803/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1804/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1805/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1806
1807_ASUNAME
1808
1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810for as_dir in $PATH
1811do
1812 IFS=$as_save_IFS
1813 test -z "$as_dir" && as_dir=.
1814 $as_echo "PATH: $as_dir"
1815 done
1816IFS=$as_save_IFS
1817
1818} >&5
1819
1820cat >&5 <<_ACEOF
b7026657
AC
1821
1822
1823## ----------- ##
1824## Core tests. ##
1825## ----------- ##
1826
1827_ACEOF
1828
1829
1830# Keep a trace of the command line.
1831# Strip out --no-create and --no-recursion so they do not pile up.
1832# Strip out --silent because we don't want to record it for future runs.
1833# Also quote any args containing shell meta-characters.
1834# Make two passes to allow for proper duplicate-argument suppression.
1835ac_configure_args=
1836ac_configure_args0=
1837ac_configure_args1=
b7026657
AC
1838ac_must_keep_next=false
1839for ac_pass in 1 2
1840do
1841 for ac_arg
1842 do
1843 case $ac_arg in
1844 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1845 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1846 | -silent | --silent | --silen | --sile | --sil)
1847 continue ;;
81ecdfbb
RW
1848 *\'*)
1849 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1850 esac
1851 case $ac_pass in
81ecdfbb 1852 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1853 2)
81ecdfbb 1854 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1855 if test $ac_must_keep_next = true; then
1856 ac_must_keep_next=false # Got value, back to normal.
1857 else
1858 case $ac_arg in
1859 *=* | --config-cache | -C | -disable-* | --disable-* \
1860 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1861 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1862 | -with-* | --with-* | -without-* | --without-* | --x)
1863 case "$ac_configure_args0 " in
1864 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1865 esac
1866 ;;
1867 -* ) ac_must_keep_next=true ;;
1868 esac
1869 fi
81ecdfbb 1870 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1871 ;;
1872 esac
1873 done
1874done
81ecdfbb
RW
1875{ ac_configure_args0=; unset ac_configure_args0;}
1876{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1877
1878# When interrupted or exit'd, cleanup temporary files, and complete
1879# config.log. We remove comments because anyway the quotes in there
1880# would cause problems or look ugly.
81ecdfbb
RW
1881# WARNING: Use '\'' to represent an apostrophe within the trap.
1882# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1883trap 'exit_status=$?
1884 # Save into config.log some information that might help in debugging.
1885 {
1886 echo
1887
d0ac1c44 1888 $as_echo "## ---------------- ##
b7026657 1889## Cache variables. ##
d0ac1c44 1890## ---------------- ##"
b7026657
AC
1891 echo
1892 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1893(
1894 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1895 eval ac_val=\$$ac_var
1896 case $ac_val in #(
1897 *${as_nl}*)
1898 case $ac_var in #(
1899 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1900$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1901 esac
1902 case $ac_var in #(
1903 _ | IFS | as_nl) ;; #(
1904 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1905 *) { eval $ac_var=; unset $ac_var;} ;;
1906 esac ;;
1907 esac
1908 done
b7026657 1909 (set) 2>&1 |
81ecdfbb
RW
1910 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1911 *${as_nl}ac_space=\ *)
b7026657 1912 sed -n \
81ecdfbb
RW
1913 "s/'\''/'\''\\\\'\'''\''/g;
1914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1915 ;; #(
b7026657 1916 *)
81ecdfbb 1917 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1918 ;;
81ecdfbb
RW
1919 esac |
1920 sort
1921)
b7026657
AC
1922 echo
1923
d0ac1c44 1924 $as_echo "## ----------------- ##
b7026657 1925## Output variables. ##
d0ac1c44 1926## ----------------- ##"
b7026657
AC
1927 echo
1928 for ac_var in $ac_subst_vars
1929 do
81ecdfbb
RW
1930 eval ac_val=\$$ac_var
1931 case $ac_val in
1932 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1933 esac
1934 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1935 done | sort
1936 echo
1937
1938 if test -n "$ac_subst_files"; then
d0ac1c44 1939 $as_echo "## ------------------- ##
81ecdfbb 1940## File substitutions. ##
d0ac1c44 1941## ------------------- ##"
b7026657
AC
1942 echo
1943 for ac_var in $ac_subst_files
1944 do
81ecdfbb
RW
1945 eval ac_val=\$$ac_var
1946 case $ac_val in
1947 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1948 esac
1949 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1950 done | sort
1951 echo
1952 fi
1953
1954 if test -s confdefs.h; then
d0ac1c44 1955 $as_echo "## ----------- ##
b7026657 1956## confdefs.h. ##
d0ac1c44 1957## ----------- ##"
b7026657 1958 echo
81ecdfbb 1959 cat confdefs.h
b7026657
AC
1960 echo
1961 fi
1962 test "$ac_signal" != 0 &&
81ecdfbb
RW
1963 $as_echo "$as_me: caught signal $ac_signal"
1964 $as_echo "$as_me: exit $exit_status"
b7026657 1965 } >&5
81ecdfbb
RW
1966 rm -f core *.core core.conftest.* &&
1967 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1968 exit $exit_status
81ecdfbb 1969' 0
b7026657 1970for ac_signal in 1 2 13 15; do
81ecdfbb 1971 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1972done
1973ac_signal=0
1974
1975# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1976rm -f -r conftest* confdefs.h
1977
1978$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1979
1980# Predefined preprocessor variables.
1981
1982cat >>confdefs.h <<_ACEOF
1983#define PACKAGE_NAME "$PACKAGE_NAME"
1984_ACEOF
1985
b7026657
AC
1986cat >>confdefs.h <<_ACEOF
1987#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1988_ACEOF
1989
b7026657
AC
1990cat >>confdefs.h <<_ACEOF
1991#define PACKAGE_VERSION "$PACKAGE_VERSION"
1992_ACEOF
1993
b7026657
AC
1994cat >>confdefs.h <<_ACEOF
1995#define PACKAGE_STRING "$PACKAGE_STRING"
1996_ACEOF
1997
b7026657
AC
1998cat >>confdefs.h <<_ACEOF
1999#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2000_ACEOF
2001
81ecdfbb
RW
2002cat >>confdefs.h <<_ACEOF
2003#define PACKAGE_URL "$PACKAGE_URL"
2004_ACEOF
2005
b7026657
AC
2006
2007# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2008# Prefer an explicitly selected file to automatically selected ones.
2009ac_site_file1=NONE
2010ac_site_file2=NONE
2011if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2012 # We do not want a PATH search for config.site.
2013 case $CONFIG_SITE in #((
2014 -*) ac_site_file1=./$CONFIG_SITE;;
2015 */*) ac_site_file1=$CONFIG_SITE;;
2016 *) ac_site_file1=./$CONFIG_SITE;;
2017 esac
81ecdfbb
RW
2018elif test "x$prefix" != xNONE; then
2019 ac_site_file1=$prefix/share/config.site
2020 ac_site_file2=$prefix/etc/config.site
2021else
2022 ac_site_file1=$ac_default_prefix/share/config.site
2023 ac_site_file2=$ac_default_prefix/etc/config.site
2024fi
2025for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2026do
2027 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2028 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2030$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2031 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2032 . "$ac_site_file" \
2033 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035as_fn_error $? "failed to load site script $ac_site_file
2036See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2037 fi
2038done
2039
2040if test -r "$cache_file"; then
d0ac1c44
SM
2041 # Some versions of bash will fail to source /dev/null (special files
2042 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2043 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2045$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2046 case $cache_file in
81ecdfbb
RW
2047 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2048 *) . "./$cache_file";;
b7026657
AC
2049 esac
2050 fi
2051else
81ecdfbb
RW
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2053$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2054 >$cache_file
2055fi
2056
2057# Check that the precious variables saved in the cache have kept the same
2058# value.
2059ac_cache_corrupted=false
81ecdfbb 2060for ac_var in $ac_precious_vars; do
b7026657
AC
2061 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2062 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2063 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2064 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2065 case $ac_old_set,$ac_new_set in
2066 set,)
81ecdfbb
RW
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2068$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2069 ac_cache_corrupted=: ;;
2070 ,set)
81ecdfbb
RW
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2072$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2073 ac_cache_corrupted=: ;;
2074 ,);;
2075 *)
2076 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2077 # differences in whitespace do not lead to failure.
2078 ac_old_val_w=`echo x $ac_old_val`
2079 ac_new_val_w=`echo x $ac_new_val`
2080 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2082$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2083 ac_cache_corrupted=:
2084 else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2086$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2087 eval $ac_var=\$ac_old_val
2088 fi
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2090$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2092$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2093 fi;;
2094 esac
2095 # Pass precious variables to config.status.
2096 if test "$ac_new_set" = set; then
2097 case $ac_new_val in
81ecdfbb 2098 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2099 *) ac_arg=$ac_var=$ac_new_val ;;
2100 esac
2101 case " $ac_configure_args " in
2102 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2103 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2104 esac
2105 fi
2106done
2107if $ac_cache_corrupted; then
81ecdfbb
RW
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2111$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2112 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2113fi
81ecdfbb
RW
2114## -------------------- ##
2115## Main body of script. ##
2116## -------------------- ##
b7026657
AC
2117
2118ac_ext=c
2119ac_cpp='$CPP $CPPFLAGS'
2120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122ac_compiler_gnu=$ac_cv_c_compiler_gnu
b7026657 2123
b7026657
AC
2124
2125
2126
2127ac_aux_dir=
81ecdfbb 2128for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2129 if test -f "$ac_dir/install-sh"; then
2130 ac_aux_dir=$ac_dir
2131 ac_install_sh="$ac_aux_dir/install-sh -c"
2132 break
2133 elif test -f "$ac_dir/install.sh"; then
2134 ac_aux_dir=$ac_dir
2135 ac_install_sh="$ac_aux_dir/install.sh -c"
2136 break
2137 elif test -f "$ac_dir/shtool"; then
2138 ac_aux_dir=$ac_dir
2139 ac_install_sh="$ac_aux_dir/shtool install -c"
2140 break
2141 fi
b7026657
AC
2142done
2143if test -z "$ac_aux_dir"; then
d0ac1c44 2144 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 2145fi
81ecdfbb
RW
2146
2147# These three variables are undocumented and unsupported,
2148# and are intended to be withdrawn in a future Autoconf release.
2149# They can cause serious problems if a builder's source tree is in a directory
2150# whose full name contains unusual characters.
2151ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2152ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2153ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2154
b7026657
AC
2155
2156# Find a good install program. We prefer a C program (faster),
2157# so one script is as good as another. But avoid the broken or
2158# incompatible versions:
2159# SysV /etc/install, /usr/sbin/install
2160# SunOS /usr/etc/install
2161# IRIX /sbin/install
2162# AIX /bin/install
2163# AmigaOS /C/install, which installs bootblocks on floppy discs
2164# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2165# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2166# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2167# OS/2's system install, which has a completely different semantic
2168# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
2169# Reject install programs that cannot install multiple files.
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2171$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 2172if test -z "$INSTALL"; then
d0ac1c44 2173if ${ac_cv_path_install+:} false; then :
81ecdfbb 2174 $as_echo_n "(cached) " >&6
b7026657
AC
2175else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2181 # Account for people who put trailing slashes in PATH elements.
2182case $as_dir/ in #((
2183 ./ | .// | /[cC]/* | \
b7026657 2184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2185 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
2186 /usr/ucb/* ) ;;
2187 *)
2188 # OSF1 and SCO ODT 3.0 have their own names for install.
2189 # Don't use installbsd from OSF since it installs stuff as root
2190 # by default.
2191 for ac_prog in ginstall scoinst install; do
2192 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2193 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
b7026657
AC
2194 if test $ac_prog = install &&
2195 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2196 # AIX install. It has an incompatible calling convention.
2197 :
2198 elif test $ac_prog = install &&
2199 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2200 # program-specific install script used by HP pwplus--don't use.
2201 :
2202 else
81ecdfbb
RW
2203 rm -rf conftest.one conftest.two conftest.dir
2204 echo one > conftest.one
2205 echo two > conftest.two
2206 mkdir conftest.dir
2207 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2208 test -s conftest.one && test -s conftest.two &&
2209 test -s conftest.dir/conftest.one &&
2210 test -s conftest.dir/conftest.two
2211 then
2212 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2213 break 3
2214 fi
b7026657
AC
2215 fi
2216 fi
2217 done
2218 done
2219 ;;
2220esac
b7026657 2221
81ecdfbb
RW
2222 done
2223IFS=$as_save_IFS
2224
2225rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
2226
2227fi
2228 if test "${ac_cv_path_install+set}" = set; then
2229 INSTALL=$ac_cv_path_install
2230 else
81ecdfbb
RW
2231 # As a last resort, use the slow shell script. Don't cache a
2232 # value for INSTALL within a source directory, because that will
b7026657 2233 # break other packages using the cache if that directory is
81ecdfbb 2234 # removed, or if the value is a relative name.
b7026657
AC
2235 INSTALL=$ac_install_sh
2236 fi
2237fi
81ecdfbb
RW
2238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2239$as_echo "$INSTALL" >&6; }
b7026657
AC
2240
2241# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2242# It thinks the first close brace ends the variable substitution.
2243test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2244
2245test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2246
2247test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2248
2249ac_ext=c
2250ac_cpp='$CPP $CPPFLAGS'
2251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254if test -n "$ac_tool_prefix"; then
2255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2256set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2258$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2259if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2260 $as_echo_n "(cached) " >&6
c906108c
SS
2261else
2262 if test -n "$CC"; then
2263 ac_cv_prog_CC="$CC" # Let the user override the test.
2264else
b7026657
AC
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
81ecdfbb 2270 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 2272 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2274 break 2
2275 fi
2276done
81ecdfbb
RW
2277 done
2278IFS=$as_save_IFS
b7026657 2279
c906108c
SS
2280fi
2281fi
b7026657 2282CC=$ac_cv_prog_CC
c906108c 2283if test -n "$CC"; then
81ecdfbb
RW
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2285$as_echo "$CC" >&6; }
b7026657 2286else
81ecdfbb
RW
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2288$as_echo "no" >&6; }
b7026657
AC
2289fi
2290
81ecdfbb 2291
b7026657
AC
2292fi
2293if test -z "$ac_cv_prog_CC"; then
2294 ac_ct_CC=$CC
2295 # Extract the first word of "gcc", so it can be a program name with args.
2296set dummy gcc; ac_word=$2
81ecdfbb
RW
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2298$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2299if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2300 $as_echo_n "(cached) " >&6
b7026657
AC
2301else
2302 if test -n "$ac_ct_CC"; then
2303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304else
2305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306for as_dir in $PATH
2307do
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
81ecdfbb 2310 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 2312 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2314 break 2
2315 fi
2316done
81ecdfbb
RW
2317 done
2318IFS=$as_save_IFS
b7026657
AC
2319
2320fi
2321fi
2322ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2325$as_echo "$ac_ct_CC" >&6; }
c906108c 2326else
81ecdfbb
RW
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2328$as_echo "no" >&6; }
b7026657
AC
2329fi
2330
81ecdfbb
RW
2331 if test "x$ac_ct_CC" = x; then
2332 CC=""
2333 else
2334 case $cross_compiling:$ac_tool_warned in
2335yes:)
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2338ac_tool_warned=yes ;;
2339esac
2340 CC=$ac_ct_CC
2341 fi
b7026657
AC
2342else
2343 CC="$ac_cv_prog_CC"
c906108c
SS
2344fi
2345
2346if test -z "$CC"; then
81ecdfbb
RW
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 2349set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2352if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2353 $as_echo_n "(cached) " >&6
b7026657
AC
2354else
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2357else
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
81ecdfbb 2363 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 2365 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2367 break 2
2368 fi
2369done
81ecdfbb
RW
2370 done
2371IFS=$as_save_IFS
b7026657
AC
2372
2373fi
2374fi
2375CC=$ac_cv_prog_CC
2376if test -n "$CC"; then
81ecdfbb
RW
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2378$as_echo "$CC" >&6; }
b7026657 2379else
81ecdfbb
RW
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381$as_echo "no" >&6; }
b7026657
AC
2382fi
2383
b7026657 2384
81ecdfbb 2385 fi
b7026657
AC
2386fi
2387if test -z "$CC"; then
2388 # Extract the first word of "cc", so it can be a program name with args.
2389set dummy cc; ac_word=$2
81ecdfbb
RW
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2392if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2393 $as_echo_n "(cached) " >&6
c906108c
SS
2394else
2395 if test -n "$CC"; then
2396 ac_cv_prog_CC="$CC" # Let the user override the test.
2397else
c906108c 2398 ac_prog_rejected=no
b7026657
AC
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
81ecdfbb 2404 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657
AC
2406 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2407 ac_prog_rejected=yes
2408 continue
2409 fi
2410 ac_cv_prog_CC="cc"
81ecdfbb 2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2412 break 2
2413 fi
2414done
81ecdfbb
RW
2415 done
2416IFS=$as_save_IFS
b7026657 2417
c906108c
SS
2418if test $ac_prog_rejected = yes; then
2419 # We found a bogon in the path, so make sure we never use it.
2420 set dummy $ac_cv_prog_CC
2421 shift
b7026657 2422 if test $# != 0; then
c906108c
SS
2423 # We chose a different compiler from the bogus one.
2424 # However, it has the same basename, so the bogon will be chosen
2425 # first if we set CC to just the basename; use the full file name.
2426 shift
b7026657 2427 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
2428 fi
2429fi
2430fi
2431fi
b7026657 2432CC=$ac_cv_prog_CC
c906108c 2433if test -n "$CC"; then
81ecdfbb
RW
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435$as_echo "$CC" >&6; }
c906108c 2436else
81ecdfbb
RW
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438$as_echo "no" >&6; }
c906108c
SS
2439fi
2440
81ecdfbb 2441
b7026657
AC
2442fi
2443if test -z "$CC"; then
2444 if test -n "$ac_tool_prefix"; then
81ecdfbb 2445 for ac_prog in cl.exe
b7026657
AC
2446 do
2447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2448set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2451if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2452 $as_echo_n "(cached) " >&6
c906108c
SS
2453else
2454 if test -n "$CC"; then
2455 ac_cv_prog_CC="$CC" # Let the user override the test.
2456else
b7026657
AC
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
81ecdfbb 2462 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 2464 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2466 break 2
2467 fi
2468done
81ecdfbb
RW
2469 done
2470IFS=$as_save_IFS
b7026657
AC
2471
2472fi
2473fi
2474CC=$ac_cv_prog_CC
2475if test -n "$CC"; then
81ecdfbb
RW
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2477$as_echo "$CC" >&6; }
b7026657 2478else
81ecdfbb
RW
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480$as_echo "no" >&6; }
b7026657
AC
2481fi
2482
81ecdfbb 2483
b7026657
AC
2484 test -n "$CC" && break
2485 done
2486fi
2487if test -z "$CC"; then
2488 ac_ct_CC=$CC
81ecdfbb 2489 for ac_prog in cl.exe
b7026657
AC
2490do
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
2492set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2495if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2496 $as_echo_n "(cached) " >&6
b7026657
AC
2497else
2498 if test -n "$ac_ct_CC"; then
2499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500else
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
81ecdfbb 2506 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 2508 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2510 break 2
2511 fi
2512done
81ecdfbb
RW
2513 done
2514IFS=$as_save_IFS
b7026657
AC
2515
2516fi
2517fi
2518ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521$as_echo "$ac_ct_CC" >&6; }
b7026657 2522else
81ecdfbb
RW
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524$as_echo "no" >&6; }
b7026657
AC
2525fi
2526
81ecdfbb 2527
b7026657
AC
2528 test -n "$ac_ct_CC" && break
2529done
2530
81ecdfbb
RW
2531 if test "x$ac_ct_CC" = x; then
2532 CC=""
2533 else
2534 case $cross_compiling:$ac_tool_warned in
2535yes:)
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2538ac_tool_warned=yes ;;
2539esac
2540 CC=$ac_ct_CC
2541 fi
b7026657
AC
2542fi
2543
2544fi
2545
2546
81ecdfbb
RW
2547test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2549as_fn_error $? "no acceptable C compiler found in \$PATH
2550See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2551
2552# Provide some information about the compiler.
81ecdfbb
RW
2553$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2554set X $ac_compile
2555ac_compiler=$2
2556for ac_option in --version -v -V -qversion; do
2557 { { ac_try="$ac_compiler $ac_option >&5"
2558case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561esac
2562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563$as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 2565 ac_status=$?
81ecdfbb
RW
2566 if test -s conftest.err; then
2567 sed '10a\
2568... rest of stderr output deleted ...
2569 10q' conftest.err >conftest.er1
2570 cat conftest.er1 >&5
81ecdfbb 2571 fi
d0ac1c44 2572 rm -f conftest.er1 conftest.err
81ecdfbb
RW
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; }
2575done
b7026657 2576
81ecdfbb 2577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2578/* end confdefs.h. */
2579
2580int
2581main ()
2582{
2583
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588ac_clean_files_save=$ac_clean_files
d0ac1c44 2589ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b7026657
AC
2590# Try to create an executable without -o first, disregard a.out.
2591# It will help us diagnose broken compilers, and finding out an intuition
2592# of exeext.
d0ac1c44
SM
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2594$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
2595ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2596
2597# The possible output files:
2598ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2599
2600ac_rmfiles=
2601for ac_file in $ac_files
2602do
2603 case $ac_file in
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2606 esac
2607done
2608rm -f $ac_rmfiles
2609
2610if { { ac_try="$ac_link_default"
2611case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614esac
2615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616$as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_link_default") 2>&5
2618 ac_status=$?
2619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; }; then :
2621 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2622# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2623# in a Makefile. We should not override ac_cv_exeext if it was cached,
2624# so that the user can short-circuit this test for compilers unknown to
2625# Autoconf.
2626for ac_file in $ac_files ''
b7026657
AC
2627do
2628 test -f "$ac_file" || continue
2629 case $ac_file in
81ecdfbb 2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
2631 ;;
2632 [ab].out )
2633 # We found the default executable, but exeext='' is most
2634 # certainly right.
2635 break;;
2636 *.* )
81ecdfbb
RW
2637 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2638 then :; else
2639 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640 fi
2641 # We set ac_cv_exeext here because the later test for it is not
2642 # safe: cross compilers may not add the suffix if given an `-o'
2643 # argument, so we may need to know it at that point already.
2644 # Even if this section looks crufty: it has the advantage of
2645 # actually working.
b7026657
AC
2646 break;;
2647 * )
2648 break;;
2649 esac
2650done
81ecdfbb
RW
2651test "$ac_cv_exeext" = no && ac_cv_exeext=
2652
b7026657 2653else
81ecdfbb
RW
2654 ac_file=''
2655fi
81ecdfbb 2656if test -z "$ac_file"; then :
d0ac1c44
SM
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
2659$as_echo "$as_me: failed program was:" >&5
b7026657
AC
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
81ecdfbb
RW
2662{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2664as_fn_error 77 "C compiler cannot create executables
2665See \`config.log' for more details" "$LINENO" 5; }
2666else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668$as_echo "yes" >&6; }
b7026657 2669fi
d0ac1c44
SM
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2671$as_echo_n "checking for C compiler default output file name... " >&6; }
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2673$as_echo "$ac_file" >&6; }
b7026657 2674ac_exeext=$ac_cv_exeext
b7026657 2675
d0ac1c44 2676rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 2677ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2679$as_echo_n "checking for suffix of executables... " >&6; }
2680if { { ac_try="$ac_link"
2681case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684esac
2685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2686$as_echo "$ac_try_echo"; } >&5
2687 (eval "$ac_link") 2>&5
b7026657 2688 ac_status=$?
81ecdfbb
RW
2689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2690 test $ac_status = 0; }; then :
b7026657
AC
2691 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2692# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2693# work properly (i.e., refer to `conftest.exe'), while it won't with
2694# `rm'.
2695for ac_file in conftest.exe conftest conftest.*; do
2696 test -f "$ac_file" || continue
2697 case $ac_file in
81ecdfbb 2698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 2699 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
2700 break;;
2701 * ) break;;
2702 esac
2703done
c906108c 2704else
81ecdfbb
RW
2705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2707as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2708See \`config.log' for more details" "$LINENO" 5; }
c906108c 2709fi
d0ac1c44 2710rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2712$as_echo "$ac_cv_exeext" >&6; }
c906108c 2713
b7026657
AC
2714rm -f conftest.$ac_ext
2715EXEEXT=$ac_cv_exeext
2716ac_exeext=$EXEEXT
d0ac1c44
SM
2717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718/* end confdefs.h. */
2719#include <stdio.h>
2720int
2721main ()
2722{
2723FILE *f = fopen ("conftest.out", "w");
2724 return ferror (f) || fclose (f) != 0;
2725
2726 ;
2727 return 0;
2728}
2729_ACEOF
2730ac_clean_files="$ac_clean_files conftest.out"
2731# Check that the compiler produces executables we can run. If not, either
2732# the compiler is broken, or we cross compile.
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2734$as_echo_n "checking whether we are cross compiling... " >&6; }
2735if test "$cross_compiling" != yes; then
2736 { { ac_try="$ac_link"
2737case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740esac
2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742$as_echo "$ac_try_echo"; } >&5
2743 (eval "$ac_link") 2>&5
2744 ac_status=$?
2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }
2747 if { ac_try='./conftest$ac_cv_exeext'
2748 { { case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
2752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2753$as_echo "$ac_try_echo"; } >&5
2754 (eval "$ac_try") 2>&5
2755 ac_status=$?
2756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757 test $ac_status = 0; }; }; then
2758 cross_compiling=no
2759 else
2760 if test "$cross_compiling" = maybe; then
2761 cross_compiling=yes
2762 else
2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765as_fn_error $? "cannot run C compiled programs.
2766If you meant to cross compile, use \`--host'.
2767See \`config.log' for more details" "$LINENO" 5; }
2768 fi
2769 fi
2770fi
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2772$as_echo "$cross_compiling" >&6; }
2773
2774rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2775ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2777$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2778if ${ac_cv_objext+:} false; then :
81ecdfbb 2779 $as_echo_n "(cached) " >&6
b7026657 2780else
81ecdfbb 2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2782/* end confdefs.h. */
2783
2784int
2785main ()
2786{
2787
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792rm -f conftest.o conftest.obj
81ecdfbb
RW
2793if { { ac_try="$ac_compile"
2794case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797esac
2798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799$as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_compile") 2>&5
2801 ac_status=$?
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }; then :
2804 for ac_file in conftest.o conftest.obj conftest.*; do
2805 test -f "$ac_file" || continue;
b7026657 2806 case $ac_file in
81ecdfbb 2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
2808 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2809 break;;
2810 esac
2811done
c906108c 2812else
81ecdfbb 2813 $as_echo "$as_me: failed program was:" >&5
b7026657 2814sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2815
81ecdfbb
RW
2816{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2818as_fn_error $? "cannot compute suffix of object files: cannot compile
2819See \`config.log' for more details" "$LINENO" 5; }
c906108c 2820fi
b7026657
AC
2821rm -f conftest.$ac_cv_objext conftest.$ac_ext
2822fi
81ecdfbb
RW
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2824$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
2825OBJEXT=$ac_cv_objext
2826ac_objext=$OBJEXT
81ecdfbb
RW
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2828$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2829if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 2830 $as_echo_n "(cached) " >&6
c906108c 2831else
81ecdfbb 2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2833/* end confdefs.h. */
2834
2835int
2836main ()
2837{
2838#ifndef __GNUC__
2839 choke me
c906108c 2840#endif
c906108c 2841
b7026657
AC
2842 ;
2843 return 0;
2844}
2845_ACEOF
81ecdfbb 2846if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
2847 ac_compiler_gnu=yes
2848else
81ecdfbb 2849 ac_compiler_gnu=no
b7026657 2850fi
81ecdfbb 2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2852ac_cv_c_compiler_gnu=$ac_compiler_gnu
2853
2854fi
81ecdfbb
RW
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2856$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2857if test $ac_compiler_gnu = yes; then
2858 GCC=yes
2859else
2860 GCC=
2861fi
b7026657
AC
2862ac_test_CFLAGS=${CFLAGS+set}
2863ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2865$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2866if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
2867 $as_echo_n "(cached) " >&6
2868else
2869 ac_save_c_werror_flag=$ac_c_werror_flag
2870 ac_c_werror_flag=yes
2871 ac_cv_prog_cc_g=no
2872 CFLAGS="-g"
2873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2874/* end confdefs.h. */
c906108c 2875
b7026657
AC
2876int
2877main ()
2878{
c906108c 2879
b7026657
AC
2880 ;
2881 return 0;
2882}
2883_ACEOF
81ecdfbb 2884if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
2885 ac_cv_prog_cc_g=yes
2886else
81ecdfbb
RW
2887 CFLAGS=""
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890
2891int
2892main ()
2893{
2894
2895 ;
2896 return 0;
2897}
2898_ACEOF
2899if ac_fn_c_try_compile "$LINENO"; then :
2900
2901else
2902 ac_c_werror_flag=$ac_save_c_werror_flag
2903 CFLAGS="-g"
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905/* end confdefs.h. */
2906
2907int
2908main ()
2909{
c906108c 2910
81ecdfbb
RW
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915if ac_fn_c_try_compile "$LINENO"; then :
2916 ac_cv_prog_cc_g=yes
2917fi
2918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919fi
2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2921fi
81ecdfbb
RW
2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 ac_c_werror_flag=$ac_save_c_werror_flag
b7026657 2924fi
81ecdfbb
RW
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2926$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 2927if test "$ac_test_CFLAGS" = set; then
b7026657 2928 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2929elif test $ac_cv_prog_cc_g = yes; then
2930 if test "$GCC" = yes; then
2931 CFLAGS="-g -O2"
2932 else
2933 CFLAGS="-g"
2934 fi
2935else
2936 if test "$GCC" = yes; then
2937 CFLAGS="-O2"
2938 else
2939 CFLAGS=
2940 fi
2941fi
81ecdfbb
RW
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2943$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 2944if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 2945 $as_echo_n "(cached) " >&6
b7026657 2946else
81ecdfbb 2947 ac_cv_prog_cc_c89=no
b7026657 2948ac_save_CC=$CC
81ecdfbb 2949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2950/* end confdefs.h. */
2951#include <stdarg.h>
2952#include <stdio.h>
d0ac1c44 2953struct stat;
b7026657
AC
2954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2955struct buf { int x; };
2956FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957static char *e (p, i)
2958 char **p;
2959 int i;
2960{
2961 return p[i];
2962}
2963static char *f (char * (*g) (char **, int), char **p, ...)
2964{
2965 char *s;
2966 va_list v;
2967 va_start (v,p);
2968 s = g (p, va_arg (v,int));
2969 va_end (v);
2970 return s;
2971}
c906108c 2972
b7026657
AC
2973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2974 function prototypes and stuff, but not '\xHH' hex character constants.
2975 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2976 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
2977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2978 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2979 that's true only with -std. */
b7026657
AC
2980int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981
81ecdfbb
RW
2982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983 inside strings and character constants. */
2984#define FOO(x) 'x'
2985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986
b7026657
AC
2987int test (int i, double x);
2988struct s1 {int (*f) (int a);};
2989struct s2 {int (*f) (double a);};
2990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991int argc;
2992char **argv;
2993int
2994main ()
2995{
2996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 ;
2998 return 0;
2999}
3000_ACEOF
81ecdfbb
RW
3001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3003do
3004 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3005 if ac_fn_c_try_compile "$LINENO"; then :
3006 ac_cv_prog_cc_c89=$ac_arg
b7026657 3007fi
81ecdfbb
RW
3008rm -f core conftest.err conftest.$ac_objext
3009 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3010done
81ecdfbb 3011rm -f conftest.$ac_ext
b7026657 3012CC=$ac_save_CC
c906108c 3013
c906108c 3014fi
81ecdfbb
RW
3015# AC_CACHE_VAL
3016case "x$ac_cv_prog_cc_c89" in
3017 x)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3019$as_echo "none needed" >&6; } ;;
3020 xno)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3022$as_echo "unsupported" >&6; } ;;
b7026657 3023 *)
81ecdfbb
RW
3024 CC="$CC $ac_cv_prog_cc_c89"
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3026$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3027esac
81ecdfbb 3028if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3029
c906108c 3030fi
b7026657 3031
b7026657
AC
3032ac_ext=c
3033ac_cpp='$CPP $CPPFLAGS'
3034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038
3039# Put a plausible default for CC_FOR_BUILD in Makefile.
3040if test "x$cross_compiling" = "xno"; then
3041 CC_FOR_BUILD='$(CC)'
c906108c 3042else
b7026657 3043 CC_FOR_BUILD=gcc
c906108c 3044fi
4b164edf 3045CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
c906108c 3046
b7026657 3047ALL_LINGUAS=
20e95c23
DJ
3048# If we haven't got the data from the intl directory,
3049# assume NLS is disabled.
3050USE_NLS=no
3051LIBINTL=
3052LIBINTL_DEP=
3053INCINTL=
3054XGETTEXT=
3055GMSGFMT=
3056POSUB=
e85e3205 3057
29035cbe
NH
3058if test -f ../../intl/config.intl; then
3059 . ../../intl/config.intl
20e95c23 3060fi
81ecdfbb
RW
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3062$as_echo_n "checking whether NLS is requested... " >&6; }
20e95c23 3063if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
c906108c 3066else
81ecdfbb
RW
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068$as_echo "yes" >&6; }
c906108c 3069
81ecdfbb 3070$as_echo "#define ENABLE_NLS 1" >>confdefs.h
20e95c23
DJ
3071
3072
81ecdfbb
RW
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3074$as_echo_n "checking for catalogs to be installed... " >&6; }
20e95c23
DJ
3075 # Look for .po and .gmo files in the source directory.
3076 CATALOGS=
3077 XLINGUAS=
3078 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3079 # If there aren't any .gmo files the shell will give us the
3080 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3081 # weeded out.
3082 case "$cat" in *\**)
3083 continue;;
3084 esac
3085 # The quadruple backslash is collapsed to a double backslash
3086 # by the backticks, then collapsed again by the double quotes,
3087 # leaving us with one backslash in the sed expression (right
3088 # before the dot that mustn't act as a wildcard).
3089 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3090 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3091 # The user is allowed to set LINGUAS to a list of languages to
3092 # install catalogs for. If it's empty that means "all of them."
3093 if test "x$LINGUAS" = x; then
3094 CATALOGS="$CATALOGS $cat"
3095 XLINGUAS="$XLINGUAS $lang"
3096 else
3097 case "$LINGUAS" in *$lang*)
3098 CATALOGS="$CATALOGS $cat"
3099 XLINGUAS="$XLINGUAS $lang"
3100 ;;
3101 esac
3102 fi
3103 done
3104 LINGUAS="$XLINGUAS"
81ecdfbb
RW
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3106$as_echo "$LINGUAS" >&6; }
20e95c23
DJ
3107
3108
3109 DATADIRNAME=share
3110
3111 INSTOBJEXT=.mo
3112
3113 GENCAT=gencat
3114
3115 CATOBJEXT=.gmo
b7026657 3116
c906108c 3117fi
20e95c23
DJ
3118
3119
ce39bd38
MF
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
3121$as_echo_n "checking whether to enable sim asserts... " >&6; }
3122sim_assert="1"
81ecdfbb
RW
3123# Check whether --enable-sim-assert was given.
3124if test "${enable_sim_assert+set}" = set; then :
3125 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
3126 yes) sim_assert="1";;
3127 no) sim_assert="0";;
d0ac1c44 3128 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
20e95c23 3129esac
81ecdfbb 3130fi
b7026657 3131
ce39bd38
MF
3132cat >>confdefs.h <<_ACEOF
3133#define WITH_ASSERT $sim_assert
3134_ACEOF
3135
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
3137$as_echo "$sim_assert" >&6; }
3138
81ecdfbb
RW
3139
3140# Check whether --enable-sim-bitsize was given.
3141if test "${enable_sim_bitsize+set}" = set; then :
3142 enableval=$enable_sim_bitsize; case "${enableval}" in
20e95c23 3143 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
d0ac1c44 3144 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
20e95c23
DJ
3145esac
3146if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3147 echo "Setting bitsize flags = $sim_bitsize" 6>&1
c906108c 3148fi
b7026657 3149else
20e95c23 3150 sim_bitsize=""
81ecdfbb 3151fi
20e95c23 3152
81ecdfbb 3153
81ecdfbb
RW
3154# Check whether --enable-sim-config was given.
3155if test "${enable_sim_config+set}" = set; then :
3156 enableval=$enable_sim_config; case "${enableval}" in
d0ac1c44 3157 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
20e95c23
DJ
3158 *) if test -f "${srcdir}/${enableval}"; then
3159 sim_config="${enableval}";
3160 elif test -f "${srcdir}/${enableval}-config.h"; then
3161 sim_config="${enableval}-config.h"
3162 else
d0ac1c44 3163 as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5;
20e95c23
DJ
3164 sim_config=std-config.h
3165 fi;;
3166esac
3167if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3168 echo "Setting config flags = $sim_config" 6>&1
b7026657 3169fi
b7026657 3170else
20e95c23
DJ
3171 sim_config="std-config.h"
3172if test x"$silent" != x"yes"; then
3173 echo "Setting config flags = $sim_config" 6>&1
b7026657 3174fi
81ecdfbb
RW
3175fi
3176
c906108c 3177
81ecdfbb
RW
3178# Check whether --enable-sim-decode-mechanism was given.
3179if test "${enable_sim_decode_mechanism+set}" = set; then :
3180 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
d0ac1c44 3181 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
20e95c23 3182 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
d0ac1c44 3183 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
20e95c23
DJ
3184 sim_decode_mechanism="switch";;
3185esac
3186if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3187 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3188fi
b7026657 3189else
20e95c23
DJ
3190 sim_decode_mechanism=""
3191if test x"$silent" != x"yes"; then
3192 echo "Setting decode mechanism flags = $sim_decode_mechanism"
b7026657 3193fi
81ecdfbb
RW
3194fi
3195
b7026657 3196
81ecdfbb
RW
3197# Check whether --enable-sim-default-model was given.
3198if test "${enable_sim_default_model+set}" = set; then :
3199 enableval=$enable_sim_default_model; case "${enableval}" in
d0ac1c44 3200 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
20e95c23
DJ
3201 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3202esac
3203if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3204 echo "Setting default-model flags = $sim_default_model" 6>&1
3205fi
3206else
3207 sim_default_model=""
81ecdfbb
RW
3208fi
3209
b7026657 3210
81ecdfbb
RW
3211# Check whether --enable-sim-duplicate was given.
3212if test "${enable_sim_duplicate+set}" = set; then :
3213 enableval=$enable_sim_duplicate; case "${enableval}" in
20e95c23
DJ
3214 yes) sim_dup="-E";;
3215 no) sim_dup="";;
d0ac1c44 3216 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
20e95c23
DJ
3217esac
3218if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3219 echo "Setting duplicate flags = $sim_dup" 6>&1
3220fi
b7026657 3221else
20e95c23
DJ
3222 sim_dup="-E"
3223if test x"$silent" != x"yes"; then
3224 echo "Setting duplicate flags = $sim_dup" 6>&1
3225fi
81ecdfbb
RW
3226fi
3227
20e95c23 3228
81ecdfbb
RW
3229# Check whether --enable-sim-endian was given.
3230if test "${enable_sim_endian+set}" = set; then :
3231 enableval=$enable_sim_endian; case "${enableval}" in
20e95c23
DJ
3232 yes) case "$target" in
3233 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3234 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3235 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3236 esac;;
3237 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3238 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3239 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
d0ac1c44 3240 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
20e95c23
DJ
3241esac
3242if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3243 echo "Setting endian flags = $sim_endian" 6>&1
3244fi
3245else
3246 sim_endian=""
81ecdfbb
RW
3247fi
3248
20e95c23 3249
81ecdfbb
RW
3250# Check whether --enable-sim-filter was given.
3251if test "${enable_sim_filter+set}" = set; then :
3252 enableval=$enable_sim_filter; case "${enableval}" in
d0ac1c44 3253 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
20e95c23
DJ
3254 no) sim_filter="";;
3255 *) sim_filter="-F $enableval";;
3256esac
3257if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3258 echo "Setting filter flags = $sim_filter" 6>&1
3259fi
3260else
3261 sim_filter="-F 32,f,o"
3262if test x"$silent" != x"yes"; then
3263 echo "Setting filter flags = $sim_filter" 6>&1
3264fi
81ecdfbb 3265fi
20e95c23 3266
81ecdfbb
RW
3267
3268# Check whether --enable-sim-float was given.
3269if test "${enable_sim_float+set}" = set; then :
3270 enableval=$enable_sim_float; case "${enableval}" in
20e95c23
DJ
3271 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3272 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3273 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3274 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
d0ac1c44 3275 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
20e95c23
DJ
3276esac
3277if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3278 echo "Setting float flags = $sim_float" 6>&1
3279fi
3280else
3281
3282case "${target}" in
3283 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3284 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3285 *) sim_float=""
3286esac
3287
81ecdfbb
RW
3288fi
3289
20e95c23 3290
81ecdfbb
RW
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3292$as_echo_n "checking if union semun defined... " >&6; }
d0ac1c44 3293if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
81ecdfbb 3294 $as_echo_n "(cached) " >&6
00a0b122 3295else
81ecdfbb 3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
3297/* end confdefs.h. */
3298
3299#include <sys/types.h>
3300#include <sys/ipc.h>
3301#include <sys/sem.h>
3302int
3303main ()
3304{
3305union semun arg ;
3306 ;
3307 return 0;
3308}
3309_ACEOF
81ecdfbb 3310if ac_fn_c_try_compile "$LINENO"; then :
00a0b122
JS
3311 ac_cv_has_union_semun="yes"
3312else
81ecdfbb 3313 ac_cv_has_union_semun="no"
00a0b122 3314fi
81ecdfbb
RW
3315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3317$as_echo "$ac_cv_has_union_semun" >&6; }
00a0b122
JS
3318
3319fi
81ecdfbb
RW
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3321$as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
00a0b122
JS
3322
3323
3324if test "$ac_cv_has_union_semun" = "yes"; then
81ecdfbb
RW
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3326$as_echo_n "checking whether System V semaphores are supported... " >&6; }
d0ac1c44 3327if ${ac_cv_sysv_sem+:} false; then :
81ecdfbb 3328 $as_echo_n "(cached) " >&6
00a0b122
JS
3329else
3330
81ecdfbb 3331 if test "$cross_compiling" = yes; then :
00a0b122
JS
3332 :
3333else
81ecdfbb 3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
3335/* end confdefs.h. */
3336
3337 #include <sys/types.h>
3338 #include <sys/ipc.h>
3339 #include <sys/sem.h>
3340 int main () {
3341 union semun arg ;
3342
3343 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3344 if (id == -1)
3345 exit(1);
3346 arg.val = 0; /* avoid implicit type cast to union */
3347 if (semctl(id, 0, IPC_RMID, arg) == -1)
3348 exit(1);
3349 exit(0);
3350 }
3351
3352_ACEOF
81ecdfbb 3353if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
3354 ac_cv_sysv_sem="yes"
3355else
81ecdfbb 3356 ac_cv_sysv_sem="no"
00a0b122 3357fi
81ecdfbb
RW
3358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3359 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
3360fi
3361
81ecdfbb 3362
00a0b122 3363fi
81ecdfbb
RW
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3365$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122 3366else # semun is not defined
81ecdfbb
RW
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3368$as_echo_n "checking whether System V semaphores are supported... " >&6; }
d0ac1c44 3369if ${ac_cv_sysv_sem+:} false; then :
81ecdfbb 3370 $as_echo_n "(cached) " >&6
00a0b122
JS
3371else
3372
81ecdfbb 3373 if test "$cross_compiling" = yes; then :
00a0b122
JS
3374 :
3375else
81ecdfbb 3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
3377/* end confdefs.h. */
3378
3379 #include <sys/types.h>
3380 #include <sys/ipc.h>
3381 #include <sys/sem.h>
3382 union semun {
3383 int val;
3384 struct semid_ds *buf;
3385 ushort *array;
3386 };
3387 int main () {
3388 union semun arg ;
3389
3390 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3391 if (id == -1)
3392 exit(1);
3393 arg.val = 0; /* avoid implicit type cast to union */
3394 if (semctl(id, 0, IPC_RMID, arg) == -1)
3395 exit(1);
3396 exit(0);
3397 }
3398
3399_ACEOF
81ecdfbb 3400if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
3401 ac_cv_sysv_sem="yes"
3402else
81ecdfbb 3403 ac_cv_sysv_sem="no"
00a0b122 3404fi
81ecdfbb
RW
3405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3406 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
3407fi
3408
81ecdfbb 3409
00a0b122 3410fi
81ecdfbb
RW
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3412$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122
JS
3413fi
3414
81ecdfbb
RW
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3416$as_echo_n "checking whether System V shared memory is supported... " >&6; }
d0ac1c44 3417if ${ac_cv_sysv_shm+:} false; then :
81ecdfbb 3418 $as_echo_n "(cached) " >&6
00a0b122
JS
3419else
3420
81ecdfbb 3421if test "$cross_compiling" = yes; then :
00a0b122
JS
3422 :
3423else
81ecdfbb 3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
3425/* end confdefs.h. */
3426
3427#include <sys/types.h>
3428#include <sys/ipc.h>
3429#include <sys/shm.h>
3430int main () {
3431 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3432 if (id == -1)
3433 exit(1);
3434 if (shmctl(id, IPC_RMID, 0) == -1)
3435 exit(1);
3436 exit(0);
3437}
3438
3439_ACEOF
81ecdfbb 3440if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
3441 ac_cv_sysv_shm="yes"
3442else
81ecdfbb 3443 ac_cv_sysv_shm="no"
00a0b122 3444fi
81ecdfbb
RW
3445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3446 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
3447fi
3448
81ecdfbb 3449
00a0b122 3450fi
81ecdfbb
RW
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3452$as_echo "$ac_cv_sysv_shm" >&6; }
00a0b122
JS
3453
3454if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3455 sim_sysv_ipc_hw=",sem,shm";
3456else
3457 sim_sysv_ipc_hw="";
3458fi
3459
3460if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
bf0275b1
DE
3461
3462$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3463
00a0b122
JS
3464fi
3465
3466
81ecdfbb
RW
3467# Check whether --enable-sim-hardware was given.
3468if test "${enable_sim_hardware+set}" = set; then :
3469 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
3470case "${enableval}" in
3471 yes) ;;
d0ac1c44 3472 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
20e95c23
DJ
3473 ,*) hardware="${hardware}${enableval}";;
3474 *,) hardware="${enableval}${hardware}";;
3475 *) hardware="${enableval}"'';;
3476esac
3477sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3478sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3479if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3480 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3481fi
3482else
00a0b122 3483 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
3484sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3485sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3486if test x"$silent" != x"yes"; then
3487 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3488fi
81ecdfbb
RW
3489fi
3490
3491# Check whether --enable-sim-hostbitsize was given.
3492if test "${enable_sim_hostbitsize+set}" = set; then :
3493 enableval=$enable_sim_hostbitsize; case "${enableval}" in
20e95c23 3494 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
d0ac1c44 3495 *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
20e95c23
DJ
3496esac
3497if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3498 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3499fi
3500else
3501 sim_hostbitsize=""
20e95c23 3502fi
b7026657 3503
20e95c23 3504
20e95c23
DJ
3505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3511$as_echo_n "checking how to run the C preprocessor... " >&6; }
20e95c23
DJ
3512# On Suns, sometimes $CPP names a directory.
3513if test -n "$CPP" && test -d "$CPP"; then
3514 CPP=
3515fi
3516if test -z "$CPP"; then
d0ac1c44 3517 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 3518 $as_echo_n "(cached) " >&6
c906108c 3519else
20e95c23
DJ
3520 # Double quotes because CPP needs to be expanded
3521 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3522 do
81ecdfbb
RW
3523 ac_preproc_ok=false
3524for ac_c_preproc_warn_flag in '' yes
3525do
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error" is here to catch this case.
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 3533/* end confdefs.h. */
81ecdfbb
RW
3534#ifdef __STDC__
3535# include <limits.h>
20e95c23 3536#else
81ecdfbb 3537# include <assert.h>
20e95c23 3538#endif
81ecdfbb 3539 Syntax error
20e95c23 3540_ACEOF
81ecdfbb 3541if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 3542
81ecdfbb
RW
3543else
3544 # Broken: fails on valid input.
3545continue
b7026657 3546fi
d0ac1c44 3547rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 3548
81ecdfbb
RW
3549 # OK, works on sane cases. Now check whether nonexistent headers
3550 # can be detected and how.
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 3552/* end confdefs.h. */
81ecdfbb 3553#include <ac_nonexistent.h>
20e95c23 3554_ACEOF
81ecdfbb
RW
3555if ac_fn_c_try_cpp "$LINENO"; then :
3556 # Broken: success on invalid input.
3557continue
20e95c23 3558else
81ecdfbb
RW
3559 # Passes both tests.
3560ac_preproc_ok=:
3561break
20e95c23 3562fi
d0ac1c44 3563rm -f conftest.err conftest.i conftest.$ac_ext
058ad269 3564
20e95c23 3565done
81ecdfbb 3566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 3567rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
3568if $ac_preproc_ok; then :
3569 break
35689115 3570fi
35689115 3571
81ecdfbb
RW
3572 done
3573 ac_cv_prog_CPP=$CPP
35689115
HPN
3574
3575fi
81ecdfbb
RW
3576 CPP=$ac_cv_prog_CPP
3577else
3578 ac_cv_prog_CPP=$CPP
35689115 3579fi
81ecdfbb
RW
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3581$as_echo "$CPP" >&6; }
3582ac_preproc_ok=false
3583for ac_c_preproc_warn_flag in '' yes
35689115 3584do
81ecdfbb
RW
3585 # Use a header file that comes with gcc, so configuring glibc
3586 # with a fresh cross-compiler works.
3587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588 # <limits.h> exists even on freestanding compilers.
3589 # On the NeXT, cc -E runs the code through the compiler's parser,
3590 # not just through cpp. "Syntax error" is here to catch this case.
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 3592/* end confdefs.h. */
81ecdfbb
RW
3593#ifdef __STDC__
3594# include <limits.h>
3595#else
3596# include <assert.h>
3597#endif
3598 Syntax error
35689115 3599_ACEOF
81ecdfbb 3600if ac_fn_c_try_cpp "$LINENO"; then :
35689115 3601
81ecdfbb
RW
3602else
3603 # Broken: fails on valid input.
3604continue
35689115 3605fi
d0ac1c44 3606rm -f conftest.err conftest.i conftest.$ac_ext
35689115 3607
81ecdfbb
RW
3608 # OK, works on sane cases. Now check whether nonexistent headers
3609 # can be detected and how.
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 3611/* end confdefs.h. */
81ecdfbb 3612#include <ac_nonexistent.h>
35689115 3613_ACEOF
81ecdfbb
RW
3614if ac_fn_c_try_cpp "$LINENO"; then :
3615 # Broken: success on invalid input.
3616continue
35689115 3617else
81ecdfbb
RW
3618 # Passes both tests.
3619ac_preproc_ok=:
3620break
35689115 3621fi
d0ac1c44 3622rm -f conftest.err conftest.i conftest.$ac_ext
35689115 3623
81ecdfbb
RW
3624done
3625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 3626rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 3627if $ac_preproc_ok; then :
35689115 3628
35689115 3629else
81ecdfbb
RW
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3632as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3633See \`config.log' for more details" "$LINENO" 5; }
35689115 3634fi
35689115 3635
81ecdfbb
RW
3636ac_ext=c
3637ac_cpp='$CPP $CPPFLAGS'
3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_c_compiler_gnu
35689115 3641
35689115 3642
81ecdfbb
RW
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3644$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3645if ${ac_cv_path_GREP+:} false; then :
81ecdfbb
RW
3646 $as_echo_n "(cached) " >&6
3647else
3648 if test -z "$GREP"; then
3649 ac_path_GREP_found=false
3650 # Loop through the user's path and test for each of PROGNAME-LIST
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3653do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_prog in grep ggrep; do
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3659 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
3660# Check for GNU ac_path_GREP and select it if it is found.
3661 # Check for GNU $ac_path_GREP
3662case `"$ac_path_GREP" --version 2>&1` in
3663*GNU*)
3664 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3665*)
3666 ac_count=0
3667 $as_echo_n 0123456789 >"conftest.in"
3668 while :
3669 do
3670 cat "conftest.in" "conftest.in" >"conftest.tmp"
3671 mv "conftest.tmp" "conftest.in"
3672 cp "conftest.in" "conftest.nl"
3673 $as_echo 'GREP' >> "conftest.nl"
3674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3676 as_fn_arith $ac_count + 1 && ac_count=$as_val
3677 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3678 # Best one so far, save it but keep looking for a better one
3679 ac_cv_path_GREP="$ac_path_GREP"
3680 ac_path_GREP_max=$ac_count
3681 fi
3682 # 10*(2^10) chars as input seems more than enough
3683 test $ac_count -gt 10 && break
3684 done
3685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3686esac
35689115 3687
81ecdfbb
RW
3688 $ac_path_GREP_found && break 3
3689 done
3690 done
3691 done
3692IFS=$as_save_IFS
3693 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3694 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
3695 fi
3696else
3697 ac_cv_path_GREP=$GREP
35689115
HPN
3698fi
3699
81ecdfbb
RW
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3702$as_echo "$ac_cv_path_GREP" >&6; }
3703 GREP="$ac_cv_path_GREP"
35689115 3704
35689115 3705
81ecdfbb
RW
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3707$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3708if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb
RW
3709 $as_echo_n "(cached) " >&6
3710else
3711 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3712 then ac_cv_path_EGREP="$GREP -E"
3713 else
3714 if test -z "$EGREP"; then
3715 ac_path_EGREP_found=false
3716 # Loop through the user's path and test for each of PROGNAME-LIST
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3719do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_prog in egrep; do
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3725 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
3726# Check for GNU ac_path_EGREP and select it if it is found.
3727 # Check for GNU $ac_path_EGREP
3728case `"$ac_path_EGREP" --version 2>&1` in
3729*GNU*)
3730 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3731*)
3732 ac_count=0
3733 $as_echo_n 0123456789 >"conftest.in"
3734 while :
3735 do
3736 cat "conftest.in" "conftest.in" >"conftest.tmp"
3737 mv "conftest.tmp" "conftest.in"
3738 cp "conftest.in" "conftest.nl"
3739 $as_echo 'EGREP' >> "conftest.nl"
3740 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3742 as_fn_arith $ac_count + 1 && ac_count=$as_val
3743 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3744 # Best one so far, save it but keep looking for a better one
3745 ac_cv_path_EGREP="$ac_path_EGREP"
3746 ac_path_EGREP_max=$ac_count
3747 fi
3748 # 10*(2^10) chars as input seems more than enough
3749 test $ac_count -gt 10 && break
3750 done
3751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35689115
HPN
3752esac
3753
81ecdfbb
RW
3754 $ac_path_EGREP_found && break 3
3755 done
3756 done
3757 done
3758IFS=$as_save_IFS
3759 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3760 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
3761 fi
3762else
3763 ac_cv_path_EGREP=$EGREP
3764fi
3765
3766 fi
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3769$as_echo "$ac_cv_path_EGREP" >&6; }
3770 EGREP="$ac_cv_path_EGREP"
35689115
HPN
3771
3772
81ecdfbb
RW
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3774$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3775if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
3776 $as_echo_n "(cached) " >&6
3777else
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779/* end confdefs.h. */
3780#include <stdlib.h>
3781#include <stdarg.h>
3782#include <string.h>
3783#include <float.h>
c906108c 3784
b7026657
AC
3785int
3786main ()
3787{
81ecdfbb 3788
b7026657
AC
3789 ;
3790 return 0;
3791}
3792_ACEOF
81ecdfbb
RW
3793if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_cv_header_stdc=yes
b7026657 3795else
81ecdfbb
RW
3796 ac_cv_header_stdc=no
3797fi
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3799
81ecdfbb
RW
3800if test $ac_cv_header_stdc = yes; then
3801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3803/* end confdefs.h. */
81ecdfbb
RW
3804#include <string.h>
3805
b7026657 3806_ACEOF
81ecdfbb
RW
3807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "memchr" >/dev/null 2>&1; then :
b7026657 3809
81ecdfbb
RW
3810else
3811 ac_cv_header_stdc=no
b7026657 3812fi
81ecdfbb 3813rm -f conftest*
b7026657 3814
81ecdfbb 3815fi
b7026657 3816
81ecdfbb
RW
3817if test $ac_cv_header_stdc = yes; then
3818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h. */
3821#include <stdlib.h>
b7026657 3822
b7026657 3823_ACEOF
81ecdfbb
RW
3824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3825 $EGREP "free" >/dev/null 2>&1; then :
c906108c 3826
81ecdfbb
RW
3827else
3828 ac_cv_header_stdc=no
c906108c 3829fi
81ecdfbb 3830rm -f conftest*
c906108c 3831
81ecdfbb 3832fi
c906108c 3833
81ecdfbb
RW
3834if test $ac_cv_header_stdc = yes; then
3835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3836 if test "$cross_compiling" = yes; then :
3837 :
b7026657 3838else
81ecdfbb 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3840/* end confdefs.h. */
81ecdfbb
RW
3841#include <ctype.h>
3842#include <stdlib.h>
3843#if ((' ' & 0x0FF) == 0x020)
3844# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3845# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3846#else
3847# define ISLOWER(c) \
3848 (('a' <= (c) && (c) <= 'i') \
3849 || ('j' <= (c) && (c) <= 'r') \
3850 || ('s' <= (c) && (c) <= 'z'))
3851# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3852#endif
b7026657 3853
81ecdfbb 3854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3855int
3856main ()
3857{
81ecdfbb
RW
3858 int i;
3859 for (i = 0; i < 256; i++)
3860 if (XOR (islower (i), ISLOWER (i))
3861 || toupper (i) != TOUPPER (i))
3862 return 2;
b7026657
AC
3863 return 0;
3864}
3865_ACEOF
81ecdfbb 3866if ac_fn_c_try_run "$LINENO"; then :
b7026657 3867
81ecdfbb
RW
3868else
3869 ac_cv_header_stdc=no
3870fi
3871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3872 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 3873fi
81ecdfbb 3874
b7026657 3875fi
b7026657 3876fi
81ecdfbb
RW
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3878$as_echo "$ac_cv_header_stdc" >&6; }
3879if test $ac_cv_header_stdc = yes; then
b7026657 3880
81ecdfbb 3881$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 3882
81ecdfbb 3883fi
b7026657 3884
81ecdfbb
RW
3885# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3886for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3887 inttypes.h stdint.h unistd.h
3888do :
3889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3890ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3891"
d0ac1c44 3892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
3893 cat >>confdefs.h <<_ACEOF
3894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657 3895_ACEOF
c906108c 3896
c906108c
SS
3897fi
3898
81ecdfbb
RW
3899done
3900
b7026657 3901
81ecdfbb
RW
3902# Check whether --enable-sim-hostendian was given.
3903if test "${enable_sim_hostendian+set}" = set; then :
3904 enableval=$enable_sim_hostendian; case "${enableval}" in
3905 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
3906 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3907 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
d0ac1c44 3908 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
81ecdfbb
RW
3909esac
3910if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
3911 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3912fi
3913else
b7026657 3914
81ecdfbb
RW
3915if test "x$cross_compiling" = "xno"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3917$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 3918if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 3919 $as_echo_n "(cached) " >&6
b7026657 3920else
81ecdfbb
RW
3921 ac_cv_c_bigendian=unknown
3922 # See if we're dealing with a universal compiler.
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3924/* end confdefs.h. */
81ecdfbb
RW
3925#ifndef __APPLE_CC__
3926 not a universal capable compiler
3927 #endif
3928 typedef int dummy;
3929
3930_ACEOF
3931if ac_fn_c_try_compile "$LINENO"; then :
3932
3933 # Check for potential -arch flags. It is not universal unless
3934 # there are at least two -arch flags with different values.
3935 ac_arch=
3936 ac_prev=
3937 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3938 if test -n "$ac_prev"; then
3939 case $ac_word in
3940 i?86 | x86_64 | ppc | ppc64)
3941 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3942 ac_arch=$ac_word
3943 else
3944 ac_cv_c_bigendian=universal
3945 break
3946 fi
3947 ;;
3948 esac
3949 ac_prev=
3950 elif test "x$ac_word" = "x-arch"; then
3951 ac_prev=arch
3952 fi
3953 done
3954fi
3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 if test $ac_cv_c_bigendian = unknown; then
3957 # See if sys/param.h defines the BYTE_ORDER macro.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959/* end confdefs.h. */
3960#include <sys/types.h>
3961 #include <sys/param.h>
3962
b7026657
AC
3963int
3964main ()
3965{
81ecdfbb
RW
3966#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3967 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3968 && LITTLE_ENDIAN)
3969 bogus endian macros
3970 #endif
3971
b7026657
AC
3972 ;
3973 return 0;
3974}
3975_ACEOF
81ecdfbb
RW
3976if ac_fn_c_try_compile "$LINENO"; then :
3977 # It does; now see whether it defined to BIG_ENDIAN or not.
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3979/* end confdefs.h. */
81ecdfbb
RW
3980#include <sys/types.h>
3981 #include <sys/param.h>
3982
b7026657
AC
3983int
3984main ()
3985{
81ecdfbb
RW
3986#if BYTE_ORDER != BIG_ENDIAN
3987 not big endian
3988 #endif
3989
b7026657
AC
3990 ;
3991 return 0;
3992}
3993_ACEOF
81ecdfbb
RW
3994if ac_fn_c_try_compile "$LINENO"; then :
3995 ac_cv_c_bigendian=yes
b7026657 3996else
81ecdfbb 3997 ac_cv_c_bigendian=no
b7026657 3998fi
81ecdfbb 3999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4000fi
81ecdfbb
RW
4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 fi
4003 if test $ac_cv_c_bigendian = unknown; then
4004 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h. */
4007#include <limits.h>
c906108c 4008
81ecdfbb
RW
4009int
4010main ()
4011{
4012#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4013 bogus endian macros
4014 #endif
b7026657 4015
81ecdfbb
RW
4016 ;
4017 return 0;
4018}
b7026657 4019_ACEOF
81ecdfbb
RW
4020if ac_fn_c_try_compile "$LINENO"; then :
4021 # It does; now see whether it defined to _BIG_ENDIAN or not.
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4023/* end confdefs.h. */
81ecdfbb 4024#include <limits.h>
b7026657
AC
4025
4026int
4027main ()
4028{
81ecdfbb
RW
4029#ifndef _BIG_ENDIAN
4030 not big endian
4031 #endif
4032
b7026657
AC
4033 ;
4034 return 0;
4035}
4036_ACEOF
81ecdfbb
RW
4037if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_c_bigendian=yes
c906108c 4039else
81ecdfbb 4040 ac_cv_c_bigendian=no
c906108c 4041fi
81ecdfbb 4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4043fi
81ecdfbb
RW
4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 fi
4046 if test $ac_cv_c_bigendian = unknown; then
4047 # Compile a test program.
4048 if test "$cross_compiling" = yes; then :
4049 # Try to guess by grepping values from an object file.
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4051/* end confdefs.h. */
81ecdfbb
RW
4052short int ascii_mm[] =
4053 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4054 short int ascii_ii[] =
4055 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4056 int use_ascii (int i) {
4057 return ascii_mm[i] + ascii_ii[i];
4058 }
4059 short int ebcdic_ii[] =
4060 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4061 short int ebcdic_mm[] =
4062 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4063 int use_ebcdic (int i) {
4064 return ebcdic_mm[i] + ebcdic_ii[i];
4065 }
4066 extern int foo;
b7026657
AC
4067
4068int
4069main ()
4070{
81ecdfbb 4071return use_ascii (foo) == use_ebcdic (foo);
b7026657
AC
4072 ;
4073 return 0;
4074}
4075_ACEOF
81ecdfbb
RW
4076if ac_fn_c_try_compile "$LINENO"; then :
4077 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4078 ac_cv_c_bigendian=yes
4079 fi
4080 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4081 if test "$ac_cv_c_bigendian" = unknown; then
4082 ac_cv_c_bigendian=no
4083 else
4084 # finding both strings is unlikely to happen, but who knows?
4085 ac_cv_c_bigendian=unknown
4086 fi
4087 fi
4088fi
4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4092/* end confdefs.h. */
81ecdfbb 4093$ac_includes_default
b7026657
AC
4094int
4095main ()
4096{
81ecdfbb
RW
4097
4098 /* Are we little or big endian? From Harbison&Steele. */
4099 union
4100 {
4101 long int l;
4102 char c[sizeof (long int)];
4103 } u;
4104 u.l = 1;
4105 return u.c[sizeof (long int) - 1] == 1;
4106
b7026657
AC
4107 ;
4108 return 0;
4109}
4110_ACEOF
81ecdfbb
RW
4111if ac_fn_c_try_run "$LINENO"; then :
4112 ac_cv_c_bigendian=no
b7026657 4113else
81ecdfbb
RW
4114 ac_cv_c_bigendian=yes
4115fi
4116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4117 conftest.$ac_objext conftest.beam conftest.$ac_ext
4118fi
4119
4120 fi
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4123$as_echo "$ac_cv_c_bigendian" >&6; }
4124 case $ac_cv_c_bigendian in #(
4125 yes)
4126 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4127;; #(
4128 no)
4129 ;; #(
4130 universal)
4131
4132$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
b7026657 4133
81ecdfbb
RW
4134 ;; #(
4135 *)
d0ac1c44 4136 as_fn_error $? "unknown endianness
81ecdfbb
RW
4137 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4138 esac
4139
4140 if test $ac_cv_c_bigendian = yes; then
4141 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4142 else
4143 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4144 fi
4145else
4146 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4147fi
4148fi
4149
4150
4151# Check whether --enable-sim-icache was given.
4152if test "${enable_sim_icache+set}" = set; then :
4153 enableval=$enable_sim_icache; icache="-R"
4154 case "${enableval}" in
4155 yes) icache="1024"; sim_icache="-I $icache";;
4156 no) sim_icache="-R";;
4157 *) icache=1024
4158 sim_icache="-"
4159 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4160 case "$x" in
4161 define) sim_icache="${sim_icache}R";;
4162 semantic) sim_icache="${sim_icache}C";;
4163 insn) sim_icache="${sim_icache}S";;
4164 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
d0ac1c44 4165 *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
81ecdfbb
RW
4166 esac
4167 done
4168 sim_icache="${sim_icache}I $icache";;
4169esac
4170if test x"$silent" != x"yes" && test x"$icache" != x""; then
4171 echo "Setting instruction cache size to $icache ($sim_icache)"
b7026657 4172fi
81ecdfbb
RW
4173else
4174 sim_icache="-CSRI 1024"
4175if test x"$silent" != x"yes"; then
4176 echo "Setting instruction cache size to 1024 ($sim_icache)"
b7026657 4177fi
b7026657 4178fi
b7026657
AC
4179
4180
81ecdfbb
RW
4181# Check whether --enable-sim-inline was given.
4182if test "${enable_sim_inline+set}" = set; then :
4183 enableval=$enable_sim_inline; sim_inline=""
4184case "$enableval" in
4185 no) sim_inline="-DDEFAULT_INLINE=0";;
4186 0) sim_inline="-DDEFAULT_INLINE=0";;
4187 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
4188 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4189 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4190 new_flag=""
4191 case "$x" in
4192 *_INLINE=*) new_flag="-D$x";;
4193 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4194 *_INLINE) new_flag="-D$x=ALL_INLINE";;
4195 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
4196 esac
4197 if test x"$sim_inline" = x""; then
4198 sim_inline="$new_flag"
4199 else
4200 sim_inline="$sim_inline $new_flag"
4201 fi
4202 done;;
4203esac
4204if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4205 echo "Setting inline flags = $sim_inline" 6>&1
b7026657 4206fi
c906108c 4207else
81ecdfbb
RW
4208 if test x"$GCC" != ""; then
4209 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4210 if test x"$silent" != x"yes"; then
4211 echo "Setting inline flags = $sim_inline" 6>&1
4212 fi
c906108c 4213else
81ecdfbb 4214 sim_inline=""
c906108c 4215fi
c906108c 4216fi
b7026657 4217
c906108c 4218
81ecdfbb
RW
4219# Check whether --enable-sim-jump was given.
4220if test "${enable_sim_jump+set}" = set; then :
4221 enableval=$enable_sim_jump; case "${enableval}" in
4222 yes) sim_jump="-J";;
4223 no) sim_jump="";;
d0ac1c44 4224 *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
81ecdfbb
RW
4225esac
4226if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
4227 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 4228fi
c906108c 4229else
81ecdfbb
RW
4230 sim_jump=""
4231if test x"$silent" != x"yes"; then
4232 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 4233fi
c906108c 4234fi
c906108c 4235
b7026657 4236
81ecdfbb
RW
4237# Check whether --enable-sim-line-nr was given.
4238if test "${enable_sim_line_nr+set}" = set; then :
4239 enableval=$enable_sim_line_nr; case "${enableval}" in
4240 yes) sim_line_nr="";;
4241 no) sim_line_nr="-L";;
d0ac1c44 4242 *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
81ecdfbb
RW
4243esac
4244if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
4245 echo "Setting warning flags = $sim_line_nr" 6>&1
c906108c 4246fi
c906108c 4247else
81ecdfbb
RW
4248 sim_line_nr=""
4249fi
b7026657 4250
c906108c 4251
81ecdfbb
RW
4252# Check whether --enable-sim-model was given.
4253if test "${enable_sim_model+set}" = set; then :
4254 enableval=$enable_sim_model; case "${enableval}" in
d0ac1c44 4255 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
81ecdfbb
RW
4256 *) sim_model="-DWITH_MODEL=${enableval}";;
4257esac
4258if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
4259 echo "Setting model flags = $sim_model" 6>&1
4260fi
c906108c 4261else
81ecdfbb
RW
4262 sim_model=""
4263fi
4264
b7026657 4265
81ecdfbb
RW
4266# Check whether --enable-sim-model-issue was given.
4267if test "${enable_sim_model_issue+set}" = set; then :
4268 enableval=$enable_sim_model_issue; case "${enableval}" in
4269 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4270 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
d0ac1c44 4271 *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
81ecdfbb
RW
4272esac
4273if test x"$silent" != x"yes"; then
4274 echo "Setting model-issue flags = $sim_model_issue" 6>&1
c906108c 4275fi
81ecdfbb
RW
4276else
4277 sim_model_issue=""
c906108c 4278fi
b7026657 4279
81ecdfbb
RW
4280
4281# Check whether --enable-sim-monitor was given.
4282if test "${enable_sim_monitor+set}" = set; then :
4283 enableval=$enable_sim_monitor; case "${enableval}" in
4284 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4285 no) sim_monitor="-DWITH_MON=0";;
4286 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4287 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
5629cf2b 4288 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;;
81ecdfbb
RW
4289esac
4290if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
4291 echo "Setting monitor flags = $sim_monitor" 6>&1
4292fi
c906108c 4293else
81ecdfbb 4294 sim_monitor=""
c906108c 4295fi
c906108c 4296
81ecdfbb
RW
4297
4298# Check whether --enable-sim-opcode was given.
4299if test "${enable_sim_opcode+set}" = set; then :
4300 enableval=$enable_sim_opcode; case "${enableval}" in
d0ac1c44 4301 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
81ecdfbb
RW
4302 *) if test -f "${srcdir}/${enableval}"; then
4303 sim_opcode="${enableval}"
4304 elif test -f "${srcdir}/dc-${enableval}"; then
4305 sim_opcode="dc-${enableval}"
4306 else
d0ac1c44 4307 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
81ecdfbb
RW
4308 sim_opcode="dc-complex"
4309 fi;;
4310esac
4311if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
4312 echo "Setting opcode flags = $sim_opcode" 6>&1
4313fi
4314else
4315 sim_opcode="dc-complex"
4316if test x"$silent" != x"yes"; then
4317 echo "Setting opcode flags = $sim_opcode"
c906108c
SS
4318fi
4319fi
c906108c
SS
4320
4321
81ecdfbb
RW
4322# Check whether --enable-sim-packages was given.
4323if test "${enable_sim_packages+set}" = set; then :
4324 enableval=$enable_sim_packages; packages=disklabel
4325case "${enableval}" in
4326 yes) ;;
d0ac1c44 4327 no) as_fn_error $? "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
81ecdfbb
RW
4328 ,*) packages="${packages}${enableval}";;
4329 *,) packages="${enableval}${packages}";;
4330 *) packages="${enableval}"'';;
4331esac
4332sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4333sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4334if test x"$silent" != x"yes" && test x"$packages" != x""; then
4335 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4336fi
c906108c 4337else
81ecdfbb
RW
4338 packages=disklabel
4339sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4340sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4341if test x"$silent" != x"yes"; then
4342 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
b7026657 4343fi
c906108c 4344fi
b7026657 4345
c906108c 4346
81ecdfbb
RW
4347# Check whether --enable-sim-reserved-bits was given.
4348if test "${enable_sim_reserved_bits+set}" = set; then :
4349 enableval=$enable_sim_reserved_bits; case "${enableval}" in
4350 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
4351 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
d0ac1c44 4352 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
81ecdfbb
RW
4353esac
4354if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
4355 echo "Setting reserved flags = $sim_reserved" 6>&1
4356fi
4357else
4358 sim_reserved=""
b7026657 4359fi
81ecdfbb
RW
4360
4361
4362# Check whether --enable-sim-smp was given.
4363if test "${enable_sim_smp+set}" = set; then :
4364 enableval=$enable_sim_smp; case "${enableval}" in
4365 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
4366 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
4367 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
4368esac
4369if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
4370 echo "Setting smp flags = $sim_smp" 6>&1
c906108c 4371fi
b7026657 4372else
81ecdfbb
RW
4373 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
4374if test x"$silent" != x"yes"; then
4375 echo "Setting smp flags = $sim_smp" 6>&1
4376fi
c906108c
SS
4377fi
4378
c906108c 4379
81ecdfbb
RW
4380# Check whether --enable-sim-switch was given.
4381if test "${enable_sim_switch+set}" = set; then :
4382 enableval=$enable_sim_switch; case "${enableval}" in
4383 yes) sim_switch="-s";;
4384 no) sim_switch="";;
d0ac1c44 4385 *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
81ecdfbb
RW
4386esac
4387if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
4388 echo "Setting switch flags = $sim_switch" 6>&1
4389fi
4390else
4391 sim_switch="";
4392if test x"$silent" != x"yes"; then
4393 echo "Setting switch flags = $sim_switch" 6>&1
c906108c 4394fi
c906108c 4395fi
c906108c
SS
4396
4397
81ecdfbb
RW
4398# Check whether --enable-sim-timebase was given.
4399if test "${enable_sim_timebase+set}" = set; then :
4400 enableval=$enable_sim_timebase; case "${enableval}" in
4401 yes) sim_timebase="-DWITH_TIME_BASE=1";;
4402 no) sim_timebase="-DWITH_TIME_BASE=0";;
d0ac1c44 4403 *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
81ecdfbb
RW
4404esac
4405if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
4406 echo "Setting timebase flags = $sim_timebase" 6>&1
4407fi
c906108c 4408else
81ecdfbb 4409 sim_timebase=""
c906108c 4410fi
81ecdfbb
RW
4411
4412
be2bc30f
MF
4413# Check whether --enable-werror was given.
4414if test "${enable_werror+set}" = set; then :
4415 enableval=$enable_werror; case "${enableval}" in
4416 yes | y) ERROR_ON_WARNING="yes" ;;
4417 no | n) ERROR_ON_WARNING="no" ;;
4418 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4419 esac
4420fi
4421
4422# Enable -Werror by default when using gcc
4423if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4424 ERROR_ON_WARNING=yes
4425fi
4426WERROR_CFLAGS=""
4427if test "${ERROR_ON_WARNING}" = yes ; then
4428 WERROR_CFLAGS="-Werror"
4429fi
c5b349e1
MF
4430case "${host}" in
4431 *-*-mingw32*) WERROR_CFLAGS="$WERROR_CFLAGS -Wno-format" ;;
4432esac
be2bc30f
MF
4433
4434
81ecdfbb
RW
4435# Check whether --enable-sim-warnings was given.
4436if test "${enable_sim_warnings+set}" = set; then :
4437 enableval=$enable_sim_warnings; case "${enableval}" in
4438 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
4439 no) sim_warnings="-w";;
4440 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4441esac
4442if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
4443 echo "Setting warning flags = $sim_warnings" 6>&1
c906108c 4444fi
c906108c 4445else
81ecdfbb
RW
4446 sim_warnings=""
4447fi
b7026657 4448
81ecdfbb
RW
4449
4450# Check whether --enable-sim-xor-endian was given.
4451if test "${enable_sim_xor_endian+set}" = set; then :
4452 enableval=$enable_sim_xor_endian; case "${enableval}" in
4453 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
4454 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
4455 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
4456esac
4457if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
4458 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
4459fi
c906108c 4460else
81ecdfbb 4461 sim_xor_endian=""
c906108c 4462fi
c906108c 4463
b7026657 4464
81ecdfbb
RW
4465# Make sure we can run config.sub.
4466$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 4467 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4470$as_echo_n "checking build system type... " >&6; }
d0ac1c44 4471if ${ac_cv_build+:} false; then :
81ecdfbb
RW
4472 $as_echo_n "(cached) " >&6
4473else
4474 ac_build_alias=$build_alias
4475test "x$ac_build_alias" = x &&
4476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4477test "x$ac_build_alias" = x &&
d0ac1c44 4478 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 4479ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 4480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
4481
4482fi
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4484$as_echo "$ac_cv_build" >&6; }
4485case $ac_cv_build in
4486*-*-*) ;;
d0ac1c44 4487*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb
RW
4488esac
4489build=$ac_cv_build
4490ac_save_IFS=$IFS; IFS='-'
4491set x $ac_cv_build
4492shift
4493build_cpu=$1
4494build_vendor=$2
4495shift; shift
4496# Remember, the first character of IFS is used to create $*,
4497# except with old shells:
4498build_os=$*
4499IFS=$ac_save_IFS
4500case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657
AC
4501
4502
81ecdfbb
RW
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4504$as_echo_n "checking host system type... " >&6; }
d0ac1c44 4505if ${ac_cv_host+:} false; then :
81ecdfbb
RW
4506 $as_echo_n "(cached) " >&6
4507else
4508 if test "x$host_alias" = x; then
4509 ac_cv_host=$ac_cv_build
4510else
4511 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 4512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 4513fi
b7026657 4514
81ecdfbb
RW
4515fi
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4517$as_echo "$ac_cv_host" >&6; }
4518case $ac_cv_host in
4519*-*-*) ;;
d0ac1c44 4520*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb
RW
4521esac
4522host=$ac_cv_host
4523ac_save_IFS=$IFS; IFS='-'
4524set x $ac_cv_host
4525shift
4526host_cpu=$1
4527host_vendor=$2
4528shift; shift
4529# Remember, the first character of IFS is used to create $*,
4530# except with old shells:
4531host_os=$*
4532IFS=$ac_save_IFS
4533case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
b7026657
AC
4534
4535
81ecdfbb
RW
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4537$as_echo_n "checking target system type... " >&6; }
d0ac1c44 4538if ${ac_cv_target+:} false; then :
81ecdfbb
RW
4539 $as_echo_n "(cached) " >&6
4540else
4541 if test "x$target_alias" = x; then
4542 ac_cv_target=$ac_cv_host
4543else
4544 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 4545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 4546fi
b7026657 4547
81ecdfbb
RW
4548fi
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4550$as_echo "$ac_cv_target" >&6; }
4551case $ac_cv_target in
4552*-*-*) ;;
d0ac1c44 4553*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb
RW
4554esac
4555target=$ac_cv_target
4556ac_save_IFS=$IFS; IFS='-'
4557set x $ac_cv_target
4558shift
4559target_cpu=$1
4560target_vendor=$2
4561shift; shift
4562# Remember, the first character of IFS is used to create $*,
4563# except with old shells:
4564target_os=$*
4565IFS=$ac_save_IFS
4566case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b7026657
AC
4567
4568
81ecdfbb
RW
4569# The aliases save the names the user supplied, while $host etc.
4570# will get canonicalized.
4571test -n "$target_alias" &&
4572 test "$program_prefix$program_suffix$program_transform_name" = \
4573 NONENONEs,x,x, &&
4574 program_prefix=${target_alias}-
b7026657 4575
81ecdfbb
RW
4576test "$program_prefix" != NONE &&
4577 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4578# Use a double $ so make ignores it.
4579test "$program_suffix" != NONE &&
4580 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4581# Double any \ or $.
4582# By default was `s,x,x', remove it if useless.
4583ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4584program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b7026657
AC
4585
4586
81ecdfbb
RW
4587# BFD conditionally uses zlib, so we must link it in if libbfd does, by
4588# using the same condition.
5912fadd 4589
aadc9410 4590 # Use the system's zlib library.
7fed4b0b
L
4591 zlibdir="-L\$(top_builddir)/../zlib"
4592 zlibinc="-I\$(top_srcdir)/../zlib"
5912fadd 4593
aadc9410
MF
4594# Check whether --with-system-zlib was given.
4595if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
4596 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
4597 zlibdir=
4598 zlibinc=
4599 fi
b7026657 4600
81ecdfbb 4601fi
b7026657 4602
b7026657
AC
4603
4604
5912fadd 4605
b7026657 4606
2974be62
AM
4607# BFD uses libdl when when plugins enabled.
4608
4609 maybe_plugins=no
4610 for ac_header in dlfcn.h
4611do :
4612 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4613"
d0ac1c44 4614if test "x$ac_cv_header_dlfcn_h" = xyes; then :
2974be62
AM
4615 cat >>confdefs.h <<_ACEOF
4616#define HAVE_DLFCN_H 1
4617_ACEOF
4618 maybe_plugins=yes
4619fi
4620
4621done
4622
4623 for ac_header in windows.h
4624do :
4625 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4626"
d0ac1c44 4627if test "x$ac_cv_header_windows_h" = xyes; then :
2974be62
AM
4628 cat >>confdefs.h <<_ACEOF
4629#define HAVE_WINDOWS_H 1
4630_ACEOF
4631 maybe_plugins=yes
4632fi
4633
4634done
4635
4636
4637 # Check whether --enable-plugins was given.
4638if test "${enable_plugins+set}" = set; then :
4639 enableval=$enable_plugins; case "${enableval}" in
4640 no) plugins=no ;;
4641 *) plugins=yes
4642 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 4643 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
2974be62
AM
4644 fi ;;
4645 esac
4646else
4647 plugins=$maybe_plugins
4648
4649fi
4650
4651 if test "$plugins" = "yes"; then
37f980dc
SM
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4653$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 4654if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
4655 $as_echo_n "(cached) " >&6
4656else
4657 ac_func_search_save_LIBS=$LIBS
4658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h. */
4660
4661/* Override any GCC internal prototype to avoid an error.
4662 Use char because int might match the return type of a GCC
4663 builtin and then its argument prototype would still apply. */
4664#ifdef __cplusplus
4665extern "C"
4666#endif
37f980dc 4667char dlsym ();
2974be62
AM
4668int
4669main ()
4670{
37f980dc 4671return dlsym ();
2974be62
AM
4672 ;
4673 return 0;
4674}
4675_ACEOF
4676for ac_lib in '' dl; do
4677 if test -z "$ac_lib"; then
4678 ac_res="none required"
4679 else
4680 ac_res=-l$ac_lib
4681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4682 fi
4683 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 4684 ac_cv_search_dlsym=$ac_res
2974be62
AM
4685fi
4686rm -f core conftest.err conftest.$ac_objext \
4687 conftest$ac_exeext
d0ac1c44 4688 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
4689 break
4690fi
4691done
d0ac1c44 4692if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
4693
4694else
37f980dc 4695 ac_cv_search_dlsym=no
2974be62
AM
4696fi
4697rm conftest.$ac_ext
4698LIBS=$ac_func_search_save_LIBS
4699fi
37f980dc
SM
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4701$as_echo "$ac_cv_search_dlsym" >&6; }
4702ac_res=$ac_cv_search_dlsym
2974be62
AM
4703if test "$ac_res" != no; then :
4704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4705
4706fi
4707
4708 fi
4709
4710
81ecdfbb
RW
4711case ${host} in
4712 *mingw32*)
b7026657 4713
81ecdfbb 4714$as_echo "#define USE_WIN32API 1" >>confdefs.h
b7026657 4715
81ecdfbb
RW
4716 ;;
4717esac
b7026657 4718
81ecdfbb 4719ac_config_headers="$ac_config_headers config.h:config.in"
b7026657
AC
4720
4721
c906108c
SS
4722
4723sim_termio=""
81ecdfbb
RW
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
4725$as_echo_n "checking for struct termios... " >&6; }
d0ac1c44 4726if ${ac_cv_termios_struct+:} false; then :
81ecdfbb 4727 $as_echo_n "(cached) " >&6
b7026657 4728else
81ecdfbb 4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4730/* end confdefs.h. */
c906108c
SS
4731#include <sys/types.h>
4732#include <sys/termios.h>
b7026657
AC
4733int
4734main ()
4735{
c906108c
SS
4736static struct termios x;
4737 x.c_iflag = 0;
4738 x.c_oflag = 0;
4739 x.c_cflag = 0;
4740 x.c_lflag = 0;
4741 x.c_cc[NCCS] = 0;
b7026657
AC
4742 ;
4743 return 0;
4744}
4745_ACEOF
81ecdfbb 4746if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4747 ac_cv_termios_struct=yes
4748else
81ecdfbb 4749 ac_cv_termios_struct=no
c906108c 4750fi
81ecdfbb 4751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
4752fi
4753
81ecdfbb
RW
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
4755$as_echo "$ac_cv_termios_struct" >&6; }
c906108c
SS
4756if test $ac_cv_termios_struct = yes; then
4757 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
4758fi
4759
4760if test "$ac_cv_termios_struct" = "yes"; then
81ecdfbb
RW
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
4762$as_echo_n "checking for c_line field in struct termios... " >&6; }
d0ac1c44 4763 if ${ac_cv_termios_cline+:} false; then :
81ecdfbb 4764 $as_echo_n "(cached) " >&6
b7026657 4765else
81ecdfbb 4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4767/* end confdefs.h. */
c906108c
SS
4768#include <sys/types.h>
4769#include <sys/termios.h>
b7026657
AC
4770int
4771main ()
4772{
c906108c 4773static struct termios x; x.c_line = 0;
b7026657
AC
4774 ;
4775 return 0;
4776}
4777_ACEOF
81ecdfbb 4778if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4779 ac_cv_termios_cline=yes
4780else
81ecdfbb 4781 ac_cv_termios_cline=no
c906108c 4782fi
81ecdfbb 4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
4784fi
4785
4786
81ecdfbb
RW
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
4788$as_echo "$ac_cv_termios_cline" >&6; }
c906108c
SS
4789 if test $ac_cv_termios_cline = yes; then
4790 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
4791 fi
4792else
4793 ac_cv_termios_cline=no
4794fi
4795
4796if test "$ac_cv_termios_struct" != "yes"; then
81ecdfbb
RW
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
4798$as_echo_n "checking for struct termio... " >&6; }
d0ac1c44 4799 if ${ac_cv_termio_struct+:} false; then :
81ecdfbb 4800 $as_echo_n "(cached) " >&6
b7026657 4801else
81ecdfbb 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4803/* end confdefs.h. */
c906108c
SS
4804#include <sys/types.h>
4805#include <sys/termio.h>
b7026657
AC
4806int
4807main ()
4808{
c906108c
SS
4809static struct termio x;
4810 x.c_iflag = 0;
4811 x.c_oflag = 0;
4812 x.c_cflag = 0;
4813 x.c_lflag = 0;
4814 x.c_cc[NCC] = 0;
b7026657
AC
4815 ;
4816 return 0;
4817}
4818_ACEOF
81ecdfbb 4819if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4820 ac_cv_termio_struct=yes
4821else
81ecdfbb 4822 ac_cv_termio_struct=no
c906108c 4823fi
81ecdfbb 4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
4825fi
4826
81ecdfbb
RW
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
4828$as_echo "$ac_cv_termio_struct" >&6; }
c906108c
SS
4829 if test $ac_cv_termio_struct = yes; then
4830 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
4831 fi
4832else
4833 ac_cv_termio_struct=no
4834fi
4835
4836if test "$ac_cv_termio_struct" = "yes"; then
81ecdfbb
RW
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
4838$as_echo_n "checking for c_line field in struct termio... " >&6; }
d0ac1c44 4839 if ${ac_cv_termio_cline+:} false; then :
81ecdfbb 4840 $as_echo_n "(cached) " >&6
b7026657 4841else
81ecdfbb 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4843/* end confdefs.h. */
c906108c
SS
4844#include <sys/types.h>
4845#include <sys/termio.h>
b7026657
AC
4846int
4847main ()
4848{
c906108c 4849static struct termio x; x.c_line = 0;
b7026657
AC
4850 ;
4851 return 0;
4852}
4853_ACEOF
81ecdfbb 4854if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4855 ac_cv_termio_cline=yes
4856else
81ecdfbb 4857 ac_cv_termio_cline=no
c906108c 4858fi
81ecdfbb 4859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
4860fi
4861
4862
81ecdfbb
RW
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
4864$as_echo "$ac_cv_termio_cline" >&6; }
c906108c
SS
4865 if test $ac_cv_termio_cline = yes; then
4866 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
4867 fi
4868else
4869 ac_cv_termio_cline=no
4870fi
4871
81ecdfbb
RW
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
4873$as_echo_n "checking for struct statfs... " >&6; }
d0ac1c44 4874if ${ac_cv_struct_statfs+:} false; then :
81ecdfbb 4875 $as_echo_n "(cached) " >&6
1f362c96 4876else
81ecdfbb 4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4878/* end confdefs.h. */
1f362c96
AC
4879#include <sys/types.h>
4880#ifdef HAVE_SYS_PARAM_H
4881#include <sys/param.h>
4882#endif
4883#ifdef HAVE_SYS_MOUNT_H
4884#include <sys/mount.h>
4885#endif
4886#ifdef HAVE_SYS_VFS_H
4887#include <sys/vfs.h>
4888#endif
4889#ifdef HAVE_SYS_STATFS_H
4890#include <sys/statfs.h>
4891#endif
b7026657
AC
4892int
4893main ()
4894{
1f362c96 4895static struct statfs s;
b7026657
AC
4896 ;
4897 return 0;
4898}
4899_ACEOF
81ecdfbb 4900if ac_fn_c_try_compile "$LINENO"; then :
1f362c96
AC
4901 ac_cv_struct_statfs=yes
4902else
81ecdfbb 4903 ac_cv_struct_statfs=no
1f362c96 4904fi
81ecdfbb 4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1f362c96
AC
4906fi
4907
81ecdfbb
RW
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
4909$as_echo "$ac_cv_struct_statfs" >&6; }
1f362c96 4910if test $ac_cv_struct_statfs = yes; then
b7026657 4911
81ecdfbb 4912$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
1f362c96
AC
4913
4914fi
4915
81ecdfbb 4916ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
d0ac1c44 4917if test "x$ac_cv_type_long_long" = xyes; then :
30e66173
MI
4918
4919cat >>confdefs.h <<_ACEOF
4920#define HAVE_LONG_LONG 1
4921_ACEOF
4922
4923
4924fi
4925
4926
c906108c 4927sim_devzero=""
81ecdfbb
RW
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
4929$as_echo_n "checking for /dev/zero... " >&6; }
d0ac1c44 4930if ${ac_cv_devzero+:} false; then :
81ecdfbb 4931 $as_echo_n "(cached) " >&6
c906108c 4932else
81ecdfbb 4933 if test "$cross_compiling" = yes; then :
c906108c
SS
4934 ac_cv_devzero=no
4935else
81ecdfbb 4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4937/* end confdefs.h. */
c906108c
SS
4938#include <fcntl.h>
4939main () {
4940 char buf[2048];
4941 int i;
4942 int fd = open ("/dev/zero", O_RDONLY);
4943 if (fd < 0)
4944 return 1;
4945 for (i = 0; i < sizeof (buf); i++)
4946 buf[i] = 1;
4947 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
4948 return 1;
4949 for (i = 0; i < sizeof (buf); i++)
4950 if (buf[i])
4951 return 1;
4952 return 0;
4953}
b7026657 4954_ACEOF
81ecdfbb 4955if ac_fn_c_try_run "$LINENO"; then :
c906108c
SS
4956 ac_cv_devzero=yes
4957else
81ecdfbb 4958 ac_cv_devzero=no
c906108c 4959fi
81ecdfbb
RW
4960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4961 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4962fi
81ecdfbb 4963
c906108c
SS
4964fi
4965
81ecdfbb
RW
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
4967$as_echo "$ac_cv_devzero" >&6; }
c906108c
SS
4968if test $ac_cv_devzero = yes; then
4969 sim_devzero="-DHAVE_DEVZERO"
4970else
4971 sim_devzero=""
4972fi
4973
81ecdfbb
RW
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
4975$as_echo_n "checking for common simulator directory... " >&6; }
c906108c 4976if test -f "${srcdir}/../common/callback.c"; then
81ecdfbb
RW
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4978$as_echo "yes" >&6; }
c906108c
SS
4979 sim_callback="callback.o targ-map.o"
4980 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
4981else
81ecdfbb
RW
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
c906108c
SS
4984 sim_callback=""
4985 sim_targ_vals=""
4986fi
4987
81ecdfbb
RW
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
4989$as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
d29d5195 4990if test -f "${srcdir}/../common/sim-fpu.c"; then
81ecdfbb
RW
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992$as_echo "yes" >&6; }
3e5e53f9 4993 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
3a11ea24 4994 sim_fpu="sim-fpu.o"
d29d5195 4995else
81ecdfbb
RW
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
d29d5195 4998 sim_fpu_cflags=
b7026657 4999 sim_fpu=
c906108c 5000fi
cd0fc7c3 5001
68a3e151
NF
5002# Since we run commands on the build system, we have to create a
5003# separate config header for the build system if build != host.
5004if test x$host = x$build; then
5005 ac_config_commands="$ac_config_commands build-config.h"
5006
5007else
5008 tempdir=build.$$
5009 rm -rf $tempdir
5010 mkdir $tempdir
5011 cd $tempdir
5012 case ${srcdir} in
5013 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
5014 *) realsrcdir=../${srcdir};;
5015 esac
5016 saved_CFLAGS="${CFLAGS}"
5017 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
5018 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
5019 ${realsrcdir}/configure \
5020 --enable-languages=${enable_languages-all} \
5021 --target=$target_alias --host=$build_alias --build=$build_alias
5022 CFLAGS="${saved_CFLAGS}"
5023 mv config.h ../build-config.h
5024 cd ..
5025 rm -rf $tempdir
5026fi
5027
c906108c
SS
5028
5029
5030
5031
5032
5033AR=${AR-ar}
5034
b7026657
AC
5035if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5037set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5040if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 5041 $as_echo_n "(cached) " >&6
c906108c
SS
5042else
5043 if test -n "$RANLIB"; then
5044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5045else
b7026657
AC
5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
81ecdfbb 5051 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 5053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5055 break 2
5056 fi
5057done
81ecdfbb
RW
5058 done
5059IFS=$as_save_IFS
b7026657 5060
c906108c
SS
5061fi
5062fi
b7026657 5063RANLIB=$ac_cv_prog_RANLIB
c906108c 5064if test -n "$RANLIB"; then
81ecdfbb
RW
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5066$as_echo "$RANLIB" >&6; }
b7026657 5067else
81ecdfbb
RW
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069$as_echo "no" >&6; }
b7026657
AC
5070fi
5071
81ecdfbb 5072
b7026657
AC
5073fi
5074if test -z "$ac_cv_prog_RANLIB"; then
5075 ac_ct_RANLIB=$RANLIB
5076 # Extract the first word of "ranlib", so it can be a program name with args.
5077set dummy ranlib; ac_word=$2
81ecdfbb
RW
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5080if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 5081 $as_echo_n "(cached) " >&6
b7026657
AC
5082else
5083 if test -n "$ac_ct_RANLIB"; then
5084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5085else
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
81ecdfbb 5091 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 5093 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5095 break 2
5096 fi
5097done
81ecdfbb
RW
5098 done
5099IFS=$as_save_IFS
b7026657 5100
b7026657
AC
5101fi
5102fi
5103ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5104if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5106$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 5107else
81ecdfbb
RW
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109$as_echo "no" >&6; }
b7026657
AC
5110fi
5111
81ecdfbb
RW
5112 if test "x$ac_ct_RANLIB" = x; then
5113 RANLIB=":"
5114 else
5115 case $cross_compiling:$ac_tool_warned in
5116yes:)
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119ac_tool_warned=yes ;;
5120esac
5121 RANLIB=$ac_ct_RANLIB
5122 fi
c906108c 5123else
b7026657 5124 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
5125fi
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
c906108c
SS
5159
5160
c906108c
SS
5161
5162
81ecdfbb
RW
5163ac_config_files="$ac_config_files Makefile"
5164
5165ac_config_commands="$ac_config_commands default"
5166
b7026657 5167cat >confcache <<\_ACEOF
c906108c
SS
5168# This file is a shell script that caches the results of configure
5169# tests run on this system so they can be shared between configure
b7026657
AC
5170# scripts and configure runs, see configure's option --config-cache.
5171# It is not useful on other systems. If it contains results you don't
5172# want to keep, you may remove or edit it.
c906108c 5173#
b7026657
AC
5174# config.status only pays attention to the cache file if you give it
5175# the --recheck option to rerun configure.
c906108c 5176#
b7026657
AC
5177# `ac_cv_env_foo' variables (set or unset) will be overridden when
5178# loading this file, other *unset* `ac_cv_foo' will be assigned the
5179# following values.
5180
5181_ACEOF
5182
c906108c
SS
5183# The following way of writing the cache mishandles newlines in values,
5184# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 5185# So, we kill variables containing newlines.
c906108c
SS
5186# Ultrix sh set writes to stderr and can't be redirected directly,
5187# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
5188(
5189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5190 eval ac_val=\$$ac_var
5191 case $ac_val in #(
5192 *${as_nl}*)
5193 case $ac_var in #(
5194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5195$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5196 esac
5197 case $ac_var in #(
5198 _ | IFS | as_nl) ;; #(
5199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5200 *) { eval $ac_var=; unset $ac_var;} ;;
5201 esac ;;
5202 esac
5203 done
5204
b7026657 5205 (set) 2>&1 |
81ecdfbb
RW
5206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5207 *${as_nl}ac_space=\ *)
5208 # `set' does not quote correctly, so add quotes: double-quote
5209 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
5210 sed -n \
5211 "s/'/'\\\\''/g;
5212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5213 ;; #(
b7026657
AC
5214 *)
5215 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 5217 ;;
81ecdfbb
RW
5218 esac |
5219 sort
5220) |
b7026657 5221 sed '
81ecdfbb 5222 /^ac_cv_env_/b end
b7026657 5223 t clear
81ecdfbb 5224 :clear
b7026657
AC
5225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5226 t end
81ecdfbb
RW
5227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5228 :end' >>confcache
5229if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5230 if test -w "$cache_file"; then
d0ac1c44 5231 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5233$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
5234 if test ! -f "$cache_file" || test -h "$cache_file"; then
5235 cat confcache >"$cache_file"
5236 else
5237 case $cache_file in #(
5238 */* | ?:*)
5239 mv -f confcache "$cache_file"$$ &&
5240 mv -f "$cache_file"$$ "$cache_file" ;; #(
5241 *)
5242 mv -f confcache "$cache_file" ;;
5243 esac
5244 fi
5245 fi
c906108c 5246 else
81ecdfbb
RW
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5248$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
5249 fi
5250fi
5251rm -f confcache
5252
c906108c
SS
5253test "x$prefix" = xNONE && prefix=$ac_default_prefix
5254# Let make expand exec_prefix.
5255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5256
c906108c
SS
5257DEFS=-DHAVE_CONFIG_H
5258
b7026657
AC
5259ac_libobjs=
5260ac_ltlibobjs=
d0ac1c44 5261U=
b7026657
AC
5262for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5263 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
5264 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5265 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5266 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5267 # will be set to the directory where LIBOBJS objects are built.
5268 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5269 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
5270done
5271LIBOBJS=$ac_libobjs
c906108c 5272
b7026657
AC
5273LTLIBOBJS=$ac_ltlibobjs
5274
5275
5276
81ecdfbb 5277
d0ac1c44 5278: "${CONFIG_STATUS=./config.status}"
81ecdfbb 5279ac_write_fail=0
b7026657
AC
5280ac_clean_files_save=$ac_clean_files
5281ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5283$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5284as_write_fail=0
5285cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
5286#! $SHELL
5287# Generated by $as_me.
c906108c 5288# Run this file to recreate the current configuration.
c906108c 5289# Compiler output produced by configure, useful for debugging
b7026657 5290# configure, is in config.log if it exists.
c906108c 5291
b7026657
AC
5292debug=false
5293ac_cs_recheck=false
5294ac_cs_silent=false
b7026657 5295
81ecdfbb
RW
5296SHELL=\${CONFIG_SHELL-$SHELL}
5297export SHELL
5298_ASEOF
5299cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5300## -------------------- ##
5301## M4sh Initialization. ##
5302## -------------------- ##
5303
5304# Be more Bourne compatible
5305DUALCASE=1; export DUALCASE # for MKS sh
5306if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
5307 emulate sh
5308 NULLCMD=:
81ecdfbb 5309 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
5310 # is contrary to our usage. Disable this feature.
5311 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
5312 setopt NO_GLOB_SUBST
5313else
5314 case `(set -o) 2>/dev/null` in #(
5315 *posix*) :
5316 set -o posix ;; #(
5317 *) :
5318 ;;
5319esac
b7026657 5320fi
b7026657 5321
81ecdfbb
RW
5322
5323as_nl='
5324'
5325export as_nl
5326# Printing a long string crashes Solaris 7 /usr/bin/printf.
5327as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5328as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5329as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5330# Prefer a ksh shell builtin over an external printf program on Solaris,
5331# but without wasting forks for bash or zsh.
5332if test -z "$BASH_VERSION$ZSH_VERSION" \
5333 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5334 as_echo='print -r --'
5335 as_echo_n='print -rn --'
5336elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5337 as_echo='printf %s\n'
5338 as_echo_n='printf %s'
5339else
5340 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5341 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5342 as_echo_n='/usr/ucb/echo -n'
5343 else
5344 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5345 as_echo_n_body='eval
5346 arg=$1;
5347 case $arg in #(
5348 *"$as_nl"*)
5349 expr "X$arg" : "X\\(.*\\)$as_nl";
5350 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5351 esac;
5352 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5353 '
5354 export as_echo_n_body
5355 as_echo_n='sh -c $as_echo_n_body as_echo'
5356 fi
5357 export as_echo_body
5358 as_echo='sh -c $as_echo_body as_echo'
b7026657
AC
5359fi
5360
81ecdfbb
RW
5361# The user is always right.
5362if test "${PATH_SEPARATOR+set}" != set; then
5363 PATH_SEPARATOR=:
5364 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5365 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5366 PATH_SEPARATOR=';'
5367 }
5368fi
5369
5370
5371# IFS
5372# We need space, tab and new line, in precisely that order. Quoting is
5373# there to prevent editors from complaining about space-tab.
5374# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5375# splitting by setting IFS to empty value.)
5376IFS=" "" $as_nl"
5377
5378# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 5379as_myself=
81ecdfbb
RW
5380case $0 in #((
5381 *[\\/]* ) as_myself=$0 ;;
5382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5388 done
5389IFS=$as_save_IFS
b7026657 5390
81ecdfbb
RW
5391 ;;
5392esac
5393# We did not find ourselves, most probably we were run as `sh COMMAND'
5394# in which case we are not to be found in the path.
5395if test "x$as_myself" = x; then
5396 as_myself=$0
5397fi
5398if test ! -f "$as_myself"; then
5399 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5400 exit 1
5401fi
5402
5403# Unset variables that we do not need and which cause bugs (e.g. in
5404# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5405# suppresses any "Segmentation fault" message there. '((' could
5406# trigger a bug in pdksh 5.2.14.
5407for as_var in BASH_ENV ENV MAIL MAILPATH
5408do eval test x\${$as_var+set} = xset \
5409 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5410done
b7026657
AC
5411PS1='$ '
5412PS2='> '
5413PS4='+ '
5414
5415# NLS nuisances.
81ecdfbb
RW
5416LC_ALL=C
5417export LC_ALL
5418LANGUAGE=C
5419export LANGUAGE
5420
5421# CDPATH.
5422(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5423
5424
d0ac1c44
SM
5425# as_fn_error STATUS ERROR [LINENO LOG_FD]
5426# ----------------------------------------
81ecdfbb
RW
5427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 5429# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
5430as_fn_error ()
5431{
d0ac1c44
SM
5432 as_status=$1; test $as_status -eq 0 && as_status=1
5433 if test "$4"; then
5434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5435 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 5436 fi
d0ac1c44 5437 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
5438 as_fn_exit $as_status
5439} # as_fn_error
5440
c906108c 5441
81ecdfbb
RW
5442# as_fn_set_status STATUS
5443# -----------------------
5444# Set $? to STATUS, without forking.
5445as_fn_set_status ()
5446{
5447 return $1
5448} # as_fn_set_status
5449
5450# as_fn_exit STATUS
5451# -----------------
5452# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5453as_fn_exit ()
5454{
5455 set +e
5456 as_fn_set_status $1
5457 exit $1
5458} # as_fn_exit
5459
5460# as_fn_unset VAR
5461# ---------------
5462# Portably unset VAR.
5463as_fn_unset ()
5464{
5465 { eval $1=; unset $1;}
5466}
5467as_unset=as_fn_unset
5468# as_fn_append VAR VALUE
5469# ----------------------
5470# Append the text in VALUE to the end of the definition contained in VAR. Take
5471# advantage of any shell optimizations that allow amortized linear growth over
5472# repeated appends, instead of the typical quadratic growth present in naive
5473# implementations.
5474if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5475 eval 'as_fn_append ()
5476 {
5477 eval $1+=\$2
5478 }'
5479else
5480 as_fn_append ()
5481 {
5482 eval $1=\$$1\$2
5483 }
5484fi # as_fn_append
5485
5486# as_fn_arith ARG...
5487# ------------------
5488# Perform arithmetic evaluation on the ARGs, and store the result in the
5489# global $as_val. Take advantage of shells that can avoid forks. The arguments
5490# must be portable across $(()) and expr.
5491if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5492 eval 'as_fn_arith ()
5493 {
5494 as_val=$(( $* ))
5495 }'
5496else
5497 as_fn_arith ()
5498 {
5499 as_val=`expr "$@" || test $? -eq 1`
5500 }
5501fi # as_fn_arith
5502
5503
5504if expr a : '\(a\)' >/dev/null 2>&1 &&
5505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
5506 as_expr=expr
5507else
5508 as_expr=false
5509fi
c906108c 5510
81ecdfbb 5511if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
5512 as_basename=basename
5513else
5514 as_basename=false
5515fi
c906108c 5516
81ecdfbb
RW
5517if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5518 as_dirname=dirname
5519else
5520 as_dirname=false
5521fi
c906108c 5522
81ecdfbb 5523as_me=`$as_basename -- "$0" ||
b7026657
AC
5524$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5525 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
5526 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5527$as_echo X/"$0" |
5528 sed '/^.*\/\([^/][^/]*\)\/*$/{
5529 s//\1/
5530 q
5531 }
5532 /^X\/\(\/\/\)$/{
5533 s//\1/
5534 q
5535 }
5536 /^X\/\(\/\).*/{
5537 s//\1/
5538 q
5539 }
5540 s/.*/./; q'`
b7026657 5541
b7026657
AC
5542# Avoid depending upon Character Ranges.
5543as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5544as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5545as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5546as_cr_digits='0123456789'
5547as_cr_alnum=$as_cr_Letters$as_cr_digits
5548
81ecdfbb
RW
5549ECHO_C= ECHO_N= ECHO_T=
5550case `echo -n x` in #(((((
5551-n*)
5552 case `echo 'xy\c'` in
5553 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5554 xy) ECHO_C='\c';;
5555 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5556 ECHO_T=' ';;
5557 esac;;
5558*)
5559 ECHO_N='-n';;
b7026657
AC
5560esac
5561
b7026657 5562rm -f conf$$ conf$$.exe conf$$.file
81ecdfbb
RW
5563if test -d conf$$.dir; then
5564 rm -f conf$$.dir/conf$$.file
5565else
5566 rm -f conf$$.dir
5567 mkdir conf$$.dir 2>/dev/null
5568fi
5569if (echo >conf$$.file) 2>/dev/null; then
5570 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 5571 as_ln_s='ln -s'
81ecdfbb
RW
5572 # ... but there are two gotchas:
5573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 5575 # In both cases, we have to default to `cp -pR'.
81ecdfbb 5576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 5577 as_ln_s='cp -pR'
81ecdfbb
RW
5578 elif ln conf$$.file conf$$ 2>/dev/null; then
5579 as_ln_s=ln
5580 else
d0ac1c44 5581 as_ln_s='cp -pR'
c906108c 5582 fi
b7026657 5583else
d0ac1c44 5584 as_ln_s='cp -pR'
b7026657 5585fi
81ecdfbb
RW
5586rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5587rmdir conf$$.dir 2>/dev/null
5588
5589
5590# as_fn_mkdir_p
5591# -------------
5592# Create "$as_dir" as a directory, including parents if necessary.
5593as_fn_mkdir_p ()
5594{
5595
5596 case $as_dir in #(
5597 -*) as_dir=./$as_dir;;
5598 esac
5599 test -d "$as_dir" || eval $as_mkdir_p || {
5600 as_dirs=
5601 while :; do
5602 case $as_dir in #(
5603 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5604 *) as_qdir=$as_dir;;
5605 esac
5606 as_dirs="'$as_qdir' $as_dirs"
5607 as_dir=`$as_dirname -- "$as_dir" ||
5608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5609 X"$as_dir" : 'X\(//\)[^/]' \| \
5610 X"$as_dir" : 'X\(//\)$' \| \
5611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5612$as_echo X"$as_dir" |
5613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5614 s//\1/
5615 q
5616 }
5617 /^X\(\/\/\)[^/].*/{
5618 s//\1/
5619 q
5620 }
5621 /^X\(\/\/\)$/{
5622 s//\1/
5623 q
5624 }
5625 /^X\(\/\).*/{
5626 s//\1/
5627 q
5628 }
5629 s/.*/./; q'`
5630 test -d "$as_dir" && break
5631 done
5632 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 5633 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b7026657 5634
81ecdfbb
RW
5635
5636} # as_fn_mkdir_p
b7026657 5637if mkdir -p . 2>/dev/null; then
81ecdfbb 5638 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
5639else
5640 test -d ./-p && rmdir ./-p
5641 as_mkdir_p=false
5642fi
5643
d0ac1c44
SM
5644
5645# as_fn_executable_p FILE
5646# -----------------------
5647# Test if FILE is an executable regular file.
5648as_fn_executable_p ()
5649{
5650 test -f "$1" && test -x "$1"
5651} # as_fn_executable_p
5652as_test_x='test -x'
5653as_executable_p=as_fn_executable_p
b7026657
AC
5654
5655# Sed expression to map a string onto a valid CPP name.
5656as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5657
5658# Sed expression to map a string onto a valid variable name.
5659as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5660
5661
b7026657 5662exec 6>&1
81ecdfbb
RW
5663## ----------------------------------- ##
5664## Main body of $CONFIG_STATUS script. ##
5665## ----------------------------------- ##
5666_ASEOF
5667test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5668
5669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5670# Save the log message, to keep $0 and so on meaningful, and to
b7026657 5671# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
5672# values after options handling.
5673ac_log="
b7026657 5674This file was extended by $as_me, which was
d0ac1c44 5675generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
5676
5677 CONFIG_FILES = $CONFIG_FILES
5678 CONFIG_HEADERS = $CONFIG_HEADERS
5679 CONFIG_LINKS = $CONFIG_LINKS
5680 CONFIG_COMMANDS = $CONFIG_COMMANDS
5681 $ $0 $@
5682
81ecdfbb
RW
5683on `(hostname || uname -n) 2>/dev/null | sed 1q`
5684"
5685
b7026657
AC
5686_ACEOF
5687
81ecdfbb
RW
5688case $ac_config_files in *"
5689"*) set x $ac_config_files; shift; ac_config_files=$*;;
5690esac
b7026657 5691
81ecdfbb
RW
5692case $ac_config_headers in *"
5693"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5694esac
b7026657 5695
b7026657 5696
81ecdfbb
RW
5697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5698# Files that config.status was made for.
5699config_files="$ac_config_files"
5700config_headers="$ac_config_headers"
5701config_commands="$ac_config_commands"
b7026657 5702
81ecdfbb 5703_ACEOF
b7026657 5704
81ecdfbb 5705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 5706ac_cs_usage="\
81ecdfbb
RW
5707\`$as_me' instantiates files and other configuration actions
5708from templates according to the current configuration. Unless the files
5709and actions are specified as TAGs, all are instantiated by default.
b7026657 5710
81ecdfbb 5711Usage: $0 [OPTION]... [TAG]...
b7026657
AC
5712
5713 -h, --help print this help, then exit
81ecdfbb 5714 -V, --version print version number and configuration settings, then exit
d0ac1c44 5715 --config print configuration, then exit
81ecdfbb
RW
5716 -q, --quiet, --silent
5717 do not print progress messages
b7026657
AC
5718 -d, --debug don't remove temporary files
5719 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
5720 --file=FILE[:TEMPLATE]
5721 instantiate the configuration file FILE
5722 --header=FILE[:TEMPLATE]
5723 instantiate the configuration header FILE
b7026657
AC
5724
5725Configuration files:
5726$config_files
5727
5728Configuration headers:
5729$config_headers
5730
5731Configuration commands:
5732$config_commands
5733
81ecdfbb 5734Report bugs to the package provider."
b7026657 5735
81ecdfbb
RW
5736_ACEOF
5737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 5738ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
5739ac_cs_version="\\
5740config.status
d0ac1c44
SM
5741configured by $0, generated by GNU Autoconf 2.69,
5742 with options \\"\$ac_cs_config\\"
b7026657 5743
d0ac1c44 5744Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
5745This config.status script is free software; the Free Software Foundation
5746gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
5747
5748ac_pwd='$ac_pwd'
5749srcdir='$srcdir'
5750INSTALL='$INSTALL'
5751test -n "\$AWK" || AWK=awk
b7026657
AC
5752_ACEOF
5753
81ecdfbb
RW
5754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5755# The default lists apply if the user does not specify any file.
b7026657
AC
5756ac_need_defaults=:
5757while test $# != 0
5758do
5759 case $1 in
d0ac1c44 5760 --*=?*)
81ecdfbb
RW
5761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5762 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
5763 ac_shift=:
5764 ;;
d0ac1c44
SM
5765 --*=)
5766 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5767 ac_optarg=
5768 ac_shift=:
5769 ;;
81ecdfbb 5770 *)
b7026657
AC
5771 ac_option=$1
5772 ac_optarg=$2
5773 ac_shift=shift
5774 ;;
b7026657
AC
5775 esac
5776
5777 case $ac_option in
5778 # Handling of the options.
b7026657
AC
5779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5780 ac_cs_recheck=: ;;
81ecdfbb
RW
5781 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5782 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
5783 --config | --confi | --conf | --con | --co | --c )
5784 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 5785 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
5786 debug=: ;;
5787 --file | --fil | --fi | --f )
5788 $ac_shift
81ecdfbb
RW
5789 case $ac_optarg in
5790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 5791 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
5792 esac
5793 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
5794 ac_need_defaults=false;;
5795 --header | --heade | --head | --hea )
5796 $ac_shift
81ecdfbb
RW
5797 case $ac_optarg in
5798 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5799 esac
5800 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 5801 ac_need_defaults=false;;
81ecdfbb
RW
5802 --he | --h)
5803 # Conflict between --help and --header
d0ac1c44 5804 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
5805Try \`$0 --help' for more information.";;
5806 --help | --hel | -h )
5807 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
5808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5809 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5810 ac_cs_silent=: ;;
5811
5812 # This is an error.
d0ac1c44 5813 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 5814Try \`$0 --help' for more information." ;;
b7026657 5815
81ecdfbb
RW
5816 *) as_fn_append ac_config_targets " $1"
5817 ac_need_defaults=false ;;
b7026657
AC
5818
5819 esac
5820 shift
c906108c 5821done
b7026657
AC
5822
5823ac_configure_extra_args=
5824
5825if $ac_cs_silent; then
5826 exec 6>/dev/null
5827 ac_configure_extra_args="$ac_configure_extra_args --silent"
5828fi
5829
5830_ACEOF
81ecdfbb 5831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 5832if \$ac_cs_recheck; then
d0ac1c44 5833 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
5834 shift
5835 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5836 CONFIG_SHELL='$SHELL'
5837 export CONFIG_SHELL
5838 exec "\$@"
c906108c 5839fi
c906108c 5840
b7026657 5841_ACEOF
81ecdfbb
RW
5842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5843exec 5>>config.log
5844{
5845 echo
5846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5847## Running $as_me. ##
5848_ASBOX
5849 $as_echo "$ac_log"
5850} >&5
c906108c 5851
81ecdfbb
RW
5852_ACEOF
5853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5854_ACEOF
b7026657 5855
81ecdfbb 5856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 5857
81ecdfbb 5858# Handling of arguments.
b7026657
AC
5859for ac_config_target in $ac_config_targets
5860do
81ecdfbb
RW
5861 case $ac_config_target in
5862 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
68a3e151 5863 "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
81ecdfbb
RW
5864 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5865 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5866
d0ac1c44 5867 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 5868 esac
b7026657 5869done
c906108c 5870
81ecdfbb 5871
b7026657
AC
5872# If the user did not use the arguments to specify the items to instantiate,
5873# then the envvar interface is used. Set only those that are not.
5874# We use the long form for the default assignment because of an extremely
5875# bizarre bug on SunOS 4.1.3.
5876if $ac_need_defaults; then
5877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5878 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5880fi
5881
5882# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 5883# simply because there is no reason against having it here, and in addition,
b7026657 5884# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
5885# Hook for its removal unless debugging.
5886# Note that there is a small window in which the directory will not be cleaned:
5887# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
5888$debug ||
5889{
d0ac1c44 5890 tmp= ac_tmp=
81ecdfbb 5891 trap 'exit_status=$?
d0ac1c44
SM
5892 : "${ac_tmp:=$tmp}"
5893 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
5894' 0
5895 trap 'as_fn_exit 1' 1 2 13 15
b7026657 5896}
b7026657
AC
5897# Create a (secure) tmp directory for tmp files.
5898
5899{
81ecdfbb 5900 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 5901 test -d "$tmp"
b7026657
AC
5902} ||
5903{
81ecdfbb
RW
5904 tmp=./conf$$-$RANDOM
5905 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
5906} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5907ac_tmp=$tmp
81ecdfbb
RW
5908
5909# Set up the scripts for CONFIG_FILES section.
5910# No need to generate them if there are no CONFIG_FILES.
5911# This happens for instance with `./config.status config.h'.
5912if test -n "$CONFIG_FILES"; then
5913
5914
5915ac_cr=`echo X | tr X '\015'`
5916# On cygwin, bash can eat \r inside `` if the user requested igncr.
5917# But we know of no other shell where ac_cr would be empty at this
5918# point, so we can use a bashism as a fallback.
5919if test "x$ac_cr" = x; then
5920 eval ac_cr=\$\'\\r\'
5921fi
5922ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5923if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 5924 ac_cs_awk_cr='\\r'
81ecdfbb
RW
5925else
5926 ac_cs_awk_cr=$ac_cr
5927fi
5928
d0ac1c44 5929echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
5930_ACEOF
5931
5932
b7026657 5933{
81ecdfbb
RW
5934 echo "cat >conf$$subs.awk <<_ACEOF" &&
5935 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5936 echo "_ACEOF"
5937} >conf$$subs.sh ||
d0ac1c44
SM
5938 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5939ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
5940ac_delim='%!_!# '
5941for ac_last_try in false false false false false :; do
5942 . ./conf$$subs.sh ||
d0ac1c44 5943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
5944
5945 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5946 if test $ac_delim_n = $ac_delim_num; then
5947 break
5948 elif $ac_last_try; then
d0ac1c44 5949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
5950 else
5951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5952 fi
5953done
5954rm -f conf$$subs.sh
5955
5956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 5957cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
5958_ACEOF
5959sed -n '
5960h
5961s/^/S["/; s/!.*/"]=/
5962p
5963g
5964s/^[^!]*!//
5965:repl
5966t repl
5967s/'"$ac_delim"'$//
5968t delim
5969:nl
5970h
d0ac1c44 5971s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
5972t more1
5973s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5974p
5975n
5976b repl
5977:more1
5978s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5979p
5980g
5981s/.\{148\}//
5982t nl
5983:delim
5984h
d0ac1c44 5985s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
5986t more2
5987s/["\\]/\\&/g; s/^/"/; s/$/"/
5988p
5989b
5990:more2
5991s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5992p
5993g
5994s/.\{148\}//
5995t delim
5996' <conf$$subs.awk | sed '
5997/^[^""]/{
5998 N
5999 s/\n//
b7026657 6000}
81ecdfbb
RW
6001' >>$CONFIG_STATUS || ac_write_fail=1
6002rm -f conf$$subs.awk
6003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6004_ACAWK
d0ac1c44 6005cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
6006 for (key in S) S_is_set[key] = 1
6007 FS = "\a"
b7026657 6008
81ecdfbb
RW
6009}
6010{
6011 line = $ 0
6012 nfields = split(line, field, "@")
6013 substed = 0
6014 len = length(field[1])
6015 for (i = 2; i < nfields; i++) {
6016 key = field[i]
6017 keylen = length(key)
6018 if (S_is_set[key]) {
6019 value = S[key]
6020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6021 len += length(value) + length(field[++i])
6022 substed = 1
6023 } else
6024 len += 1 + keylen
6025 }
b7026657 6026
81ecdfbb
RW
6027 print line
6028}
b7026657 6029
81ecdfbb
RW
6030_ACAWK
6031_ACEOF
6032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6033if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6034 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6035else
6036 cat
d0ac1c44
SM
6037fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6038 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
6039_ACEOF
6040
d0ac1c44
SM
6041# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6042# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
6043# trailing colons and then remove the whole line if VPATH becomes empty
6044# (actually we leave an empty line to preserve line numbers).
6045if test "x$srcdir" = x.; then
d0ac1c44
SM
6046 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6047h
6048s///
6049s/^/:/
6050s/[ ]*$/:/
6051s/:\$(srcdir):/:/g
6052s/:\${srcdir}:/:/g
6053s/:@srcdir@:/:/g
6054s/^:*//
81ecdfbb 6055s/:*$//
d0ac1c44
SM
6056x
6057s/\(=[ ]*\).*/\1/
6058G
6059s/\n//
81ecdfbb
RW
6060s/^[^=]*=[ ]*$//
6061}'
6062fi
b7026657 6063
81ecdfbb
RW
6064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6065fi # test -n "$CONFIG_FILES"
b7026657 6066
81ecdfbb
RW
6067# Set up the scripts for CONFIG_HEADERS section.
6068# No need to generate them if there are no CONFIG_HEADERS.
6069# This happens for instance with `./config.status Makefile'.
6070if test -n "$CONFIG_HEADERS"; then
d0ac1c44 6071cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 6072BEGIN {
b7026657
AC
6073_ACEOF
6074
81ecdfbb
RW
6075# Transform confdefs.h into an awk script `defines.awk', embedded as
6076# here-document in config.status, that substitutes the proper values into
6077# config.h.in to produce config.h.
6078
6079# Create a delimiter string that does not exist in confdefs.h, to ease
6080# handling of long lines.
6081ac_delim='%!_!# '
6082for ac_last_try in false false :; do
d0ac1c44
SM
6083 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6084 if test -z "$ac_tt"; then
81ecdfbb
RW
6085 break
6086 elif $ac_last_try; then
d0ac1c44 6087 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
6088 else
6089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 6090 fi
81ecdfbb 6091done
c906108c 6092
81ecdfbb
RW
6093# For the awk script, D is an array of macro values keyed by name,
6094# likewise P contains macro parameters if any. Preserve backslash
6095# newline sequences.
6096
6097ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6098sed -n '
6099s/.\{148\}/&'"$ac_delim"'/g
6100t rset
6101:rset
6102s/^[ ]*#[ ]*define[ ][ ]*/ /
6103t def
6104d
6105:def
6106s/\\$//
6107t bsnl
6108s/["\\]/\\&/g
6109s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6110D["\1"]=" \3"/p
6111s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6112d
6113:bsnl
6114s/["\\]/\\&/g
6115s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6116D["\1"]=" \3\\\\\\n"\\/p
6117t cont
6118s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6119t cont
6120d
6121:cont
6122n
6123s/.\{148\}/&'"$ac_delim"'/g
6124t clear
6125:clear
6126s/\\$//
6127t bsnlc
6128s/["\\]/\\&/g; s/^/"/; s/$/"/p
6129d
6130:bsnlc
6131s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6132b cont
6133' <confdefs.h | sed '
6134s/'"$ac_delim"'/"\\\
6135"/g' >>$CONFIG_STATUS || ac_write_fail=1
6136
6137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6138 for (key in D) D_is_set[key] = 1
6139 FS = "\a"
6140}
6141/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6142 line = \$ 0
6143 split(line, arg, " ")
6144 if (arg[1] == "#") {
6145 defundef = arg[2]
6146 mac1 = arg[3]
6147 } else {
6148 defundef = substr(arg[1], 2)
6149 mac1 = arg[2]
6150 }
6151 split(mac1, mac2, "(") #)
6152 macro = mac2[1]
6153 prefix = substr(line, 1, index(line, defundef) - 1)
6154 if (D_is_set[macro]) {
6155 # Preserve the white space surrounding the "#".
6156 print prefix "define", macro P[macro] D[macro]
6157 next
6158 } else {
6159 # Replace #undef with comments. This is necessary, for example,
6160 # in the case of _POSIX_SOURCE, which is predefined and required
6161 # on some systems where configure will not decide to define it.
6162 if (defundef == "undef") {
6163 print "/*", prefix defundef, macro, "*/"
6164 next
6165 }
6166 }
6167}
6168{ print }
6169_ACAWK
b7026657 6170_ACEOF
81ecdfbb 6171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 6172 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
6173fi # test -n "$CONFIG_HEADERS"
6174
6175
6176eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6177shift
6178for ac_tag
6179do
6180 case $ac_tag in
6181 :[FHLC]) ac_mode=$ac_tag; continue;;
6182 esac
6183 case $ac_mode$ac_tag in
6184 :[FHL]*:*);;
d0ac1c44 6185 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
6186 :[FH]-) ac_tag=-:-;;
6187 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6188 esac
6189 ac_save_IFS=$IFS
6190 IFS=:
6191 set x $ac_tag
6192 IFS=$ac_save_IFS
6193 shift
6194 ac_file=$1
6195 shift
6196
6197 case $ac_mode in
6198 :L) ac_source=$1;;
6199 :[FH])
6200 ac_file_inputs=
6201 for ac_f
6202 do
6203 case $ac_f in
d0ac1c44 6204 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
6205 *) # Look for the file first in the build tree, then in the source tree
6206 # (if the path is not absolute). The absolute path cannot be DOS-style,
6207 # because $ac_f cannot contain `:'.
6208 test -f "$ac_f" ||
6209 case $ac_f in
6210 [\\/$]*) false;;
6211 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6212 esac ||
d0ac1c44 6213 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
6214 esac
6215 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6216 as_fn_append ac_file_inputs " '$ac_f'"
6217 done
6218
6219 # Let's still pretend it is `configure' which instantiates (i.e., don't
6220 # use $as_me), people would be surprised to read:
6221 # /* config.h. Generated by config.status. */
6222 configure_input='Generated from '`
6223 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6224 `' by configure.'
6225 if test x"$ac_file" != x-; then
6226 configure_input="$ac_file. $configure_input"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6228$as_echo "$as_me: creating $ac_file" >&6;}
6229 fi
6230 # Neutralize special characters interpreted by sed in replacement strings.
6231 case $configure_input in #(
6232 *\&* | *\|* | *\\* )
6233 ac_sed_conf_input=`$as_echo "$configure_input" |
6234 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6235 *) ac_sed_conf_input=$configure_input;;
6236 esac
6237
6238 case $ac_tag in
d0ac1c44
SM
6239 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
6241 esac
6242 ;;
c906108c
SS
6243 esac
6244
81ecdfbb 6245 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
6246$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6247 X"$ac_file" : 'X\(//\)[^/]' \| \
6248 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6249 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6250$as_echo X"$ac_file" |
6251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6252 s//\1/
6253 q
6254 }
6255 /^X\(\/\/\)[^/].*/{
6256 s//\1/
6257 q
6258 }
6259 /^X\(\/\/\)$/{
6260 s//\1/
6261 q
6262 }
6263 /^X\(\/\).*/{
6264 s//\1/
6265 q
6266 }
6267 s/.*/./; q'`
6268 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
6269 ac_builddir=.
6270
81ecdfbb
RW
6271case "$ac_dir" in
6272.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6273*)
6274 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6275 # A ".." for each directory in $ac_dir_suffix.
6276 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6277 case $ac_top_builddir_sub in
6278 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6279 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6280 esac ;;
6281esac
6282ac_abs_top_builddir=$ac_pwd
6283ac_abs_builddir=$ac_pwd$ac_dir_suffix
6284# for backward compatibility:
6285ac_top_builddir=$ac_top_build_prefix
c906108c 6286
b7026657 6287case $srcdir in
81ecdfbb 6288 .) # We are building in place.
b7026657 6289 ac_srcdir=.
81ecdfbb
RW
6290 ac_top_srcdir=$ac_top_builddir_sub
6291 ac_abs_top_srcdir=$ac_pwd ;;
6292 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 6293 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6294 ac_top_srcdir=$srcdir
6295 ac_abs_top_srcdir=$srcdir ;;
6296 *) # Relative name.
6297 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6298 ac_top_srcdir=$ac_top_build_prefix$srcdir
6299 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 6300esac
81ecdfbb 6301ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 6302
b7026657 6303
81ecdfbb
RW
6304 case $ac_mode in
6305 :F)
6306 #
6307 # CONFIG_FILE
6308 #
b7026657
AC
6309
6310 case $INSTALL in
6311 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 6312 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 6313 esac
81ecdfbb 6314_ACEOF
c906108c 6315
81ecdfbb
RW
6316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6317# If the template does not know about datarootdir, expand it.
6318# FIXME: This hack should be removed a few years after 2.60.
6319ac_datarootdir_hack=; ac_datarootdir_seen=
6320ac_sed_dataroot='
6321/datarootdir/ {
6322 p
6323 q
6324}
6325/@datadir@/p
6326/@docdir@/p
6327/@infodir@/p
6328/@localedir@/p
6329/@mandir@/p'
6330case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6331*datarootdir*) ac_datarootdir_seen=yes;;
6332*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6334$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6335_ACEOF
6336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6337 ac_datarootdir_hack='
6338 s&@datadir@&$datadir&g
6339 s&@docdir@&$docdir&g
6340 s&@infodir@&$infodir&g
6341 s&@localedir@&$localedir&g
6342 s&@mandir@&$mandir&g
6343 s&\\\${datarootdir}&$datarootdir&g' ;;
6344esac
b7026657 6345_ACEOF
81ecdfbb
RW
6346
6347# Neutralize VPATH when `$srcdir' = `.'.
6348# Shell code in configure.ac might set extrasub.
6349# FIXME: do we really want to maintain this feature?
6350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6351ac_sed_extra="$ac_vpsub
b7026657
AC
6352$extrasub
6353_ACEOF
81ecdfbb 6354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
6355:t
6356/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
6357s|@configure_input@|$ac_sed_conf_input|;t t
6358s&@top_builddir@&$ac_top_builddir_sub&;t t
6359s&@top_build_prefix@&$ac_top_build_prefix&;t t
6360s&@srcdir@&$ac_srcdir&;t t
6361s&@abs_srcdir@&$ac_abs_srcdir&;t t
6362s&@top_srcdir@&$ac_top_srcdir&;t t
6363s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6364s&@builddir@&$ac_builddir&;t t
6365s&@abs_builddir@&$ac_abs_builddir&;t t
6366s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6367s&@INSTALL@&$ac_INSTALL&;t t
6368$ac_datarootdir_hack
6369"
d0ac1c44
SM
6370eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6371 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
6372
6373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
6374 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6376 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 6378which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 6379$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 6380which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 6381
d0ac1c44 6382 rm -f "$ac_tmp/stdin"
b7026657 6383 case $ac_file in
d0ac1c44
SM
6384 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6385 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 6386 esac \
d0ac1c44 6387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
6388 ;;
6389 :H)
6390 #
6391 # CONFIG_HEADER
6392 #
b7026657 6393 if test x"$ac_file" != x-; then
81ecdfbb
RW
6394 {
6395 $as_echo "/* $configure_input */" \
d0ac1c44
SM
6396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6397 } >"$ac_tmp/config.h" \
6398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6399 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6401$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 6402 else
81ecdfbb 6403 rm -f "$ac_file"
d0ac1c44
SM
6404 mv "$ac_tmp/config.h" "$ac_file" \
6405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c906108c 6406 fi
b7026657 6407 else
81ecdfbb 6408 $as_echo "/* $configure_input */" \
d0ac1c44
SM
6409 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6410 || as_fn_error $? "could not create -" "$LINENO" 5
c906108c 6411 fi
81ecdfbb 6412 ;;
b7026657 6413
81ecdfbb
RW
6414 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6415$as_echo "$as_me: executing $ac_file commands" >&6;}
6416 ;;
6417 esac
b7026657 6418
b7026657 6419
81ecdfbb 6420 case $ac_file$ac_mode in
68a3e151 6421 "build-config.h":C) cp config.h build-config.h ;;
81ecdfbb 6422 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 6423
b7026657 6424 esac
81ecdfbb 6425done # for ac_tag
c906108c 6426
b7026657 6427
81ecdfbb 6428as_fn_exit 0
b7026657 6429_ACEOF
b7026657
AC
6430ac_clean_files=$ac_clean_files_save
6431
81ecdfbb 6432test $ac_write_fail = 0 ||
d0ac1c44 6433 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 6434
b7026657
AC
6435
6436# configure is writing to config.log, and then calls config.status.
6437# config.status does its own redirection, appending to config.log.
6438# Unfortunately, on DOS this fails, as config.log is still kept open
6439# by configure, so config.status won't be able to write to it; its
6440# output is simply discarded. So we exec the FD to /dev/null,
6441# effectively closing config.log, so it can be properly (re)opened and
6442# appended to by config.status. When coming back to configure, we
6443# need to make the FD available again.
6444if test "$no_create" != yes; then
6445 ac_cs_success=:
6446 ac_config_status_args=
6447 test "$silent" = yes &&
6448 ac_config_status_args="$ac_config_status_args --quiet"
6449 exec 5>/dev/null
6450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6451 exec 5>>config.log
6452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6453 # would make configure fail if this is the last instruction.
d0ac1c44 6454 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
6455fi
6456if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6458$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 6459fi
c906108c 6460