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