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