]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mn10300/configure
sim: unify toolchain probing logic
[thirdparty/binutils-gdb.git] / sim / mn10300 / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
b7026657
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
c906108c 125
b7026657 126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
d3562f83 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
81ecdfbb
RW
199 if (eval "$as_required") 2>/dev/null; then :
200 as_have_required=yes
201else
202 as_have_required=no
203fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206else
207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 210do
81ecdfbb
RW
211 IFS=$as_save_IFS
212 test -z "$as_dir" && as_dir=.
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir/$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 break 2
224fi
225fi
226 done;;
227 esac
228 as_found=false
229done
230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233fi; }
234IFS=$as_save_IFS
235
236
237 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240# neutralization value for shells without unset; and this also
241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
243BASH_ENV=/dev/null
244ENV=/dev/null
245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251esac
252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
81ecdfbb
RW
257fi
258
259 if test x$as_have_required = xno; then :
260 $as_echo "$0: This script requires a shell more modern than all"
261 $as_echo "$0: the shells that I found on your system."
262 if test x${ZSH_VERSION+set} = xset ; then
263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 265 else
81ecdfbb
RW
266 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267$0: including any error possibly output before this
268$0: message. Then install a modern shell, or manually run
269$0: the script under such a shell if you do have one."
b7026657 270 fi
81ecdfbb
RW
271 exit 1
272fi
273fi
274fi
275SHELL=${CONFIG_SHELL-/bin/sh}
276export SHELL
277# Unset more variables known to interfere with behavior of common tools.
278CLICOLOR_FORCE= GREP_OPTIONS=
279unset CLICOLOR_FORCE GREP_OPTIONS
280
281## --------------------- ##
282## M4sh Shell Functions. ##
283## --------------------- ##
284# as_fn_unset VAR
285# ---------------
286# Portably unset VAR.
287as_fn_unset ()
288{
289 { eval $1=; unset $1;}
290}
291as_unset=as_fn_unset
292
293# as_fn_set_status STATUS
294# -----------------------
295# Set $? to STATUS, without forking.
296as_fn_set_status ()
297{
298 return $1
299} # as_fn_set_status
300
301# as_fn_exit STATUS
302# -----------------
303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304as_fn_exit ()
305{
306 set +e
307 as_fn_set_status $1
308 exit $1
309} # as_fn_exit
310
311# as_fn_mkdir_p
312# -------------
313# Create "$as_dir" as a directory, including parents if necessary.
314as_fn_mkdir_p ()
315{
316
317 case $as_dir in #(
318 -*) as_dir=./$as_dir;;
319 esac
320 test -d "$as_dir" || eval $as_mkdir_p || {
321 as_dirs=
322 while :; do
323 case $as_dir in #(
324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325 *) as_qdir=$as_dir;;
326 esac
327 as_dirs="'$as_qdir' $as_dirs"
328 as_dir=`$as_dirname -- "$as_dir" ||
329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330 X"$as_dir" : 'X\(//\)[^/]' \| \
331 X"$as_dir" : 'X\(//\)$' \| \
332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333$as_echo X"$as_dir" |
334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 s//\1/
336 q
337 }
338 /^X\(\/\/\)[^/].*/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\).*/{
347 s//\1/
348 q
349 }
350 s/.*/./; q'`
351 test -d "$as_dir" && break
352 done
353 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
355
356
357} # as_fn_mkdir_p
d0ac1c44
SM
358
359# as_fn_executable_p FILE
360# -----------------------
361# Test if FILE is an executable regular file.
362as_fn_executable_p ()
363{
364 test -f "$1" && test -x "$1"
365} # as_fn_executable_p
81ecdfbb
RW
366# as_fn_append VAR VALUE
367# ----------------------
368# Append the text in VALUE to the end of the definition contained in VAR. Take
369# advantage of any shell optimizations that allow amortized linear growth over
370# repeated appends, instead of the typical quadratic growth present in naive
371# implementations.
372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373 eval 'as_fn_append ()
374 {
375 eval $1+=\$2
376 }'
377else
378 as_fn_append ()
379 {
380 eval $1=\$$1\$2
381 }
382fi # as_fn_append
383
384# as_fn_arith ARG...
385# ------------------
386# Perform arithmetic evaluation on the ARGs, and store the result in the
387# global $as_val. Take advantage of shells that can avoid forks. The arguments
388# must be portable across $(()) and expr.
389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390 eval 'as_fn_arith ()
391 {
392 as_val=$(( $* ))
393 }'
394else
395 as_fn_arith ()
396 {
397 as_val=`expr "$@" || test $? -eq 1`
398 }
399fi # as_fn_arith
400
401
d0ac1c44
SM
402# as_fn_error STATUS ERROR [LINENO LOG_FD]
403# ----------------------------------------
81ecdfbb
RW
404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 406# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
407as_fn_error ()
408{
d0ac1c44
SM
409 as_status=$1; test $as_status -eq 0 && as_status=1
410 if test "$4"; then
411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 413 fi
d0ac1c44 414 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
415 as_fn_exit $as_status
416} # as_fn_error
c906108c 417
81ecdfbb
RW
418if expr a : '\(a\)' >/dev/null 2>&1 &&
419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
420 as_expr=expr
421else
422 as_expr=false
423fi
c906108c 424
81ecdfbb 425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
426 as_basename=basename
427else
428 as_basename=false
429fi
c906108c 430
81ecdfbb
RW
431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432 as_dirname=dirname
433else
434 as_dirname=false
435fi
c906108c 436
81ecdfbb 437as_me=`$as_basename -- "$0" ||
b7026657
AC
438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441$as_echo X/"$0" |
442 sed '/^.*\/\([^/][^/]*\)\/*$/{
443 s//\1/
444 q
445 }
446 /^X\/\(\/\/\)$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\).*/{
451 s//\1/
452 q
453 }
454 s/.*/./; q'`
c906108c 455
b7026657
AC
456# Avoid depending upon Character Ranges.
457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460as_cr_digits='0123456789'
461as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 462
c906108c 463
81ecdfbb
RW
464 as_lineno_1=$LINENO as_lineno_1a=$LINENO
465 as_lineno_2=$LINENO as_lineno_2a=$LINENO
466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
469 sed -n '
470 p
471 /[$]LINENO/=
472 ' <$as_myself |
b7026657 473 sed '
81ecdfbb
RW
474 s/[$]LINENO.*/&-/
475 t lineno
476 b
477 :lineno
b7026657 478 N
81ecdfbb
RW
479 :loop
480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 481 t loop
81ecdfbb 482 s/-\n.*//
b7026657 483 ' >$as_me.lineno &&
81ecdfbb
RW
484 chmod +x "$as_me.lineno" ||
485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 486
d0ac1c44
SM
487 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488 # already done that, so ensure we don't try to do so again and fall
489 # in an infinite loop. This has already happened in practice.
490 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
491 # Don't try to exec as it changes $[0], causing all sort of problems
492 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
493 # original and so on. Autoconf is especially sensitive to this).
494 . "./$as_me.lineno"
b7026657
AC
495 # Exit status is that of the last command.
496 exit
497}
c906108c 498
81ecdfbb
RW
499ECHO_C= ECHO_N= ECHO_T=
500case `echo -n x` in #(((((
501-n*)
502 case `echo 'xy\c'` in
503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 xy) ECHO_C='\c';;
505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
506 ECHO_T=' ';;
507 esac;;
508*)
509 ECHO_N='-n';;
b7026657 510esac
c906108c 511
81ecdfbb
RW
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
b7026657 515else
81ecdfbb
RW
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
b7026657 518fi
81ecdfbb
RW
519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 521 as_ln_s='ln -s'
81ecdfbb
RW
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 525 # In both cases, we have to default to `cp -pR'.
81ecdfbb 526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 527 as_ln_s='cp -pR'
81ecdfbb
RW
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
d0ac1c44 531 as_ln_s='cp -pR'
b7026657 532 fi
b7026657 533else
d0ac1c44 534 as_ln_s='cp -pR'
b7026657 535fi
81ecdfbb
RW
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
c906108c 538
b7026657 539if mkdir -p . 2>/dev/null; then
81ecdfbb 540 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
541else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544fi
c906108c 545
d0ac1c44
SM
546as_test_x='test -x'
547as_executable_p=as_fn_executable_p
c906108c 548
b7026657
AC
549# Sed expression to map a string onto a valid CPP name.
550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 551
b7026657
AC
552# Sed expression to map a string onto a valid variable name.
553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
554
555
d0ac1c44
SM
556test -n "$DJDIR" || exec 7<&0 </dev/null
557exec 6>&1
c906108c 558
b7026657 559# Name of the host.
d0ac1c44 560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
561# so uname gets run too.
562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 563
c906108c 564#
b7026657 565# Initializations.
c906108c 566#
b7026657 567ac_default_prefix=/usr/local
81ecdfbb 568ac_clean_files=
b7026657 569ac_config_libobj_dir=.
81ecdfbb 570LIBOBJS=
b7026657
AC
571cross_compiling=no
572subdirs=
573MFLAGS=
574MAKEFLAGS=
b7026657
AC
575
576# Identity of this package.
577PACKAGE_NAME=
578PACKAGE_TARNAME=
579PACKAGE_VERSION=
580PACKAGE_STRING=
581PACKAGE_BUGREPORT=
81ecdfbb 582PACKAGE_URL=
b7026657
AC
583
584ac_unique_file="Makefile.in"
81ecdfbb
RW
585ac_subst_vars='LTLIBOBJS
586LIBOBJS
760b3e8b
MF
587sim_default_model
588sim_scache
589sim_float
81ecdfbb 590cgen_breaks
81ecdfbb 591MAINT
31e6ad7d
MF
592MAINTAINER_MODE_FALSE
593MAINTAINER_MODE_TRUE
81ecdfbb
RW
594CATOBJEXT
595GENCAT
596INSTOBJEXT
597DATADIRNAME
598CATALOGS
599POSUB
600GMSGFMT
601XGETTEXT
602INCINTL
603LIBINTL_DEP
604LIBINTL
605USE_NLS
db2e4d67
MF
606CCDEPMODE
607DEPDIR
608am__leading_dot
81ecdfbb
RW
609INSTALL_DATA
610INSTALL_SCRIPT
611INSTALL_PROGRAM
c2783492
MF
612OBJEXT
613EXEEXT
614ac_ct_CC
615CPPFLAGS
616LDFLAGS
617CFLAGS
618CC
81ecdfbb
RW
619target_alias
620host_alias
621build_alias
622LIBS
623ECHO_T
624ECHO_N
625ECHO_C
626DEFS
627mandir
628localedir
629libdir
630psdir
631pdfdir
632dvidir
633htmldir
634infodir
635docdir
636oldincludedir
637includedir
638localstatedir
639sharedstatedir
640sysconfdir
641datadir
642datarootdir
643libexecdir
644sbindir
645bindir
646program_transform_name
647prefix
648exec_prefix
649PACKAGE_URL
650PACKAGE_BUGREPORT
651PACKAGE_STRING
652PACKAGE_VERSION
653PACKAGE_TARNAME
654PACKAGE_NAME
655PATH_SEPARATOR
136da8cd 656SHELL
136da8cd
MF
657sim_reserved_bits
658sim_inline
659sim_hw
660sim_hw_objs
661sim_hw_cflags
ba307cdd 662sim_bitsize'
b7026657 663ac_subst_files=''
81ecdfbb
RW
664ac_user_opts='
665enable_option_checking
666enable_maintainer_mode
347fe5bb 667enable_sim_inline
81ecdfbb
RW
668enable_sim_reserved_bits
669enable_sim_bitsize
81ecdfbb
RW
670enable_sim_hardware
671'
672 ac_precious_vars='build_alias
673host_alias
674target_alias
675CC
676CFLAGS
677LDFLAGS
678LIBS
d3562f83 679CPPFLAGS'
81ecdfbb 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
8d0978fb
MF
1292 --enable-sim-reserved-bits
1293 Specify whether to check reserved bits in
1294 instruction
1295 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1517bd27
MF
1296 --enable-sim-hardware=LIST
1297 Specify the hardware to be included in the build.
b7026657 1298
b7026657
AC
1299Some influential environment variables:
1300 CC C compiler command
1301 CFLAGS C compiler flags
1302 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1303 nonstandard directory <lib dir>
81ecdfbb 1304 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1305 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1306 you have headers in a nonstandard directory <include dir>
b7026657
AC
1307
1308Use these variables to override the choices made by `configure' or to help
1309it to find libraries and programs with nonstandard names/locations.
1310
81ecdfbb 1311Report bugs to the package provider.
b7026657 1312_ACEOF
81ecdfbb 1313ac_status=$?
c906108c
SS
1314fi
1315
b7026657
AC
1316if test "$ac_init_help" = "recursive"; then
1317 # If there are subdirs, report their specific --help.
b7026657 1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1319 test -d "$ac_dir" ||
1320 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1321 continue
b7026657 1322 ac_builddir=.
c906108c 1323
81ecdfbb
RW
1324case "$ac_dir" in
1325.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1326*)
1327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1328 # A ".." for each directory in $ac_dir_suffix.
1329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1330 case $ac_top_builddir_sub in
1331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333 esac ;;
1334esac
1335ac_abs_top_builddir=$ac_pwd
1336ac_abs_builddir=$ac_pwd$ac_dir_suffix
1337# for backward compatibility:
1338ac_top_builddir=$ac_top_build_prefix
c906108c 1339
b7026657 1340case $srcdir in
81ecdfbb 1341 .) # We are building in place.
b7026657 1342 ac_srcdir=.
81ecdfbb
RW
1343 ac_top_srcdir=$ac_top_builddir_sub
1344 ac_abs_top_srcdir=$ac_pwd ;;
1345 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1346 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1347 ac_top_srcdir=$srcdir
1348 ac_abs_top_srcdir=$srcdir ;;
1349 *) # Relative name.
1350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1351 ac_top_srcdir=$ac_top_build_prefix$srcdir
1352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1353esac
81ecdfbb
RW
1354ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1355
1356 cd "$ac_dir" || { ac_status=$?; continue; }
1357 # Check for guested configure.
1358 if test -f "$ac_srcdir/configure.gnu"; then
1359 echo &&
1360 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1361 elif test -f "$ac_srcdir/configure"; then
1362 echo &&
1363 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1364 else
81ecdfbb
RW
1365 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1366 fi || ac_status=$?
1367 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657 1368 done
c906108c 1369fi
b7026657 1370
81ecdfbb 1371test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1372if $ac_init_version; then
1373 cat <<\_ACEOF
81ecdfbb 1374configure
d0ac1c44 1375generated by GNU Autoconf 2.69
b7026657 1376
d0ac1c44 1377Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1378This configure script is free software; the Free Software Foundation
1379gives unlimited permission to copy, distribute and modify it.
1380_ACEOF
81ecdfbb 1381 exit
b7026657 1382fi
b7026657 1383
81ecdfbb
RW
1384## ------------------------ ##
1385## Autoconf initialization. ##
1386## ------------------------ ##
b7026657 1387
81ecdfbb
RW
1388# ac_fn_c_try_compile LINENO
1389# --------------------------
1390# Try to compile conftest.$ac_ext, and return whether this succeeded.
1391ac_fn_c_try_compile ()
b7026657 1392{
81ecdfbb
RW
1393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1394 rm -f conftest.$ac_objext
1395 if { { ac_try="$ac_compile"
1396case "(($ac_try" in
1397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1398 *) ac_try_echo=$ac_try;;
1399esac
1400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1401$as_echo "$ac_try_echo"; } >&5
1402 (eval "$ac_compile") 2>conftest.err
1403 ac_status=$?
1404 if test -s conftest.err; then
1405 grep -v '^ *+' conftest.err >conftest.er1
1406 cat conftest.er1 >&5
1407 mv -f conftest.er1 conftest.err
1408 fi
1409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1410 test $ac_status = 0; } && {
1411 test -z "$ac_c_werror_flag" ||
1412 test ! -s conftest.err
1413 } && test -s conftest.$ac_objext; then :
1414 ac_retval=0
1415else
1416 $as_echo "$as_me: failed program was:" >&5
1417sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1418
81ecdfbb
RW
1419 ac_retval=1
1420fi
d0ac1c44
SM
1421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1422 as_fn_set_status $ac_retval
b7026657 1423
81ecdfbb 1424} # ac_fn_c_try_compile
81ecdfbb
RW
1425cat >config.log <<_ACEOF
1426This file contains any messages produced by compilers while
1427running configure, to aid debugging if configure makes a mistake.
1428
1429It was created by $as_me, which was
d0ac1c44 1430generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1431
1432 $ $0 $@
1433
1434_ACEOF
1435exec 5>>config.log
1436{
1437cat <<_ASUNAME
1438## --------- ##
1439## Platform. ##
1440## --------- ##
1441
1442hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1443uname -m = `(uname -m) 2>/dev/null || echo unknown`
1444uname -r = `(uname -r) 2>/dev/null || echo unknown`
1445uname -s = `(uname -s) 2>/dev/null || echo unknown`
1446uname -v = `(uname -v) 2>/dev/null || echo unknown`
1447
1448/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1449/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1450
1451/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1452/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1453/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1454/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1455/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1456/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1457/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1458
1459_ASUNAME
1460
1461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462for as_dir in $PATH
1463do
1464 IFS=$as_save_IFS
1465 test -z "$as_dir" && as_dir=.
1466 $as_echo "PATH: $as_dir"
1467 done
1468IFS=$as_save_IFS
1469
1470} >&5
1471
1472cat >&5 <<_ACEOF
b7026657
AC
1473
1474
1475## ----------- ##
1476## Core tests. ##
1477## ----------- ##
1478
1479_ACEOF
1480
1481
1482# Keep a trace of the command line.
1483# Strip out --no-create and --no-recursion so they do not pile up.
1484# Strip out --silent because we don't want to record it for future runs.
1485# Also quote any args containing shell meta-characters.
1486# Make two passes to allow for proper duplicate-argument suppression.
1487ac_configure_args=
1488ac_configure_args0=
1489ac_configure_args1=
b7026657
AC
1490ac_must_keep_next=false
1491for ac_pass in 1 2
1492do
1493 for ac_arg
1494 do
1495 case $ac_arg in
1496 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1497 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1498 | -silent | --silent | --silen | --sile | --sil)
1499 continue ;;
81ecdfbb
RW
1500 *\'*)
1501 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1502 esac
1503 case $ac_pass in
81ecdfbb 1504 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1505 2)
81ecdfbb 1506 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1507 if test $ac_must_keep_next = true; then
1508 ac_must_keep_next=false # Got value, back to normal.
1509 else
1510 case $ac_arg in
1511 *=* | --config-cache | -C | -disable-* | --disable-* \
1512 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1513 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1514 | -with-* | --with-* | -without-* | --without-* | --x)
1515 case "$ac_configure_args0 " in
1516 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1517 esac
1518 ;;
1519 -* ) ac_must_keep_next=true ;;
1520 esac
1521 fi
81ecdfbb 1522 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1523 ;;
1524 esac
1525 done
1526done
81ecdfbb
RW
1527{ ac_configure_args0=; unset ac_configure_args0;}
1528{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1529
1530# When interrupted or exit'd, cleanup temporary files, and complete
1531# config.log. We remove comments because anyway the quotes in there
1532# would cause problems or look ugly.
81ecdfbb
RW
1533# WARNING: Use '\'' to represent an apostrophe within the trap.
1534# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1535trap 'exit_status=$?
1536 # Save into config.log some information that might help in debugging.
1537 {
1538 echo
1539
d0ac1c44 1540 $as_echo "## ---------------- ##
b7026657 1541## Cache variables. ##
d0ac1c44 1542## ---------------- ##"
b7026657
AC
1543 echo
1544 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1545(
1546 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1547 eval ac_val=\$$ac_var
1548 case $ac_val in #(
1549 *${as_nl}*)
1550 case $ac_var in #(
1551 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1552$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1553 esac
1554 case $ac_var in #(
1555 _ | IFS | as_nl) ;; #(
1556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1557 *) { eval $ac_var=; unset $ac_var;} ;;
1558 esac ;;
1559 esac
1560 done
b7026657 1561 (set) 2>&1 |
81ecdfbb
RW
1562 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1563 *${as_nl}ac_space=\ *)
b7026657 1564 sed -n \
81ecdfbb
RW
1565 "s/'\''/'\''\\\\'\'''\''/g;
1566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1567 ;; #(
b7026657 1568 *)
81ecdfbb 1569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1570 ;;
81ecdfbb
RW
1571 esac |
1572 sort
1573)
b7026657
AC
1574 echo
1575
d0ac1c44 1576 $as_echo "## ----------------- ##
b7026657 1577## Output variables. ##
d0ac1c44 1578## ----------------- ##"
b7026657
AC
1579 echo
1580 for ac_var in $ac_subst_vars
1581 do
81ecdfbb
RW
1582 eval ac_val=\$$ac_var
1583 case $ac_val in
1584 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1585 esac
1586 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1587 done | sort
1588 echo
1589
1590 if test -n "$ac_subst_files"; then
d0ac1c44 1591 $as_echo "## ------------------- ##
81ecdfbb 1592## File substitutions. ##
d0ac1c44 1593## ------------------- ##"
b7026657
AC
1594 echo
1595 for ac_var in $ac_subst_files
1596 do
81ecdfbb
RW
1597 eval ac_val=\$$ac_var
1598 case $ac_val in
1599 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 esac
1601 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1602 done | sort
1603 echo
1604 fi
1605
1606 if test -s confdefs.h; then
d0ac1c44 1607 $as_echo "## ----------- ##
b7026657 1608## confdefs.h. ##
d0ac1c44 1609## ----------- ##"
b7026657 1610 echo
81ecdfbb 1611 cat confdefs.h
b7026657
AC
1612 echo
1613 fi
1614 test "$ac_signal" != 0 &&
81ecdfbb
RW
1615 $as_echo "$as_me: caught signal $ac_signal"
1616 $as_echo "$as_me: exit $exit_status"
b7026657 1617 } >&5
81ecdfbb
RW
1618 rm -f core *.core core.conftest.* &&
1619 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1620 exit $exit_status
81ecdfbb 1621' 0
b7026657 1622for ac_signal in 1 2 13 15; do
81ecdfbb 1623 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1624done
1625ac_signal=0
1626
1627# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1628rm -f -r conftest* confdefs.h
1629
1630$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1631
1632# Predefined preprocessor variables.
1633
1634cat >>confdefs.h <<_ACEOF
1635#define PACKAGE_NAME "$PACKAGE_NAME"
1636_ACEOF
1637
b7026657
AC
1638cat >>confdefs.h <<_ACEOF
1639#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1640_ACEOF
1641
b7026657
AC
1642cat >>confdefs.h <<_ACEOF
1643#define PACKAGE_VERSION "$PACKAGE_VERSION"
1644_ACEOF
1645
b7026657
AC
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE_STRING "$PACKAGE_STRING"
1648_ACEOF
1649
b7026657
AC
1650cat >>confdefs.h <<_ACEOF
1651#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1652_ACEOF
1653
81ecdfbb
RW
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_URL "$PACKAGE_URL"
1656_ACEOF
1657
b7026657
AC
1658
1659# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1660# Prefer an explicitly selected file to automatically selected ones.
1661ac_site_file1=NONE
1662ac_site_file2=NONE
1663if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
1664 # We do not want a PATH search for config.site.
1665 case $CONFIG_SITE in #((
1666 -*) ac_site_file1=./$CONFIG_SITE;;
1667 */*) ac_site_file1=$CONFIG_SITE;;
1668 *) ac_site_file1=./$CONFIG_SITE;;
1669 esac
81ecdfbb
RW
1670elif test "x$prefix" != xNONE; then
1671 ac_site_file1=$prefix/share/config.site
1672 ac_site_file2=$prefix/etc/config.site
1673else
1674 ac_site_file1=$ac_default_prefix/share/config.site
1675 ac_site_file2=$ac_default_prefix/etc/config.site
1676fi
1677for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1678do
1679 test "x$ac_site_file" = xNONE && continue
d0ac1c44 1680 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1682$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 1683 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
1684 . "$ac_site_file" \
1685 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1687as_fn_error $? "failed to load site script $ac_site_file
1688See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
1689 fi
1690done
1691
1692if test -r "$cache_file"; then
d0ac1c44
SM
1693 # Some versions of bash will fail to source /dev/null (special files
1694 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1695 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1697$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 1698 case $cache_file in
81ecdfbb
RW
1699 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1700 *) . "./$cache_file";;
b7026657
AC
1701 esac
1702 fi
1703else
81ecdfbb
RW
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1705$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
1706 >$cache_file
1707fi
1708
1709# Check that the precious variables saved in the cache have kept the same
1710# value.
1711ac_cache_corrupted=false
81ecdfbb 1712for ac_var in $ac_precious_vars; do
b7026657
AC
1713 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1714 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1715 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1716 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
1717 case $ac_old_set,$ac_new_set in
1718 set,)
81ecdfbb
RW
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1720$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
1721 ac_cache_corrupted=: ;;
1722 ,set)
81ecdfbb
RW
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1724$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
1725 ac_cache_corrupted=: ;;
1726 ,);;
1727 *)
1728 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1729 # differences in whitespace do not lead to failure.
1730 ac_old_val_w=`echo x $ac_old_val`
1731 ac_new_val_w=`echo x $ac_new_val`
1732 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1734$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1735 ac_cache_corrupted=:
1736 else
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1738$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1739 eval $ac_var=\$ac_old_val
1740 fi
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1742$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1744$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
1745 fi;;
1746 esac
1747 # Pass precious variables to config.status.
1748 if test "$ac_new_set" = set; then
1749 case $ac_new_val in
81ecdfbb 1750 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1751 *) ac_arg=$ac_var=$ac_new_val ;;
1752 esac
1753 case " $ac_configure_args " in
1754 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 1755 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
1756 esac
1757 fi
1758done
1759if $ac_cache_corrupted; then
81ecdfbb
RW
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1763$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 1764 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 1765fi
81ecdfbb
RW
1766## -------------------- ##
1767## Main body of script. ##
1768## -------------------- ##
b7026657
AC
1769
1770ac_ext=c
1771ac_cpp='$CPP $CPPFLAGS'
1772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1774ac_compiler_gnu=$ac_cv_c_compiler_gnu
1775
1776
6bb11ab3
L
1777
1778
1779
1780
1781
1782ac_ext=c
1783ac_cpp='$CPP $CPPFLAGS'
1784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1786ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787if test -n "$ac_tool_prefix"; then
1788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1789set dummy ${ac_tool_prefix}gcc; ac_word=$2
1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1791$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1792if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1793 $as_echo_n "(cached) " >&6
1794else
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC="$CC" # Let the user override the test.
1797else
1798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799for as_dir in $PATH
1800do
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1808 fi
1809done
1810 done
1811IFS=$as_save_IFS
1812
1813fi
1814fi
1815CC=$ac_cv_prog_CC
1816if test -n "$CC"; then
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1818$as_echo "$CC" >&6; }
1819else
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1821$as_echo "no" >&6; }
1822fi
1823
1824
1825fi
1826if test -z "$ac_cv_prog_CC"; then
1827 ac_ct_CC=$CC
1828 # Extract the first word of "gcc", so it can be a program name with args.
1829set dummy gcc; ac_word=$2
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1831$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1832if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
1833 $as_echo_n "(cached) " >&6
1834else
1835 if test -n "$ac_ct_CC"; then
1836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1837else
1838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1845 ac_cv_prog_ac_ct_CC="gcc"
1846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1848 fi
1849done
1850 done
1851IFS=$as_save_IFS
1852
1853fi
1854fi
1855ac_ct_CC=$ac_cv_prog_ac_ct_CC
1856if test -n "$ac_ct_CC"; then
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1858$as_echo "$ac_ct_CC" >&6; }
1859else
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1861$as_echo "no" >&6; }
1862fi
1863
1864 if test "x$ac_ct_CC" = x; then
1865 CC=""
1866 else
1867 case $cross_compiling:$ac_tool_warned in
1868yes:)
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1871ac_tool_warned=yes ;;
1872esac
1873 CC=$ac_ct_CC
1874 fi
1875else
1876 CC="$ac_cv_prog_CC"
1877fi
1878
1879if test -z "$CC"; then
1880 if test -n "$ac_tool_prefix"; then
1881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1882set dummy ${ac_tool_prefix}cc; ac_word=$2
1883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1884$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1885if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1886 $as_echo_n "(cached) " >&6
1887else
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1890else
1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892for as_dir in $PATH
1893do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1898 ac_cv_prog_CC="${ac_tool_prefix}cc"
1899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1901 fi
1902done
1903 done
1904IFS=$as_save_IFS
1905
1906fi
1907fi
1908CC=$ac_cv_prog_CC
1909if test -n "$CC"; then
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1911$as_echo "$CC" >&6; }
1912else
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1914$as_echo "no" >&6; }
1915fi
1916
1917
1918 fi
1919fi
1920if test -z "$CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922set dummy cc; ac_word=$2
1923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1924$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1925if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1926 $as_echo_n "(cached) " >&6
1927else
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1930else
1931 ac_prog_rejected=no
1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1940 ac_prog_rejected=yes
1941 continue
1942 fi
1943 ac_cv_prog_CC="cc"
1944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 break 2
1946 fi
1947done
1948 done
1949IFS=$as_save_IFS
1950
1951if test $ac_prog_rejected = yes; then
1952 # We found a bogon in the path, so make sure we never use it.
1953 set dummy $ac_cv_prog_CC
1954 shift
1955 if test $# != 0; then
1956 # We chose a different compiler from the bogus one.
1957 # However, it has the same basename, so the bogon will be chosen
1958 # first if we set CC to just the basename; use the full file name.
1959 shift
1960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1961 fi
1962fi
1963fi
1964fi
1965CC=$ac_cv_prog_CC
1966if test -n "$CC"; then
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1968$as_echo "$CC" >&6; }
1969else
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1971$as_echo "no" >&6; }
1972fi
1973
1974
1975fi
1976if test -z "$CC"; then
1977 if test -n "$ac_tool_prefix"; then
1978 for ac_prog in cl.exe
1979 do
1980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1981set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1983$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1984if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1985 $as_echo_n "(cached) " >&6
1986else
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1989else
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2000 fi
2001done
2002 done
2003IFS=$as_save_IFS
2004
2005fi
2006fi
2007CC=$ac_cv_prog_CC
2008if test -n "$CC"; then
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2010$as_echo "$CC" >&6; }
2011else
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2013$as_echo "no" >&6; }
2014fi
2015
2016
2017 test -n "$CC" && break
2018 done
2019fi
2020if test -z "$CC"; then
2021 ac_ct_CC=$CC
2022 for ac_prog in cl.exe
2023do
2024 # Extract the first word of "$ac_prog", so it can be a program name with args.
2025set dummy $ac_prog; ac_word=$2
2026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2027$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2028if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2029 $as_echo_n "(cached) " >&6
2030else
2031 if test -n "$ac_ct_CC"; then
2032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033else
2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035for as_dir in $PATH
2036do
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2041 ac_cv_prog_ac_ct_CC="$ac_prog"
2042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2044 fi
2045done
2046 done
2047IFS=$as_save_IFS
2048
2049fi
2050fi
2051ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052if test -n "$ac_ct_CC"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2054$as_echo "$ac_ct_CC" >&6; }
2055else
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2057$as_echo "no" >&6; }
2058fi
2059
2060
2061 test -n "$ac_ct_CC" && break
2062done
2063
2064 if test "x$ac_ct_CC" = x; then
2065 CC=""
2066 else
2067 case $cross_compiling:$ac_tool_warned in
2068yes:)
2069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2071ac_tool_warned=yes ;;
2072esac
2073 CC=$ac_ct_CC
2074 fi
2075fi
2076
2077fi
2078
2079
2080test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2082as_fn_error $? "no acceptable C compiler found in \$PATH
2083See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2084
2085# Provide some information about the compiler.
2086$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2087set X $ac_compile
2088ac_compiler=$2
2089for ac_option in --version -v -V -qversion; do
2090 { { ac_try="$ac_compiler $ac_option >&5"
2091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
2095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096$as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2098 ac_status=$?
2099 if test -s conftest.err; then
2100 sed '10a\
2101... rest of stderr output deleted ...
2102 10q' conftest.err >conftest.er1
2103 cat conftest.er1 >&5
6bb11ab3 2104 fi
d0ac1c44 2105 rm -f conftest.er1 conftest.err
6bb11ab3
L
2106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2107 test $ac_status = 0; }
2108done
2109
2110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h. */
2112
2113int
2114main ()
2115{
2116
2117 ;
2118 return 0;
2119}
2120_ACEOF
2121ac_clean_files_save=$ac_clean_files
d0ac1c44 2122ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2123# Try to create an executable without -o first, disregard a.out.
2124# It will help us diagnose broken compilers, and finding out an intuition
2125# of exeext.
d0ac1c44
SM
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2127$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2128ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129
2130# The possible output files:
2131ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2132
2133ac_rmfiles=
2134for ac_file in $ac_files
2135do
2136 case $ac_file in
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139 esac
2140done
2141rm -f $ac_rmfiles
2142
2143if { { ac_try="$ac_link_default"
2144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
2148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149$as_echo "$ac_try_echo"; } >&5
2150 (eval "$ac_link_default") 2>&5
2151 ac_status=$?
2152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; }; then :
2154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2155# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2156# in a Makefile. We should not override ac_cv_exeext if it was cached,
2157# so that the user can short-circuit this test for compilers unknown to
2158# Autoconf.
2159for ac_file in $ac_files ''
2160do
2161 test -f "$ac_file" || continue
2162 case $ac_file in
2163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2164 ;;
2165 [ab].out )
2166 # We found the default executable, but exeext='' is most
2167 # certainly right.
2168 break;;
2169 *.* )
2170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2171 then :; else
2172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 fi
2174 # We set ac_cv_exeext here because the later test for it is not
2175 # safe: cross compilers may not add the suffix if given an `-o'
2176 # argument, so we may need to know it at that point already.
2177 # Even if this section looks crufty: it has the advantage of
2178 # actually working.
2179 break;;
2180 * )
2181 break;;
2182 esac
2183done
2184test "$ac_cv_exeext" = no && ac_cv_exeext=
2185
2186else
2187 ac_file=''
2188fi
6bb11ab3 2189if test -z "$ac_file"; then :
d0ac1c44
SM
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2191$as_echo "no" >&6; }
2192$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2197as_fn_error 77 "C compiler cannot create executables
2198See \`config.log' for more details" "$LINENO" 5; }
2199else
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2201$as_echo "yes" >&6; }
6bb11ab3 2202fi
d0ac1c44
SM
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2204$as_echo_n "checking for C compiler default output file name... " >&6; }
2205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2206$as_echo "$ac_file" >&6; }
6bb11ab3
L
2207ac_exeext=$ac_cv_exeext
2208
d0ac1c44 2209rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2210ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2212$as_echo_n "checking for suffix of executables... " >&6; }
2213if { { ac_try="$ac_link"
2214case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217esac
2218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219$as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>&5
2221 ac_status=$?
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; }; then :
2224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2225# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2226# work properly (i.e., refer to `conftest.exe'), while it won't with
2227# `rm'.
2228for ac_file in conftest.exe conftest conftest.*; do
2229 test -f "$ac_file" || continue
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2233 break;;
2234 * ) break;;
2235 esac
2236done
2237else
2238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2240as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2241See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2242fi
d0ac1c44 2243rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2245$as_echo "$ac_cv_exeext" >&6; }
2246
2247rm -f conftest.$ac_ext
2248EXEEXT=$ac_cv_exeext
2249ac_exeext=$EXEEXT
d0ac1c44
SM
2250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251/* end confdefs.h. */
2252#include <stdio.h>
2253int
2254main ()
2255{
2256FILE *f = fopen ("conftest.out", "w");
2257 return ferror (f) || fclose (f) != 0;
2258
2259 ;
2260 return 0;
2261}
2262_ACEOF
2263ac_clean_files="$ac_clean_files conftest.out"
2264# Check that the compiler produces executables we can run. If not, either
2265# the compiler is broken, or we cross compile.
2266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2267$as_echo_n "checking whether we are cross compiling... " >&6; }
2268if test "$cross_compiling" != yes; then
2269 { { ac_try="$ac_link"
2270case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
2274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275$as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_link") 2>&5
2277 ac_status=$?
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; }
2280 if { ac_try='./conftest$ac_cv_exeext'
2281 { { case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286$as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_try") 2>&5
2288 ac_status=$?
2289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2290 test $ac_status = 0; }; }; then
2291 cross_compiling=no
2292 else
2293 if test "$cross_compiling" = maybe; then
2294 cross_compiling=yes
2295 else
2296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298as_fn_error $? "cannot run C compiled programs.
2299If you meant to cross compile, use \`--host'.
2300See \`config.log' for more details" "$LINENO" 5; }
2301 fi
2302 fi
2303fi
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2305$as_echo "$cross_compiling" >&6; }
2306
2307rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2308ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2310$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2311if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2312 $as_echo_n "(cached) " >&6
2313else
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315/* end confdefs.h. */
2316
2317int
2318main ()
2319{
2320
2321 ;
2322 return 0;
2323}
2324_ACEOF
2325rm -f conftest.o conftest.obj
2326if { { ac_try="$ac_compile"
2327case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330esac
2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332$as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_compile") 2>&5
2334 ac_status=$?
2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336 test $ac_status = 0; }; then :
2337 for ac_file in conftest.o conftest.obj conftest.*; do
2338 test -f "$ac_file" || continue;
2339 case $ac_file in
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342 break;;
2343 esac
2344done
2345else
2346 $as_echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2351as_fn_error $? "cannot compute suffix of object files: cannot compile
2352See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2353fi
2354rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355fi
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2357$as_echo "$ac_cv_objext" >&6; }
2358OBJEXT=$ac_cv_objext
2359ac_objext=$OBJEXT
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2361$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2362if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2363 $as_echo_n "(cached) " >&6
2364else
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366/* end confdefs.h. */
2367
2368int
2369main ()
2370{
2371#ifndef __GNUC__
2372 choke me
2373#endif
2374
2375 ;
2376 return 0;
2377}
2378_ACEOF
2379if ac_fn_c_try_compile "$LINENO"; then :
2380 ac_compiler_gnu=yes
2381else
2382 ac_compiler_gnu=no
2383fi
2384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385ac_cv_c_compiler_gnu=$ac_compiler_gnu
2386
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2389$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2390if test $ac_compiler_gnu = yes; then
2391 GCC=yes
2392else
2393 GCC=
2394fi
2395ac_test_CFLAGS=${CFLAGS+set}
2396ac_save_CFLAGS=$CFLAGS
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2398$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2399if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
2400 $as_echo_n "(cached) " >&6
2401else
2402 ac_save_c_werror_flag=$ac_c_werror_flag
2403 ac_c_werror_flag=yes
2404 ac_cv_prog_cc_g=no
2405 CFLAGS="-g"
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407/* end confdefs.h. */
2408
2409int
2410main ()
2411{
2412
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_cv_prog_cc_g=yes
2419else
2420 CFLAGS=""
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422/* end confdefs.h. */
2423
2424int
2425main ()
2426{
2427
2428 ;
2429 return 0;
2430}
2431_ACEOF
2432if ac_fn_c_try_compile "$LINENO"; then :
2433
2434else
2435 ac_c_werror_flag=$ac_save_c_werror_flag
2436 CFLAGS="-g"
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438/* end confdefs.h. */
2439
2440int
2441main ()
2442{
2443
2444 ;
2445 return 0;
2446}
2447_ACEOF
2448if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_cv_prog_cc_g=yes
2450fi
2451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452fi
2453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454fi
2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_c_werror_flag=$ac_save_c_werror_flag
2457fi
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2459$as_echo "$ac_cv_prog_cc_g" >&6; }
2460if test "$ac_test_CFLAGS" = set; then
2461 CFLAGS=$ac_save_CFLAGS
2462elif test $ac_cv_prog_cc_g = yes; then
2463 if test "$GCC" = yes; then
2464 CFLAGS="-g -O2"
2465 else
2466 CFLAGS="-g"
2467 fi
2468else
2469 if test "$GCC" = yes; then
2470 CFLAGS="-O2"
2471 else
2472 CFLAGS=
2473 fi
2474fi
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2476$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 2477if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
2478 $as_echo_n "(cached) " >&6
2479else
2480 ac_cv_prog_cc_c89=no
2481ac_save_CC=$CC
2482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483/* end confdefs.h. */
2484#include <stdarg.h>
2485#include <stdio.h>
d0ac1c44 2486struct stat;
6bb11ab3
L
2487/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2488struct buf { int x; };
2489FILE * (*rcsopen) (struct buf *, struct stat *, int);
2490static char *e (p, i)
2491 char **p;
2492 int i;
2493{
2494 return p[i];
2495}
2496static char *f (char * (*g) (char **, int), char **p, ...)
2497{
2498 char *s;
2499 va_list v;
2500 va_start (v,p);
2501 s = g (p, va_arg (v,int));
2502 va_end (v);
2503 return s;
2504}
2505
2506/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2507 function prototypes and stuff, but not '\xHH' hex character constants.
2508 These don't provoke an error unfortunately, instead are silently treated
2509 as 'x'. The following induces an error, until -std is added to get
2510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2511 array size at least. It's necessary to write '\x00'==0 to get something
2512 that's true only with -std. */
2513int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2514
2515/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2516 inside strings and character constants. */
2517#define FOO(x) 'x'
2518int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2519
2520int test (int i, double x);
2521struct s1 {int (*f) (int a);};
2522struct s2 {int (*f) (double a);};
2523int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2524int argc;
2525char **argv;
2526int
2527main ()
2528{
2529return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2530 ;
2531 return 0;
2532}
2533_ACEOF
2534for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536do
2537 CC="$ac_save_CC $ac_arg"
2538 if ac_fn_c_try_compile "$LINENO"; then :
2539 ac_cv_prog_cc_c89=$ac_arg
2540fi
2541rm -f core conftest.err conftest.$ac_objext
2542 test "x$ac_cv_prog_cc_c89" != "xno" && break
2543done
2544rm -f conftest.$ac_ext
2545CC=$ac_save_CC
2546
2547fi
2548# AC_CACHE_VAL
2549case "x$ac_cv_prog_cc_c89" in
2550 x)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2552$as_echo "none needed" >&6; } ;;
2553 xno)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2555$as_echo "unsupported" >&6; } ;;
2556 *)
2557 CC="$CC $ac_cv_prog_cc_c89"
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2559$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2560esac
2561if test "x$ac_cv_prog_cc_c89" != xno; then :
2562
2563fi
2564
2565ac_ext=c
2566ac_cpp='$CPP $CPPFLAGS'
2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570
d3562f83
MF
2571ac_aux_dir=
2572for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2573 if test -f "$ac_dir/install-sh"; then
2574 ac_aux_dir=$ac_dir
2575 ac_install_sh="$ac_aux_dir/install-sh -c"
2576 break
2577 elif test -f "$ac_dir/install.sh"; then
2578 ac_aux_dir=$ac_dir
2579 ac_install_sh="$ac_aux_dir/install.sh -c"
2580 break
2581 elif test -f "$ac_dir/shtool"; then
2582 ac_aux_dir=$ac_dir
2583 ac_install_sh="$ac_aux_dir/shtool install -c"
2584 break
2585 fi
ebe9564b 2586done
d3562f83
MF
2587if test -z "$ac_aux_dir"; then
2588 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
ebe9564b 2589fi
ebe9564b 2590
d3562f83
MF
2591# These three variables are undocumented and unsupported,
2592# and are intended to be withdrawn in a future Autoconf release.
2593# They can cause serious problems if a builder's source tree is in a directory
2594# whose full name contains unusual characters.
2595ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2596ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2597ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ebe9564b 2598
ebe9564b 2599
d3562f83
MF
2600# Find a good install program. We prefer a C program (faster),
2601# so one script is as good as another. But avoid the broken or
2602# incompatible versions:
2603# SysV /etc/install, /usr/sbin/install
2604# SunOS /usr/etc/install
2605# IRIX /sbin/install
2606# AIX /bin/install
2607# AmigaOS /C/install, which installs bootblocks on floppy discs
2608# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2609# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2610# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2611# OS/2's system install, which has a completely different semantic
2612# ./install, which can be erroneously created by make from ./install.sh.
2613# Reject install programs that cannot install multiple files.
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2615$as_echo_n "checking for a BSD-compatible install... " >&6; }
2616if test -z "$INSTALL"; then
2617if ${ac_cv_path_install+:} false; then :
2618 $as_echo_n "(cached) " >&6
6bb11ab3
L
2619else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 # Account for people who put trailing slashes in PATH elements.
2626case $as_dir/ in #((
2627 ./ | .// | /[cC]/* | \
2628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2629 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2630 /usr/ucb/* ) ;;
2631 *)
2632 # OSF1 and SCO ODT 3.0 have their own names for install.
2633 # Don't use installbsd from OSF since it installs stuff as root
2634 # by default.
2635 for ac_prog in ginstall scoinst install; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2637 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
2638 if test $ac_prog = install &&
2639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640 # AIX install. It has an incompatible calling convention.
2641 :
2642 elif test $ac_prog = install &&
2643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644 # program-specific install script used by HP pwplus--don't use.
2645 :
2646 else
2647 rm -rf conftest.one conftest.two conftest.dir
2648 echo one > conftest.one
2649 echo two > conftest.two
2650 mkdir conftest.dir
2651 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2652 test -s conftest.one && test -s conftest.two &&
2653 test -s conftest.dir/conftest.one &&
2654 test -s conftest.dir/conftest.two
2655 then
2656 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2657 break 3
2658 fi
2659 fi
2660 fi
2661 done
2662 done
2663 ;;
2664esac
2665
2666 done
2667IFS=$as_save_IFS
2668
2669rm -rf conftest.one conftest.two conftest.dir
2670
2671fi
2672 if test "${ac_cv_path_install+set}" = set; then
2673 INSTALL=$ac_cv_path_install
2674 else
2675 # As a last resort, use the slow shell script. Don't cache a
2676 # value for INSTALL within a source directory, because that will
2677 # break other packages using the cache if that directory is
2678 # removed, or if the value is a relative name.
2679 INSTALL=$ac_install_sh
2680 fi
2681fi
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2683$as_echo "$INSTALL" >&6; }
2684
2685# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2686# It thinks the first close brace ends the variable substitution.
2687test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2688
2689test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2690
2691test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2692
2693rm -rf .tst 2>/dev/null
2694mkdir .tst 2>/dev/null
2695if test -d .tst; then
2696 am__leading_dot=.
2697else
2698 am__leading_dot=_
2699fi
2700rmdir .tst 2>/dev/null
2701
2702DEPDIR="${am__leading_dot}deps"
2703
d3562f83 2704# Dependency checking.
6bb11ab3
L
2705
2706
b5689863 2707ac_config_commands="$ac_config_commands depdir"
6bb11ab3
L
2708
2709
b5689863 2710depcc="$CC" am_compiler_list=
68ed2854 2711
b5689863
MF
2712am_depcomp=$ac_aux_dir/depcomp
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2714$as_echo_n "checking dependency style of $depcc... " >&6; }
2715if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
2716 $as_echo_n "(cached) " >&6
2717else
b5689863
MF
2718 if test -f "$am_depcomp"; then
2719 # We make a subdir and do the tests there. Otherwise we can end up
2720 # making bogus files that we don't know about and never remove. For
2721 # instance it was reported that on HP-UX the gcc test will end up
2722 # making a dummy file named `D' -- because `-MD' means `put the output
2723 # in D'.
2724 mkdir conftest.dir
2725 # Copy depcomp to subdir because otherwise we won't find it if we're
2726 # using a relative directory.
2727 cp "$am_depcomp" conftest.dir
2728 cd conftest.dir
2729 # We will build objects and dependencies in a subdirectory because
2730 # it helps to detect inapplicable dependency modes. For instance
2731 # both Tru64's cc and ICC support -MD to output dependencies as a
2732 # side effect of compilation, but ICC will put the dependencies in
2733 # the current directory while Tru64 will put them in the object
2734 # directory.
2735 mkdir sub
6bb11ab3 2736
b5689863
MF
2737 am_cv_CC_dependencies_compiler_type=none
2738 if test "$am_compiler_list" = ""; then
2739 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6bb11ab3 2740 fi
b5689863
MF
2741 for depmode in $am_compiler_list; do
2742 if test $depmode = none; then break; fi
6bb11ab3 2743
b5689863
MF
2744 $as_echo "$as_me:$LINENO: trying $depmode" >&5
2745 # Setup a source with many dependencies, because some compilers
2746 # like to wrap large dependency lists on column 80 (with \), and
2747 # we should not choose a depcomp mode which is confused by this.
2748 #
2749 # We need to recreate these files for each test, as the compiler may
2750 # overwrite some of them when testing with obscure command lines.
2751 # This happens at least with the AIX C compiler.
2752 : > sub/conftest.c
2753 for i in 1 2 3 4 5 6; do
2754 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2755 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2756 # Solaris 8's {/usr,}/bin/sh.
2757 touch sub/conftst$i.h
2758 done
2759 echo "include sub/conftest.Po" > confmf
6bb11ab3 2760
b5689863
MF
2761 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2762 # mode. It turns out that the SunPro C++ compiler does not properly
2763 # handle `-M -o', and we need to detect this.
2764 depcmd="depmode=$depmode \
2765 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2767 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2768 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2769 if env $depcmd > conftest.err 2>&1 &&
2770 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2771 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2772 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2773 # icc doesn't choke on unknown options, it will just issue warnings
2774 # or remarks (even with -Werror). So we grep stderr for any message
2775 # that says an option was ignored or not supported.
2776 # When given -MP, icc 7.0 and 7.1 complain thusly:
2777 # icc: Command line warning: ignoring option '-M'; no argument required
2778 # The diagnosis changed in icc 8.0:
2779 # icc: Command line remark: option '-MP' not supported
2780 if (grep 'ignoring option' conftest.err ||
2781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2782 am_cv_CC_dependencies_compiler_type=$depmode
2783 $as_echo "$as_me:$LINENO: success" >&5
2784 break
2785 fi
aa09469f 2786 fi
b5689863
MF
2787 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2788 sed -e 's/^/| /' < conftest.err >&5
6bb11ab3 2789 done
6bb11ab3 2790
b5689863
MF
2791 cd ..
2792 rm -rf conftest.dir
6bb11ab3 2793else
b5689863 2794 am_cv_CC_dependencies_compiler_type=none
6bb11ab3 2795fi
6bb11ab3
L
2796
2797fi
b5689863
MF
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2799$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2800if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2801then as_fn_error $? "no usable dependency style found" "$LINENO" 5
2802else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6bb11ab3 2803
6bb11ab3
L
2804fi
2805
6bb11ab3 2806
b5689863
MF
2807ALL_LINGUAS=
2808# If we haven't got the data from the intl directory,
2809# assume NLS is disabled.
2810USE_NLS=no
2811LIBINTL=
2812LIBINTL_DEP=
2813INCINTL=
2814XGETTEXT=
2815GMSGFMT=
2816POSUB=
6bb11ab3 2817
b5689863
MF
2818if test -f ../../intl/config.intl; then
2819 . ../../intl/config.intl
6bb11ab3 2820fi
b5689863
MF
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2822$as_echo_n "checking whether NLS is requested... " >&6; }
2823if test x"$USE_NLS" != xyes; then
6bb11ab3
L
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
b5689863
MF
2826else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828$as_echo "yes" >&6; }
6bb11ab3 2829
b5689863 2830$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6bb11ab3 2831
6bb11ab3 2832
b5689863
MF
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
2834$as_echo_n "checking for catalogs to be installed... " >&6; }
2835 # Look for .po and .gmo files in the source directory.
2836 CATALOGS=
2837 XLINGUAS=
2838 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2839 # If there aren't any .gmo files the shell will give us the
2840 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2841 # weeded out.
2842 case "$cat" in *\**)
2843 continue;;
6bb11ab3 2844 esac
b5689863
MF
2845 # The quadruple backslash is collapsed to a double backslash
2846 # by the backticks, then collapsed again by the double quotes,
2847 # leaving us with one backslash in the sed expression (right
2848 # before the dot that mustn't act as a wildcard).
2849 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2850 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2851 # The user is allowed to set LINGUAS to a list of languages to
2852 # install catalogs for. If it's empty that means "all of them."
2853 if test "x$LINGUAS" = x; then
2854 CATALOGS="$CATALOGS $cat"
2855 XLINGUAS="$XLINGUAS $lang"
6bb11ab3 2856 else
b5689863
MF
2857 case "$LINGUAS" in *$lang*)
2858 CATALOGS="$CATALOGS $cat"
2859 XLINGUAS="$XLINGUAS $lang"
2860 ;;
2861 esac
2862 fi
2863 done
2864 LINGUAS="$XLINGUAS"
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
2866$as_echo "$LINGUAS" >&6; }
6bb11ab3
L
2867
2868
b5689863 2869 DATADIRNAME=share
6bb11ab3 2870
b5689863 2871 INSTOBJEXT=.mo
6bb11ab3 2872
b5689863 2873 GENCAT=gencat
6bb11ab3 2874
b5689863 2875 CATOBJEXT=.gmo
5912fadd 2876
b5689863 2877fi
b5bd9624 2878
c906108c 2879
31e6ad7d
MF
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2881$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2882 # Check whether --enable-maintainer-mode was given.
81ecdfbb 2883if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
2884 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2885else
2886 USE_MAINTAINER_MODE=no
c906108c 2887fi
31e6ad7d
MF
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2890$as_echo "$USE_MAINTAINER_MODE" >&6; }
2891 if test $USE_MAINTAINER_MODE = yes; then
2892 MAINTAINER_MODE_TRUE=
2893 MAINTAINER_MODE_FALSE='#'
c906108c 2894else
31e6ad7d
MF
2895 MAINTAINER_MODE_TRUE='#'
2896 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
2897fi
2898
31e6ad7d
MF
2899 MAINT=$MAINTAINER_MODE_TRUE
2900
2901
c906108c
SS
2902
2903
347fe5bb
MF
2904sim_inline="-DDEFAULT_INLINE=0"
2905# Check whether --enable-sim-inline was given.
2906if test "${enable_sim_inline+set}" = set; then :
2907 enableval=$enable_sim_inline; sim_inline=""
2908case "$enableval" in
2909 no) sim_inline="-DDEFAULT_INLINE=0";;
2910 0) sim_inline="-DDEFAULT_INLINE=0";;
2911 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
2912 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
2913 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
2914 new_flag=""
2915 case "$x" in
2916 *_INLINE=*) new_flag="-D$x";;
2917 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
2918 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
2919 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
2920 esac
2921 if test x"$sim_inline" = x""; then
2922 sim_inline="$new_flag"
2923 else
2924 sim_inline="$sim_inline $new_flag"
2925 fi
2926 done;;
2927esac
2928if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
2929 echo "Setting inline flags = $sim_inline" 6>&1
2930fi
2931fi
2932
2933
2934
6efef468 2935
c906108c 2936default_sim_reserved_bits="1"
81ecdfbb
RW
2937# Check whether --enable-sim-reserved-bits was given.
2938if test "${enable_sim_reserved_bits+set}" = set; then :
2939 enableval=$enable_sim_reserved_bits; case "${enableval}" in
c906108c
SS
2940 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
2941 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
d0ac1c44 2942 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
c906108c
SS
2943esac
2944if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
2945 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
2946fi
2947else
2948 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
81ecdfbb
RW
2949fi
2950
c906108c
SS
2951wire_word_bitsize="32"
2952wire_word_msb="31"
2953wire_address_bitsize=""
2954wire_cell_bitsize=""
81ecdfbb
RW
2955# Check whether --enable-sim-bitsize was given.
2956if test "${enable_sim_bitsize+set}" = set; then :
2957 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
2958case "${enableval}" in
2959 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
2960 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
2961 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
2962 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
2963 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
2964 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
2965 else
2966 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
2967 fi ;;
2968 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
2969 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
2970 else
2971 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
2972 fi ;;
d0ac1c44 2973 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
2974esac
2975# address bitsize
2976tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
2977case x"${tmp}" in
2978 x ) ;;
2979 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
2980 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
d0ac1c44 2981 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
2982esac
2983# cell bitsize
2984tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
2985case x"${tmp}" in
2986 x ) ;;
2987 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
2988 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
d0ac1c44 2989 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
2990esac
2991if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
2992 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2993fi
2994else
2995 sim_bitsize=""
2996if test x"$wire_word_bitsize" != x; then
2997 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
2998fi
2999if test x"$wire_word_msb" != x; then
3000 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3001fi
3002if test x"$wire_address_bitsize" != x; then
3003 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3004fi
3005if test x"$wire_cell_bitsize" != x; then
3006 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3007fi
81ecdfbb
RW
3008fi
3009
c906108c 3010
9d903352 3011hardware="cfi core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
81ecdfbb
RW
3012sim_hw_cflags="-DWITH_HW=1"
3013sim_hw="$hardware"
3014sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 3015
81ecdfbb
RW
3016# Check whether --enable-sim-hardware was given.
3017if test "${enable_sim_hardware+set}" = set; then :
3018 enableval=$enable_sim_hardware;
30452bbe
MF
3019else
3020 enable_sim_hardware="yes"
1517bd27
MF
3021fi
3022
3023case ${enable_sim_hardware} in
64dd13df
MF
3024 yes|no) ;;
3025 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
3026 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
3027 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
81ecdfbb 3028esac
1517bd27 3029
64dd13df 3030if test "$enable_sim_hardware" = no; then
81ecdfbb
RW
3031 sim_hw_objs=
3032 sim_hw_cflags="-DWITH_HW=0"
3033 sim_hw=
b7026657 3034else
81ecdfbb
RW
3035 sim_hw_cflags="-DWITH_HW=1"
3036 # remove duplicates
3037 sim_hw=""
3038 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
3039 for i in $hardware ; do
3040 case " $sim_hw " in
3041 *" $i "*) ;;
3042 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
3043 esac
3044 done
fb61c40a 3045 # mingw does not support sockser
fb61c40a
JS
3046 case ${host} in
3047 *mingw*) ;;
49cd1634
MF
3048 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
3049 # that you instatiate. Instead, other code will call into it directly.
3050 # At some point, we should convert it over.
3051 sim_hw_objs="$sim_hw_objs dv-sockser.o"
bcaa61f7 3052 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
fb61c40a
JS
3053 ;;
3054 esac
1517bd27
MF
3055 if test x"$silent" != x"yes"; then
3056 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
fb61c40a 3057 fi
1517bd27 3058fi
4399a56b 3059
81ecdfbb 3060
b7026657 3061
b7026657
AC
3062cgen_breaks=""
3063if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
3064cgen_breaks="break cgen_rtx_error";
3065fi
3066
81ecdfbb 3067ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 3068
81ecdfbb 3069ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 3070
81ecdfbb 3071ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 3072
81ecdfbb 3073ac_config_commands="$ac_config_commands Makefile"
38f48d72 3074
81ecdfbb 3075ac_config_commands="$ac_config_commands stamp-h"
38f48d72 3076
760b3e8b
MF
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
b7026657
AC
3087cat >confcache <<\_ACEOF
3088# This file is a shell script that caches the results of configure
3089# tests run on this system so they can be shared between configure
3090# scripts and configure runs, see configure's option --config-cache.
3091# It is not useful on other systems. If it contains results you don't
3092# want to keep, you may remove or edit it.
3093#
3094# config.status only pays attention to the cache file if you give it
3095# the --recheck option to rerun configure.
3096#
3097# `ac_cv_env_foo' variables (set or unset) will be overridden when
3098# loading this file, other *unset* `ac_cv_foo' will be assigned the
3099# following values.
3100
3101_ACEOF
3102
3103# The following way of writing the cache mishandles newlines in values,
3104# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 3105# So, we kill variables containing newlines.
b7026657
AC
3106# Ultrix sh set writes to stderr and can't be redirected directly,
3107# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
3108(
3109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3110 eval ac_val=\$$ac_var
3111 case $ac_val in #(
3112 *${as_nl}*)
3113 case $ac_var in #(
3114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3116 esac
3117 case $ac_var in #(
3118 _ | IFS | as_nl) ;; #(
3119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3120 *) { eval $ac_var=; unset $ac_var;} ;;
3121 esac ;;
3122 esac
3123 done
3124
b7026657 3125 (set) 2>&1 |
81ecdfbb
RW
3126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3127 *${as_nl}ac_space=\ *)
3128 # `set' does not quote correctly, so add quotes: double-quote
3129 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
3130 sed -n \
3131 "s/'/'\\\\''/g;
3132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 3133 ;; #(
b7026657
AC
3134 *)
3135 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 3136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 3137 ;;
81ecdfbb
RW
3138 esac |
3139 sort
3140) |
b7026657 3141 sed '
81ecdfbb 3142 /^ac_cv_env_/b end
b7026657 3143 t clear
81ecdfbb 3144 :clear
b7026657
AC
3145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3146 t end
81ecdfbb
RW
3147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3148 :end' >>confcache
3149if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3150 if test -w "$cache_file"; then
d0ac1c44 3151 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3153$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
3154 if test ! -f "$cache_file" || test -h "$cache_file"; then
3155 cat confcache >"$cache_file"
3156 else
3157 case $cache_file in #(
3158 */* | ?:*)
3159 mv -f confcache "$cache_file"$$ &&
3160 mv -f "$cache_file"$$ "$cache_file" ;; #(
3161 *)
3162 mv -f confcache "$cache_file" ;;
3163 esac
3164 fi
3165 fi
b7026657 3166 else
81ecdfbb
RW
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3168$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
3169 fi
3170fi
3171rm -f confcache
3172
3173test "x$prefix" = xNONE && prefix=$ac_default_prefix
3174# Let make expand exec_prefix.
3175test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3176
52d37d2c
MF
3177# Transform confdefs.h into DEFS.
3178# Protect against shell expansion while executing Makefile rules.
3179# Protect against Makefile macro expansion.
3180#
3181# If the first sed substitution is executed (which looks for macros that
3182# take arguments), then branch to the quote section. Otherwise,
3183# look for a macro that doesn't take arguments.
3184ac_script='
3185:mline
3186/\\$/{
3187 N
3188 s,\\\n,,
3189 b mline
3190}
3191t clear
3192:clear
3193s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3194t quote
3195s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3196t quote
3197b any
3198:quote
3199s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3200s/\[/\\&/g
3201s/\]/\\&/g
3202s/\$/$$/g
3203H
3204:any
3205${
3206 g
3207 s/^\n//
3208 s/\n/ /g
3209 p
3210}
3211'
3212DEFS=`sed -n "$ac_script" confdefs.h`
3213
b7026657
AC
3214
3215ac_libobjs=
3216ac_ltlibobjs=
d0ac1c44 3217U=
b7026657
AC
3218for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3219 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
3220 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3221 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3222 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3223 # will be set to the directory where LIBOBJS objects are built.
3224 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3225 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
3226done
3227LIBOBJS=$ac_libobjs
3228
3229LTLIBOBJS=$ac_ltlibobjs
3230
3231
31e6ad7d 3232if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 3233 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
3234Usually this means the macro was only invoked conditionally." "$LINENO" 5
3235fi
b7026657 3236
d0ac1c44 3237: "${CONFIG_STATUS=./config.status}"
81ecdfbb 3238ac_write_fail=0
b7026657
AC
3239ac_clean_files_save=$ac_clean_files
3240ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3242$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3243as_write_fail=0
3244cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
3245#! $SHELL
3246# Generated by $as_me.
3247# Run this file to recreate the current configuration.
3248# Compiler output produced by configure, useful for debugging
3249# configure, is in config.log if it exists.
3250
3251debug=false
3252ac_cs_recheck=false
3253ac_cs_silent=false
b7026657 3254
81ecdfbb
RW
3255SHELL=\${CONFIG_SHELL-$SHELL}
3256export SHELL
3257_ASEOF
3258cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3259## -------------------- ##
3260## M4sh Initialization. ##
3261## -------------------- ##
3262
3263# Be more Bourne compatible
3264DUALCASE=1; export DUALCASE # for MKS sh
3265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
3266 emulate sh
3267 NULLCMD=:
81ecdfbb 3268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
3269 # is contrary to our usage. Disable this feature.
3270 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
3271 setopt NO_GLOB_SUBST
3272else
3273 case `(set -o) 2>/dev/null` in #(
3274 *posix*) :
3275 set -o posix ;; #(
3276 *) :
3277 ;;
3278esac
b7026657 3279fi
b7026657 3280
81ecdfbb
RW
3281
3282as_nl='
3283'
3284export as_nl
3285# Printing a long string crashes Solaris 7 /usr/bin/printf.
3286as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3289# Prefer a ksh shell builtin over an external printf program on Solaris,
3290# but without wasting forks for bash or zsh.
3291if test -z "$BASH_VERSION$ZSH_VERSION" \
3292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3293 as_echo='print -r --'
3294 as_echo_n='print -rn --'
3295elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3296 as_echo='printf %s\n'
3297 as_echo_n='printf %s'
3298else
3299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3301 as_echo_n='/usr/ucb/echo -n'
3302 else
3303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3304 as_echo_n_body='eval
3305 arg=$1;
3306 case $arg in #(
3307 *"$as_nl"*)
3308 expr "X$arg" : "X\\(.*\\)$as_nl";
3309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3310 esac;
3311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3312 '
3313 export as_echo_n_body
3314 as_echo_n='sh -c $as_echo_n_body as_echo'
3315 fi
3316 export as_echo_body
3317 as_echo='sh -c $as_echo_body as_echo'
3318fi
3319
3320# The user is always right.
3321if test "${PATH_SEPARATOR+set}" != set; then
3322 PATH_SEPARATOR=:
3323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3324 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3325 PATH_SEPARATOR=';'
3326 }
c906108c 3327fi
b7026657
AC
3328
3329
81ecdfbb
RW
3330# IFS
3331# We need space, tab and new line, in precisely that order. Quoting is
3332# there to prevent editors from complaining about space-tab.
3333# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3334# splitting by setting IFS to empty value.)
3335IFS=" "" $as_nl"
3336
3337# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 3338as_myself=
81ecdfbb
RW
3339case $0 in #((
3340 *[\\/]* ) as_myself=$0 ;;
3341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3347 done
3348IFS=$as_save_IFS
3349
3350 ;;
3351esac
3352# We did not find ourselves, most probably we were run as `sh COMMAND'
3353# in which case we are not to be found in the path.
3354if test "x$as_myself" = x; then
3355 as_myself=$0
3356fi
3357if test ! -f "$as_myself"; then
3358 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3359 exit 1
3360fi
3361
3362# Unset variables that we do not need and which cause bugs (e.g. in
3363# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3364# suppresses any "Segmentation fault" message there. '((' could
3365# trigger a bug in pdksh 5.2.14.
3366for as_var in BASH_ENV ENV MAIL MAILPATH
3367do eval test x\${$as_var+set} = xset \
3368 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3369done
b7026657
AC
3370PS1='$ '
3371PS2='> '
3372PS4='+ '
3373
3374# NLS nuisances.
81ecdfbb
RW
3375LC_ALL=C
3376export LC_ALL
3377LANGUAGE=C
3378export LANGUAGE
3379
3380# CDPATH.
3381(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3382
3383
d0ac1c44
SM
3384# as_fn_error STATUS ERROR [LINENO LOG_FD]
3385# ----------------------------------------
81ecdfbb
RW
3386# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3387# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 3388# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
3389as_fn_error ()
3390{
d0ac1c44
SM
3391 as_status=$1; test $as_status -eq 0 && as_status=1
3392 if test "$4"; then
3393 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 3395 fi
d0ac1c44 3396 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
3397 as_fn_exit $as_status
3398} # as_fn_error
3399
3400
3401# as_fn_set_status STATUS
3402# -----------------------
3403# Set $? to STATUS, without forking.
3404as_fn_set_status ()
3405{
3406 return $1
3407} # as_fn_set_status
3408
3409# as_fn_exit STATUS
3410# -----------------
3411# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3412as_fn_exit ()
3413{
3414 set +e
3415 as_fn_set_status $1
3416 exit $1
3417} # as_fn_exit
3418
3419# as_fn_unset VAR
3420# ---------------
3421# Portably unset VAR.
3422as_fn_unset ()
3423{
3424 { eval $1=; unset $1;}
3425}
3426as_unset=as_fn_unset
3427# as_fn_append VAR VALUE
3428# ----------------------
3429# Append the text in VALUE to the end of the definition contained in VAR. Take
3430# advantage of any shell optimizations that allow amortized linear growth over
3431# repeated appends, instead of the typical quadratic growth present in naive
3432# implementations.
3433if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3434 eval 'as_fn_append ()
3435 {
3436 eval $1+=\$2
3437 }'
3438else
3439 as_fn_append ()
3440 {
3441 eval $1=\$$1\$2
3442 }
3443fi # as_fn_append
3444
3445# as_fn_arith ARG...
3446# ------------------
3447# Perform arithmetic evaluation on the ARGs, and store the result in the
3448# global $as_val. Take advantage of shells that can avoid forks. The arguments
3449# must be portable across $(()) and expr.
3450if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3451 eval 'as_fn_arith ()
3452 {
3453 as_val=$(( $* ))
3454 }'
3455else
3456 as_fn_arith ()
3457 {
3458 as_val=`expr "$@" || test $? -eq 1`
3459 }
3460fi # as_fn_arith
3461
b7026657 3462
81ecdfbb
RW
3463if expr a : '\(a\)' >/dev/null 2>&1 &&
3464 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
3465 as_expr=expr
3466else
3467 as_expr=false
c906108c 3468fi
b7026657 3469
81ecdfbb 3470if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
3471 as_basename=basename
3472else
3473 as_basename=false
c906108c
SS
3474fi
3475
81ecdfbb
RW
3476if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3477 as_dirname=dirname
3478else
3479 as_dirname=false
3480fi
c906108c 3481
81ecdfbb 3482as_me=`$as_basename -- "$0" ||
b7026657
AC
3483$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3484 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
3485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3486$as_echo X/"$0" |
3487 sed '/^.*\/\([^/][^/]*\)\/*$/{
3488 s//\1/
3489 q
3490 }
3491 /^X\/\(\/\/\)$/{
3492 s//\1/
3493 q
3494 }
3495 /^X\/\(\/\).*/{
3496 s//\1/
3497 q
3498 }
3499 s/.*/./; q'`
b7026657 3500
b7026657
AC
3501# Avoid depending upon Character Ranges.
3502as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3503as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3504as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3505as_cr_digits='0123456789'
3506as_cr_alnum=$as_cr_Letters$as_cr_digits
3507
81ecdfbb
RW
3508ECHO_C= ECHO_N= ECHO_T=
3509case `echo -n x` in #(((((
3510-n*)
3511 case `echo 'xy\c'` in
3512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3513 xy) ECHO_C='\c';;
3514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3515 ECHO_T=' ';;
3516 esac;;
3517*)
3518 ECHO_N='-n';;
b7026657
AC
3519esac
3520
81ecdfbb
RW
3521rm -f conf$$ conf$$.exe conf$$.file
3522if test -d conf$$.dir; then
3523 rm -f conf$$.dir/conf$$.file
c906108c 3524else
81ecdfbb
RW
3525 rm -f conf$$.dir
3526 mkdir conf$$.dir 2>/dev/null
c906108c 3527fi
81ecdfbb
RW
3528if (echo >conf$$.file) 2>/dev/null; then
3529 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 3530 as_ln_s='ln -s'
81ecdfbb
RW
3531 # ... but there are two gotchas:
3532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 3534 # In both cases, we have to default to `cp -pR'.
81ecdfbb 3535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 3536 as_ln_s='cp -pR'
81ecdfbb
RW
3537 elif ln conf$$.file conf$$ 2>/dev/null; then
3538 as_ln_s=ln
3539 else
d0ac1c44 3540 as_ln_s='cp -pR'
b7026657 3541 fi
b7026657 3542else
d0ac1c44 3543 as_ln_s='cp -pR'
c906108c 3544fi
81ecdfbb
RW
3545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3546rmdir conf$$.dir 2>/dev/null
3547
3548
3549# as_fn_mkdir_p
3550# -------------
3551# Create "$as_dir" as a directory, including parents if necessary.
3552as_fn_mkdir_p ()
3553{
3554
3555 case $as_dir in #(
3556 -*) as_dir=./$as_dir;;
3557 esac
3558 test -d "$as_dir" || eval $as_mkdir_p || {
3559 as_dirs=
3560 while :; do
3561 case $as_dir in #(
3562 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3563 *) as_qdir=$as_dir;;
3564 esac
3565 as_dirs="'$as_qdir' $as_dirs"
3566 as_dir=`$as_dirname -- "$as_dir" ||
3567$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3568 X"$as_dir" : 'X\(//\)[^/]' \| \
3569 X"$as_dir" : 'X\(//\)$' \| \
3570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3571$as_echo X"$as_dir" |
3572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3573 s//\1/
3574 q
3575 }
3576 /^X\(\/\/\)[^/].*/{
3577 s//\1/
3578 q
3579 }
3580 /^X\(\/\/\)$/{
3581 s//\1/
3582 q
3583 }
3584 /^X\(\/\).*/{
3585 s//\1/
3586 q
3587 }
3588 s/.*/./; q'`
3589 test -d "$as_dir" && break
3590 done
3591 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 3592 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 3593
c906108c 3594
81ecdfbb 3595} # as_fn_mkdir_p
b7026657 3596if mkdir -p . 2>/dev/null; then
81ecdfbb 3597 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 3598else
b7026657
AC
3599 test -d ./-p && rmdir ./-p
3600 as_mkdir_p=false
c906108c 3601fi
c906108c 3602
d0ac1c44
SM
3603
3604# as_fn_executable_p FILE
3605# -----------------------
3606# Test if FILE is an executable regular file.
3607as_fn_executable_p ()
3608{
3609 test -f "$1" && test -x "$1"
3610} # as_fn_executable_p
3611as_test_x='test -x'
3612as_executable_p=as_fn_executable_p
b7026657
AC
3613
3614# Sed expression to map a string onto a valid CPP name.
3615as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3616
3617# Sed expression to map a string onto a valid variable name.
3618as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3619
3620
b7026657 3621exec 6>&1
81ecdfbb
RW
3622## ----------------------------------- ##
3623## Main body of $CONFIG_STATUS script. ##
3624## ----------------------------------- ##
3625_ASEOF
3626test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3627
3628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3629# Save the log message, to keep $0 and so on meaningful, and to
b7026657 3630# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
3631# values after options handling.
3632ac_log="
b7026657 3633This file was extended by $as_me, which was
d0ac1c44 3634generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
3635
3636 CONFIG_FILES = $CONFIG_FILES
3637 CONFIG_HEADERS = $CONFIG_HEADERS
3638 CONFIG_LINKS = $CONFIG_LINKS
3639 CONFIG_COMMANDS = $CONFIG_COMMANDS
3640 $ $0 $@
3641
81ecdfbb
RW
3642on `(hostname || uname -n) 2>/dev/null | sed 1q`
3643"
3644
b7026657
AC
3645_ACEOF
3646
81ecdfbb
RW
3647case $ac_config_files in *"
3648"*) set x $ac_config_files; shift; ac_config_files=$*;;
3649esac
b7026657 3650
b7026657 3651
c906108c 3652
81ecdfbb
RW
3653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3654# Files that config.status was made for.
3655config_files="$ac_config_files"
81ecdfbb 3656config_commands="$ac_config_commands"
c906108c 3657
81ecdfbb 3658_ACEOF
c906108c 3659
81ecdfbb 3660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 3661ac_cs_usage="\
81ecdfbb
RW
3662\`$as_me' instantiates files and other configuration actions
3663from templates according to the current configuration. Unless the files
3664and actions are specified as TAGs, all are instantiated by default.
c906108c 3665
81ecdfbb 3666Usage: $0 [OPTION]... [TAG]...
c906108c 3667
b7026657 3668 -h, --help print this help, then exit
81ecdfbb 3669 -V, --version print version number and configuration settings, then exit
d0ac1c44 3670 --config print configuration, then exit
81ecdfbb
RW
3671 -q, --quiet, --silent
3672 do not print progress messages
b7026657
AC
3673 -d, --debug don't remove temporary files
3674 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
3675 --file=FILE[:TEMPLATE]
3676 instantiate the configuration file FILE
b7026657
AC
3677
3678Configuration files:
3679$config_files
3680
b7026657
AC
3681Configuration commands:
3682$config_commands
3683
81ecdfbb 3684Report bugs to the package provider."
b7026657 3685
81ecdfbb
RW
3686_ACEOF
3687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 3688ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
3689ac_cs_version="\\
3690config.status
d0ac1c44
SM
3691configured by $0, generated by GNU Autoconf 2.69,
3692 with options \\"\$ac_cs_config\\"
b7026657 3693
d0ac1c44 3694Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
3695This config.status script is free software; the Free Software Foundation
3696gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
3697
3698ac_pwd='$ac_pwd'
3699srcdir='$srcdir'
3700INSTALL='$INSTALL'
3701test -n "\$AWK" || AWK=awk
b7026657
AC
3702_ACEOF
3703
81ecdfbb
RW
3704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3705# The default lists apply if the user does not specify any file.
b7026657
AC
3706ac_need_defaults=:
3707while test $# != 0
3708do
3709 case $1 in
d0ac1c44 3710 --*=?*)
81ecdfbb
RW
3711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3712 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 3713 ac_shift=:
c906108c 3714 ;;
d0ac1c44
SM
3715 --*=)
3716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3717 ac_optarg=
3718 ac_shift=:
3719 ;;
81ecdfbb 3720 *)
b7026657
AC
3721 ac_option=$1
3722 ac_optarg=$2
3723 ac_shift=shift
c906108c 3724 ;;
b7026657 3725 esac
c906108c 3726
b7026657
AC
3727 case $ac_option in
3728 # Handling of the options.
b7026657
AC
3729 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3730 ac_cs_recheck=: ;;
81ecdfbb
RW
3731 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3732 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
3733 --config | --confi | --conf | --con | --co | --c )
3734 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 3735 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
3736 debug=: ;;
3737 --file | --fil | --fi | --f )
3738 $ac_shift
81ecdfbb
RW
3739 case $ac_optarg in
3740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 3741 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
3742 esac
3743 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657 3744 ac_need_defaults=false;;
52d37d2c 3745 --he | --h | --help | --hel | -h )
81ecdfbb 3746 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
3747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3748 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3749 ac_cs_silent=: ;;
c906108c 3750
b7026657 3751 # This is an error.
d0ac1c44 3752 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 3753Try \`$0 --help' for more information." ;;
c906108c 3754
81ecdfbb
RW
3755 *) as_fn_append ac_config_targets " $1"
3756 ac_need_defaults=false ;;
b7026657
AC
3757
3758 esac
3759 shift
3760done
3761
3762ac_configure_extra_args=
3763
3764if $ac_cs_silent; then
3765 exec 6>/dev/null
3766 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
3767fi
3768
b7026657 3769_ACEOF
81ecdfbb 3770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 3771if \$ac_cs_recheck; then
d0ac1c44 3772 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
3773 shift
3774 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3775 CONFIG_SHELL='$SHELL'
3776 export CONFIG_SHELL
3777 exec "\$@"
b7026657 3778fi
c906108c 3779
b7026657 3780_ACEOF
81ecdfbb
RW
3781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3782exec 5>>config.log
3783{
3784 echo
3785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3786## Running $as_me. ##
3787_ASBOX
3788 $as_echo "$ac_log"
3789} >&5
c906108c 3790
81ecdfbb
RW
3791_ACEOF
3792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
3793#
3794# INIT-COMMANDS
3795#
3796ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
3797
81ecdfbb 3798_ACEOF
c906108c 3799
81ecdfbb 3800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 3801
81ecdfbb 3802# Handling of arguments.
b7026657 3803for ac_config_target in $ac_config_targets
c906108c 3804do
81ecdfbb 3805 case $ac_config_target in
db2e4d67 3806 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
81ecdfbb
RW
3807 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
3808 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
3809 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
3810 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
3811 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
3812
d0ac1c44 3813 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
3814 esac
3815done
3816
81ecdfbb 3817
b7026657
AC
3818# If the user did not use the arguments to specify the items to instantiate,
3819# then the envvar interface is used. Set only those that are not.
3820# We use the long form for the default assignment because of an extremely
3821# bizarre bug on SunOS 4.1.3.
3822if $ac_need_defaults; then
3823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b7026657
AC
3824 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3825fi
3826
3827# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 3828# simply because there is no reason against having it here, and in addition,
b7026657 3829# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
3830# Hook for its removal unless debugging.
3831# Note that there is a small window in which the directory will not be cleaned:
3832# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
3833$debug ||
3834{
d0ac1c44 3835 tmp= ac_tmp=
81ecdfbb 3836 trap 'exit_status=$?
d0ac1c44
SM
3837 : "${ac_tmp:=$tmp}"
3838 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
3839' 0
3840 trap 'as_fn_exit 1' 1 2 13 15
b7026657 3841}
b7026657 3842# Create a (secure) tmp directory for tmp files.
c906108c 3843
b7026657 3844{
81ecdfbb 3845 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 3846 test -d "$tmp"
b7026657
AC
3847} ||
3848{
81ecdfbb
RW
3849 tmp=./conf$$-$RANDOM
3850 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
3851} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3852ac_tmp=$tmp
b7026657 3853
81ecdfbb
RW
3854# Set up the scripts for CONFIG_FILES section.
3855# No need to generate them if there are no CONFIG_FILES.
3856# This happens for instance with `./config.status config.h'.
3857if test -n "$CONFIG_FILES"; then
b7026657 3858
c906108c 3859
81ecdfbb
RW
3860ac_cr=`echo X | tr X '\015'`
3861# On cygwin, bash can eat \r inside `` if the user requested igncr.
3862# But we know of no other shell where ac_cr would be empty at this
3863# point, so we can use a bashism as a fallback.
3864if test "x$ac_cr" = x; then
3865 eval ac_cr=\$\'\\r\'
3866fi
3867ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3868if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 3869 ac_cs_awk_cr='\\r'
81ecdfbb
RW
3870else
3871 ac_cs_awk_cr=$ac_cr
3872fi
b7026657 3873
d0ac1c44 3874echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
3875_ACEOF
3876
c906108c 3877
81ecdfbb
RW
3878{
3879 echo "cat >conf$$subs.awk <<_ACEOF" &&
3880 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3881 echo "_ACEOF"
3882} >conf$$subs.sh ||
d0ac1c44
SM
3883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3884ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
3885ac_delim='%!_!# '
3886for ac_last_try in false false false false false :; do
3887 . ./conf$$subs.sh ||
d0ac1c44 3888 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
3889
3890 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3891 if test $ac_delim_n = $ac_delim_num; then
3892 break
3893 elif $ac_last_try; then
d0ac1c44 3894 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 3895 else
81ecdfbb
RW
3896 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3897 fi
3898done
3899rm -f conf$$subs.sh
3900
3901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 3902cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
3903_ACEOF
3904sed -n '
3905h
3906s/^/S["/; s/!.*/"]=/
3907p
3908g
3909s/^[^!]*!//
3910:repl
3911t repl
3912s/'"$ac_delim"'$//
3913t delim
3914:nl
3915h
d0ac1c44 3916s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
3917t more1
3918s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3919p
3920n
3921b repl
3922:more1
3923s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3924p
3925g
3926s/.\{148\}//
3927t nl
3928:delim
3929h
d0ac1c44 3930s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
3931t more2
3932s/["\\]/\\&/g; s/^/"/; s/$/"/
3933p
3934b
3935:more2
3936s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3937p
3938g
3939s/.\{148\}//
3940t delim
3941' <conf$$subs.awk | sed '
3942/^[^""]/{
3943 N
3944 s/\n//
3945}
3946' >>$CONFIG_STATUS || ac_write_fail=1
3947rm -f conf$$subs.awk
3948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3949_ACAWK
d0ac1c44 3950cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
3951 for (key in S) S_is_set[key] = 1
3952 FS = "\a"
b7026657 3953
81ecdfbb
RW
3954}
3955{
3956 line = $ 0
3957 nfields = split(line, field, "@")
3958 substed = 0
3959 len = length(field[1])
3960 for (i = 2; i < nfields; i++) {
3961 key = field[i]
3962 keylen = length(key)
3963 if (S_is_set[key]) {
3964 value = S[key]
3965 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3966 len += length(value) + length(field[++i])
3967 substed = 1
3968 } else
3969 len += 1 + keylen
3970 }
3971
3972 print line
3973}
c906108c 3974
81ecdfbb
RW
3975_ACAWK
3976_ACEOF
3977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3978if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3979 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 3980else
81ecdfbb 3981 cat
d0ac1c44
SM
3982fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3983 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 3984_ACEOF
b7026657 3985
d0ac1c44
SM
3986# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3987# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
3988# trailing colons and then remove the whole line if VPATH becomes empty
3989# (actually we leave an empty line to preserve line numbers).
3990if test "x$srcdir" = x.; then
d0ac1c44
SM
3991 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3992h
3993s///
3994s/^/:/
3995s/[ ]*$/:/
3996s/:\$(srcdir):/:/g
3997s/:\${srcdir}:/:/g
3998s/:@srcdir@:/:/g
3999s/^:*//
81ecdfbb 4000s/:*$//
d0ac1c44
SM
4001x
4002s/\(=[ ]*\).*/\1/
4003G
4004s/\n//
81ecdfbb
RW
4005s/^[^=]*=[ ]*$//
4006}'
4007fi
c906108c 4008
81ecdfbb
RW
4009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4010fi # test -n "$CONFIG_FILES"
c906108c 4011
81ecdfbb 4012
52d37d2c 4013eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
81ecdfbb
RW
4014shift
4015for ac_tag
4016do
4017 case $ac_tag in
4018 :[FHLC]) ac_mode=$ac_tag; continue;;
c906108c 4019 esac
81ecdfbb
RW
4020 case $ac_mode$ac_tag in
4021 :[FHL]*:*);;
d0ac1c44 4022 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
4023 :[FH]-) ac_tag=-:-;;
4024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4025 esac
4026 ac_save_IFS=$IFS
4027 IFS=:
4028 set x $ac_tag
4029 IFS=$ac_save_IFS
4030 shift
4031 ac_file=$1
4032 shift
c906108c 4033
81ecdfbb
RW
4034 case $ac_mode in
4035 :L) ac_source=$1;;
4036 :[FH])
4037 ac_file_inputs=
4038 for ac_f
4039 do
4040 case $ac_f in
d0ac1c44 4041 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
4042 *) # Look for the file first in the build tree, then in the source tree
4043 # (if the path is not absolute). The absolute path cannot be DOS-style,
4044 # because $ac_f cannot contain `:'.
4045 test -f "$ac_f" ||
4046 case $ac_f in
4047 [\\/$]*) false;;
4048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4049 esac ||
d0ac1c44 4050 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 4051 esac
81ecdfbb
RW
4052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4053 as_fn_append ac_file_inputs " '$ac_f'"
4054 done
b7026657 4055
81ecdfbb
RW
4056 # Let's still pretend it is `configure' which instantiates (i.e., don't
4057 # use $as_me), people would be surprised to read:
4058 # /* config.h. Generated by config.status. */
4059 configure_input='Generated from '`
4060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4061 `' by configure.'
4062 if test x"$ac_file" != x-; then
4063 configure_input="$ac_file. $configure_input"
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4065$as_echo "$as_me: creating $ac_file" >&6;}
4066 fi
4067 # Neutralize special characters interpreted by sed in replacement strings.
4068 case $configure_input in #(
4069 *\&* | *\|* | *\\* )
4070 ac_sed_conf_input=`$as_echo "$configure_input" |
4071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4072 *) ac_sed_conf_input=$configure_input;;
4073 esac
b7026657 4074
81ecdfbb 4075 case $ac_tag in
d0ac1c44
SM
4076 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
4078 esac
4079 ;;
4080 esac
b7026657 4081
81ecdfbb 4082 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
4083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4084 X"$ac_file" : 'X\(//\)[^/]' \| \
4085 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
4086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4087$as_echo X"$ac_file" |
4088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4089 s//\1/
4090 q
4091 }
4092 /^X\(\/\/\)[^/].*/{
4093 s//\1/
4094 q
4095 }
4096 /^X\(\/\/\)$/{
4097 s//\1/
4098 q
4099 }
4100 /^X\(\/\).*/{
4101 s//\1/
4102 q
4103 }
4104 s/.*/./; q'`
4105 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
4106 ac_builddir=.
4107
81ecdfbb
RW
4108case "$ac_dir" in
4109.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4110*)
4111 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4112 # A ".." for each directory in $ac_dir_suffix.
4113 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4114 case $ac_top_builddir_sub in
4115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4117 esac ;;
4118esac
4119ac_abs_top_builddir=$ac_pwd
4120ac_abs_builddir=$ac_pwd$ac_dir_suffix
4121# for backward compatibility:
4122ac_top_builddir=$ac_top_build_prefix
b7026657
AC
4123
4124case $srcdir in
81ecdfbb 4125 .) # We are building in place.
b7026657 4126 ac_srcdir=.
81ecdfbb
RW
4127 ac_top_srcdir=$ac_top_builddir_sub
4128 ac_abs_top_srcdir=$ac_pwd ;;
4129 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 4130 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
4131 ac_top_srcdir=$srcdir
4132 ac_abs_top_srcdir=$srcdir ;;
4133 *) # Relative name.
4134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4135 ac_top_srcdir=$ac_top_build_prefix$srcdir
4136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 4137esac
81ecdfbb 4138ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 4139
c906108c 4140
81ecdfbb
RW
4141 case $ac_mode in
4142 :F)
4143 #
4144 # CONFIG_FILE
4145 #
b7026657 4146
81ecdfbb
RW
4147 case $INSTALL in
4148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4149 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 4150 esac
81ecdfbb 4151_ACEOF
c906108c 4152
81ecdfbb
RW
4153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4154# If the template does not know about datarootdir, expand it.
4155# FIXME: This hack should be removed a few years after 2.60.
4156ac_datarootdir_hack=; ac_datarootdir_seen=
4157ac_sed_dataroot='
4158/datarootdir/ {
4159 p
4160 q
4161}
4162/@datadir@/p
4163/@docdir@/p
4164/@infodir@/p
4165/@localedir@/p
4166/@mandir@/p'
4167case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4168*datarootdir*) ac_datarootdir_seen=yes;;
4169*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4171$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4172_ACEOF
4173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4174 ac_datarootdir_hack='
4175 s&@datadir@&$datadir&g
4176 s&@docdir@&$docdir&g
4177 s&@infodir@&$infodir&g
4178 s&@localedir@&$localedir&g
4179 s&@mandir@&$mandir&g
4180 s&\\\${datarootdir}&$datarootdir&g' ;;
4181esac
b7026657 4182_ACEOF
b7026657 4183
81ecdfbb
RW
4184# Neutralize VPATH when `$srcdir' = `.'.
4185# Shell code in configure.ac might set extrasub.
4186# FIXME: do we really want to maintain this feature?
4187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4188ac_sed_extra="$ac_vpsub
4189$extrasub
4190_ACEOF
4191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4192:t
4193/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4194s|@configure_input@|$ac_sed_conf_input|;t t
4195s&@top_builddir@&$ac_top_builddir_sub&;t t
4196s&@top_build_prefix@&$ac_top_build_prefix&;t t
4197s&@srcdir@&$ac_srcdir&;t t
4198s&@abs_srcdir@&$ac_abs_srcdir&;t t
4199s&@top_srcdir@&$ac_top_srcdir&;t t
4200s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4201s&@builddir@&$ac_builddir&;t t
4202s&@abs_builddir@&$ac_abs_builddir&;t t
4203s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4204s&@INSTALL@&$ac_INSTALL&;t t
4205$ac_datarootdir_hack
4206"
d0ac1c44
SM
4207eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
4209
4210test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
4211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 4215which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 4216$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 4217which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 4218
d0ac1c44 4219 rm -f "$ac_tmp/stdin"
81ecdfbb 4220 case $ac_file in
d0ac1c44
SM
4221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 4223 esac \
d0ac1c44 4224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 4225 ;;
52d37d2c 4226
b7026657 4227
81ecdfbb
RW
4228 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4229$as_echo "$as_me: executing $ac_file commands" >&6;}
4230 ;;
4231 esac
b7026657
AC
4232
4233
81ecdfbb 4234 case $ac_file$ac_mode in
db2e4d67 4235 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
81ecdfbb 4236 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
4237 rm -f Makesim1.tmp Makesim2.tmp Makefile
4238 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4239 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4240 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
4241 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4242 <Makefile.sim >Makefile
38f48d72 4243 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 4244 ;;
81ecdfbb
RW
4245 "stamp-h":C) echo > stamp-h ;;
4246
b7026657 4247 esac
81ecdfbb 4248done # for ac_tag
c906108c 4249
b7026657 4250
81ecdfbb 4251as_fn_exit 0
b7026657 4252_ACEOF
b7026657
AC
4253ac_clean_files=$ac_clean_files_save
4254
81ecdfbb 4255test $ac_write_fail = 0 ||
d0ac1c44 4256 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 4257
b7026657
AC
4258
4259# configure is writing to config.log, and then calls config.status.
4260# config.status does its own redirection, appending to config.log.
4261# Unfortunately, on DOS this fails, as config.log is still kept open
4262# by configure, so config.status won't be able to write to it; its
4263# output is simply discarded. So we exec the FD to /dev/null,
4264# effectively closing config.log, so it can be properly (re)opened and
4265# appended to by config.status. When coming back to configure, we
4266# need to make the FD available again.
4267if test "$no_create" != yes; then
4268 ac_cs_success=:
4269 ac_config_status_args=
4270 test "$silent" = yes &&
4271 ac_config_status_args="$ac_config_status_args --quiet"
4272 exec 5>/dev/null
4273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4274 exec 5>>config.log
4275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4276 # would make configure fail if this is the last instruction.
d0ac1c44 4277 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
4278fi
4279if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4281$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 4282fi
c906108c
SS
4283
4284