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