]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mips/configure
sim: unify toolchain probing logic
[thirdparty/binutils-gdb.git] / sim / mips / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
b7026657
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
c906108c 125
b7026657 126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
d3562f83 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
81ecdfbb
RW
199 if (eval "$as_required") 2>/dev/null; then :
200 as_have_required=yes
201else
202 as_have_required=no
203fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206else
207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 210do
81ecdfbb
RW
211 IFS=$as_save_IFS
212 test -z "$as_dir" && as_dir=.
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir/$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 break 2
224fi
225fi
226 done;;
227 esac
228 as_found=false
229done
230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233fi; }
234IFS=$as_save_IFS
235
236
237 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240# neutralization value for shells without unset; and this also
241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
243BASH_ENV=/dev/null
244ENV=/dev/null
245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251esac
252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
81ecdfbb
RW
257fi
258
259 if test x$as_have_required = xno; then :
260 $as_echo "$0: This script requires a shell more modern than all"
261 $as_echo "$0: the shells that I found on your system."
262 if test x${ZSH_VERSION+set} = xset ; then
263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 265 else
81ecdfbb
RW
266 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267$0: including any error possibly output before this
268$0: message. Then install a modern shell, or manually run
269$0: the script under such a shell if you do have one."
b7026657 270 fi
81ecdfbb
RW
271 exit 1
272fi
273fi
274fi
275SHELL=${CONFIG_SHELL-/bin/sh}
276export SHELL
277# Unset more variables known to interfere with behavior of common tools.
278CLICOLOR_FORCE= GREP_OPTIONS=
279unset CLICOLOR_FORCE GREP_OPTIONS
280
281## --------------------- ##
282## M4sh Shell Functions. ##
283## --------------------- ##
284# as_fn_unset VAR
285# ---------------
286# Portably unset VAR.
287as_fn_unset ()
288{
289 { eval $1=; unset $1;}
290}
291as_unset=as_fn_unset
292
293# as_fn_set_status STATUS
294# -----------------------
295# Set $? to STATUS, without forking.
296as_fn_set_status ()
297{
298 return $1
299} # as_fn_set_status
300
301# as_fn_exit STATUS
302# -----------------
303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304as_fn_exit ()
305{
306 set +e
307 as_fn_set_status $1
308 exit $1
309} # as_fn_exit
310
311# as_fn_mkdir_p
312# -------------
313# Create "$as_dir" as a directory, including parents if necessary.
314as_fn_mkdir_p ()
315{
316
317 case $as_dir in #(
318 -*) as_dir=./$as_dir;;
319 esac
320 test -d "$as_dir" || eval $as_mkdir_p || {
321 as_dirs=
322 while :; do
323 case $as_dir in #(
324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325 *) as_qdir=$as_dir;;
326 esac
327 as_dirs="'$as_qdir' $as_dirs"
328 as_dir=`$as_dirname -- "$as_dir" ||
329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330 X"$as_dir" : 'X\(//\)[^/]' \| \
331 X"$as_dir" : 'X\(//\)$' \| \
332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333$as_echo X"$as_dir" |
334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 s//\1/
336 q
337 }
338 /^X\(\/\/\)[^/].*/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\).*/{
347 s//\1/
348 q
349 }
350 s/.*/./; q'`
351 test -d "$as_dir" && break
352 done
353 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
355
356
357} # as_fn_mkdir_p
d0ac1c44
SM
358
359# as_fn_executable_p FILE
360# -----------------------
361# Test if FILE is an executable regular file.
362as_fn_executable_p ()
363{
364 test -f "$1" && test -x "$1"
365} # as_fn_executable_p
81ecdfbb
RW
366# as_fn_append VAR VALUE
367# ----------------------
368# Append the text in VALUE to the end of the definition contained in VAR. Take
369# advantage of any shell optimizations that allow amortized linear growth over
370# repeated appends, instead of the typical quadratic growth present in naive
371# implementations.
372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373 eval 'as_fn_append ()
374 {
375 eval $1+=\$2
376 }'
377else
378 as_fn_append ()
379 {
380 eval $1=\$$1\$2
381 }
382fi # as_fn_append
383
384# as_fn_arith ARG...
385# ------------------
386# Perform arithmetic evaluation on the ARGs, and store the result in the
387# global $as_val. Take advantage of shells that can avoid forks. The arguments
388# must be portable across $(()) and expr.
389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390 eval 'as_fn_arith ()
391 {
392 as_val=$(( $* ))
393 }'
394else
395 as_fn_arith ()
396 {
397 as_val=`expr "$@" || test $? -eq 1`
398 }
399fi # as_fn_arith
400
401
d0ac1c44
SM
402# as_fn_error STATUS ERROR [LINENO LOG_FD]
403# ----------------------------------------
81ecdfbb
RW
404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 406# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
407as_fn_error ()
408{
d0ac1c44
SM
409 as_status=$1; test $as_status -eq 0 && as_status=1
410 if test "$4"; then
411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 413 fi
d0ac1c44 414 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
415 as_fn_exit $as_status
416} # as_fn_error
c906108c 417
81ecdfbb
RW
418if expr a : '\(a\)' >/dev/null 2>&1 &&
419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
420 as_expr=expr
421else
422 as_expr=false
423fi
c906108c 424
81ecdfbb 425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
426 as_basename=basename
427else
428 as_basename=false
429fi
c906108c 430
81ecdfbb
RW
431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432 as_dirname=dirname
433else
434 as_dirname=false
435fi
c906108c 436
81ecdfbb 437as_me=`$as_basename -- "$0" ||
b7026657
AC
438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441$as_echo X/"$0" |
442 sed '/^.*\/\([^/][^/]*\)\/*$/{
443 s//\1/
444 q
445 }
446 /^X\/\(\/\/\)$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\).*/{
451 s//\1/
452 q
453 }
454 s/.*/./; q'`
c906108c 455
b7026657
AC
456# Avoid depending upon Character Ranges.
457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460as_cr_digits='0123456789'
461as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 462
c906108c 463
81ecdfbb
RW
464 as_lineno_1=$LINENO as_lineno_1a=$LINENO
465 as_lineno_2=$LINENO as_lineno_2a=$LINENO
466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
469 sed -n '
470 p
471 /[$]LINENO/=
472 ' <$as_myself |
b7026657 473 sed '
81ecdfbb
RW
474 s/[$]LINENO.*/&-/
475 t lineno
476 b
477 :lineno
b7026657 478 N
81ecdfbb
RW
479 :loop
480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 481 t loop
81ecdfbb 482 s/-\n.*//
b7026657 483 ' >$as_me.lineno &&
81ecdfbb
RW
484 chmod +x "$as_me.lineno" ||
485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 486
d0ac1c44
SM
487 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488 # already done that, so ensure we don't try to do so again and fall
489 # in an infinite loop. This has already happened in practice.
490 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
491 # Don't try to exec as it changes $[0], causing all sort of problems
492 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
493 # original and so on. Autoconf is especially sensitive to this).
494 . "./$as_me.lineno"
b7026657
AC
495 # Exit status is that of the last command.
496 exit
497}
c906108c 498
81ecdfbb
RW
499ECHO_C= ECHO_N= ECHO_T=
500case `echo -n x` in #(((((
501-n*)
502 case `echo 'xy\c'` in
503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 xy) ECHO_C='\c';;
505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
506 ECHO_T=' ';;
507 esac;;
508*)
509 ECHO_N='-n';;
b7026657 510esac
c906108c 511
81ecdfbb
RW
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
b7026657 515else
81ecdfbb
RW
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
b7026657 518fi
81ecdfbb
RW
519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 521 as_ln_s='ln -s'
81ecdfbb
RW
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 525 # In both cases, we have to default to `cp -pR'.
81ecdfbb 526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 527 as_ln_s='cp -pR'
81ecdfbb
RW
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
d0ac1c44 531 as_ln_s='cp -pR'
b7026657 532 fi
b7026657 533else
d0ac1c44 534 as_ln_s='cp -pR'
b7026657 535fi
81ecdfbb
RW
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
c906108c 538
b7026657 539if mkdir -p . 2>/dev/null; then
81ecdfbb 540 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
541else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544fi
c906108c 545
d0ac1c44
SM
546as_test_x='test -x'
547as_executable_p=as_fn_executable_p
c906108c 548
b7026657
AC
549# Sed expression to map a string onto a valid CPP name.
550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 551
b7026657
AC
552# Sed expression to map a string onto a valid variable name.
553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
554
555
d0ac1c44
SM
556test -n "$DJDIR" || exec 7<&0 </dev/null
557exec 6>&1
c906108c 558
b7026657 559# Name of the host.
d0ac1c44 560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
561# so uname gets run too.
562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 563
c906108c 564#
b7026657 565# Initializations.
c906108c 566#
b7026657 567ac_default_prefix=/usr/local
81ecdfbb 568ac_clean_files=
b7026657 569ac_config_libobj_dir=.
81ecdfbb 570LIBOBJS=
b7026657
AC
571cross_compiling=no
572subdirs=
573MFLAGS=
574MAKEFLAGS=
b7026657
AC
575
576# Identity of this package.
577PACKAGE_NAME=
578PACKAGE_TARNAME=
579PACKAGE_VERSION=
580PACKAGE_STRING=
581PACKAGE_BUGREPORT=
81ecdfbb 582PACKAGE_URL=
b7026657
AC
583
584ac_unique_file="Makefile.in"
81ecdfbb
RW
585ac_subst_vars='LTLIBOBJS
586LIBOBJS
760b3e8b
MF
587sim_default_model
588sim_scache
81ecdfbb 589cgen_breaks
81ecdfbb
RW
590sim_multi_obj
591sim_multi_src
592sim_multi_igen_configs
593sim_multi_flags
594sim_gen
8e394ffc
AB
595sim_micromips16_flags
596sim_micromips_flags
81ecdfbb
RW
597sim_m16_flags
598sim_igen_flags
599SIM_SUBTARGET
81ecdfbb 600MAINT
31e6ad7d
MF
601MAINTAINER_MODE_FALSE
602MAINTAINER_MODE_TRUE
81ecdfbb
RW
603CATOBJEXT
604GENCAT
605INSTOBJEXT
606DATADIRNAME
607CATALOGS
608POSUB
609GMSGFMT
610XGETTEXT
611INCINTL
612LIBINTL_DEP
613LIBINTL
614USE_NLS
db2e4d67
MF
615CCDEPMODE
616DEPDIR
617am__leading_dot
81ecdfbb
RW
618INSTALL_DATA
619INSTALL_SCRIPT
620INSTALL_PROGRAM
c2783492
MF
621OBJEXT
622EXEEXT
623ac_ct_CC
624CPPFLAGS
625LDFLAGS
626CFLAGS
627CC
81ecdfbb
RW
628target_alias
629host_alias
630build_alias
631LIBS
632ECHO_T
633ECHO_N
634ECHO_C
635DEFS
636mandir
637localedir
638libdir
639psdir
640pdfdir
641dvidir
642htmldir
643infodir
644docdir
645oldincludedir
646includedir
647localstatedir
648sharedstatedir
649sysconfdir
650datadir
651datarootdir
652libexecdir
653sbindir
654bindir
655program_transform_name
656prefix
657exec_prefix
658PACKAGE_URL
659PACKAGE_BUGREPORT
660PACKAGE_STRING
661PACKAGE_VERSION
662PACKAGE_TARNAME
663PACKAGE_NAME
664PATH_SEPARATOR
136da8cd 665SHELL
136da8cd
MF
666sim_reserved_bits
667sim_inline
668sim_hw
669sim_hw_objs
670sim_hw_cflags
136da8cd 671sim_float
ba307cdd 672sim_bitsize'
b7026657 673ac_subst_files=''
81ecdfbb
RW
674ac_user_opts='
675enable_option_checking
676enable_maintainer_mode
347fe5bb 677enable_sim_inline
81ecdfbb 678enable_sim_reserved_bits
81ecdfbb
RW
679enable_sim_bitsize
680enable_sim_float
81ecdfbb 681enable_sim_hardware
81ecdfbb
RW
682'
683 ac_precious_vars='build_alias
684host_alias
685target_alias
686CC
687CFLAGS
688LDFLAGS
689LIBS
d3562f83 690CPPFLAGS'
81ecdfbb 691
c906108c
SS
692
693# Initialize some variables set by options.
b7026657
AC
694ac_init_help=
695ac_init_version=false
81ecdfbb
RW
696ac_unrecognized_opts=
697ac_unrecognized_sep=
c906108c
SS
698# The variables have the same names as the options, with
699# dashes changed to underlines.
b7026657 700cache_file=/dev/null
c906108c 701exec_prefix=NONE
c906108c 702no_create=
c906108c
SS
703no_recursion=
704prefix=NONE
705program_prefix=NONE
706program_suffix=NONE
707program_transform_name=s,x,x,
708silent=
709site=
710srcdir=
c906108c
SS
711verbose=
712x_includes=NONE
713x_libraries=NONE
b7026657
AC
714
715# Installation directory options.
716# These are left unexpanded so users can "make install exec_prefix=/foo"
717# and all the variables that are supposed to be based on exec_prefix
718# by default will actually change.
719# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 720# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
721bindir='${exec_prefix}/bin'
722sbindir='${exec_prefix}/sbin'
723libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
724datarootdir='${prefix}/share'
725datadir='${datarootdir}'
c906108c
SS
726sysconfdir='${prefix}/etc'
727sharedstatedir='${prefix}/com'
728localstatedir='${prefix}/var'
c906108c
SS
729includedir='${prefix}/include'
730oldincludedir='/usr/include'
81ecdfbb
RW
731docdir='${datarootdir}/doc/${PACKAGE}'
732infodir='${datarootdir}/info'
733htmldir='${docdir}'
734dvidir='${docdir}'
735pdfdir='${docdir}'
736psdir='${docdir}'
737libdir='${exec_prefix}/lib'
738localedir='${datarootdir}/locale'
739mandir='${datarootdir}/man'
c906108c 740
c906108c 741ac_prev=
81ecdfbb 742ac_dashdash=
c906108c
SS
743for ac_option
744do
c906108c
SS
745 # If the previous option needs an argument, assign it.
746 if test -n "$ac_prev"; then
81ecdfbb 747 eval $ac_prev=\$ac_option
c906108c
SS
748 ac_prev=
749 continue
750 fi
751
81ecdfbb 752 case $ac_option in
d0ac1c44
SM
753 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 *=) ac_optarg= ;;
755 *) ac_optarg=yes ;;
81ecdfbb 756 esac
c906108c
SS
757
758 # Accept the important Cygnus configure options, so we can diagnose typos.
759
81ecdfbb
RW
760 case $ac_dashdash$ac_option in
761 --)
762 ac_dashdash=yes ;;
c906108c
SS
763
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
765 ac_prev=bindir ;;
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 767 bindir=$ac_optarg ;;
c906108c
SS
768
769 -build | --build | --buil | --bui | --bu)
b7026657 770 ac_prev=build_alias ;;
c906108c 771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 772 build_alias=$ac_optarg ;;
c906108c
SS
773
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
779 cache_file=$ac_optarg ;;
780
781 --config-cache | -C)
782 cache_file=config.cache ;;
c906108c 783
81ecdfbb 784 -datadir | --datadir | --datadi | --datad)
c906108c 785 ac_prev=datadir ;;
81ecdfbb 786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 787 datadir=$ac_optarg ;;
c906108c 788
81ecdfbb
RW
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
795
c906108c 796 -disable-* | --disable-*)
81ecdfbb 797 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 798 # Reject names that are not valid shell variable names.
81ecdfbb 799 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 800 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
801 ac_useropt_orig=$ac_useropt
802 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
803 case $ac_user_opts in
804 *"
805"enable_$ac_useropt"
806"*) ;;
807 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
808 ac_unrecognized_sep=', ';;
809 esac
810 eval enable_$ac_useropt=no ;;
811
812 -docdir | --docdir | --docdi | --doc | --do)
813 ac_prev=docdir ;;
814 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
815 docdir=$ac_optarg ;;
816
817 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
818 ac_prev=dvidir ;;
819 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
820 dvidir=$ac_optarg ;;
c906108c
SS
821
822 -enable-* | --enable-*)
81ecdfbb 823 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 824 # Reject names that are not valid shell variable names.
81ecdfbb 825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 826 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831"enable_$ac_useropt"
832"*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
c906108c 835 esac
81ecdfbb 836 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
837
838 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840 | --exec | --exe | --ex)
841 ac_prev=exec_prefix ;;
842 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844 | --exec=* | --exe=* | --ex=*)
b7026657 845 exec_prefix=$ac_optarg ;;
c906108c
SS
846
847 -gas | --gas | --ga | --g)
848 # Obsolete; use --with-gas.
849 with_gas=yes ;;
850
b7026657
AC
851 -help | --help | --hel | --he | -h)
852 ac_init_help=long ;;
853 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854 ac_init_help=recursive ;;
855 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856 ac_init_help=short ;;
c906108c
SS
857
858 -host | --host | --hos | --ho)
b7026657 859 ac_prev=host_alias ;;
c906108c 860 -host=* | --host=* | --hos=* | --ho=*)
b7026657 861 host_alias=$ac_optarg ;;
c906108c 862
81ecdfbb
RW
863 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
864 ac_prev=htmldir ;;
865 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
866 | --ht=*)
867 htmldir=$ac_optarg ;;
868
c906108c
SS
869 -includedir | --includedir | --includedi | --included | --include \
870 | --includ | --inclu | --incl | --inc)
871 ac_prev=includedir ;;
872 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 874 includedir=$ac_optarg ;;
c906108c
SS
875
876 -infodir | --infodir | --infodi | --infod | --info | --inf)
877 ac_prev=infodir ;;
878 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 879 infodir=$ac_optarg ;;
c906108c
SS
880
881 -libdir | --libdir | --libdi | --libd)
882 ac_prev=libdir ;;
883 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 884 libdir=$ac_optarg ;;
c906108c
SS
885
886 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887 | --libexe | --libex | --libe)
888 ac_prev=libexecdir ;;
889 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890 | --libexe=* | --libex=* | --libe=*)
b7026657 891 libexecdir=$ac_optarg ;;
c906108c 892
81ecdfbb
RW
893 -localedir | --localedir | --localedi | --localed | --locale)
894 ac_prev=localedir ;;
895 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896 localedir=$ac_optarg ;;
897
c906108c 898 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 899 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
900 ac_prev=localstatedir ;;
901 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 902 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 903 localstatedir=$ac_optarg ;;
c906108c
SS
904
905 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906 ac_prev=mandir ;;
907 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 908 mandir=$ac_optarg ;;
c906108c
SS
909
910 -nfp | --nfp | --nf)
911 # Obsolete; use --without-fp.
912 with_fp=no ;;
913
914 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 915 | --no-cr | --no-c | -n)
c906108c
SS
916 no_create=yes ;;
917
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920 no_recursion=yes ;;
921
922 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924 | --oldin | --oldi | --old | --ol | --o)
925 ac_prev=oldincludedir ;;
926 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 929 oldincludedir=$ac_optarg ;;
c906108c
SS
930
931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932 ac_prev=prefix ;;
933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 934 prefix=$ac_optarg ;;
c906108c
SS
935
936 -program-prefix | --program-prefix | --program-prefi | --program-pref \
937 | --program-pre | --program-pr | --program-p)
938 ac_prev=program_prefix ;;
939 -program-prefix=* | --program-prefix=* | --program-prefi=* \
940 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 941 program_prefix=$ac_optarg ;;
c906108c
SS
942
943 -program-suffix | --program-suffix | --program-suffi | --program-suff \
944 | --program-suf | --program-su | --program-s)
945 ac_prev=program_suffix ;;
946 -program-suffix=* | --program-suffix=* | --program-suffi=* \
947 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 948 program_suffix=$ac_optarg ;;
c906108c
SS
949
950 -program-transform-name | --program-transform-name \
951 | --program-transform-nam | --program-transform-na \
952 | --program-transform-n | --program-transform- \
953 | --program-transform | --program-transfor \
954 | --program-transfo | --program-transf \
955 | --program-trans | --program-tran \
956 | --progr-tra | --program-tr | --program-t)
957 ac_prev=program_transform_name ;;
958 -program-transform-name=* | --program-transform-name=* \
959 | --program-transform-nam=* | --program-transform-na=* \
960 | --program-transform-n=* | --program-transform-=* \
961 | --program-transform=* | --program-transfor=* \
962 | --program-transfo=* | --program-transf=* \
963 | --program-trans=* | --program-tran=* \
964 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 965 program_transform_name=$ac_optarg ;;
c906108c 966
81ecdfbb
RW
967 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
968 ac_prev=pdfdir ;;
969 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970 pdfdir=$ac_optarg ;;
971
972 -psdir | --psdir | --psdi | --psd | --ps)
973 ac_prev=psdir ;;
974 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975 psdir=$ac_optarg ;;
976
c906108c
SS
977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978 | -silent | --silent | --silen | --sile | --sil)
979 silent=yes ;;
980
981 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982 ac_prev=sbindir ;;
983 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984 | --sbi=* | --sb=*)
b7026657 985 sbindir=$ac_optarg ;;
c906108c
SS
986
987 -sharedstatedir | --sharedstatedir | --sharedstatedi \
988 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989 | --sharedst | --shareds | --shared | --share | --shar \
990 | --sha | --sh)
991 ac_prev=sharedstatedir ;;
992 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995 | --sha=* | --sh=*)
b7026657 996 sharedstatedir=$ac_optarg ;;
c906108c
SS
997
998 -site | --site | --sit)
999 ac_prev=site ;;
1000 -site=* | --site=* | --sit=*)
b7026657 1001 site=$ac_optarg ;;
e514a9d6 1002
c906108c
SS
1003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004 ac_prev=srcdir ;;
1005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1006 srcdir=$ac_optarg ;;
c906108c
SS
1007
1008 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009 | --syscon | --sysco | --sysc | --sys | --sy)
1010 ac_prev=sysconfdir ;;
1011 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1013 sysconfdir=$ac_optarg ;;
c906108c
SS
1014
1015 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1016 ac_prev=target_alias ;;
c906108c 1017 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1018 target_alias=$ac_optarg ;;
c906108c
SS
1019
1020 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021 verbose=yes ;;
1022
b7026657
AC
1023 -version | --version | --versio | --versi | --vers | -V)
1024 ac_init_version=: ;;
c906108c
SS
1025
1026 -with-* | --with-*)
81ecdfbb 1027 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1028 # Reject names that are not valid shell variable names.
81ecdfbb 1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1030 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035"with_$ac_useropt"
1036"*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
c906108c 1039 esac
81ecdfbb 1040 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1041
1042 -without-* | --without-*)
81ecdfbb 1043 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1044 # Reject names that are not valid shell variable names.
81ecdfbb 1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1046 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051"with_$ac_useropt"
1052"*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval with_$ac_useropt=no ;;
c906108c
SS
1057
1058 --x)
1059 # Obsolete; use --with-x.
1060 with_x=yes ;;
1061
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev=x_includes ;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1067 x_includes=$ac_optarg ;;
c906108c
SS
1068
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev=x_libraries ;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1074 x_libraries=$ac_optarg ;;
c906108c 1075
d0ac1c44
SM
1076 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1077Try \`$0 --help' for more information"
c906108c
SS
1078 ;;
1079
b7026657
AC
1080 *=*)
1081 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1082 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1083 case $ac_envvar in #(
1084 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1085 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1086 esac
1087 eval $ac_envvar=\$ac_optarg
b7026657
AC
1088 export $ac_envvar ;;
1089
c906108c 1090 *)
b7026657 1091 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1092 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1094 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1095 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1096 ;;
1097
1098 esac
1099done
1100
1101if test -n "$ac_prev"; then
b7026657 1102 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1103 as_fn_error $? "missing argument to $ac_option"
c906108c 1104fi
c906108c 1105
81ecdfbb
RW
1106if test -n "$ac_unrecognized_opts"; then
1107 case $enable_option_checking in
1108 no) ;;
d0ac1c44 1109 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1110 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1111 esac
81ecdfbb 1112fi
c906108c 1113
81ecdfbb
RW
1114# Check all directory arguments for consistency.
1115for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
c906108c 1119do
81ecdfbb
RW
1120 eval ac_val=\$$ac_var
1121 # Remove trailing slashes.
1122 case $ac_val in
1123 */ )
1124 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1125 eval $ac_var=\$ac_val;;
1126 esac
1127 # Be sure to have absolute directory names.
b7026657 1128 case $ac_val in
81ecdfbb
RW
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1131 esac
d0ac1c44 1132 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1133done
1134
b7026657
AC
1135# There might be people who depend on the old broken behavior: `$host'
1136# used to hold the argument of --host etc.
1137# FIXME: To remove some day.
1138build=$build_alias
1139host=$host_alias
1140target=$target_alias
1141
1142# FIXME: To remove some day.
1143if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
b7026657
AC
1146 elif test "x$build_alias" != "x$host_alias"; then
1147 cross_compiling=yes
1148 fi
1149fi
c906108c 1150
b7026657
AC
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
c906108c 1155
c906108c 1156
81ecdfbb
RW
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1160 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1161test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1162 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1163
1164
c906108c
SS
1165# Find the source files, if location was not specified.
1166if test -z "$srcdir"; then
1167 ac_srcdir_defaulted=yes
81ecdfbb
RW
1168 # Try the directory containing this script, then the parent directory.
1169 ac_confdir=`$as_dirname -- "$as_myself" ||
1170$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171 X"$as_myself" : 'X\(//\)[^/]' \| \
1172 X"$as_myself" : 'X\(//\)$' \| \
1173 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1174$as_echo X"$as_myself" |
1175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1176 s//\1/
1177 q
1178 }
1179 /^X\(\/\/\)[^/].*/{
1180 s//\1/
1181 q
1182 }
1183 /^X\(\/\/\)$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\).*/{
1188 s//\1/
1189 q
1190 }
1191 s/.*/./; q'`
c906108c 1192 srcdir=$ac_confdir
81ecdfbb 1193 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1194 srcdir=..
1195 fi
1196else
1197 ac_srcdir_defaulted=no
1198fi
81ecdfbb
RW
1199if test ! -r "$srcdir/$ac_unique_file"; then
1200 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1201 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1202fi
1203ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204ac_abs_confdir=`(
d0ac1c44 1205 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1206 pwd)`
1207# When building in place, set srcdir=.
1208if test "$ac_abs_confdir" = "$ac_pwd"; then
1209 srcdir=.
1210fi
1211# Remove unnecessary trailing slashes from srcdir.
1212# Double slashes in file names in object file debugging info
1213# mess up M-x gdb in Emacs.
1214case $srcdir in
1215*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216esac
1217for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1222done
c906108c 1223
b7026657
AC
1224#
1225# Report the --help message.
1226#
1227if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1230 cat <<_ACEOF
1231\`configure' configures this package to adapt to many kinds of systems.
c906108c 1232
b7026657 1233Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1234
b7026657
AC
1235To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1237
b7026657 1238Defaults for the options are specified in brackets.
c906108c 1239
b7026657
AC
1240Configuration:
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
d0ac1c44 1245 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1250
b7026657
AC
1251Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1253 [$ac_default_prefix]
b7026657 1254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1255 [PREFIX]
c906108c 1256
b7026657
AC
1257By default, \`make install' will install all the files in
1258\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260for instance \`--prefix=\$HOME'.
c906108c 1261
b7026657
AC
1262For better control, use the options below.
1263
1264Fine tuning of the installation directories:
81ecdfbb
RW
1265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1284_ACEOF
1285
1286 cat <<\_ACEOF
b7026657 1287_ACEOF
c906108c 1288fi
b7026657
AC
1289
1290if test -n "$ac_init_help"; then
1291
1292 cat <<\_ACEOF
1293
1294Optional Features:
81ecdfbb 1295 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1298 --enable-maintainer-mode
1299 enable make rules and dependencies not useful (and
1300 sometimes confusing) to the casual installer
8d0978fb
MF
1301 --enable-sim-inline=inlines
1302 Specify which functions should be inlined
8d0978fb
MF
1303 --enable-sim-reserved-bits
1304 Specify whether to check reserved bits in
1305 instruction
8d0978fb
MF
1306 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1307 --enable-sim-float Specify that the target processor has floating point
1308 hardware
1517bd27
MF
1309 --enable-sim-hardware=LIST
1310 Specify the hardware to be included in the build.
b7026657 1311
b7026657
AC
1312Some influential environment variables:
1313 CC C compiler command
1314 CFLAGS C compiler flags
1315 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1316 nonstandard directory <lib dir>
81ecdfbb 1317 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1318 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1319 you have headers in a nonstandard directory <include dir>
b7026657
AC
1320
1321Use these variables to override the choices made by `configure' or to help
1322it to find libraries and programs with nonstandard names/locations.
1323
81ecdfbb 1324Report bugs to the package provider.
b7026657 1325_ACEOF
81ecdfbb 1326ac_status=$?
c906108c
SS
1327fi
1328
b7026657
AC
1329if test "$ac_init_help" = "recursive"; then
1330 # If there are subdirs, report their specific --help.
b7026657 1331 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1332 test -d "$ac_dir" ||
1333 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1334 continue
b7026657 1335 ac_builddir=.
c906108c 1336
81ecdfbb
RW
1337case "$ac_dir" in
1338.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339*)
1340 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346 esac ;;
1347esac
1348ac_abs_top_builddir=$ac_pwd
1349ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350# for backward compatibility:
1351ac_top_builddir=$ac_top_build_prefix
c906108c 1352
b7026657 1353case $srcdir in
81ecdfbb 1354 .) # We are building in place.
b7026657 1355 ac_srcdir=.
81ecdfbb
RW
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1359 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1362 *) # Relative name.
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1366esac
81ecdfbb
RW
1367ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1368
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1372 echo &&
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1375 echo &&
1376 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1377 else
81ecdfbb
RW
1378 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379 fi || ac_status=$?
1380 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1381 done
1382fi
1383
81ecdfbb 1384test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1385if $ac_init_version; then
1386 cat <<\_ACEOF
81ecdfbb 1387configure
d0ac1c44 1388generated by GNU Autoconf 2.69
b7026657 1389
d0ac1c44 1390Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1391This configure script is free software; the Free Software Foundation
1392gives unlimited permission to copy, distribute and modify it.
1393_ACEOF
81ecdfbb 1394 exit
b7026657 1395fi
b7026657 1396
81ecdfbb
RW
1397## ------------------------ ##
1398## Autoconf initialization. ##
1399## ------------------------ ##
b7026657 1400
81ecdfbb
RW
1401# ac_fn_c_try_compile LINENO
1402# --------------------------
1403# Try to compile conftest.$ac_ext, and return whether this succeeded.
1404ac_fn_c_try_compile ()
b7026657 1405{
81ecdfbb
RW
1406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1407 rm -f conftest.$ac_objext
1408 if { { ac_try="$ac_compile"
1409case "(($ac_try" in
1410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411 *) ac_try_echo=$ac_try;;
1412esac
1413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414$as_echo "$ac_try_echo"; } >&5
1415 (eval "$ac_compile") 2>conftest.err
1416 ac_status=$?
1417 if test -s conftest.err; then
1418 grep -v '^ *+' conftest.err >conftest.er1
1419 cat conftest.er1 >&5
1420 mv -f conftest.er1 conftest.err
1421 fi
1422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423 test $ac_status = 0; } && {
1424 test -z "$ac_c_werror_flag" ||
1425 test ! -s conftest.err
1426 } && test -s conftest.$ac_objext; then :
1427 ac_retval=0
1428else
1429 $as_echo "$as_me: failed program was:" >&5
1430sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1431
81ecdfbb
RW
1432 ac_retval=1
1433fi
d0ac1c44
SM
1434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1435 as_fn_set_status $ac_retval
b7026657 1436
81ecdfbb 1437} # ac_fn_c_try_compile
81ecdfbb
RW
1438cat >config.log <<_ACEOF
1439This file contains any messages produced by compilers while
1440running configure, to aid debugging if configure makes a mistake.
1441
1442It was created by $as_me, which was
d0ac1c44 1443generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1444
1445 $ $0 $@
1446
1447_ACEOF
1448exec 5>>config.log
1449{
1450cat <<_ASUNAME
1451## --------- ##
1452## Platform. ##
1453## --------- ##
1454
1455hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1456uname -m = `(uname -m) 2>/dev/null || echo unknown`
1457uname -r = `(uname -r) 2>/dev/null || echo unknown`
1458uname -s = `(uname -s) 2>/dev/null || echo unknown`
1459uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460
1461/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1462/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463
1464/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1465/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1466/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1467/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1468/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1469/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1470/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471
1472_ASUNAME
1473
1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475for as_dir in $PATH
1476do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 $as_echo "PATH: $as_dir"
1480 done
1481IFS=$as_save_IFS
1482
1483} >&5
1484
1485cat >&5 <<_ACEOF
b7026657
AC
1486
1487
1488## ----------- ##
1489## Core tests. ##
1490## ----------- ##
1491
1492_ACEOF
1493
1494
1495# Keep a trace of the command line.
1496# Strip out --no-create and --no-recursion so they do not pile up.
1497# Strip out --silent because we don't want to record it for future runs.
1498# Also quote any args containing shell meta-characters.
1499# Make two passes to allow for proper duplicate-argument suppression.
1500ac_configure_args=
1501ac_configure_args0=
1502ac_configure_args1=
b7026657
AC
1503ac_must_keep_next=false
1504for ac_pass in 1 2
1505do
1506 for ac_arg
1507 do
1508 case $ac_arg in
1509 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 continue ;;
81ecdfbb
RW
1513 *\'*)
1514 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1515 esac
1516 case $ac_pass in
81ecdfbb 1517 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1518 2)
81ecdfbb 1519 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1520 if test $ac_must_keep_next = true; then
1521 ac_must_keep_next=false # Got value, back to normal.
1522 else
1523 case $ac_arg in
1524 *=* | --config-cache | -C | -disable-* | --disable-* \
1525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1527 | -with-* | --with-* | -without-* | --without-* | --x)
1528 case "$ac_configure_args0 " in
1529 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1530 esac
1531 ;;
1532 -* ) ac_must_keep_next=true ;;
1533 esac
1534 fi
81ecdfbb 1535 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1536 ;;
1537 esac
1538 done
1539done
81ecdfbb
RW
1540{ ac_configure_args0=; unset ac_configure_args0;}
1541{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1542
1543# When interrupted or exit'd, cleanup temporary files, and complete
1544# config.log. We remove comments because anyway the quotes in there
1545# would cause problems or look ugly.
81ecdfbb
RW
1546# WARNING: Use '\'' to represent an apostrophe within the trap.
1547# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1548trap 'exit_status=$?
1549 # Save into config.log some information that might help in debugging.
1550 {
1551 echo
1552
d0ac1c44 1553 $as_echo "## ---------------- ##
b7026657 1554## Cache variables. ##
d0ac1c44 1555## ---------------- ##"
b7026657
AC
1556 echo
1557 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1558(
1559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560 eval ac_val=\$$ac_var
1561 case $ac_val in #(
1562 *${as_nl}*)
1563 case $ac_var in #(
1564 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1565$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1566 esac
1567 case $ac_var in #(
1568 _ | IFS | as_nl) ;; #(
1569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1570 *) { eval $ac_var=; unset $ac_var;} ;;
1571 esac ;;
1572 esac
1573 done
b7026657 1574 (set) 2>&1 |
81ecdfbb
RW
1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
b7026657 1577 sed -n \
81ecdfbb
RW
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 ;; #(
b7026657 1581 *)
81ecdfbb 1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1583 ;;
81ecdfbb
RW
1584 esac |
1585 sort
1586)
b7026657
AC
1587 echo
1588
d0ac1c44 1589 $as_echo "## ----------------- ##
b7026657 1590## Output variables. ##
d0ac1c44 1591## ----------------- ##"
b7026657
AC
1592 echo
1593 for ac_var in $ac_subst_vars
1594 do
81ecdfbb
RW
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1600 done | sort
1601 echo
1602
1603 if test -n "$ac_subst_files"; then
d0ac1c44 1604 $as_echo "## ------------------- ##
81ecdfbb 1605## File substitutions. ##
d0ac1c44 1606## ------------------- ##"
b7026657
AC
1607 echo
1608 for ac_var in $ac_subst_files
1609 do
81ecdfbb
RW
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1615 done | sort
1616 echo
1617 fi
1618
1619 if test -s confdefs.h; then
d0ac1c44 1620 $as_echo "## ----------- ##
b7026657 1621## confdefs.h. ##
d0ac1c44 1622## ----------- ##"
b7026657 1623 echo
81ecdfbb 1624 cat confdefs.h
b7026657
AC
1625 echo
1626 fi
1627 test "$ac_signal" != 0 &&
81ecdfbb
RW
1628 $as_echo "$as_me: caught signal $ac_signal"
1629 $as_echo "$as_me: exit $exit_status"
b7026657 1630 } >&5
81ecdfbb
RW
1631 rm -f core *.core core.conftest.* &&
1632 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1633 exit $exit_status
81ecdfbb 1634' 0
b7026657 1635for ac_signal in 1 2 13 15; do
81ecdfbb 1636 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1637done
1638ac_signal=0
1639
1640# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1641rm -f -r conftest* confdefs.h
1642
1643$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1644
1645# Predefined preprocessor variables.
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE_NAME "$PACKAGE_NAME"
1649_ACEOF
1650
b7026657
AC
1651cat >>confdefs.h <<_ACEOF
1652#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1653_ACEOF
1654
b7026657
AC
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_VERSION "$PACKAGE_VERSION"
1657_ACEOF
1658
b7026657
AC
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_STRING "$PACKAGE_STRING"
1661_ACEOF
1662
b7026657
AC
1663cat >>confdefs.h <<_ACEOF
1664#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1665_ACEOF
1666
81ecdfbb
RW
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_URL "$PACKAGE_URL"
1669_ACEOF
1670
b7026657
AC
1671
1672# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1673# Prefer an explicitly selected file to automatically selected ones.
1674ac_site_file1=NONE
1675ac_site_file2=NONE
1676if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
1677 # We do not want a PATH search for config.site.
1678 case $CONFIG_SITE in #((
1679 -*) ac_site_file1=./$CONFIG_SITE;;
1680 */*) ac_site_file1=$CONFIG_SITE;;
1681 *) ac_site_file1=./$CONFIG_SITE;;
1682 esac
81ecdfbb
RW
1683elif test "x$prefix" != xNONE; then
1684 ac_site_file1=$prefix/share/config.site
1685 ac_site_file2=$prefix/etc/config.site
1686else
1687 ac_site_file1=$ac_default_prefix/share/config.site
1688 ac_site_file2=$ac_default_prefix/etc/config.site
1689fi
1690for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1691do
1692 test "x$ac_site_file" = xNONE && continue
d0ac1c44 1693 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1695$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 1696 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
1697 . "$ac_site_file" \
1698 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1700as_fn_error $? "failed to load site script $ac_site_file
1701See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
1702 fi
1703done
1704
1705if test -r "$cache_file"; then
d0ac1c44
SM
1706 # Some versions of bash will fail to source /dev/null (special files
1707 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1708 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1710$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 1711 case $cache_file in
81ecdfbb
RW
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
b7026657
AC
1714 esac
1715 fi
c906108c 1716else
81ecdfbb
RW
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1718$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
1719 >$cache_file
1720fi
1721
1722# Check that the precious variables saved in the cache have kept the same
1723# value.
1724ac_cache_corrupted=false
81ecdfbb 1725for ac_var in $ac_precious_vars; do
b7026657
AC
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
1730 case $ac_old_set,$ac_new_set in
1731 set,)
81ecdfbb
RW
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1733$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
1734 ac_cache_corrupted=: ;;
1735 ,set)
81ecdfbb
RW
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1737$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
1738 ac_cache_corrupted=: ;;
1739 ,);;
1740 *)
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1742 # differences in whitespace do not lead to failure.
1743 ac_old_val_w=`echo x $ac_old_val`
1744 ac_new_val_w=`echo x $ac_new_val`
1745 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1747$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1748 ac_cache_corrupted=:
1749 else
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1751$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1752 eval $ac_var=\$ac_old_val
1753 fi
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1755$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1757$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
1758 fi;;
1759 esac
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
81ecdfbb 1763 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 1768 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
1769 esac
1770 fi
1771done
1772if $ac_cache_corrupted; then
81ecdfbb
RW
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1776$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 1777 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 1778fi
81ecdfbb
RW
1779## -------------------- ##
1780## Main body of script. ##
1781## -------------------- ##
b7026657
AC
1782
1783ac_ext=c
1784ac_cpp='$CPP $CPPFLAGS'
1785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788
1789
6bb11ab3
L
1790
1791
1792
1793
1794
1795ac_ext=c
1796ac_cpp='$CPP $CPPFLAGS'
1797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1802set dummy ${ac_tool_prefix}gcc; ac_word=$2
1803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1804$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1805if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1806 $as_echo_n "(cached) " >&6
1807else
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1821 fi
1822done
1823 done
1824IFS=$as_save_IFS
1825
1826fi
1827fi
1828CC=$ac_cv_prog_CC
1829if test -n "$CC"; then
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1831$as_echo "$CC" >&6; }
1832else
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1834$as_echo "no" >&6; }
1835fi
1836
1837
1838fi
1839if test -z "$ac_cv_prog_CC"; then
1840 ac_ct_CC=$CC
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842set dummy gcc; ac_word=$2
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1844$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1845if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
1846 $as_echo_n "(cached) " >&6
1847else
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850else
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1858 ac_cv_prog_ac_ct_CC="gcc"
1859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1861 fi
1862done
1863 done
1864IFS=$as_save_IFS
1865
1866fi
1867fi
1868ac_ct_CC=$ac_cv_prog_ac_ct_CC
1869if test -n "$ac_ct_CC"; then
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1871$as_echo "$ac_ct_CC" >&6; }
1872else
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1874$as_echo "no" >&6; }
1875fi
1876
1877 if test "x$ac_ct_CC" = x; then
1878 CC=""
1879 else
1880 case $cross_compiling:$ac_tool_warned in
1881yes:)
1882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1884ac_tool_warned=yes ;;
1885esac
1886 CC=$ac_ct_CC
1887 fi
1888else
1889 CC="$ac_cv_prog_CC"
1890fi
1891
1892if test -z "$CC"; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895set dummy ${ac_tool_prefix}cc; ac_word=$2
1896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1897$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1898if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1899 $as_echo_n "(cached) " >&6
1900else
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1903else
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1911 ac_cv_prog_CC="${ac_tool_prefix}cc"
1912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1914 fi
1915done
1916 done
1917IFS=$as_save_IFS
1918
1919fi
1920fi
1921CC=$ac_cv_prog_CC
1922if test -n "$CC"; then
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1924$as_echo "$CC" >&6; }
1925else
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1927$as_echo "no" >&6; }
1928fi
1929
1930
1931 fi
1932fi
1933if test -z "$CC"; then
1934 # Extract the first word of "cc", so it can be a program name with args.
1935set dummy cc; ac_word=$2
1936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1937$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1938if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1939 $as_echo_n "(cached) " >&6
1940else
1941 if test -n "$CC"; then
1942 ac_cv_prog_CC="$CC" # Let the user override the test.
1943else
1944 ac_prog_rejected=no
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1953 ac_prog_rejected=yes
1954 continue
1955 fi
1956 ac_cv_prog_CC="cc"
1957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 break 2
1959 fi
1960done
1961 done
1962IFS=$as_save_IFS
1963
1964if test $ac_prog_rejected = yes; then
1965 # We found a bogon in the path, so make sure we never use it.
1966 set dummy $ac_cv_prog_CC
1967 shift
1968 if test $# != 0; then
1969 # We chose a different compiler from the bogus one.
1970 # However, it has the same basename, so the bogon will be chosen
1971 # first if we set CC to just the basename; use the full file name.
1972 shift
1973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1974 fi
1975fi
1976fi
1977fi
1978CC=$ac_cv_prog_CC
1979if test -n "$CC"; then
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1981$as_echo "$CC" >&6; }
1982else
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1984$as_echo "no" >&6; }
1985fi
1986
1987
1988fi
1989if test -z "$CC"; then
1990 if test -n "$ac_tool_prefix"; then
1991 for ac_prog in cl.exe
1992 do
1993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1996$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1997if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1998 $as_echo_n "(cached) " >&6
1999else
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2002else
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2013 fi
2014done
2015 done
2016IFS=$as_save_IFS
2017
2018fi
2019fi
2020CC=$ac_cv_prog_CC
2021if test -n "$CC"; then
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2023$as_echo "$CC" >&6; }
2024else
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2026$as_echo "no" >&6; }
2027fi
2028
2029
2030 test -n "$CC" && break
2031 done
2032fi
2033if test -z "$CC"; then
2034 ac_ct_CC=$CC
2035 for ac_prog in cl.exe
2036do
2037 # Extract the first word of "$ac_prog", so it can be a program name with args.
2038set dummy $ac_prog; ac_word=$2
2039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2040$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2041if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2042 $as_echo_n "(cached) " >&6
2043else
2044 if test -n "$ac_ct_CC"; then
2045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046else
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2054 ac_cv_prog_ac_ct_CC="$ac_prog"
2055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2057 fi
2058done
2059 done
2060IFS=$as_save_IFS
2061
2062fi
2063fi
2064ac_ct_CC=$ac_cv_prog_ac_ct_CC
2065if test -n "$ac_ct_CC"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2067$as_echo "$ac_ct_CC" >&6; }
2068else
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2070$as_echo "no" >&6; }
2071fi
2072
2073
2074 test -n "$ac_ct_CC" && break
2075done
2076
2077 if test "x$ac_ct_CC" = x; then
2078 CC=""
2079 else
2080 case $cross_compiling:$ac_tool_warned in
2081yes:)
2082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2084ac_tool_warned=yes ;;
2085esac
2086 CC=$ac_ct_CC
2087 fi
2088fi
2089
2090fi
2091
2092
2093test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2095as_fn_error $? "no acceptable C compiler found in \$PATH
2096See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2097
2098# Provide some information about the compiler.
2099$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2100set X $ac_compile
2101ac_compiler=$2
2102for ac_option in --version -v -V -qversion; do
2103 { { ac_try="$ac_compiler $ac_option >&5"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109$as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 sed '10a\
2114... rest of stderr output deleted ...
2115 10q' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
6bb11ab3 2117 fi
d0ac1c44 2118 rm -f conftest.er1 conftest.err
6bb11ab3
L
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; }
2121done
2122
2123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h. */
2125
2126int
2127main ()
2128{
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134ac_clean_files_save=$ac_clean_files
d0ac1c44 2135ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2136# Try to create an executable without -o first, disregard a.out.
2137# It will help us diagnose broken compilers, and finding out an intuition
2138# of exeext.
d0ac1c44
SM
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2140$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2141ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142
2143# The possible output files:
2144ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2145
2146ac_rmfiles=
2147for ac_file in $ac_files
2148do
2149 case $ac_file in
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2152 esac
2153done
2154rm -f $ac_rmfiles
2155
2156if { { ac_try="$ac_link_default"
2157case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160esac
2161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162$as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_link_default") 2>&5
2164 ac_status=$?
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; }; then :
2167 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2168# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2169# in a Makefile. We should not override ac_cv_exeext if it was cached,
2170# so that the user can short-circuit this test for compilers unknown to
2171# Autoconf.
2172for ac_file in $ac_files ''
2173do
2174 test -f "$ac_file" || continue
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2177 ;;
2178 [ab].out )
2179 # We found the default executable, but exeext='' is most
2180 # certainly right.
2181 break;;
2182 *.* )
2183 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2184 then :; else
2185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 fi
2187 # We set ac_cv_exeext here because the later test for it is not
2188 # safe: cross compilers may not add the suffix if given an `-o'
2189 # argument, so we may need to know it at that point already.
2190 # Even if this section looks crufty: it has the advantage of
2191 # actually working.
2192 break;;
2193 * )
2194 break;;
2195 esac
2196done
2197test "$ac_cv_exeext" = no && ac_cv_exeext=
2198
2199else
2200 ac_file=''
2201fi
6bb11ab3 2202if test -z "$ac_file"; then :
d0ac1c44
SM
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2204$as_echo "no" >&6; }
2205$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2210as_fn_error 77 "C compiler cannot create executables
2211See \`config.log' for more details" "$LINENO" 5; }
2212else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2214$as_echo "yes" >&6; }
6bb11ab3 2215fi
d0ac1c44
SM
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2217$as_echo_n "checking for C compiler default output file name... " >&6; }
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2219$as_echo "$ac_file" >&6; }
6bb11ab3
L
2220ac_exeext=$ac_cv_exeext
2221
d0ac1c44 2222rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2223ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2225$as_echo_n "checking for suffix of executables... " >&6; }
2226if { { ac_try="$ac_link"
2227case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230esac
2231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232$as_echo "$ac_try_echo"; } >&5
2233 (eval "$ac_link") 2>&5
2234 ac_status=$?
2235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; }; then :
2237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2238# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2239# work properly (i.e., refer to `conftest.exe'), while it won't with
2240# `rm'.
2241for ac_file in conftest.exe conftest conftest.*; do
2242 test -f "$ac_file" || continue
2243 case $ac_file in
2244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2246 break;;
2247 * ) break;;
2248 esac
2249done
2250else
2251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2253as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2254See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2255fi
d0ac1c44 2256rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2258$as_echo "$ac_cv_exeext" >&6; }
2259
2260rm -f conftest.$ac_ext
2261EXEEXT=$ac_cv_exeext
2262ac_exeext=$EXEEXT
d0ac1c44
SM
2263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264/* end confdefs.h. */
2265#include <stdio.h>
2266int
2267main ()
2268{
2269FILE *f = fopen ("conftest.out", "w");
2270 return ferror (f) || fclose (f) != 0;
2271
2272 ;
2273 return 0;
2274}
2275_ACEOF
2276ac_clean_files="$ac_clean_files conftest.out"
2277# Check that the compiler produces executables we can run. If not, either
2278# the compiler is broken, or we cross compile.
2279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2280$as_echo_n "checking whether we are cross compiling... " >&6; }
2281if test "$cross_compiling" != yes; then
2282 { { ac_try="$ac_link"
2283case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2286esac
2287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288$as_echo "$ac_try_echo"; } >&5
2289 (eval "$ac_link") 2>&5
2290 ac_status=$?
2291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2292 test $ac_status = 0; }
2293 if { ac_try='./conftest$ac_cv_exeext'
2294 { { case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2297esac
2298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299$as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_try") 2>&5
2301 ac_status=$?
2302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303 test $ac_status = 0; }; }; then
2304 cross_compiling=no
2305 else
2306 if test "$cross_compiling" = maybe; then
2307 cross_compiling=yes
2308 else
2309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311as_fn_error $? "cannot run C compiled programs.
2312If you meant to cross compile, use \`--host'.
2313See \`config.log' for more details" "$LINENO" 5; }
2314 fi
2315 fi
2316fi
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2318$as_echo "$cross_compiling" >&6; }
2319
2320rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2321ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2323$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2324if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2325 $as_echo_n "(cached) " >&6
2326else
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328/* end confdefs.h. */
2329
2330int
2331main ()
2332{
2333
2334 ;
2335 return 0;
2336}
2337_ACEOF
2338rm -f conftest.o conftest.obj
2339if { { ac_try="$ac_compile"
2340case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343esac
2344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2345$as_echo "$ac_try_echo"; } >&5
2346 (eval "$ac_compile") 2>&5
2347 ac_status=$?
2348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349 test $ac_status = 0; }; then :
2350 for ac_file in conftest.o conftest.obj conftest.*; do
2351 test -f "$ac_file" || continue;
2352 case $ac_file in
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355 break;;
2356 esac
2357done
2358else
2359 $as_echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2364as_fn_error $? "cannot compute suffix of object files: cannot compile
2365See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2366fi
2367rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368fi
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2370$as_echo "$ac_cv_objext" >&6; }
2371OBJEXT=$ac_cv_objext
2372ac_objext=$OBJEXT
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2374$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2375if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2376 $as_echo_n "(cached) " >&6
2377else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380
2381int
2382main ()
2383{
2384#ifndef __GNUC__
2385 choke me
2386#endif
2387
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_compiler_gnu=yes
2394else
2395 ac_compiler_gnu=no
2396fi
2397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398ac_cv_c_compiler_gnu=$ac_compiler_gnu
2399
2400fi
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2402$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2403if test $ac_compiler_gnu = yes; then
2404 GCC=yes
2405else
2406 GCC=
2407fi
2408ac_test_CFLAGS=${CFLAGS+set}
2409ac_save_CFLAGS=$CFLAGS
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2411$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2412if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
2413 $as_echo_n "(cached) " >&6
2414else
2415 ac_save_c_werror_flag=$ac_c_werror_flag
2416 ac_c_werror_flag=yes
2417 ac_cv_prog_cc_g=no
2418 CFLAGS="-g"
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420/* end confdefs.h. */
2421
2422int
2423main ()
2424{
2425
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430if ac_fn_c_try_compile "$LINENO"; then :
2431 ac_cv_prog_cc_g=yes
2432else
2433 CFLAGS=""
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435/* end confdefs.h. */
2436
2437int
2438main ()
2439{
2440
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445if ac_fn_c_try_compile "$LINENO"; then :
2446
2447else
2448 ac_c_werror_flag=$ac_save_c_werror_flag
2449 CFLAGS="-g"
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451/* end confdefs.h. */
2452
2453int
2454main ()
2455{
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461if ac_fn_c_try_compile "$LINENO"; then :
2462 ac_cv_prog_cc_g=yes
2463fi
2464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465fi
2466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467fi
2468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 ac_c_werror_flag=$ac_save_c_werror_flag
2470fi
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2472$as_echo "$ac_cv_prog_cc_g" >&6; }
2473if test "$ac_test_CFLAGS" = set; then
2474 CFLAGS=$ac_save_CFLAGS
2475elif test $ac_cv_prog_cc_g = yes; then
2476 if test "$GCC" = yes; then
2477 CFLAGS="-g -O2"
2478 else
2479 CFLAGS="-g"
2480 fi
2481else
2482 if test "$GCC" = yes; then
2483 CFLAGS="-O2"
2484 else
2485 CFLAGS=
2486 fi
2487fi
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2489$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 2490if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
2491 $as_echo_n "(cached) " >&6
2492else
2493 ac_cv_prog_cc_c89=no
2494ac_save_CC=$CC
2495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496/* end confdefs.h. */
2497#include <stdarg.h>
2498#include <stdio.h>
d0ac1c44 2499struct stat;
6bb11ab3
L
2500/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2501struct buf { int x; };
2502FILE * (*rcsopen) (struct buf *, struct stat *, int);
2503static char *e (p, i)
2504 char **p;
2505 int i;
2506{
2507 return p[i];
2508}
2509static char *f (char * (*g) (char **, int), char **p, ...)
2510{
2511 char *s;
2512 va_list v;
2513 va_start (v,p);
2514 s = g (p, va_arg (v,int));
2515 va_end (v);
2516 return s;
2517}
2518
2519/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2520 function prototypes and stuff, but not '\xHH' hex character constants.
2521 These don't provoke an error unfortunately, instead are silently treated
2522 as 'x'. The following induces an error, until -std is added to get
2523 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2524 array size at least. It's necessary to write '\x00'==0 to get something
2525 that's true only with -std. */
2526int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527
2528/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2529 inside strings and character constants. */
2530#define FOO(x) 'x'
2531int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2532
2533int test (int i, double x);
2534struct s1 {int (*f) (int a);};
2535struct s2 {int (*f) (double a);};
2536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2537int argc;
2538char **argv;
2539int
2540main ()
2541{
2542return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2548 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549do
2550 CC="$ac_save_CC $ac_arg"
2551 if ac_fn_c_try_compile "$LINENO"; then :
2552 ac_cv_prog_cc_c89=$ac_arg
2553fi
2554rm -f core conftest.err conftest.$ac_objext
2555 test "x$ac_cv_prog_cc_c89" != "xno" && break
2556done
2557rm -f conftest.$ac_ext
2558CC=$ac_save_CC
2559
2560fi
2561# AC_CACHE_VAL
2562case "x$ac_cv_prog_cc_c89" in
2563 x)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2565$as_echo "none needed" >&6; } ;;
2566 xno)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2568$as_echo "unsupported" >&6; } ;;
2569 *)
2570 CC="$CC $ac_cv_prog_cc_c89"
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2572$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2573esac
2574if test "x$ac_cv_prog_cc_c89" != xno; then :
2575
2576fi
2577
2578ac_ext=c
2579ac_cpp='$CPP $CPPFLAGS'
2580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583
d3562f83
MF
2584ac_aux_dir=
2585for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2586 if test -f "$ac_dir/install-sh"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/install-sh -c"
2589 break
2590 elif test -f "$ac_dir/install.sh"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/install.sh -c"
2593 break
2594 elif test -f "$ac_dir/shtool"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/shtool install -c"
2597 break
2598 fi
ebe9564b 2599done
d3562f83
MF
2600if test -z "$ac_aux_dir"; then
2601 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
ebe9564b 2602fi
ebe9564b 2603
d3562f83
MF
2604# These three variables are undocumented and unsupported,
2605# and are intended to be withdrawn in a future Autoconf release.
2606# They can cause serious problems if a builder's source tree is in a directory
2607# whose full name contains unusual characters.
2608ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2609ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2610ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ebe9564b 2611
ebe9564b 2612
d3562f83
MF
2613# Find a good install program. We prefer a C program (faster),
2614# so one script is as good as another. But avoid the broken or
2615# incompatible versions:
2616# SysV /etc/install, /usr/sbin/install
2617# SunOS /usr/etc/install
2618# IRIX /sbin/install
2619# AIX /bin/install
2620# AmigaOS /C/install, which installs bootblocks on floppy discs
2621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2622# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2624# OS/2's system install, which has a completely different semantic
2625# ./install, which can be erroneously created by make from ./install.sh.
2626# Reject install programs that cannot install multiple files.
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2628$as_echo_n "checking for a BSD-compatible install... " >&6; }
2629if test -z "$INSTALL"; then
2630if ${ac_cv_path_install+:} false; then :
2631 $as_echo_n "(cached) " >&6
6bb11ab3
L
2632else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 # Account for people who put trailing slashes in PATH elements.
2639case $as_dir/ in #((
2640 ./ | .// | /[cC]/* | \
2641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2642 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643 /usr/ucb/* ) ;;
2644 *)
2645 # OSF1 and SCO ODT 3.0 have their own names for install.
2646 # Don't use installbsd from OSF since it installs stuff as root
2647 # by default.
2648 for ac_prog in ginstall scoinst install; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2650 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
2651 if test $ac_prog = install &&
2652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653 # AIX install. It has an incompatible calling convention.
2654 :
2655 elif test $ac_prog = install &&
2656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657 # program-specific install script used by HP pwplus--don't use.
2658 :
2659 else
2660 rm -rf conftest.one conftest.two conftest.dir
2661 echo one > conftest.one
2662 echo two > conftest.two
2663 mkdir conftest.dir
2664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2665 test -s conftest.one && test -s conftest.two &&
2666 test -s conftest.dir/conftest.one &&
2667 test -s conftest.dir/conftest.two
2668 then
2669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2670 break 3
2671 fi
2672 fi
2673 fi
2674 done
2675 done
2676 ;;
2677esac
2678
2679 done
2680IFS=$as_save_IFS
2681
2682rm -rf conftest.one conftest.two conftest.dir
2683
2684fi
2685 if test "${ac_cv_path_install+set}" = set; then
2686 INSTALL=$ac_cv_path_install
2687 else
2688 # As a last resort, use the slow shell script. Don't cache a
2689 # value for INSTALL within a source directory, because that will
2690 # break other packages using the cache if that directory is
2691 # removed, or if the value is a relative name.
2692 INSTALL=$ac_install_sh
2693 fi
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2696$as_echo "$INSTALL" >&6; }
2697
2698# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2699# It thinks the first close brace ends the variable substitution.
2700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2701
2702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2703
2704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2705
2706rm -rf .tst 2>/dev/null
2707mkdir .tst 2>/dev/null
2708if test -d .tst; then
2709 am__leading_dot=.
2710else
2711 am__leading_dot=_
2712fi
2713rmdir .tst 2>/dev/null
2714
2715DEPDIR="${am__leading_dot}deps"
2716
d3562f83 2717# Dependency checking.
6bb11ab3
L
2718
2719
b5689863 2720ac_config_commands="$ac_config_commands depdir"
6bb11ab3
L
2721
2722
b5689863 2723depcc="$CC" am_compiler_list=
68ed2854 2724
b5689863
MF
2725am_depcomp=$ac_aux_dir/depcomp
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2727$as_echo_n "checking dependency style of $depcc... " >&6; }
2728if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
2729 $as_echo_n "(cached) " >&6
2730else
b5689863
MF
2731 if test -f "$am_depcomp"; then
2732 # We make a subdir and do the tests there. Otherwise we can end up
2733 # making bogus files that we don't know about and never remove. For
2734 # instance it was reported that on HP-UX the gcc test will end up
2735 # making a dummy file named `D' -- because `-MD' means `put the output
2736 # in D'.
2737 mkdir conftest.dir
2738 # Copy depcomp to subdir because otherwise we won't find it if we're
2739 # using a relative directory.
2740 cp "$am_depcomp" conftest.dir
2741 cd conftest.dir
2742 # We will build objects and dependencies in a subdirectory because
2743 # it helps to detect inapplicable dependency modes. For instance
2744 # both Tru64's cc and ICC support -MD to output dependencies as a
2745 # side effect of compilation, but ICC will put the dependencies in
2746 # the current directory while Tru64 will put them in the object
2747 # directory.
2748 mkdir sub
2749
2750 am_cv_CC_dependencies_compiler_type=none
2751 if test "$am_compiler_list" = ""; then
2752 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6bb11ab3 2753 fi
b5689863
MF
2754 for depmode in $am_compiler_list; do
2755 if test $depmode = none; then break; fi
6bb11ab3 2756
b5689863
MF
2757 $as_echo "$as_me:$LINENO: trying $depmode" >&5
2758 # Setup a source with many dependencies, because some compilers
2759 # like to wrap large dependency lists on column 80 (with \), and
2760 # we should not choose a depcomp mode which is confused by this.
2761 #
2762 # We need to recreate these files for each test, as the compiler may
2763 # overwrite some of them when testing with obscure command lines.
2764 # This happens at least with the AIX C compiler.
2765 : > sub/conftest.c
2766 for i in 1 2 3 4 5 6; do
2767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2768 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2769 # Solaris 8's {/usr,}/bin/sh.
2770 touch sub/conftst$i.h
2771 done
2772 echo "include sub/conftest.Po" > confmf
6bb11ab3 2773
b5689863
MF
2774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2775 # mode. It turns out that the SunPro C++ compiler does not properly
2776 # handle `-M -o', and we need to detect this.
2777 depcmd="depmode=$depmode \
2778 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2780 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2781 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2782 if env $depcmd > conftest.err 2>&1 &&
2783 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2784 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2785 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2786 # icc doesn't choke on unknown options, it will just issue warnings
2787 # or remarks (even with -Werror). So we grep stderr for any message
2788 # that says an option was ignored or not supported.
2789 # When given -MP, icc 7.0 and 7.1 complain thusly:
2790 # icc: Command line warning: ignoring option '-M'; no argument required
2791 # The diagnosis changed in icc 8.0:
2792 # icc: Command line remark: option '-MP' not supported
2793 if (grep 'ignoring option' conftest.err ||
2794 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2795 am_cv_CC_dependencies_compiler_type=$depmode
2796 $as_echo "$as_me:$LINENO: success" >&5
2797 break
2798 fi
2799 fi
2800 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2801 sed -e 's/^/| /' < conftest.err >&5
6bb11ab3 2802 done
6bb11ab3 2803
b5689863
MF
2804 cd ..
2805 rm -rf conftest.dir
6bb11ab3 2806else
b5689863 2807 am_cv_CC_dependencies_compiler_type=none
6bb11ab3
L
2808fi
2809
68ed2854 2810fi
b5689863
MF
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2812$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2813if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2814then as_fn_error $? "no usable dependency style found" "$LINENO" 5
2815else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6bb11ab3
L
2816
2817fi
6bb11ab3
L
2818
2819
b5689863
MF
2820ALL_LINGUAS=
2821# If we haven't got the data from the intl directory,
2822# assume NLS is disabled.
2823USE_NLS=no
2824LIBINTL=
2825LIBINTL_DEP=
2826INCINTL=
2827XGETTEXT=
2828GMSGFMT=
2829POSUB=
6bb11ab3 2830
b5689863
MF
2831if test -f ../../intl/config.intl; then
2832 . ../../intl/config.intl
6bb11ab3 2833fi
b5689863
MF
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2835$as_echo_n "checking whether NLS is requested... " >&6; }
2836if test x"$USE_NLS" != xyes; then
6bb11ab3
L
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838$as_echo "no" >&6; }
6bb11ab3 2839else
b5689863
MF
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841$as_echo "yes" >&6; }
6bb11ab3 2842
b5689863 2843$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6bb11ab3
L
2844
2845
b5689863
MF
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
2847$as_echo_n "checking for catalogs to be installed... " >&6; }
2848 # Look for .po and .gmo files in the source directory.
2849 CATALOGS=
2850 XLINGUAS=
2851 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2852 # If there aren't any .gmo files the shell will give us the
2853 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2854 # weeded out.
2855 case "$cat" in *\**)
2856 continue;;
6bb11ab3 2857 esac
b5689863
MF
2858 # The quadruple backslash is collapsed to a double backslash
2859 # by the backticks, then collapsed again by the double quotes,
2860 # leaving us with one backslash in the sed expression (right
2861 # before the dot that mustn't act as a wildcard).
2862 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2863 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2864 # The user is allowed to set LINGUAS to a list of languages to
2865 # install catalogs for. If it's empty that means "all of them."
2866 if test "x$LINGUAS" = x; then
2867 CATALOGS="$CATALOGS $cat"
2868 XLINGUAS="$XLINGUAS $lang"
6bb11ab3 2869 else
b5689863
MF
2870 case "$LINGUAS" in *$lang*)
2871 CATALOGS="$CATALOGS $cat"
2872 XLINGUAS="$XLINGUAS $lang"
2873 ;;
2874 esac
2875 fi
2876 done
2877 LINGUAS="$XLINGUAS"
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
2879$as_echo "$LINGUAS" >&6; }
6bb11ab3
L
2880
2881
b5689863 2882 DATADIRNAME=share
6bb11ab3 2883
b5689863 2884 INSTOBJEXT=.mo
6bb11ab3 2885
b5689863 2886 GENCAT=gencat
6bb11ab3 2887
b5689863 2888 CATOBJEXT=.gmo
5912fadd 2889
b5689863 2890fi
b5bd9624 2891
c906108c 2892
31e6ad7d
MF
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2894$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2895 # Check whether --enable-maintainer-mode was given.
81ecdfbb 2896if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
2897 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2898else
2899 USE_MAINTAINER_MODE=no
c906108c 2900fi
31e6ad7d
MF
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2903$as_echo "$USE_MAINTAINER_MODE" >&6; }
2904 if test $USE_MAINTAINER_MODE = yes; then
2905 MAINTAINER_MODE_TRUE=
2906 MAINTAINER_MODE_FALSE='#'
c906108c 2907else
31e6ad7d
MF
2908 MAINTAINER_MODE_TRUE='#'
2909 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
2910fi
2911
31e6ad7d
MF
2912 MAINT=$MAINTAINER_MODE_TRUE
2913
2914
c906108c
SS
2915
2916
347fe5bb
MF
2917sim_inline="-DDEFAULT_INLINE=0"
2918# Check whether --enable-sim-inline was given.
2919if test "${enable_sim_inline+set}" = set; then :
2920 enableval=$enable_sim_inline; sim_inline=""
2921case "$enableval" in
2922 no) sim_inline="-DDEFAULT_INLINE=0";;
2923 0) sim_inline="-DDEFAULT_INLINE=0";;
2924 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
2925 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
2926 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
2927 new_flag=""
2928 case "$x" in
2929 *_INLINE=*) new_flag="-D$x";;
2930 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
2931 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
2932 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
2933 esac
2934 if test x"$sim_inline" = x""; then
2935 sim_inline="$new_flag"
2936 else
2937 sim_inline="$sim_inline $new_flag"
2938 fi
2939 done;;
2940esac
2941if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
2942 echo "Setting inline flags = $sim_inline" 6>&1
2943fi
2944fi
2945
2946
2947
6efef468 2948
e6c674b8 2949default_sim_reserved_bits="1"
81ecdfbb
RW
2950# Check whether --enable-sim-reserved-bits was given.
2951if test "${enable_sim_reserved_bits+set}" = set; then :
2952 enableval=$enable_sim_reserved_bits; case "${enableval}" in
e6c674b8
CD
2953 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
2954 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
d0ac1c44 2955 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
e6c674b8
CD
2956esac
2957if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
2958 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
2959fi
2960else
2961 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
81ecdfbb
RW
2962fi
2963
e6c674b8 2964
c906108c
SS
2965# DEPRECATED
2966#
2967# Instead of defining a `subtarget' macro, code should be checking
2968# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
2969# in question.
2970#
2971case "${target}" in
4c54fc26 2972 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
c906108c 2973 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
109ad085 2974 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
cc220243 2975 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1e799e28
CD
2976 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
2977 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
2978 *) SIM_SUBTARGET="";;
2979esac
2980
2981
2982
2983
c906108c
SS
2984#
2985# Select the bitsize of the target
2986#
2987mips_addr_bitsize=
2988case "${target}" in
109ad085 2989 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
cc220243 2990 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
2991 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
2992 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
2993 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
2994 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
2995 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
2996 *) mips_bitsize=64 ; mips_msb=63 ;;
2997esac
2998wire_word_bitsize="$mips_bitsize"
2999wire_word_msb="$mips_msb"
3000wire_address_bitsize="$mips_addr_bitsize"
3001wire_cell_bitsize=""
81ecdfbb
RW
3002# Check whether --enable-sim-bitsize was given.
3003if test "${enable_sim_bitsize+set}" = set; then :
3004 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
3005case "${enableval}" in
3006 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3007 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3008 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3009 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3010 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3011 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3012 else
3013 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3014 fi ;;
3015 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3016 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3017 else
3018 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3019 fi ;;
d0ac1c44 3020 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
3021esac
3022# address bitsize
3023tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3024case x"${tmp}" in
3025 x ) ;;
3026 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3027 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
d0ac1c44 3028 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
3029esac
3030# cell bitsize
3031tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3032case x"${tmp}" in
3033 x ) ;;
3034 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3035 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
d0ac1c44 3036 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
3037esac
3038if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3039 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3040fi
3041else
3042 sim_bitsize=""
3043if test x"$wire_word_bitsize" != x; then
3044 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3045fi
3046if test x"$wire_word_msb" != x; then
3047 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3048fi
3049if test x"$wire_address_bitsize" != x; then
3050 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3051fi
3052if test x"$wire_cell_bitsize" != x; then
3053 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3054fi
81ecdfbb
RW
3055fi
3056
c906108c
SS
3057
3058
3059
3060#
3061# Select the floating hardware support of the target
3062#
3063mips_fpu=HARDWARE_FLOATING_POINT
3064mips_fpu_bitsize=
3065case "${target}" in
4b5d35ee 3066 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
109ad085 3067 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
cc220243 3068 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
3069 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
3070 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
3071 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
3072 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
3073 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
3074 *) mips_fpu=HARD_FLOATING_POINT ;;
3075esac
3076
3077default_sim_float="$mips_fpu"
3078default_sim_float_bitsize="$mips_fpu_bitsize"
81ecdfbb
RW
3079# Check whether --enable-sim-float was given.
3080if test "${enable_sim_float+set}" = set; then :
3081 enableval=$enable_sim_float; case "${enableval}" in
c906108c
SS
3082 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3083 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3084 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3085 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
d0ac1c44 3086 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
c906108c
SS
3087esac
3088if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3089 echo "Setting float flags = $sim_float" 6>&1
3090fi
3091else
b7026657 3092
c906108c
SS
3093sim_float=
3094if test x"${default_sim_float}" != x""; then
3095 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
3096fi
3097if test x"${default_sim_float_bitsize}" != x""; then
3098 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
3099fi
3100
81ecdfbb
RW
3101fi
3102
c906108c
SS
3103
3104
3105
c906108c
SS
3106#
3107# Select the IGEN architecture
3108#
3109sim_gen=IGEN
3110sim_igen_machine="-M mipsIV"
139181c8 3111sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
3112sim_igen_filter="32,64,f"
3113sim_m16_filter="16"
4c54fc26
CD
3114sim_mach_default="mips8000"
3115
c906108c
SS
3116case "${target}" in
3117 mips*tx39*) sim_gen=IGEN
3118 sim_igen_filter="32,f"
3119 sim_igen_machine="-M r3900"
3120 ;;
3121 mips64vr43*-*-*) sim_gen=IGEN
3122 sim_igen_machine="-M mipsIV"
4c54fc26 3123 sim_mach_default="mips8000"
c906108c
SS
3124 ;;
3125 mips64vr5*-*-*) sim_gen=IGEN
3126 sim_igen_machine="-M vr5000"
4c54fc26 3127 sim_mach_default="mips5000"
c906108c
SS
3128 ;;
3129 mips64vr41*) sim_gen=M16
3130 sim_igen_machine="-M vr4100"
3131 sim_m16_machine="-M vr4100"
3132 sim_igen_filter="32,64,f"
3133 sim_m16_filter="16"
4c54fc26 3134 sim_mach_default="mips4100"
c906108c 3135 ;;
4c54fc26
CD
3136 mips64vr-*-* | mips64vrel-*-*)
3137 sim_gen=MULTI
3138 sim_multi_configs="\
3139 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
3140 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
3141 vr5000:mipsIV:32,64,f:mips4300,mips5000\
3142 vr5400:mipsIV,vr5400:32,64,f:mips5400\
3143 vr5500:mipsIV,vr5500:32,64,f:mips5500"
3144 sim_multi_default=mips5000
3145 ;;
cc220243 3146 mips*-sde-elf* | mips*-mti-elf*)
8e394ffc
AB
3147 sim_gen=MULTI
3148 sim_multi_configs="\
3149 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
3150 mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
3151 sim_multi_default=mipsisa64r2
109ad085 3152 ;;
c906108c
SS
3153 mips64*-*-*) sim_igen_filter="32,64,f"
3154 sim_gen=IGEN
3155 ;;
3156 mips16*-*-*) sim_gen=M16
3157 sim_igen_filter="32,64,f"
3158 sim_m16_filter="16"
3159 ;;
8e394ffc
AB
3160 mipsisa32r2*-*-*) sim_gen=MULTI
3161 sim_multi_configs="\
3162 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
3163 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
3164 sim_multi_default=mipsisa32r2
e70cb6cd 3165 ;;
d5fb0879
RS
3166 mipsisa32*-*-*) sim_gen=M16
3167 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
3168 sim_m16_machine="-M mips16,mips16e,mips32"
3169 sim_igen_filter="32,f"
3170 sim_mach_default="mipsisa32"
1e799e28 3171 ;;
d5fb0879
RS
3172 mipsisa64r2*-*-*) sim_gen=M16
3173 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
3174 sim_m16_machine="-M mips16,mips16e,mips64r2"
3175 sim_igen_filter="32,64,f"
3176 sim_mach_default="mipsisa64r2"
e70cb6cd 3177 ;;
7cbea089 3178 mipsisa64sb1*-*-*) sim_gen=IGEN
109ad085 3179 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 3180 sim_igen_filter="32,64,f"
4c54fc26 3181 sim_mach_default="mips_sb1"
7cbea089 3182 ;;
d5fb0879
RS
3183 mipsisa64*-*-*) sim_gen=M16
3184 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
3185 sim_m16_machine="-M mips16,mips16e,mips64"
3186 sim_igen_filter="32,64,f"
3187 sim_mach_default="mipsisa64"
1e799e28 3188 ;;
109ad085 3189 mips*lsi*) sim_gen=M16
c906108c
SS
3190 sim_igen_machine="-M mipsIII,mips16"
3191 sim_m16_machine="-M mips16,mipsIII"
3192 sim_igen_filter="32,f"
3193 sim_m16_filter="16"
4c54fc26 3194 sim_mach_default="mips4000"
109ad085 3195 ;;
c906108c
SS
3196 mips*-*-*) sim_gen=IGEN
3197 sim_igen_filter="32,f"
3198 ;;
3199esac
4c54fc26
CD
3200
3201# The MULTI generator can combine several simulation engines into one.
3202# executable. A configuration which uses the MULTI should set two
3203# variables: ${sim_multi_configs} and ${sim_multi_default}.
3204#
3205# ${sim_multi_configs} is the list of engines to build. Each
3206# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
3207# where:
3208#
3209# - NAME is a C-compatible prefix for the engine,
3210# - MACHINE is a -M argument,
3211# - FILTER is a -F argument, and
3212# - BFDMACHS is a comma-separated list of bfd machines that the
3213# simulator can run.
3214#
3215# Each entry will have a separate simulation engine whose prefix is
3216# m32<NAME>. If the machine list includes "mips16", there will also
3217# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
3218# generated using the same machine list as the 32-bit version,
3219# but the filter will be "16" instead of FILTER.
3220#
3221# The simulator compares the bfd mach against BFDMACHS to decide
3222# which engine to use. Entries in BFDMACHS should be bfd_mach
3223# values with "bfd_mach_" removed. ${sim_multi_default} says
3224# which entry should be the default.
3225if test ${sim_gen} = MULTI; then
3226
3227 # Simple sanity check.
3228 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
d0ac1c44 3229 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
4c54fc26
CD
3230 fi
3231
3232 # Start in a known state.
3233 rm -f multi-include.h multi-run.c
3234 sim_multi_flags=
3235 sim_multi_src=
8e394ffc 3236 sim_multi_obj=
4c54fc26
CD
3237 sim_multi_igen_configs=
3238 sim_seen_default=no
3239
3240 cat << __EOF__ > multi-run.c
3241/* Main entry point for MULTI simulators.
46f900c0 3242 Copyright (C) 2003-2021 Free Software Foundation, Inc.
4c54fc26
CD
3243
3244 This program is free software; you can redistribute it and/or modify
3245 it under the terms of the GNU General Public License as published by
35ee6e1e 3246 the Free Software Foundation; either version 3 of the License, or
4c54fc26
CD
3247 (at your option) any later version.
3248
3249 This program is distributed in the hope that it will be useful,
3250 but WITHOUT ANY WARRANTY; without even the implied warranty of
3251 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3252 GNU General Public License for more details.
3253
3254 You should have received a copy of the GNU General Public License
35ee6e1e 3255 along with this program. If not, see <http://www.gnu.org/licenses/>.
4c54fc26
CD
3256
3257 --
3258
3259 This file was generated by sim/mips/configure. */
3260
3261#include "sim-main.h"
3262#include "multi-include.h"
8e394ffc
AB
3263#include "elf-bfd.h"
3264#include "elf/mips.h"
4c54fc26
CD
3265
3266#define SD sd
3267#define CPU cpu
3268
3269void
3270sim_engine_run (SIM_DESC sd,
3271 int next_cpu_nr,
3272 int nr_cpus,
3273 int signal) /* ignore */
3274{
3275 int mach;
3276
3277 if (STATE_ARCHITECTURE (sd) == NULL)
3278 mach = bfd_mach_${sim_multi_default};
1554f758 3279 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
8e394ffc
AB
3280 & EF_MIPS_ARCH_ASE_MICROMIPS)
3281 mach = bfd_mach_mips_micromips;
4c54fc26
CD
3282 else
3283 mach = STATE_ARCHITECTURE (SD)->mach;
3284
3285 switch (mach)
3286 {
3287__EOF__
3288
3289 for fc in ${sim_multi_configs}; do
3290
3291 # Split up the entry. ${c} contains the first three elements.
3292 # Note: outer sqaure brackets are m4 quotes.
3293 c=`echo ${fc} | sed 's/:[^:]*$//'`
3294 bfdmachs=`echo ${fc} | sed 's/.*://'`
3295 name=`echo ${c} | sed 's/:.*//'`
3296 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
3297 filter=`echo ${c} | sed 's/.*://'`
3298
3299 # Build the following lists:
3300 #
3301 # sim_multi_flags: all -M and -F flags used by the simulator
3302 # sim_multi_src: all makefile-generated source files
3303 # sim_multi_obj: the objects for ${sim_multi_src}
3304 # sim_multi_igen_configs: igen configuration strings.
3305 #
3306 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
3307 # or m16) followed by the NAME, MACHINE and FILTER part of
3308 # the ${sim_multi_configs} entry.
3309 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
3310
8e394ffc 3311 # Check whether special handling is needed.
4c54fc26
CD
3312 case ${c} in
3313 *:*mips16*:*)
3314 # Run igen twice, once for normal mode and once for mips16.
3315 ws="m32 m16"
3316
3317 # The top-level function for the mips16 simulator is
3318 # in a file m16${name}_run.c, generated by the
3319 # tmp-run-multi Makefile rule.
3320 sim_multi_src="${sim_multi_src} m16${name}_run.c"
3321 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
3322 sim_multi_flags="${sim_multi_flags} -F 16"
3323 ;;
8e394ffc
AB
3324 *:*micromips32*:*)
3325 # Run igen thrice, once for micromips32, once for micromips16,
3326 # and once for m32.
3327 ws="micromips_m32 micromips16 micromips32"
3328
3329 # The top-level function for the micromips simulator is
3330 # in a file micromips${name}_run.c, generated by the
3331 # tmp-run-multi Makefile rule.
3332 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
3333 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
3334 sim_multi_flags="${sim_multi_flags} -F 16,32"
3335 ;;
3336 *:*micromips64*:*)
3337 # Run igen thrice, once for micromips64, once for micromips16,
3338 # and once for m64.
3339 ws="micromips_m64 micromips16 micromips64"
3340
3341 # The top-level function for the micromips simulator is
3342 # in a file micromips${name}_run.c, generated by the
3343 # tmp-run-multi Makefile rule.
3344 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
3345 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
3346 sim_multi_flags="${sim_multi_flags} -F 16,32,64"
3347 ;;
4c54fc26
CD
3348 *)
3349 ws=m32
3350 ;;
3351 esac
3352
3353 # Now add the list of igen-generated files to ${sim_multi_src}
3354 # and ${sim_multi_obj}.
3355 for w in ${ws}; do
3356 for base in engine icache idecode model semantics support; do
3357 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
3358 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
3359 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
3360 done
3361 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
3362 done
3363
3364 # Add an include for the engine.h file. This file declares the
3365 # top-level foo_engine_run() function.
3366 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
3367
3368 # Add case statements for this engine to sim_engine_run().
3369 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
3370 echo " case bfd_mach_${mach}:" >> multi-run.c
3371 if test ${mach} = ${sim_multi_default}; then
3372 echo " default:" >> multi-run.c
3373 sim_seen_default=yes
3374 fi
3375 done
3376 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
3377 >> multi-run.c
3378 echo " break;" >> multi-run.c
3379 done
3380
3381 # Check whether we added a 'default:' label.
3382 if test ${sim_seen_default} = no; then
d0ac1c44 3383 as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
4c54fc26
CD
3384 fi
3385
3386 cat << __EOF__ >> multi-run.c
3387 }
3388}
3389
3390int
3391mips_mach_multi (SIM_DESC sd)
3392{
3393 if (STATE_ARCHITECTURE (sd) == NULL)
3394 return bfd_mach_${sim_multi_default};
3395
3396 switch (STATE_ARCHITECTURE (SD)->mach)
3397 {
3398__EOF__
3399
3400 # Add case statements for this engine to mips_mach_multi().
3401 for fc in ${sim_multi_configs}; do
3402
3403 # Split up the entry. ${c} contains the first three elements.
3404 # Note: outer sqaure brackets are m4 quotes.
3405 c=`echo ${fc} | sed 's/:[^:]*$//'`
3406 bfdmachs=`echo ${fc} | sed 's/.*://'`
3407
3408 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
3409 echo " case bfd_mach_${mach}:" >> multi-run.c
3410 done
3411 done
3412
3413 cat << __EOF__ >> multi-run.c
3414 return (STATE_ARCHITECTURE (SD)->mach);
3415 default:
3416 return bfd_mach_${sim_multi_default};
3417 }
3418}
3419__EOF__
3420
3421 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
3422else
3423 # For clean-extra
3424 sim_multi_src=doesnt-exist.c
3425
3426 if test x"${sim_mach_default}" = x""; then
d0ac1c44 3427 as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
4c54fc26
CD
3428 fi
3429 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
3430fi
c906108c
SS
3431sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
3432sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
8e394ffc
AB
3433sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
3434sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
c906108c
SS
3435
3436
3437
3438
3439
4c54fc26
CD
3440
3441
3442
3443
c906108c
SS
3444#
3445# Add simulated hardware devices
3446#
c906108c 3447
9b1af85c 3448hardware="cfi core pal glue tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
3449sim_hw_cflags="-DWITH_HW=1"
3450sim_hw="$hardware"
3451sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 3452
81ecdfbb
RW
3453# Check whether --enable-sim-hardware was given.
3454if test "${enable_sim_hardware+set}" = set; then :
3455 enableval=$enable_sim_hardware;
30452bbe 3456else
9d903352 3457 enable_sim_hardware="yes"
1517bd27
MF
3458fi
3459
3460case ${enable_sim_hardware} in
64dd13df
MF
3461 yes|no) ;;
3462 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
3463 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
3464 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
c906108c 3465esac
1517bd27 3466
64dd13df 3467if test "$enable_sim_hardware" = no; then
c906108c
SS
3468 sim_hw_objs=
3469 sim_hw_cflags="-DWITH_HW=0"
3470 sim_hw=
3471else
3472 sim_hw_cflags="-DWITH_HW=1"
3473 # remove duplicates
3474 sim_hw=""
3475 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
3476 for i in $hardware ; do
3477 case " $sim_hw " in
c906108c
SS
3478 *" $i "*) ;;
3479 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
3480 esac
3481 done
3be31516 3482 # mingw does not support sockser
3be31516
JS
3483 case ${host} in
3484 *mingw*) ;;
49cd1634
MF
3485 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
3486 # that you instatiate. Instead, other code will call into it directly.
3487 # At some point, we should convert it over.
3488 sim_hw_objs="$sim_hw_objs dv-sockser.o"
bcaa61f7 3489 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
3be31516
JS
3490 ;;
3491 esac
1517bd27
MF
3492 if test x"$silent" != x"yes"; then
3493 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3be31516 3494 fi
1517bd27 3495fi
4399a56b 3496
c906108c 3497
c906108c 3498
b7026657
AC
3499cgen_breaks=""
3500if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
3501cgen_breaks="break cgen_rtx_error";
3502fi
3503
81ecdfbb 3504ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 3505
81ecdfbb 3506ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 3507
81ecdfbb 3508ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 3509
81ecdfbb 3510ac_config_commands="$ac_config_commands Makefile"
38f48d72 3511
81ecdfbb 3512ac_config_commands="$ac_config_commands stamp-h"
38f48d72 3513
760b3e8b
MF
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
b7026657
AC
3524cat >confcache <<\_ACEOF
3525# This file is a shell script that caches the results of configure
3526# tests run on this system so they can be shared between configure
3527# scripts and configure runs, see configure's option --config-cache.
3528# It is not useful on other systems. If it contains results you don't
3529# want to keep, you may remove or edit it.
3530#
3531# config.status only pays attention to the cache file if you give it
3532# the --recheck option to rerun configure.
3533#
3534# `ac_cv_env_foo' variables (set or unset) will be overridden when
3535# loading this file, other *unset* `ac_cv_foo' will be assigned the
3536# following values.
3537
3538_ACEOF
3539
3540# The following way of writing the cache mishandles newlines in values,
3541# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 3542# So, we kill variables containing newlines.
b7026657
AC
3543# Ultrix sh set writes to stderr and can't be redirected directly,
3544# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
3545(
3546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3547 eval ac_val=\$$ac_var
3548 case $ac_val in #(
3549 *${as_nl}*)
3550 case $ac_var in #(
3551 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3552$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3553 esac
3554 case $ac_var in #(
3555 _ | IFS | as_nl) ;; #(
3556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3557 *) { eval $ac_var=; unset $ac_var;} ;;
3558 esac ;;
3559 esac
3560 done
3561
b7026657 3562 (set) 2>&1 |
81ecdfbb
RW
3563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3564 *${as_nl}ac_space=\ *)
3565 # `set' does not quote correctly, so add quotes: double-quote
3566 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
3567 sed -n \
3568 "s/'/'\\\\''/g;
3569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 3570 ;; #(
b7026657
AC
3571 *)
3572 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 3573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 3574 ;;
81ecdfbb
RW
3575 esac |
3576 sort
3577) |
b7026657 3578 sed '
81ecdfbb 3579 /^ac_cv_env_/b end
b7026657 3580 t clear
81ecdfbb 3581 :clear
b7026657
AC
3582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3583 t end
81ecdfbb
RW
3584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3585 :end' >>confcache
3586if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3587 if test -w "$cache_file"; then
d0ac1c44 3588 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3590$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
3591 if test ! -f "$cache_file" || test -h "$cache_file"; then
3592 cat confcache >"$cache_file"
3593 else
3594 case $cache_file in #(
3595 */* | ?:*)
3596 mv -f confcache "$cache_file"$$ &&
3597 mv -f "$cache_file"$$ "$cache_file" ;; #(
3598 *)
3599 mv -f confcache "$cache_file" ;;
3600 esac
3601 fi
3602 fi
b7026657 3603 else
81ecdfbb
RW
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3605$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
3606 fi
3607fi
3608rm -f confcache
3609
3610test "x$prefix" = xNONE && prefix=$ac_default_prefix
3611# Let make expand exec_prefix.
3612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3613
52d37d2c
MF
3614# Transform confdefs.h into DEFS.
3615# Protect against shell expansion while executing Makefile rules.
3616# Protect against Makefile macro expansion.
3617#
3618# If the first sed substitution is executed (which looks for macros that
3619# take arguments), then branch to the quote section. Otherwise,
3620# look for a macro that doesn't take arguments.
3621ac_script='
3622:mline
3623/\\$/{
3624 N
3625 s,\\\n,,
3626 b mline
3627}
3628t clear
3629:clear
3630s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3631t quote
3632s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3633t quote
3634b any
3635:quote
3636s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3637s/\[/\\&/g
3638s/\]/\\&/g
3639s/\$/$$/g
3640H
3641:any
3642${
3643 g
3644 s/^\n//
3645 s/\n/ /g
3646 p
3647}
3648'
3649DEFS=`sed -n "$ac_script" confdefs.h`
3650
b7026657
AC
3651
3652ac_libobjs=
3653ac_ltlibobjs=
d0ac1c44 3654U=
b7026657
AC
3655for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3656 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
3657 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3658 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3659 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3660 # will be set to the directory where LIBOBJS objects are built.
3661 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3662 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
3663done
3664LIBOBJS=$ac_libobjs
3665
3666LTLIBOBJS=$ac_ltlibobjs
3667
3668
31e6ad7d 3669if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 3670 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
3671Usually this means the macro was only invoked conditionally." "$LINENO" 5
3672fi
b7026657 3673
d0ac1c44 3674: "${CONFIG_STATUS=./config.status}"
81ecdfbb 3675ac_write_fail=0
b7026657
AC
3676ac_clean_files_save=$ac_clean_files
3677ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3679$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3680as_write_fail=0
3681cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
3682#! $SHELL
3683# Generated by $as_me.
3684# Run this file to recreate the current configuration.
3685# Compiler output produced by configure, useful for debugging
3686# configure, is in config.log if it exists.
c906108c 3687
b7026657
AC
3688debug=false
3689ac_cs_recheck=false
3690ac_cs_silent=false
b7026657 3691
81ecdfbb
RW
3692SHELL=\${CONFIG_SHELL-$SHELL}
3693export SHELL
3694_ASEOF
3695cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3696## -------------------- ##
3697## M4sh Initialization. ##
3698## -------------------- ##
3699
3700# Be more Bourne compatible
3701DUALCASE=1; export DUALCASE # for MKS sh
3702if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
3703 emulate sh
3704 NULLCMD=:
81ecdfbb 3705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
3706 # is contrary to our usage. Disable this feature.
3707 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
3708 setopt NO_GLOB_SUBST
3709else
3710 case `(set -o) 2>/dev/null` in #(
3711 *posix*) :
3712 set -o posix ;; #(
3713 *) :
3714 ;;
3715esac
c906108c 3716fi
b7026657 3717
81ecdfbb
RW
3718
3719as_nl='
3720'
3721export as_nl
3722# Printing a long string crashes Solaris 7 /usr/bin/printf.
3723as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3724as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3725as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3726# Prefer a ksh shell builtin over an external printf program on Solaris,
3727# but without wasting forks for bash or zsh.
3728if test -z "$BASH_VERSION$ZSH_VERSION" \
3729 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3730 as_echo='print -r --'
3731 as_echo_n='print -rn --'
3732elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3733 as_echo='printf %s\n'
3734 as_echo_n='printf %s'
3735else
3736 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3737 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3738 as_echo_n='/usr/ucb/echo -n'
3739 else
3740 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3741 as_echo_n_body='eval
3742 arg=$1;
3743 case $arg in #(
3744 *"$as_nl"*)
3745 expr "X$arg" : "X\\(.*\\)$as_nl";
3746 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3747 esac;
3748 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3749 '
3750 export as_echo_n_body
3751 as_echo_n='sh -c $as_echo_n_body as_echo'
3752 fi
3753 export as_echo_body
3754 as_echo='sh -c $as_echo_body as_echo'
c906108c 3755fi
b7026657 3756
81ecdfbb
RW
3757# The user is always right.
3758if test "${PATH_SEPARATOR+set}" != set; then
3759 PATH_SEPARATOR=:
3760 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3761 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3762 PATH_SEPARATOR=';'
3763 }
3764fi
3765
3766
3767# IFS
3768# We need space, tab and new line, in precisely that order. Quoting is
3769# there to prevent editors from complaining about space-tab.
3770# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3771# splitting by setting IFS to empty value.)
3772IFS=" "" $as_nl"
3773
3774# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 3775as_myself=
81ecdfbb
RW
3776case $0 in #((
3777 *[\\/]* ) as_myself=$0 ;;
3778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3784 done
3785IFS=$as_save_IFS
b7026657 3786
81ecdfbb
RW
3787 ;;
3788esac
3789# We did not find ourselves, most probably we were run as `sh COMMAND'
3790# in which case we are not to be found in the path.
3791if test "x$as_myself" = x; then
3792 as_myself=$0
3793fi
3794if test ! -f "$as_myself"; then
3795 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3796 exit 1
3797fi
3798
3799# Unset variables that we do not need and which cause bugs (e.g. in
3800# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3801# suppresses any "Segmentation fault" message there. '((' could
3802# trigger a bug in pdksh 5.2.14.
3803for as_var in BASH_ENV ENV MAIL MAILPATH
3804do eval test x\${$as_var+set} = xset \
3805 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3806done
b7026657
AC
3807PS1='$ '
3808PS2='> '
3809PS4='+ '
3810
3811# NLS nuisances.
81ecdfbb
RW
3812LC_ALL=C
3813export LC_ALL
3814LANGUAGE=C
3815export LANGUAGE
3816
3817# CDPATH.
3818(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3819
3820
d0ac1c44
SM
3821# as_fn_error STATUS ERROR [LINENO LOG_FD]
3822# ----------------------------------------
81ecdfbb
RW
3823# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3824# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 3825# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
3826as_fn_error ()
3827{
d0ac1c44
SM
3828 as_status=$1; test $as_status -eq 0 && as_status=1
3829 if test "$4"; then
3830 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3831 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 3832 fi
d0ac1c44 3833 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
3834 as_fn_exit $as_status
3835} # as_fn_error
3836
3837
3838# as_fn_set_status STATUS
3839# -----------------------
3840# Set $? to STATUS, without forking.
3841as_fn_set_status ()
3842{
3843 return $1
3844} # as_fn_set_status
3845
3846# as_fn_exit STATUS
3847# -----------------
3848# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3849as_fn_exit ()
3850{
3851 set +e
3852 as_fn_set_status $1
3853 exit $1
3854} # as_fn_exit
3855
3856# as_fn_unset VAR
3857# ---------------
3858# Portably unset VAR.
3859as_fn_unset ()
3860{
3861 { eval $1=; unset $1;}
3862}
3863as_unset=as_fn_unset
3864# as_fn_append VAR VALUE
3865# ----------------------
3866# Append the text in VALUE to the end of the definition contained in VAR. Take
3867# advantage of any shell optimizations that allow amortized linear growth over
3868# repeated appends, instead of the typical quadratic growth present in naive
3869# implementations.
3870if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3871 eval 'as_fn_append ()
3872 {
3873 eval $1+=\$2
3874 }'
3875else
3876 as_fn_append ()
3877 {
3878 eval $1=\$$1\$2
3879 }
3880fi # as_fn_append
c906108c 3881
81ecdfbb
RW
3882# as_fn_arith ARG...
3883# ------------------
3884# Perform arithmetic evaluation on the ARGs, and store the result in the
3885# global $as_val. Take advantage of shells that can avoid forks. The arguments
3886# must be portable across $(()) and expr.
3887if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3888 eval 'as_fn_arith ()
3889 {
3890 as_val=$(( $* ))
3891 }'
3892else
3893 as_fn_arith ()
3894 {
3895 as_val=`expr "$@" || test $? -eq 1`
3896 }
3897fi # as_fn_arith
3898
3899
3900if expr a : '\(a\)' >/dev/null 2>&1 &&
3901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 3902 as_expr=expr
c906108c 3903else
b7026657 3904 as_expr=false
c906108c 3905fi
c906108c 3906
81ecdfbb 3907if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
3908 as_basename=basename
3909else
3910 as_basename=false
c906108c 3911fi
c906108c 3912
81ecdfbb
RW
3913if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3914 as_dirname=dirname
3915else
3916 as_dirname=false
3917fi
c906108c 3918
81ecdfbb 3919as_me=`$as_basename -- "$0" ||
b7026657
AC
3920$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3921 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
3922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3923$as_echo X/"$0" |
3924 sed '/^.*\/\([^/][^/]*\)\/*$/{
3925 s//\1/
3926 q
3927 }
3928 /^X\/\(\/\/\)$/{
3929 s//\1/
3930 q
3931 }
3932 /^X\/\(\/\).*/{
3933 s//\1/
3934 q
3935 }
3936 s/.*/./; q'`
b7026657 3937
b7026657
AC
3938# Avoid depending upon Character Ranges.
3939as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3940as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3941as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3942as_cr_digits='0123456789'
3943as_cr_alnum=$as_cr_Letters$as_cr_digits
3944
81ecdfbb
RW
3945ECHO_C= ECHO_N= ECHO_T=
3946case `echo -n x` in #(((((
3947-n*)
3948 case `echo 'xy\c'` in
3949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3950 xy) ECHO_C='\c';;
3951 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3952 ECHO_T=' ';;
3953 esac;;
3954*)
3955 ECHO_N='-n';;
b7026657 3956esac
c906108c 3957
81ecdfbb
RW
3958rm -f conf$$ conf$$.exe conf$$.file
3959if test -d conf$$.dir; then
3960 rm -f conf$$.dir/conf$$.file
c906108c 3961else
81ecdfbb
RW
3962 rm -f conf$$.dir
3963 mkdir conf$$.dir 2>/dev/null
c906108c 3964fi
81ecdfbb
RW
3965if (echo >conf$$.file) 2>/dev/null; then
3966 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 3967 as_ln_s='ln -s'
81ecdfbb
RW
3968 # ... but there are two gotchas:
3969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 3971 # In both cases, we have to default to `cp -pR'.
81ecdfbb 3972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 3973 as_ln_s='cp -pR'
81ecdfbb
RW
3974 elif ln conf$$.file conf$$ 2>/dev/null; then
3975 as_ln_s=ln
3976 else
d0ac1c44 3977 as_ln_s='cp -pR'
b7026657 3978 fi
b7026657 3979else
d0ac1c44 3980 as_ln_s='cp -pR'
c906108c 3981fi
81ecdfbb
RW
3982rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3983rmdir conf$$.dir 2>/dev/null
3984
3985
3986# as_fn_mkdir_p
3987# -------------
3988# Create "$as_dir" as a directory, including parents if necessary.
3989as_fn_mkdir_p ()
3990{
3991
3992 case $as_dir in #(
3993 -*) as_dir=./$as_dir;;
3994 esac
3995 test -d "$as_dir" || eval $as_mkdir_p || {
3996 as_dirs=
3997 while :; do
3998 case $as_dir in #(
3999 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4000 *) as_qdir=$as_dir;;
4001 esac
4002 as_dirs="'$as_qdir' $as_dirs"
4003 as_dir=`$as_dirname -- "$as_dir" ||
4004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4005 X"$as_dir" : 'X\(//\)[^/]' \| \
4006 X"$as_dir" : 'X\(//\)$' \| \
4007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4008$as_echo X"$as_dir" |
4009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4010 s//\1/
4011 q
4012 }
4013 /^X\(\/\/\)[^/].*/{
4014 s//\1/
4015 q
4016 }
4017 /^X\(\/\/\)$/{
4018 s//\1/
4019 q
4020 }
4021 /^X\(\/\).*/{
4022 s//\1/
4023 q
4024 }
4025 s/.*/./; q'`
4026 test -d "$as_dir" && break
4027 done
4028 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 4029 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 4030
c906108c 4031
81ecdfbb 4032} # as_fn_mkdir_p
b7026657 4033if mkdir -p . 2>/dev/null; then
81ecdfbb 4034 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 4035else
b7026657
AC
4036 test -d ./-p && rmdir ./-p
4037 as_mkdir_p=false
c906108c 4038fi
c906108c 4039
d0ac1c44
SM
4040
4041# as_fn_executable_p FILE
4042# -----------------------
4043# Test if FILE is an executable regular file.
4044as_fn_executable_p ()
4045{
4046 test -f "$1" && test -x "$1"
4047} # as_fn_executable_p
4048as_test_x='test -x'
4049as_executable_p=as_fn_executable_p
c906108c 4050
b7026657
AC
4051# Sed expression to map a string onto a valid CPP name.
4052as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 4053
b7026657
AC
4054# Sed expression to map a string onto a valid variable name.
4055as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 4056
b7026657 4057
b7026657 4058exec 6>&1
81ecdfbb
RW
4059## ----------------------------------- ##
4060## Main body of $CONFIG_STATUS script. ##
4061## ----------------------------------- ##
4062_ASEOF
4063test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4064
4065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4066# Save the log message, to keep $0 and so on meaningful, and to
b7026657 4067# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
4068# values after options handling.
4069ac_log="
b7026657 4070This file was extended by $as_me, which was
d0ac1c44 4071generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
4072
4073 CONFIG_FILES = $CONFIG_FILES
4074 CONFIG_HEADERS = $CONFIG_HEADERS
4075 CONFIG_LINKS = $CONFIG_LINKS
4076 CONFIG_COMMANDS = $CONFIG_COMMANDS
4077 $ $0 $@
4078
81ecdfbb
RW
4079on `(hostname || uname -n) 2>/dev/null | sed 1q`
4080"
4081
b7026657
AC
4082_ACEOF
4083
81ecdfbb
RW
4084case $ac_config_files in *"
4085"*) set x $ac_config_files; shift; ac_config_files=$*;;
4086esac
379832de 4087
b7026657 4088
b7026657 4089
81ecdfbb
RW
4090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4091# Files that config.status was made for.
4092config_files="$ac_config_files"
81ecdfbb 4093config_commands="$ac_config_commands"
b7026657 4094
81ecdfbb 4095_ACEOF
b7026657 4096
81ecdfbb 4097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 4098ac_cs_usage="\
81ecdfbb
RW
4099\`$as_me' instantiates files and other configuration actions
4100from templates according to the current configuration. Unless the files
4101and actions are specified as TAGs, all are instantiated by default.
b7026657 4102
81ecdfbb 4103Usage: $0 [OPTION]... [TAG]...
b7026657
AC
4104
4105 -h, --help print this help, then exit
81ecdfbb 4106 -V, --version print version number and configuration settings, then exit
d0ac1c44 4107 --config print configuration, then exit
81ecdfbb
RW
4108 -q, --quiet, --silent
4109 do not print progress messages
b7026657
AC
4110 -d, --debug don't remove temporary files
4111 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
4112 --file=FILE[:TEMPLATE]
4113 instantiate the configuration file FILE
b7026657
AC
4114
4115Configuration files:
4116$config_files
4117
b7026657
AC
4118Configuration commands:
4119$config_commands
4120
81ecdfbb 4121Report bugs to the package provider."
b7026657 4122
81ecdfbb
RW
4123_ACEOF
4124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 4125ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
4126ac_cs_version="\\
4127config.status
d0ac1c44
SM
4128configured by $0, generated by GNU Autoconf 2.69,
4129 with options \\"\$ac_cs_config\\"
b7026657 4130
d0ac1c44 4131Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
4132This config.status script is free software; the Free Software Foundation
4133gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
4134
4135ac_pwd='$ac_pwd'
4136srcdir='$srcdir'
4137INSTALL='$INSTALL'
4138test -n "\$AWK" || AWK=awk
b7026657
AC
4139_ACEOF
4140
81ecdfbb
RW
4141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4142# The default lists apply if the user does not specify any file.
b7026657
AC
4143ac_need_defaults=:
4144while test $# != 0
4145do
4146 case $1 in
d0ac1c44 4147 --*=?*)
81ecdfbb
RW
4148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 4150 ac_shift=:
c906108c 4151 ;;
d0ac1c44
SM
4152 --*=)
4153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4154 ac_optarg=
4155 ac_shift=:
4156 ;;
81ecdfbb 4157 *)
b7026657
AC
4158 ac_option=$1
4159 ac_optarg=$2
4160 ac_shift=shift
c906108c 4161 ;;
b7026657 4162 esac
c906108c 4163
b7026657
AC
4164 case $ac_option in
4165 # Handling of the options.
b7026657
AC
4166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4167 ac_cs_recheck=: ;;
81ecdfbb
RW
4168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4169 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
4170 --config | --confi | --conf | --con | --co | --c )
4171 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 4172 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
4173 debug=: ;;
4174 --file | --fil | --fi | --f )
4175 $ac_shift
81ecdfbb
RW
4176 case $ac_optarg in
4177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 4178 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
4179 esac
4180 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657 4181 ac_need_defaults=false;;
52d37d2c 4182 --he | --h | --help | --hel | -h )
81ecdfbb 4183 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
4184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4186 ac_cs_silent=: ;;
c906108c 4187
b7026657 4188 # This is an error.
d0ac1c44 4189 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 4190Try \`$0 --help' for more information." ;;
c906108c 4191
81ecdfbb
RW
4192 *) as_fn_append ac_config_targets " $1"
4193 ac_need_defaults=false ;;
b7026657
AC
4194
4195 esac
4196 shift
4197done
4198
4199ac_configure_extra_args=
4200
4201if $ac_cs_silent; then
4202 exec 6>/dev/null
4203 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
4204fi
4205
b7026657 4206_ACEOF
81ecdfbb 4207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 4208if \$ac_cs_recheck; then
d0ac1c44 4209 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
4210 shift
4211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4212 CONFIG_SHELL='$SHELL'
4213 export CONFIG_SHELL
4214 exec "\$@"
b7026657 4215fi
c906108c 4216
b7026657 4217_ACEOF
81ecdfbb
RW
4218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4219exec 5>>config.log
4220{
4221 echo
4222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4223## Running $as_me. ##
4224_ASBOX
4225 $as_echo "$ac_log"
4226} >&5
c906108c 4227
81ecdfbb
RW
4228_ACEOF
4229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
4230#
4231# INIT-COMMANDS
4232#
4233ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
4234
81ecdfbb 4235_ACEOF
c906108c 4236
81ecdfbb 4237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 4238
81ecdfbb 4239# Handling of arguments.
b7026657 4240for ac_config_target in $ac_config_targets
c906108c 4241do
81ecdfbb 4242 case $ac_config_target in
db2e4d67 4243 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
81ecdfbb
RW
4244 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
4245 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
4246 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
4247 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
4248 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
4249
d0ac1c44 4250 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
4251 esac
4252done
4253
81ecdfbb 4254
b7026657
AC
4255# If the user did not use the arguments to specify the items to instantiate,
4256# then the envvar interface is used. Set only those that are not.
4257# We use the long form for the default assignment because of an extremely
4258# bizarre bug on SunOS 4.1.3.
4259if $ac_need_defaults; then
4260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b7026657
AC
4261 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4262fi
4263
4264# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 4265# simply because there is no reason against having it here, and in addition,
b7026657 4266# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
4267# Hook for its removal unless debugging.
4268# Note that there is a small window in which the directory will not be cleaned:
4269# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
4270$debug ||
4271{
d0ac1c44 4272 tmp= ac_tmp=
81ecdfbb 4273 trap 'exit_status=$?
d0ac1c44
SM
4274 : "${ac_tmp:=$tmp}"
4275 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
4276' 0
4277 trap 'as_fn_exit 1' 1 2 13 15
b7026657 4278}
b7026657 4279# Create a (secure) tmp directory for tmp files.
c906108c 4280
b7026657 4281{
81ecdfbb 4282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 4283 test -d "$tmp"
b7026657
AC
4284} ||
4285{
81ecdfbb
RW
4286 tmp=./conf$$-$RANDOM
4287 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
4288} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4289ac_tmp=$tmp
b7026657 4290
81ecdfbb
RW
4291# Set up the scripts for CONFIG_FILES section.
4292# No need to generate them if there are no CONFIG_FILES.
4293# This happens for instance with `./config.status config.h'.
4294if test -n "$CONFIG_FILES"; then
b7026657 4295
c906108c 4296
81ecdfbb
RW
4297ac_cr=`echo X | tr X '\015'`
4298# On cygwin, bash can eat \r inside `` if the user requested igncr.
4299# But we know of no other shell where ac_cr would be empty at this
4300# point, so we can use a bashism as a fallback.
4301if test "x$ac_cr" = x; then
4302 eval ac_cr=\$\'\\r\'
4303fi
4304ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4305if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 4306 ac_cs_awk_cr='\\r'
81ecdfbb
RW
4307else
4308 ac_cs_awk_cr=$ac_cr
4309fi
b7026657 4310
d0ac1c44 4311echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
4312_ACEOF
4313
c906108c 4314
81ecdfbb
RW
4315{
4316 echo "cat >conf$$subs.awk <<_ACEOF" &&
4317 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4318 echo "_ACEOF"
4319} >conf$$subs.sh ||
d0ac1c44
SM
4320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4321ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
4322ac_delim='%!_!# '
4323for ac_last_try in false false false false false :; do
4324 . ./conf$$subs.sh ||
d0ac1c44 4325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
4326
4327 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4328 if test $ac_delim_n = $ac_delim_num; then
4329 break
4330 elif $ac_last_try; then
d0ac1c44 4331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 4332 else
81ecdfbb
RW
4333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4334 fi
4335done
4336rm -f conf$$subs.sh
4337
4338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 4339cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
4340_ACEOF
4341sed -n '
4342h
4343s/^/S["/; s/!.*/"]=/
4344p
4345g
4346s/^[^!]*!//
4347:repl
4348t repl
4349s/'"$ac_delim"'$//
4350t delim
4351:nl
4352h
d0ac1c44 4353s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
4354t more1
4355s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4356p
4357n
4358b repl
4359:more1
4360s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4361p
4362g
4363s/.\{148\}//
4364t nl
4365:delim
4366h
d0ac1c44 4367s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
4368t more2
4369s/["\\]/\\&/g; s/^/"/; s/$/"/
4370p
4371b
4372:more2
4373s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4374p
4375g
4376s/.\{148\}//
4377t delim
4378' <conf$$subs.awk | sed '
4379/^[^""]/{
4380 N
4381 s/\n//
4382}
4383' >>$CONFIG_STATUS || ac_write_fail=1
4384rm -f conf$$subs.awk
4385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4386_ACAWK
d0ac1c44 4387cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
4388 for (key in S) S_is_set[key] = 1
4389 FS = "\a"
b7026657 4390
81ecdfbb
RW
4391}
4392{
4393 line = $ 0
4394 nfields = split(line, field, "@")
4395 substed = 0
4396 len = length(field[1])
4397 for (i = 2; i < nfields; i++) {
4398 key = field[i]
4399 keylen = length(key)
4400 if (S_is_set[key]) {
4401 value = S[key]
4402 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4403 len += length(value) + length(field[++i])
4404 substed = 1
4405 } else
4406 len += 1 + keylen
4407 }
4408
4409 print line
4410}
c906108c 4411
81ecdfbb
RW
4412_ACAWK
4413_ACEOF
4414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4415if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4416 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 4417else
81ecdfbb 4418 cat
d0ac1c44
SM
4419fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4420 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 4421_ACEOF
b7026657 4422
d0ac1c44
SM
4423# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4424# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
4425# trailing colons and then remove the whole line if VPATH becomes empty
4426# (actually we leave an empty line to preserve line numbers).
4427if test "x$srcdir" = x.; then
d0ac1c44
SM
4428 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4429h
4430s///
4431s/^/:/
4432s/[ ]*$/:/
4433s/:\$(srcdir):/:/g
4434s/:\${srcdir}:/:/g
4435s/:@srcdir@:/:/g
4436s/^:*//
81ecdfbb 4437s/:*$//
d0ac1c44
SM
4438x
4439s/\(=[ ]*\).*/\1/
4440G
4441s/\n//
81ecdfbb
RW
4442s/^[^=]*=[ ]*$//
4443}'
4444fi
c906108c 4445
81ecdfbb
RW
4446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4447fi # test -n "$CONFIG_FILES"
c906108c 4448
81ecdfbb 4449
52d37d2c 4450eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
81ecdfbb
RW
4451shift
4452for ac_tag
4453do
4454 case $ac_tag in
4455 :[FHLC]) ac_mode=$ac_tag; continue;;
4456 esac
4457 case $ac_mode$ac_tag in
4458 :[FHL]*:*);;
d0ac1c44 4459 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
4460 :[FH]-) ac_tag=-:-;;
4461 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 4462 esac
81ecdfbb
RW
4463 ac_save_IFS=$IFS
4464 IFS=:
4465 set x $ac_tag
4466 IFS=$ac_save_IFS
4467 shift
4468 ac_file=$1
4469 shift
c906108c 4470
81ecdfbb
RW
4471 case $ac_mode in
4472 :L) ac_source=$1;;
4473 :[FH])
4474 ac_file_inputs=
4475 for ac_f
4476 do
4477 case $ac_f in
d0ac1c44 4478 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
4479 *) # Look for the file first in the build tree, then in the source tree
4480 # (if the path is not absolute). The absolute path cannot be DOS-style,
4481 # because $ac_f cannot contain `:'.
4482 test -f "$ac_f" ||
4483 case $ac_f in
4484 [\\/$]*) false;;
4485 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4486 esac ||
d0ac1c44 4487 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 4488 esac
81ecdfbb
RW
4489 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4490 as_fn_append ac_file_inputs " '$ac_f'"
4491 done
b7026657 4492
81ecdfbb
RW
4493 # Let's still pretend it is `configure' which instantiates (i.e., don't
4494 # use $as_me), people would be surprised to read:
4495 # /* config.h. Generated by config.status. */
4496 configure_input='Generated from '`
4497 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4498 `' by configure.'
4499 if test x"$ac_file" != x-; then
4500 configure_input="$ac_file. $configure_input"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4502$as_echo "$as_me: creating $ac_file" >&6;}
4503 fi
4504 # Neutralize special characters interpreted by sed in replacement strings.
4505 case $configure_input in #(
4506 *\&* | *\|* | *\\* )
4507 ac_sed_conf_input=`$as_echo "$configure_input" |
4508 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4509 *) ac_sed_conf_input=$configure_input;;
4510 esac
b7026657 4511
81ecdfbb 4512 case $ac_tag in
d0ac1c44
SM
4513 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
4515 esac
4516 ;;
4517 esac
b7026657 4518
81ecdfbb 4519 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
4520$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4521 X"$ac_file" : 'X\(//\)[^/]' \| \
4522 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
4523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4524$as_echo X"$ac_file" |
4525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4526 s//\1/
4527 q
4528 }
4529 /^X\(\/\/\)[^/].*/{
4530 s//\1/
4531 q
4532 }
4533 /^X\(\/\/\)$/{
4534 s//\1/
4535 q
4536 }
4537 /^X\(\/\).*/{
4538 s//\1/
4539 q
4540 }
4541 s/.*/./; q'`
4542 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
4543 ac_builddir=.
4544
81ecdfbb
RW
4545case "$ac_dir" in
4546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4547*)
4548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4549 # A ".." for each directory in $ac_dir_suffix.
4550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4551 case $ac_top_builddir_sub in
4552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4554 esac ;;
4555esac
4556ac_abs_top_builddir=$ac_pwd
4557ac_abs_builddir=$ac_pwd$ac_dir_suffix
4558# for backward compatibility:
4559ac_top_builddir=$ac_top_build_prefix
b7026657
AC
4560
4561case $srcdir in
81ecdfbb 4562 .) # We are building in place.
b7026657 4563 ac_srcdir=.
81ecdfbb
RW
4564 ac_top_srcdir=$ac_top_builddir_sub
4565 ac_abs_top_srcdir=$ac_pwd ;;
4566 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 4567 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
4568 ac_top_srcdir=$srcdir
4569 ac_abs_top_srcdir=$srcdir ;;
4570 *) # Relative name.
4571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4572 ac_top_srcdir=$ac_top_build_prefix$srcdir
4573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 4574esac
81ecdfbb 4575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 4576
c906108c 4577
81ecdfbb
RW
4578 case $ac_mode in
4579 :F)
4580 #
4581 # CONFIG_FILE
4582 #
b7026657 4583
81ecdfbb
RW
4584 case $INSTALL in
4585 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4586 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 4587 esac
81ecdfbb 4588_ACEOF
c906108c 4589
81ecdfbb
RW
4590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4591# If the template does not know about datarootdir, expand it.
4592# FIXME: This hack should be removed a few years after 2.60.
4593ac_datarootdir_hack=; ac_datarootdir_seen=
4594ac_sed_dataroot='
4595/datarootdir/ {
4596 p
4597 q
4598}
4599/@datadir@/p
4600/@docdir@/p
4601/@infodir@/p
4602/@localedir@/p
4603/@mandir@/p'
4604case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4605*datarootdir*) ac_datarootdir_seen=yes;;
4606*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4608$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4609_ACEOF
4610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4611 ac_datarootdir_hack='
4612 s&@datadir@&$datadir&g
4613 s&@docdir@&$docdir&g
4614 s&@infodir@&$infodir&g
4615 s&@localedir@&$localedir&g
4616 s&@mandir@&$mandir&g
4617 s&\\\${datarootdir}&$datarootdir&g' ;;
4618esac
b7026657 4619_ACEOF
b7026657 4620
81ecdfbb
RW
4621# Neutralize VPATH when `$srcdir' = `.'.
4622# Shell code in configure.ac might set extrasub.
4623# FIXME: do we really want to maintain this feature?
4624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4625ac_sed_extra="$ac_vpsub
4626$extrasub
4627_ACEOF
4628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4629:t
4630/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4631s|@configure_input@|$ac_sed_conf_input|;t t
4632s&@top_builddir@&$ac_top_builddir_sub&;t t
4633s&@top_build_prefix@&$ac_top_build_prefix&;t t
4634s&@srcdir@&$ac_srcdir&;t t
4635s&@abs_srcdir@&$ac_abs_srcdir&;t t
4636s&@top_srcdir@&$ac_top_srcdir&;t t
4637s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4638s&@builddir@&$ac_builddir&;t t
4639s&@abs_builddir@&$ac_abs_builddir&;t t
4640s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4641s&@INSTALL@&$ac_INSTALL&;t t
4642$ac_datarootdir_hack
4643"
d0ac1c44
SM
4644eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4645 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
4646
4647test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
4648 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4650 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 4652which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 4653$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 4654which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 4655
d0ac1c44 4656 rm -f "$ac_tmp/stdin"
81ecdfbb 4657 case $ac_file in
d0ac1c44
SM
4658 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4659 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 4660 esac \
d0ac1c44 4661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 4662 ;;
52d37d2c 4663
b7026657 4664
81ecdfbb
RW
4665 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4666$as_echo "$as_me: executing $ac_file commands" >&6;}
4667 ;;
4668 esac
b7026657
AC
4669
4670
81ecdfbb 4671 case $ac_file$ac_mode in
db2e4d67 4672 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
81ecdfbb 4673 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
4674 rm -f Makesim1.tmp Makesim2.tmp Makefile
4675 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4676 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4677 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
4678 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4679 <Makefile.sim >Makefile
38f48d72 4680 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 4681 ;;
81ecdfbb
RW
4682 "stamp-h":C) echo > stamp-h ;;
4683
b7026657 4684 esac
81ecdfbb 4685done # for ac_tag
c906108c 4686
b7026657 4687
81ecdfbb 4688as_fn_exit 0
b7026657 4689_ACEOF
b7026657
AC
4690ac_clean_files=$ac_clean_files_save
4691
81ecdfbb 4692test $ac_write_fail = 0 ||
d0ac1c44 4693 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 4694
b7026657
AC
4695
4696# configure is writing to config.log, and then calls config.status.
4697# config.status does its own redirection, appending to config.log.
4698# Unfortunately, on DOS this fails, as config.log is still kept open
4699# by configure, so config.status won't be able to write to it; its
4700# output is simply discarded. So we exec the FD to /dev/null,
4701# effectively closing config.log, so it can be properly (re)opened and
4702# appended to by config.status. When coming back to configure, we
4703# need to make the FD available again.
4704if test "$no_create" != yes; then
4705 ac_cs_success=:
4706 ac_config_status_args=
4707 test "$silent" = yes &&
4708 ac_config_status_args="$ac_config_status_args --quiet"
4709 exec 5>/dev/null
4710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4711 exec 5>>config.log
4712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4713 # would make configure fail if this is the last instruction.
d0ac1c44 4714 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
4715fi
4716if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4718$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 4719fi
c906108c
SS
4720
4721