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