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