xref: /netbsd-src/external/gpl3/gdb.old/dist/sim/mips/configure (revision 8b657b0747480f8989760d71343d6dd33f8d4cf9)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
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.
90as_myself=
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
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;}
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
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
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 :
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
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"
354  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357} # as_fn_mkdir_p
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
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
402# as_fn_error STATUS ERROR [LINENO LOG_FD]
403# ----------------------------------------
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
406# script with STATUS, using 1 if that was 0.
407as_fn_error ()
408{
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
413  fi
414  $as_echo "$as_me: error: $2" >&2
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
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
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.
525    # In both cases, we have to default to `cp -pR'.
526    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527      as_ln_s='cp -pR'
528  elif ln conf$$.file conf$$ 2>/dev/null; then
529    as_ln_s=ln
530  else
531    as_ln_s='cp -pR'
532  fi
533else
534  as_ln_s='cp -pR'
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
546as_test_x='test -x'
547as_executable_p=as_fn_executable_p
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
556test -n "$DJDIR" || exec 7<&0 </dev/null
557exec 6>&1
558
559# Name of the host.
560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
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"
585ac_subst_vars='LTLIBOBJS
586LIBOBJS
587SIM_COMMON_BUILD_FALSE
588SIM_COMMON_BUILD_TRUE
589sim_multi_obj
590sim_multi_src
591sim_multi_igen_configs
592sim_multi_flags
593sim_gen
594sim_micromips16_flags
595sim_micromips_flags
596sim_m16_flags
597sim_igen_flags
598SIM_SUBTARGET
599target_os
600target_vendor
601target_cpu
602target
603host_os
604host_vendor
605host_cpu
606host
607build_os
608build_vendor
609build_cpu
610build
611target_alias
612host_alias
613build_alias
614LIBS
615ECHO_T
616ECHO_N
617ECHO_C
618DEFS
619mandir
620localedir
621libdir
622psdir
623pdfdir
624dvidir
625htmldir
626infodir
627docdir
628oldincludedir
629includedir
630localstatedir
631sharedstatedir
632sysconfdir
633datadir
634datarootdir
635libexecdir
636sbindir
637bindir
638program_transform_name
639prefix
640exec_prefix
641PACKAGE_URL
642PACKAGE_BUGREPORT
643PACKAGE_STRING
644PACKAGE_VERSION
645PACKAGE_TARNAME
646PACKAGE_NAME
647PATH_SEPARATOR
648SHELL
649sim_float
650sim_bitsize'
651ac_subst_files=''
652ac_user_opts='
653enable_option_checking
654enable_sim_bitsize
655enable_sim_float
656'
657      ac_precious_vars='build_alias
658host_alias
659target_alias'
660
661
662# Initialize some variables set by options.
663ac_init_help=
664ac_init_version=false
665ac_unrecognized_opts=
666ac_unrecognized_sep=
667# The variables have the same names as the options, with
668# dashes changed to underlines.
669cache_file=/dev/null
670exec_prefix=NONE
671no_create=
672no_recursion=
673prefix=NONE
674program_prefix=NONE
675program_suffix=NONE
676program_transform_name=s,x,x,
677silent=
678site=
679srcdir=
680verbose=
681x_includes=NONE
682x_libraries=NONE
683
684# Installation directory options.
685# These are left unexpanded so users can "make install exec_prefix=/foo"
686# and all the variables that are supposed to be based on exec_prefix
687# by default will actually change.
688# Use braces instead of parens because sh, perl, etc. also accept them.
689# (The list follows the same order as the GNU Coding Standards.)
690bindir='${exec_prefix}/bin'
691sbindir='${exec_prefix}/sbin'
692libexecdir='${exec_prefix}/libexec'
693datarootdir='${prefix}/share'
694datadir='${datarootdir}'
695sysconfdir='${prefix}/etc'
696sharedstatedir='${prefix}/com'
697localstatedir='${prefix}/var'
698includedir='${prefix}/include'
699oldincludedir='/usr/include'
700docdir='${datarootdir}/doc/${PACKAGE}'
701infodir='${datarootdir}/info'
702htmldir='${docdir}'
703dvidir='${docdir}'
704pdfdir='${docdir}'
705psdir='${docdir}'
706libdir='${exec_prefix}/lib'
707localedir='${datarootdir}/locale'
708mandir='${datarootdir}/man'
709
710ac_prev=
711ac_dashdash=
712for ac_option
713do
714  # If the previous option needs an argument, assign it.
715  if test -n "$ac_prev"; then
716    eval $ac_prev=\$ac_option
717    ac_prev=
718    continue
719  fi
720
721  case $ac_option in
722  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
723  *=)   ac_optarg= ;;
724  *)    ac_optarg=yes ;;
725  esac
726
727  # Accept the important Cygnus configure options, so we can diagnose typos.
728
729  case $ac_dashdash$ac_option in
730  --)
731    ac_dashdash=yes ;;
732
733  -bindir | --bindir | --bindi | --bind | --bin | --bi)
734    ac_prev=bindir ;;
735  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
736    bindir=$ac_optarg ;;
737
738  -build | --build | --buil | --bui | --bu)
739    ac_prev=build_alias ;;
740  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
741    build_alias=$ac_optarg ;;
742
743  -cache-file | --cache-file | --cache-fil | --cache-fi \
744  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
745    ac_prev=cache_file ;;
746  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
747  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
748    cache_file=$ac_optarg ;;
749
750  --config-cache | -C)
751    cache_file=config.cache ;;
752
753  -datadir | --datadir | --datadi | --datad)
754    ac_prev=datadir ;;
755  -datadir=* | --datadir=* | --datadi=* | --datad=*)
756    datadir=$ac_optarg ;;
757
758  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
759  | --dataroo | --dataro | --datar)
760    ac_prev=datarootdir ;;
761  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
762  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
763    datarootdir=$ac_optarg ;;
764
765  -disable-* | --disable-*)
766    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
767    # Reject names that are not valid shell variable names.
768    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
769      as_fn_error $? "invalid feature name: $ac_useropt"
770    ac_useropt_orig=$ac_useropt
771    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
772    case $ac_user_opts in
773      *"
774"enable_$ac_useropt"
775"*) ;;
776      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
777	 ac_unrecognized_sep=', ';;
778    esac
779    eval enable_$ac_useropt=no ;;
780
781  -docdir | --docdir | --docdi | --doc | --do)
782    ac_prev=docdir ;;
783  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
784    docdir=$ac_optarg ;;
785
786  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
787    ac_prev=dvidir ;;
788  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
789    dvidir=$ac_optarg ;;
790
791  -enable-* | --enable-*)
792    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
793    # Reject names that are not valid shell variable names.
794    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
795      as_fn_error $? "invalid feature name: $ac_useropt"
796    ac_useropt_orig=$ac_useropt
797    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798    case $ac_user_opts in
799      *"
800"enable_$ac_useropt"
801"*) ;;
802      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
803	 ac_unrecognized_sep=', ';;
804    esac
805    eval enable_$ac_useropt=\$ac_optarg ;;
806
807  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
808  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
809  | --exec | --exe | --ex)
810    ac_prev=exec_prefix ;;
811  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
812  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
813  | --exec=* | --exe=* | --ex=*)
814    exec_prefix=$ac_optarg ;;
815
816  -gas | --gas | --ga | --g)
817    # Obsolete; use --with-gas.
818    with_gas=yes ;;
819
820  -help | --help | --hel | --he | -h)
821    ac_init_help=long ;;
822  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
823    ac_init_help=recursive ;;
824  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
825    ac_init_help=short ;;
826
827  -host | --host | --hos | --ho)
828    ac_prev=host_alias ;;
829  -host=* | --host=* | --hos=* | --ho=*)
830    host_alias=$ac_optarg ;;
831
832  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
833    ac_prev=htmldir ;;
834  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
835  | --ht=*)
836    htmldir=$ac_optarg ;;
837
838  -includedir | --includedir | --includedi | --included | --include \
839  | --includ | --inclu | --incl | --inc)
840    ac_prev=includedir ;;
841  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
842  | --includ=* | --inclu=* | --incl=* | --inc=*)
843    includedir=$ac_optarg ;;
844
845  -infodir | --infodir | --infodi | --infod | --info | --inf)
846    ac_prev=infodir ;;
847  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
848    infodir=$ac_optarg ;;
849
850  -libdir | --libdir | --libdi | --libd)
851    ac_prev=libdir ;;
852  -libdir=* | --libdir=* | --libdi=* | --libd=*)
853    libdir=$ac_optarg ;;
854
855  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
856  | --libexe | --libex | --libe)
857    ac_prev=libexecdir ;;
858  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
859  | --libexe=* | --libex=* | --libe=*)
860    libexecdir=$ac_optarg ;;
861
862  -localedir | --localedir | --localedi | --localed | --locale)
863    ac_prev=localedir ;;
864  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
865    localedir=$ac_optarg ;;
866
867  -localstatedir | --localstatedir | --localstatedi | --localstated \
868  | --localstate | --localstat | --localsta | --localst | --locals)
869    ac_prev=localstatedir ;;
870  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
871  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
872    localstatedir=$ac_optarg ;;
873
874  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
875    ac_prev=mandir ;;
876  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
877    mandir=$ac_optarg ;;
878
879  -nfp | --nfp | --nf)
880    # Obsolete; use --without-fp.
881    with_fp=no ;;
882
883  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
884  | --no-cr | --no-c | -n)
885    no_create=yes ;;
886
887  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
888  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
889    no_recursion=yes ;;
890
891  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
892  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
893  | --oldin | --oldi | --old | --ol | --o)
894    ac_prev=oldincludedir ;;
895  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
896  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
897  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
898    oldincludedir=$ac_optarg ;;
899
900  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
901    ac_prev=prefix ;;
902  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
903    prefix=$ac_optarg ;;
904
905  -program-prefix | --program-prefix | --program-prefi | --program-pref \
906  | --program-pre | --program-pr | --program-p)
907    ac_prev=program_prefix ;;
908  -program-prefix=* | --program-prefix=* | --program-prefi=* \
909  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
910    program_prefix=$ac_optarg ;;
911
912  -program-suffix | --program-suffix | --program-suffi | --program-suff \
913  | --program-suf | --program-su | --program-s)
914    ac_prev=program_suffix ;;
915  -program-suffix=* | --program-suffix=* | --program-suffi=* \
916  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
917    program_suffix=$ac_optarg ;;
918
919  -program-transform-name | --program-transform-name \
920  | --program-transform-nam | --program-transform-na \
921  | --program-transform-n | --program-transform- \
922  | --program-transform | --program-transfor \
923  | --program-transfo | --program-transf \
924  | --program-trans | --program-tran \
925  | --progr-tra | --program-tr | --program-t)
926    ac_prev=program_transform_name ;;
927  -program-transform-name=* | --program-transform-name=* \
928  | --program-transform-nam=* | --program-transform-na=* \
929  | --program-transform-n=* | --program-transform-=* \
930  | --program-transform=* | --program-transfor=* \
931  | --program-transfo=* | --program-transf=* \
932  | --program-trans=* | --program-tran=* \
933  | --progr-tra=* | --program-tr=* | --program-t=*)
934    program_transform_name=$ac_optarg ;;
935
936  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
937    ac_prev=pdfdir ;;
938  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
939    pdfdir=$ac_optarg ;;
940
941  -psdir | --psdir | --psdi | --psd | --ps)
942    ac_prev=psdir ;;
943  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
944    psdir=$ac_optarg ;;
945
946  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
947  | -silent | --silent | --silen | --sile | --sil)
948    silent=yes ;;
949
950  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
951    ac_prev=sbindir ;;
952  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
953  | --sbi=* | --sb=*)
954    sbindir=$ac_optarg ;;
955
956  -sharedstatedir | --sharedstatedir | --sharedstatedi \
957  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
958  | --sharedst | --shareds | --shared | --share | --shar \
959  | --sha | --sh)
960    ac_prev=sharedstatedir ;;
961  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
962  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
963  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
964  | --sha=* | --sh=*)
965    sharedstatedir=$ac_optarg ;;
966
967  -site | --site | --sit)
968    ac_prev=site ;;
969  -site=* | --site=* | --sit=*)
970    site=$ac_optarg ;;
971
972  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
973    ac_prev=srcdir ;;
974  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
975    srcdir=$ac_optarg ;;
976
977  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
978  | --syscon | --sysco | --sysc | --sys | --sy)
979    ac_prev=sysconfdir ;;
980  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
981  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
982    sysconfdir=$ac_optarg ;;
983
984  -target | --target | --targe | --targ | --tar | --ta | --t)
985    ac_prev=target_alias ;;
986  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
987    target_alias=$ac_optarg ;;
988
989  -v | -verbose | --verbose | --verbos | --verbo | --verb)
990    verbose=yes ;;
991
992  -version | --version | --versio | --versi | --vers | -V)
993    ac_init_version=: ;;
994
995  -with-* | --with-*)
996    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999      as_fn_error $? "invalid package name: $ac_useropt"
1000    ac_useropt_orig=$ac_useropt
1001    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002    case $ac_user_opts in
1003      *"
1004"with_$ac_useropt"
1005"*) ;;
1006      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1007	 ac_unrecognized_sep=', ';;
1008    esac
1009    eval with_$ac_useropt=\$ac_optarg ;;
1010
1011  -without-* | --without-*)
1012    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1013    # Reject names that are not valid shell variable names.
1014    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015      as_fn_error $? "invalid package name: $ac_useropt"
1016    ac_useropt_orig=$ac_useropt
1017    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018    case $ac_user_opts in
1019      *"
1020"with_$ac_useropt"
1021"*) ;;
1022      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1023	 ac_unrecognized_sep=', ';;
1024    esac
1025    eval with_$ac_useropt=no ;;
1026
1027  --x)
1028    # Obsolete; use --with-x.
1029    with_x=yes ;;
1030
1031  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1032  | --x-incl | --x-inc | --x-in | --x-i)
1033    ac_prev=x_includes ;;
1034  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1035  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1036    x_includes=$ac_optarg ;;
1037
1038  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1039  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1040    ac_prev=x_libraries ;;
1041  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1042  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1043    x_libraries=$ac_optarg ;;
1044
1045  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1046Try \`$0 --help' for more information"
1047    ;;
1048
1049  *=*)
1050    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1051    # Reject names that are not valid shell variable names.
1052    case $ac_envvar in #(
1053      '' | [0-9]* | *[!_$as_cr_alnum]* )
1054      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1055    esac
1056    eval $ac_envvar=\$ac_optarg
1057    export $ac_envvar ;;
1058
1059  *)
1060    # FIXME: should be removed in autoconf 3.0.
1061    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1062    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1064    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1065    ;;
1066
1067  esac
1068done
1069
1070if test -n "$ac_prev"; then
1071  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1072  as_fn_error $? "missing argument to $ac_option"
1073fi
1074
1075if test -n "$ac_unrecognized_opts"; then
1076  case $enable_option_checking in
1077    no) ;;
1078    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1079    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1080  esac
1081fi
1082
1083# Check all directory arguments for consistency.
1084for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085		datadir sysconfdir sharedstatedir localstatedir includedir \
1086		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087		libdir localedir mandir
1088do
1089  eval ac_val=\$$ac_var
1090  # Remove trailing slashes.
1091  case $ac_val in
1092    */ )
1093      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1094      eval $ac_var=\$ac_val;;
1095  esac
1096  # Be sure to have absolute directory names.
1097  case $ac_val in
1098    [\\/$]* | ?:[\\/]* )  continue;;
1099    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1100  esac
1101  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1102done
1103
1104# There might be people who depend on the old broken behavior: `$host'
1105# used to hold the argument of --host etc.
1106# FIXME: To remove some day.
1107build=$build_alias
1108host=$host_alias
1109target=$target_alias
1110
1111# FIXME: To remove some day.
1112if test "x$host_alias" != x; then
1113  if test "x$build_alias" = x; then
1114    cross_compiling=maybe
1115  elif test "x$build_alias" != "x$host_alias"; then
1116    cross_compiling=yes
1117  fi
1118fi
1119
1120ac_tool_prefix=
1121test -n "$host_alias" && ac_tool_prefix=$host_alias-
1122
1123test "$silent" = yes && exec 6>/dev/null
1124
1125
1126ac_pwd=`pwd` && test -n "$ac_pwd" &&
1127ac_ls_di=`ls -di .` &&
1128ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1129  as_fn_error $? "working directory cannot be determined"
1130test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1131  as_fn_error $? "pwd does not report name of working directory"
1132
1133
1134# Find the source files, if location was not specified.
1135if test -z "$srcdir"; then
1136  ac_srcdir_defaulted=yes
1137  # Try the directory containing this script, then the parent directory.
1138  ac_confdir=`$as_dirname -- "$as_myself" ||
1139$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1140	 X"$as_myself" : 'X\(//\)[^/]' \| \
1141	 X"$as_myself" : 'X\(//\)$' \| \
1142	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1143$as_echo X"$as_myself" |
1144    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1145	    s//\1/
1146	    q
1147	  }
1148	  /^X\(\/\/\)[^/].*/{
1149	    s//\1/
1150	    q
1151	  }
1152	  /^X\(\/\/\)$/{
1153	    s//\1/
1154	    q
1155	  }
1156	  /^X\(\/\).*/{
1157	    s//\1/
1158	    q
1159	  }
1160	  s/.*/./; q'`
1161  srcdir=$ac_confdir
1162  if test ! -r "$srcdir/$ac_unique_file"; then
1163    srcdir=..
1164  fi
1165else
1166  ac_srcdir_defaulted=no
1167fi
1168if test ! -r "$srcdir/$ac_unique_file"; then
1169  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1170  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1171fi
1172ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1173ac_abs_confdir=`(
1174	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1175	pwd)`
1176# When building in place, set srcdir=.
1177if test "$ac_abs_confdir" = "$ac_pwd"; then
1178  srcdir=.
1179fi
1180# Remove unnecessary trailing slashes from srcdir.
1181# Double slashes in file names in object file debugging info
1182# mess up M-x gdb in Emacs.
1183case $srcdir in
1184*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185esac
1186for ac_var in $ac_precious_vars; do
1187  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188  eval ac_env_${ac_var}_value=\$${ac_var}
1189  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191done
1192
1193#
1194# Report the --help message.
1195#
1196if test "$ac_init_help" = "long"; then
1197  # Omit some internal or obsolete options to make the list less imposing.
1198  # This message is too long to be a string in the A/UX 3.1 sh.
1199  cat <<_ACEOF
1200\`configure' configures this package to adapt to many kinds of systems.
1201
1202Usage: $0 [OPTION]... [VAR=VALUE]...
1203
1204To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205VAR=VALUE.  See below for descriptions of some of the useful variables.
1206
1207Defaults for the options are specified in brackets.
1208
1209Configuration:
1210  -h, --help              display this help and exit
1211      --help=short        display options specific to this package
1212      --help=recursive    display the short help of all the included packages
1213  -V, --version           display version information and exit
1214  -q, --quiet, --silent   do not print \`checking ...' messages
1215      --cache-file=FILE   cache test results in FILE [disabled]
1216  -C, --config-cache      alias for \`--cache-file=config.cache'
1217  -n, --no-create         do not create output files
1218      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1219
1220Installation directories:
1221  --prefix=PREFIX         install architecture-independent files in PREFIX
1222                          [$ac_default_prefix]
1223  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1224                          [PREFIX]
1225
1226By default, \`make install' will install all the files in
1227\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1228an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229for instance \`--prefix=\$HOME'.
1230
1231For better control, use the options below.
1232
1233Fine tuning of the installation directories:
1234  --bindir=DIR            user executables [EPREFIX/bin]
1235  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1236  --libexecdir=DIR        program executables [EPREFIX/libexec]
1237  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1238  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1239  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1240  --libdir=DIR            object code libraries [EPREFIX/lib]
1241  --includedir=DIR        C header files [PREFIX/include]
1242  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1243  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1244  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1245  --infodir=DIR           info documentation [DATAROOTDIR/info]
1246  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1247  --mandir=DIR            man documentation [DATAROOTDIR/man]
1248  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1249  --htmldir=DIR           html documentation [DOCDIR]
1250  --dvidir=DIR            dvi documentation [DOCDIR]
1251  --pdfdir=DIR            pdf documentation [DOCDIR]
1252  --psdir=DIR             ps documentation [DOCDIR]
1253_ACEOF
1254
1255  cat <<\_ACEOF
1256
1257System types:
1258  --build=BUILD     configure for building on BUILD [guessed]
1259  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1260  --target=TARGET   configure for building compilers for TARGET [HOST]
1261_ACEOF
1262fi
1263
1264if test -n "$ac_init_help"; then
1265
1266  cat <<\_ACEOF
1267
1268Optional Features:
1269  --disable-option-checking  ignore unrecognized --enable/--with options
1270  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1271  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1272  --enable-sim-bitsize=N  Specify target bitsize (32 or 64)
1273  --enable-sim-float      Specify that the target processor has floating point
1274                          hardware
1275
1276Report bugs to the package provider.
1277_ACEOF
1278ac_status=$?
1279fi
1280
1281if test "$ac_init_help" = "recursive"; then
1282  # If there are subdirs, report their specific --help.
1283  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1284    test -d "$ac_dir" ||
1285      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1286      continue
1287    ac_builddir=.
1288
1289case "$ac_dir" in
1290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1291*)
1292  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1293  # A ".." for each directory in $ac_dir_suffix.
1294  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1295  case $ac_top_builddir_sub in
1296  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1297  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1298  esac ;;
1299esac
1300ac_abs_top_builddir=$ac_pwd
1301ac_abs_builddir=$ac_pwd$ac_dir_suffix
1302# for backward compatibility:
1303ac_top_builddir=$ac_top_build_prefix
1304
1305case $srcdir in
1306  .)  # We are building in place.
1307    ac_srcdir=.
1308    ac_top_srcdir=$ac_top_builddir_sub
1309    ac_abs_top_srcdir=$ac_pwd ;;
1310  [\\/]* | ?:[\\/]* )  # Absolute name.
1311    ac_srcdir=$srcdir$ac_dir_suffix;
1312    ac_top_srcdir=$srcdir
1313    ac_abs_top_srcdir=$srcdir ;;
1314  *) # Relative name.
1315    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1316    ac_top_srcdir=$ac_top_build_prefix$srcdir
1317    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1318esac
1319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1320
1321    cd "$ac_dir" || { ac_status=$?; continue; }
1322    # Check for guested configure.
1323    if test -f "$ac_srcdir/configure.gnu"; then
1324      echo &&
1325      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1326    elif test -f "$ac_srcdir/configure"; then
1327      echo &&
1328      $SHELL "$ac_srcdir/configure" --help=recursive
1329    else
1330      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1331    fi || ac_status=$?
1332    cd "$ac_pwd" || { ac_status=$?; break; }
1333  done
1334fi
1335
1336test -n "$ac_init_help" && exit $ac_status
1337if $ac_init_version; then
1338  cat <<\_ACEOF
1339configure
1340generated by GNU Autoconf 2.69
1341
1342Copyright (C) 2012 Free Software Foundation, Inc.
1343This configure script is free software; the Free Software Foundation
1344gives unlimited permission to copy, distribute and modify it.
1345_ACEOF
1346  exit
1347fi
1348
1349## ------------------------ ##
1350## Autoconf initialization. ##
1351## ------------------------ ##
1352cat >config.log <<_ACEOF
1353This file contains any messages produced by compilers while
1354running configure, to aid debugging if configure makes a mistake.
1355
1356It was created by $as_me, which was
1357generated by GNU Autoconf 2.69.  Invocation command line was
1358
1359  $ $0 $@
1360
1361_ACEOF
1362exec 5>>config.log
1363{
1364cat <<_ASUNAME
1365## --------- ##
1366## Platform. ##
1367## --------- ##
1368
1369hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1370uname -m = `(uname -m) 2>/dev/null || echo unknown`
1371uname -r = `(uname -r) 2>/dev/null || echo unknown`
1372uname -s = `(uname -s) 2>/dev/null || echo unknown`
1373uname -v = `(uname -v) 2>/dev/null || echo unknown`
1374
1375/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1376/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1377
1378/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1379/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1380/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1381/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1382/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1383/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1384/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1385
1386_ASUNAME
1387
1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389for as_dir in $PATH
1390do
1391  IFS=$as_save_IFS
1392  test -z "$as_dir" && as_dir=.
1393    $as_echo "PATH: $as_dir"
1394  done
1395IFS=$as_save_IFS
1396
1397} >&5
1398
1399cat >&5 <<_ACEOF
1400
1401
1402## ----------- ##
1403## Core tests. ##
1404## ----------- ##
1405
1406_ACEOF
1407
1408
1409# Keep a trace of the command line.
1410# Strip out --no-create and --no-recursion so they do not pile up.
1411# Strip out --silent because we don't want to record it for future runs.
1412# Also quote any args containing shell meta-characters.
1413# Make two passes to allow for proper duplicate-argument suppression.
1414ac_configure_args=
1415ac_configure_args0=
1416ac_configure_args1=
1417ac_must_keep_next=false
1418for ac_pass in 1 2
1419do
1420  for ac_arg
1421  do
1422    case $ac_arg in
1423    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1424    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1425    | -silent | --silent | --silen | --sile | --sil)
1426      continue ;;
1427    *\'*)
1428      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1429    esac
1430    case $ac_pass in
1431    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1432    2)
1433      as_fn_append ac_configure_args1 " '$ac_arg'"
1434      if test $ac_must_keep_next = true; then
1435	ac_must_keep_next=false # Got value, back to normal.
1436      else
1437	case $ac_arg in
1438	  *=* | --config-cache | -C | -disable-* | --disable-* \
1439	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1440	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1441	  | -with-* | --with-* | -without-* | --without-* | --x)
1442	    case "$ac_configure_args0 " in
1443	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1444	    esac
1445	    ;;
1446	  -* ) ac_must_keep_next=true ;;
1447	esac
1448      fi
1449      as_fn_append ac_configure_args " '$ac_arg'"
1450      ;;
1451    esac
1452  done
1453done
1454{ ac_configure_args0=; unset ac_configure_args0;}
1455{ ac_configure_args1=; unset ac_configure_args1;}
1456
1457# When interrupted or exit'd, cleanup temporary files, and complete
1458# config.log.  We remove comments because anyway the quotes in there
1459# would cause problems or look ugly.
1460# WARNING: Use '\'' to represent an apostrophe within the trap.
1461# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1462trap 'exit_status=$?
1463  # Save into config.log some information that might help in debugging.
1464  {
1465    echo
1466
1467    $as_echo "## ---------------- ##
1468## Cache variables. ##
1469## ---------------- ##"
1470    echo
1471    # The following way of writing the cache mishandles newlines in values,
1472(
1473  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1474    eval ac_val=\$$ac_var
1475    case $ac_val in #(
1476    *${as_nl}*)
1477      case $ac_var in #(
1478      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1479$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1480      esac
1481      case $ac_var in #(
1482      _ | IFS | as_nl) ;; #(
1483      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1484      *) { eval $ac_var=; unset $ac_var;} ;;
1485      esac ;;
1486    esac
1487  done
1488  (set) 2>&1 |
1489    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1490    *${as_nl}ac_space=\ *)
1491      sed -n \
1492	"s/'\''/'\''\\\\'\'''\''/g;
1493	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1494      ;; #(
1495    *)
1496      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1497      ;;
1498    esac |
1499    sort
1500)
1501    echo
1502
1503    $as_echo "## ----------------- ##
1504## Output variables. ##
1505## ----------------- ##"
1506    echo
1507    for ac_var in $ac_subst_vars
1508    do
1509      eval ac_val=\$$ac_var
1510      case $ac_val in
1511      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1512      esac
1513      $as_echo "$ac_var='\''$ac_val'\''"
1514    done | sort
1515    echo
1516
1517    if test -n "$ac_subst_files"; then
1518      $as_echo "## ------------------- ##
1519## File substitutions. ##
1520## ------------------- ##"
1521      echo
1522      for ac_var in $ac_subst_files
1523      do
1524	eval ac_val=\$$ac_var
1525	case $ac_val in
1526	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1527	esac
1528	$as_echo "$ac_var='\''$ac_val'\''"
1529      done | sort
1530      echo
1531    fi
1532
1533    if test -s confdefs.h; then
1534      $as_echo "## ----------- ##
1535## confdefs.h. ##
1536## ----------- ##"
1537      echo
1538      cat confdefs.h
1539      echo
1540    fi
1541    test "$ac_signal" != 0 &&
1542      $as_echo "$as_me: caught signal $ac_signal"
1543    $as_echo "$as_me: exit $exit_status"
1544  } >&5
1545  rm -f core *.core core.conftest.* &&
1546    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1547    exit $exit_status
1548' 0
1549for ac_signal in 1 2 13 15; do
1550  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1551done
1552ac_signal=0
1553
1554# confdefs.h avoids OS command line length limits that DEFS can exceed.
1555rm -f -r conftest* confdefs.h
1556
1557$as_echo "/* confdefs.h */" > confdefs.h
1558
1559# Predefined preprocessor variables.
1560
1561cat >>confdefs.h <<_ACEOF
1562#define PACKAGE_NAME "$PACKAGE_NAME"
1563_ACEOF
1564
1565cat >>confdefs.h <<_ACEOF
1566#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1567_ACEOF
1568
1569cat >>confdefs.h <<_ACEOF
1570#define PACKAGE_VERSION "$PACKAGE_VERSION"
1571_ACEOF
1572
1573cat >>confdefs.h <<_ACEOF
1574#define PACKAGE_STRING "$PACKAGE_STRING"
1575_ACEOF
1576
1577cat >>confdefs.h <<_ACEOF
1578#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1579_ACEOF
1580
1581cat >>confdefs.h <<_ACEOF
1582#define PACKAGE_URL "$PACKAGE_URL"
1583_ACEOF
1584
1585
1586# Let the site file select an alternate cache file if it wants to.
1587# Prefer an explicitly selected file to automatically selected ones.
1588ac_site_file1=NONE
1589ac_site_file2=NONE
1590if test -n "$CONFIG_SITE"; then
1591  # We do not want a PATH search for config.site.
1592  case $CONFIG_SITE in #((
1593    -*)  ac_site_file1=./$CONFIG_SITE;;
1594    */*) ac_site_file1=$CONFIG_SITE;;
1595    *)   ac_site_file1=./$CONFIG_SITE;;
1596  esac
1597elif test "x$prefix" != xNONE; then
1598  ac_site_file1=$prefix/share/config.site
1599  ac_site_file2=$prefix/etc/config.site
1600else
1601  ac_site_file1=$ac_default_prefix/share/config.site
1602  ac_site_file2=$ac_default_prefix/etc/config.site
1603fi
1604for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1605do
1606  test "x$ac_site_file" = xNONE && continue
1607  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1608    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1609$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1610    sed 's/^/| /' "$ac_site_file" >&5
1611    . "$ac_site_file" \
1612      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1614as_fn_error $? "failed to load site script $ac_site_file
1615See \`config.log' for more details" "$LINENO" 5; }
1616  fi
1617done
1618
1619if test -r "$cache_file"; then
1620  # Some versions of bash will fail to source /dev/null (special files
1621  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1622  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1623    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1624$as_echo "$as_me: loading cache $cache_file" >&6;}
1625    case $cache_file in
1626      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1627      *)                      . "./$cache_file";;
1628    esac
1629  fi
1630else
1631  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1632$as_echo "$as_me: creating cache $cache_file" >&6;}
1633  >$cache_file
1634fi
1635
1636# Check that the precious variables saved in the cache have kept the same
1637# value.
1638ac_cache_corrupted=false
1639for ac_var in $ac_precious_vars; do
1640  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1641  eval ac_new_set=\$ac_env_${ac_var}_set
1642  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1643  eval ac_new_val=\$ac_env_${ac_var}_value
1644  case $ac_old_set,$ac_new_set in
1645    set,)
1646      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1647$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1648      ac_cache_corrupted=: ;;
1649    ,set)
1650      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1651$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1652      ac_cache_corrupted=: ;;
1653    ,);;
1654    *)
1655      if test "x$ac_old_val" != "x$ac_new_val"; then
1656	# differences in whitespace do not lead to failure.
1657	ac_old_val_w=`echo x $ac_old_val`
1658	ac_new_val_w=`echo x $ac_new_val`
1659	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1660	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1661$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1662	  ac_cache_corrupted=:
1663	else
1664	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1665$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1666	  eval $ac_var=\$ac_old_val
1667	fi
1668	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1669$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1670	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1671$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1672      fi;;
1673  esac
1674  # Pass precious variables to config.status.
1675  if test "$ac_new_set" = set; then
1676    case $ac_new_val in
1677    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1678    *) ac_arg=$ac_var=$ac_new_val ;;
1679    esac
1680    case " $ac_configure_args " in
1681      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1682      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1683    esac
1684  fi
1685done
1686if $ac_cache_corrupted; then
1687  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1689  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1690$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1692fi
1693## -------------------- ##
1694## Main body of script. ##
1695## -------------------- ##
1696
1697ac_ext=c
1698ac_cpp='$CPP $CPPFLAGS'
1699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1701ac_compiler_gnu=$ac_cv_c_compiler_gnu
1702
1703
1704
1705
1706ac_aux_dir=
1707for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1708  if test -f "$ac_dir/install-sh"; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install-sh -c"
1711    break
1712  elif test -f "$ac_dir/install.sh"; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/install.sh -c"
1715    break
1716  elif test -f "$ac_dir/shtool"; then
1717    ac_aux_dir=$ac_dir
1718    ac_install_sh="$ac_aux_dir/shtool install -c"
1719    break
1720  fi
1721done
1722if test -z "$ac_aux_dir"; then
1723  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1724fi
1725
1726# These three variables are undocumented and unsupported,
1727# and are intended to be withdrawn in a future Autoconf release.
1728# They can cause serious problems if a builder's source tree is in a directory
1729# whose full name contains unusual characters.
1730ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1731ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1732ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1733
1734
1735# Make sure we can run config.sub.
1736$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1737  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1738
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1740$as_echo_n "checking build system type... " >&6; }
1741if ${ac_cv_build+:} false; then :
1742  $as_echo_n "(cached) " >&6
1743else
1744  ac_build_alias=$build_alias
1745test "x$ac_build_alias" = x &&
1746  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1747test "x$ac_build_alias" = x &&
1748  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1749ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1750  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1751
1752fi
1753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1754$as_echo "$ac_cv_build" >&6; }
1755case $ac_cv_build in
1756*-*-*) ;;
1757*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1758esac
1759build=$ac_cv_build
1760ac_save_IFS=$IFS; IFS='-'
1761set x $ac_cv_build
1762shift
1763build_cpu=$1
1764build_vendor=$2
1765shift; shift
1766# Remember, the first character of IFS is used to create $*,
1767# except with old shells:
1768build_os=$*
1769IFS=$ac_save_IFS
1770case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1771
1772
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1774$as_echo_n "checking host system type... " >&6; }
1775if ${ac_cv_host+:} false; then :
1776  $as_echo_n "(cached) " >&6
1777else
1778  if test "x$host_alias" = x; then
1779  ac_cv_host=$ac_cv_build
1780else
1781  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1782    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1783fi
1784
1785fi
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1787$as_echo "$ac_cv_host" >&6; }
1788case $ac_cv_host in
1789*-*-*) ;;
1790*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1791esac
1792host=$ac_cv_host
1793ac_save_IFS=$IFS; IFS='-'
1794set x $ac_cv_host
1795shift
1796host_cpu=$1
1797host_vendor=$2
1798shift; shift
1799# Remember, the first character of IFS is used to create $*,
1800# except with old shells:
1801host_os=$*
1802IFS=$ac_save_IFS
1803case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1804
1805
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
1807$as_echo_n "checking target system type... " >&6; }
1808if ${ac_cv_target+:} false; then :
1809  $as_echo_n "(cached) " >&6
1810else
1811  if test "x$target_alias" = x; then
1812  ac_cv_target=$ac_cv_host
1813else
1814  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1815    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1816fi
1817
1818fi
1819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
1820$as_echo "$ac_cv_target" >&6; }
1821case $ac_cv_target in
1822*-*-*) ;;
1823*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1824esac
1825target=$ac_cv_target
1826ac_save_IFS=$IFS; IFS='-'
1827set x $ac_cv_target
1828shift
1829target_cpu=$1
1830target_vendor=$2
1831shift; shift
1832# Remember, the first character of IFS is used to create $*,
1833# except with old shells:
1834target_os=$*
1835IFS=$ac_save_IFS
1836case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1837
1838
1839# The aliases save the names the user supplied, while $host etc.
1840# will get canonicalized.
1841test -n "$target_alias" &&
1842  test "$program_prefix$program_suffix$program_transform_name" = \
1843    NONENONEs,x,x, &&
1844  program_prefix=${target_alias}-
1845
1846
1847# DEPRECATED
1848#
1849# Instead of defining a `subtarget' macro, code should be checking
1850# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
1851# in question.
1852#
1853case "${target}" in
1854  mips64vr*-*-*)	SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
1855  mips*tx39*)           SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
1856  mips*-sde-elf*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1857  mips*-mti-elf*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1858  mipsisa32*-*-*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1859  mipsisa64*-*-*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1860  *)                    SIM_SUBTARGET="";;
1861esac
1862
1863
1864
1865
1866#
1867# Select the bitsize of the target
1868#
1869case "${target}" in
1870  mips*-sde-elf*)       mips_bitsize=64 ; mips_msb=63 ;;
1871  mips*-mti-elf*)       mips_bitsize=64 ; mips_msb=63 ;;
1872  mips64*-*-*)          mips_bitsize=64 ; mips_msb=63 ;;
1873  mips16*-*-*)          mips_bitsize=64 ; mips_msb=63 ;;
1874  mipsisa32*-*-*)       mips_bitsize=32 ; mips_msb=31 ;;
1875  mipsisa64*-*-*)       mips_bitsize=64 ; mips_msb=63 ;;
1876  mips*-*-*)            mips_bitsize=32 ; mips_msb=31 ;;
1877  *)                    mips_bitsize=64 ; mips_msb=63 ;;
1878esac
1879wire_word_bitsize="$mips_bitsize"
1880wire_word_msb="$mips_msb"
1881wire_address_bitsize=""
1882wire_cell_bitsize=""
1883# Check whether --enable-sim-bitsize was given.
1884if test "${enable_sim_bitsize+set}" = set; then :
1885  enableval=$enable_sim_bitsize; sim_bitsize=
1886case "${enableval}" in
1887  64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
1888  32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
1889  64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
1890  32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
1891  32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
1892        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
1893      else
1894        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
1895      fi ;;
1896  64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
1897        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
1898      else
1899        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
1900      fi ;;
1901  *)  as_fn_error $? "\"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
1902esac
1903# address bitsize
1904tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
1905case x"${tmp}" in
1906  x ) ;;
1907  x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
1908  x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
1909  * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
1910esac
1911# cell bitsize
1912tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
1913case x"${tmp}" in
1914  x ) ;;
1915  x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
1916  x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
1917  * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
1918esac
1919if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
1920  echo "Setting bitsize flags = $sim_bitsize" 6>&1
1921fi
1922else
1923  sim_bitsize=""
1924if test x"$wire_word_bitsize" != x; then
1925  sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
1926fi
1927if test x"$wire_word_msb" != x; then
1928  sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
1929fi
1930if test x"$wire_address_bitsize" != x; then
1931  sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
1932fi
1933if test x"$wire_cell_bitsize" != x; then
1934  sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
1935fi
1936fi
1937
1938
1939
1940
1941#
1942# Select the floating hardware support of the target
1943#
1944mips_fpu_bitsize=
1945case "${target}" in
1946  mips*tx39*)           mips_fpu_bitsize=32 ;;
1947  mips*-sde-elf*)       mips_fpu_bitsize=64 ;;
1948  mips*-mti-elf*)       mips_fpu_bitsize=64 ;;
1949  mipsisa32*-*-*)       mips_fpu_bitsize=64 ;;
1950  mipsisa64*-*-*)       mips_fpu_bitsize=64 ;;
1951  mips*-*-*)            mips_fpu_bitsize=32 ;;
1952esac
1953
1954default_sim_float="HARD_FLOATING_POINT"
1955default_sim_float_bitsize="$mips_fpu_bitsize"
1956# Check whether --enable-sim-float was given.
1957if test "${enable_sim_float+set}" = set; then :
1958  enableval=$enable_sim_float; case "${enableval}" in
1959  yes | hard)	sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
1960  no | soft)	sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
1961  32)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
1962  64)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
1963  *)		as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
1964esac
1965if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
1966  echo "Setting float flags = $sim_float" 6>&1
1967fi
1968else
1969
1970sim_float=
1971if test x"${default_sim_float}" != x""; then
1972  sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
1973fi
1974if test x"${default_sim_float_bitsize}" != x""; then
1975  sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
1976fi
1977
1978fi
1979
1980
1981
1982
1983#
1984# Select the IGEN architecture
1985#
1986sim_gen=IGEN
1987sim_igen_machine="-M mipsIV"
1988sim_m16_machine="-M mips16,mipsIII"
1989sim_igen_filter="32,64,f"
1990sim_m16_filter="16"
1991sim_mach_default="mips8000"
1992
1993case "${target}" in
1994  mips*tx39*)		sim_gen=IGEN
1995			sim_igen_filter="32,f"
1996			sim_igen_machine="-M r3900"
1997			;;
1998  mips64vr43*-*-*)	sim_gen=IGEN
1999			sim_igen_machine="-M mipsIV"
2000			sim_mach_default="mips8000"
2001			;;
2002  mips64vr5*-*-*)	sim_gen=IGEN
2003			sim_igen_machine="-M vr5000"
2004			sim_mach_default="mips5000"
2005			;;
2006  mips64vr41*)		sim_gen=M16
2007			sim_igen_machine="-M vr4100"
2008			sim_m16_machine="-M vr4100"
2009			sim_igen_filter="32,64,f"
2010			sim_m16_filter="16"
2011			sim_mach_default="mips4100"
2012                        ;;
2013  mips64vr-*-* | mips64vrel-*-*)
2014			sim_gen=MULTI
2015			sim_multi_configs="\
2016			  vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
2017			  vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
2018			  vr5000:mipsIV:32,64,f:mips4300,mips5000\
2019			  vr5400:mipsIV,vr5400:32,64,f:mips5400\
2020			  vr5500:mipsIV,vr5500:32,64,f:mips5500"
2021			sim_multi_default=mips5000
2022			;;
2023  mips*-sde-elf* | mips*-mti-elf*)
2024			sim_gen=MULTI
2025			sim_multi_configs="\
2026			  micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
2027			  mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
2028			  mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
2029			sim_multi_default=mipsisa64r2
2030			;;
2031  mips64*-*-*)		sim_igen_filter="32,64,f"
2032			sim_gen=IGEN
2033			;;
2034  mips16*-*-*)		sim_gen=M16
2035			sim_igen_filter="32,64,f"
2036			sim_m16_filter="16"
2037			;;
2038  mipsisa32r2*-*-*)	sim_gen=MULTI
2039			sim_multi_configs="\
2040			  micromips:micromips32,micromipsdsp:32,f:mips_micromips\
2041			  mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
2042			sim_multi_default=mipsisa32r2
2043			;;
2044  mipsisa32r6*-*-*)	sim_gen=IGEN
2045			sim_igen_machine="-M mips32r6"
2046			sim_igen_filter="32,f"
2047			sim_mach_default="mipsisa32r6"
2048			;;
2049  mipsisa32*-*-*)	sim_gen=M16
2050			sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
2051			sim_m16_machine="-M mips16,mips16e,mips32"
2052			sim_igen_filter="32,f"
2053			sim_mach_default="mipsisa32"
2054			;;
2055  mipsisa64r2*-*-*)	sim_gen=M16
2056			sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
2057			sim_m16_machine="-M mips16,mips16e,mips64r2"
2058			sim_igen_filter="32,64,f"
2059			sim_mach_default="mipsisa64r2"
2060			;;
2061  mipsisa64r6*-*-*)	sim_gen=IGEN
2062			sim_igen_machine="-M mips64r6"
2063			sim_igen_filter="32,64,f"
2064			sim_mach_default="mipsisa64r6"
2065			;;
2066  mipsisa64sb1*-*-*)	sim_gen=IGEN
2067			sim_igen_machine="-M mips64,mips3d,sb1"
2068			sim_igen_filter="32,64,f"
2069			sim_mach_default="mips_sb1"
2070			;;
2071  mipsisa64*-*-*)	sim_gen=M16
2072			sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
2073			sim_m16_machine="-M mips16,mips16e,mips64"
2074			sim_igen_filter="32,64,f"
2075			sim_mach_default="mipsisa64"
2076			;;
2077  mips*lsi*)		sim_gen=M16
2078			sim_igen_machine="-M mipsIII,mips16"
2079			sim_m16_machine="-M mips16,mipsIII"
2080			sim_igen_filter="32,f"
2081			sim_m16_filter="16"
2082			sim_mach_default="mips4000"
2083			;;
2084  mips*-*-*)		sim_gen=IGEN
2085			sim_igen_filter="32,f"
2086			;;
2087esac
2088
2089# The MULTI generator can combine several simulation engines into one.
2090# executable.  A configuration which uses the MULTI should set two
2091# variables: ${sim_multi_configs} and ${sim_multi_default}.
2092#
2093# ${sim_multi_configs} is the list of engines to build.  Each
2094# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
2095# where:
2096#
2097# - NAME is a C-compatible prefix for the engine,
2098# - MACHINE is a -M argument,
2099# - FILTER is a -F argument, and
2100# - BFDMACHS is a comma-separated list of bfd machines that the
2101#     simulator can run.
2102#
2103# Each entry will have a separate simulation engine whose prefix is
2104# m32<NAME>.  If the machine list includes "mips16", there will also
2105# be a mips16 engine, prefix m16<NAME>.  The mips16 engine will be
2106# generated using the same machine list as the 32-bit version,
2107# but the filter will be "16" instead of FILTER.
2108#
2109# The simulator compares the bfd mach against BFDMACHS to decide
2110# which engine to use.  Entries in BFDMACHS should be bfd_mach
2111# values with "bfd_mach_" removed.  ${sim_multi_default} says
2112# which entry should be the default.
2113if test ${sim_gen} = MULTI; then
2114
2115  # Simple sanity check.
2116  if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
2117    as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
2118  fi
2119
2120  # Start in a known state.
2121  rm -f multi-include.h multi-run.c
2122  sim_multi_flags=
2123  sim_multi_src=
2124  sim_multi_obj=
2125  sim_multi_igen_configs=
2126  sim_seen_default=no
2127
2128  cat << __EOF__ > multi-run.c
2129/* Main entry point for MULTI simulators.
2130   Copyright (C) 2003-2022 Free Software Foundation, Inc.
2131
2132   This program is free software; you can redistribute it and/or modify
2133   it under the terms of the GNU General Public License as published by
2134   the Free Software Foundation; either version 3 of the License, or
2135   (at your option) any later version.
2136
2137   This program is distributed in the hope that it will be useful,
2138   but WITHOUT ANY WARRANTY; without even the implied warranty of
2139   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2140   GNU General Public License for more details.
2141
2142   You should have received a copy of the GNU General Public License
2143   along with this program.  If not, see <http://www.gnu.org/licenses/>.
2144
2145   --
2146
2147   This file was generated by sim/mips/configure.  */
2148
2149#include "sim-main.h"
2150#include "multi-include.h"
2151#include "elf-bfd.h"
2152#include "elfxx-mips.h"
2153#include "elf/mips.h"
2154
2155#define SD sd
2156#define CPU cpu
2157
2158void
2159sim_engine_run (SIM_DESC sd,
2160		int next_cpu_nr,
2161		int nr_cpus,
2162		int signal) /* ignore */
2163{
2164  int mach;
2165
2166  if (STATE_ARCHITECTURE (sd) == NULL)
2167    mach = bfd_mach_${sim_multi_default};
2168  else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
2169	   & EF_MIPS_ARCH_ASE_MICROMIPS)
2170    mach = bfd_mach_mips_micromips;
2171  else
2172  {
2173     mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
2174     if (!mach)
2175       mach = STATE_ARCHITECTURE (SD)->mach;
2176  }
2177
2178  switch (mach)
2179    {
2180__EOF__
2181
2182  for fc in ${sim_multi_configs}; do
2183
2184    # Split up the entry.  ${c} contains the first three elements.
2185    # Note: outer sqaure brackets are m4 quotes.
2186    c=`echo ${fc} | sed 's/:[^:]*$//'`
2187    bfdmachs=`echo ${fc} | sed 's/.*://'`
2188    name=`echo ${c} | sed 's/:.*//'`
2189    machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
2190    filter=`echo ${c} | sed 's/.*://'`
2191
2192    # Build the following lists:
2193    #
2194    #   sim_multi_flags: all -M and -F flags used by the simulator
2195    #   sim_multi_src: all makefile-generated source files
2196    #   sim_multi_obj: the objects for ${sim_multi_src}
2197    #   sim_multi_igen_configs: igen configuration strings.
2198    #
2199    # Each entry in ${sim_multi_igen_configs} is a prefix (m32
2200    # or m16) followed by the NAME, MACHINE and FILTER part of
2201    # the ${sim_multi_configs} entry.
2202    sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
2203
2204    # Check whether special handling is needed.
2205    case ${c} in
2206      *:*mips16*:*)
2207	# Run igen twice, once for normal mode and once for mips16.
2208	ws="m32 m16"
2209
2210	# The top-level function for the mips16 simulator is
2211	# in a file m16${name}_run.c, generated by the
2212	# tmp-run-multi Makefile rule.
2213	sim_multi_src="${sim_multi_src} m16${name}_run.c"
2214	sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
2215	sim_multi_flags="${sim_multi_flags} -F 16"
2216	;;
2217      *:*micromips32*:*)
2218	# Run igen thrice, once for micromips32, once for micromips16,
2219	# and once for m32.
2220	ws="micromips_m32 micromips16 micromips32"
2221
2222	# The top-level function for the micromips simulator is
2223	# in a file micromips${name}_run.c, generated by the
2224	# tmp-run-multi Makefile rule.
2225	sim_multi_src="${sim_multi_src} micromips${name}_run.c"
2226	sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
2227	sim_multi_flags="${sim_multi_flags} -F 16,32"
2228	;;
2229      *:*micromips64*:*)
2230	# Run igen thrice, once for micromips64, once for micromips16,
2231	# and once for m64.
2232	ws="micromips_m64 micromips16 micromips64"
2233
2234	# The top-level function for the micromips simulator is
2235	# in a file micromips${name}_run.c, generated by the
2236	# tmp-run-multi Makefile rule.
2237	sim_multi_src="${sim_multi_src} micromips${name}_run.c"
2238	sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
2239	sim_multi_flags="${sim_multi_flags} -F 16,32,64"
2240	;;
2241      *)
2242	ws=m32
2243	;;
2244    esac
2245
2246    # Now add the list of igen-generated files to ${sim_multi_src}
2247    # and ${sim_multi_obj}.
2248    for w in ${ws}; do
2249      for base in engine icache idecode model semantics support; do
2250	sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
2251	sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
2252	sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
2253      done
2254      sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
2255    done
2256
2257    # Add an include for the engine.h file.  This file declares the
2258    # top-level foo_engine_run() function.
2259    echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
2260
2261    # Add case statements for this engine to sim_engine_run().
2262    for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
2263      echo "    case bfd_mach_${mach}:" >> multi-run.c
2264      if test ${mach} = ${sim_multi_default}; then
2265	echo "    default:" >> multi-run.c
2266	sim_seen_default=yes
2267      fi
2268    done
2269    echo "      ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
2270      >> multi-run.c
2271    echo "      break;" >> multi-run.c
2272  done
2273
2274  # Check whether we added a 'default:' label.
2275  if test ${sim_seen_default} = no; then
2276    as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
2277  fi
2278
2279  cat << __EOF__ >> multi-run.c
2280    }
2281}
2282
2283int
2284mips_mach_multi (SIM_DESC sd)
2285{
2286  if (STATE_ARCHITECTURE (sd) == NULL)
2287    return bfd_mach_${sim_multi_default};
2288
2289  switch (STATE_ARCHITECTURE (SD)->mach)
2290    {
2291__EOF__
2292
2293  # Add case statements for this engine to mips_mach_multi().
2294  for fc in ${sim_multi_configs}; do
2295
2296    # Split up the entry.  ${c} contains the first three elements.
2297    # Note: outer sqaure brackets are m4 quotes.
2298    c=`echo ${fc} | sed 's/:[^:]*$//'`
2299    bfdmachs=`echo ${fc} | sed 's/.*://'`
2300
2301    for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
2302      echo "    case bfd_mach_${mach}:" >> multi-run.c
2303    done
2304  done
2305
2306  cat << __EOF__ >> multi-run.c
2307      return (STATE_ARCHITECTURE (SD)->mach);
2308    default:
2309      return bfd_mach_${sim_multi_default};
2310    }
2311}
2312__EOF__
2313
2314  SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
2315else
2316  # For clean-extra
2317  sim_multi_src=doesnt-exist.c
2318
2319  if test x"${sim_mach_default}" = x""; then
2320    as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
2321  fi
2322  SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
2323fi
2324sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
2325sim_m16_flags=" -F ${sim_m16_filter}  ${sim_m16_machine}  ${sim_igen_smp}"
2326sim_micromips16_flags=" -F ${sim_micromips16_filter}  ${sim_micromips16_machine}  ${sim_igen_smp}"
2327sim_micromips_flags=" -F ${sim_micromips_filter}  ${sim_micromips_machine}  ${sim_igen_smp}"
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
2339
2340ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
2341
2342ac_config_commands="$ac_config_commands Makefile"
2343
2344ac_config_commands="$ac_config_commands stamp-h"
2345
2346
2347
2348
2349
2350SIM_COMMON_BUILD_TRUE='#'
2351SIM_COMMON_BUILD_FALSE=
2352
2353
2354
2355cat >confcache <<\_ACEOF
2356# This file is a shell script that caches the results of configure
2357# tests run on this system so they can be shared between configure
2358# scripts and configure runs, see configure's option --config-cache.
2359# It is not useful on other systems.  If it contains results you don't
2360# want to keep, you may remove or edit it.
2361#
2362# config.status only pays attention to the cache file if you give it
2363# the --recheck option to rerun configure.
2364#
2365# `ac_cv_env_foo' variables (set or unset) will be overridden when
2366# loading this file, other *unset* `ac_cv_foo' will be assigned the
2367# following values.
2368
2369_ACEOF
2370
2371# The following way of writing the cache mishandles newlines in values,
2372# but we know of no workaround that is simple, portable, and efficient.
2373# So, we kill variables containing newlines.
2374# Ultrix sh set writes to stderr and can't be redirected directly,
2375# and sets the high bit in the cache file unless we assign to the vars.
2376(
2377  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2378    eval ac_val=\$$ac_var
2379    case $ac_val in #(
2380    *${as_nl}*)
2381      case $ac_var in #(
2382      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384      esac
2385      case $ac_var in #(
2386      _ | IFS | as_nl) ;; #(
2387      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388      *) { eval $ac_var=; unset $ac_var;} ;;
2389      esac ;;
2390    esac
2391  done
2392
2393  (set) 2>&1 |
2394    case $as_nl`(ac_space=' '; set) 2>&1` in #(
2395    *${as_nl}ac_space=\ *)
2396      # `set' does not quote correctly, so add quotes: double-quote
2397      # substitution turns \\\\ into \\, and sed turns \\ into \.
2398      sed -n \
2399	"s/'/'\\\\''/g;
2400	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2401      ;; #(
2402    *)
2403      # `set' quotes correctly as required by POSIX, so do not add quotes.
2404      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2405      ;;
2406    esac |
2407    sort
2408) |
2409  sed '
2410     /^ac_cv_env_/b end
2411     t clear
2412     :clear
2413     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2414     t end
2415     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2416     :end' >>confcache
2417if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2418  if test -w "$cache_file"; then
2419    if test "x$cache_file" != "x/dev/null"; then
2420      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2421$as_echo "$as_me: updating cache $cache_file" >&6;}
2422      if test ! -f "$cache_file" || test -h "$cache_file"; then
2423	cat confcache >"$cache_file"
2424      else
2425        case $cache_file in #(
2426        */* | ?:*)
2427	  mv -f confcache "$cache_file"$$ &&
2428	  mv -f "$cache_file"$$ "$cache_file" ;; #(
2429        *)
2430	  mv -f confcache "$cache_file" ;;
2431	esac
2432      fi
2433    fi
2434  else
2435    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2436$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2437  fi
2438fi
2439rm -f confcache
2440
2441test "x$prefix" = xNONE && prefix=$ac_default_prefix
2442# Let make expand exec_prefix.
2443test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2444
2445# Transform confdefs.h into DEFS.
2446# Protect against shell expansion while executing Makefile rules.
2447# Protect against Makefile macro expansion.
2448#
2449# If the first sed substitution is executed (which looks for macros that
2450# take arguments), then branch to the quote section.  Otherwise,
2451# look for a macro that doesn't take arguments.
2452ac_script='
2453:mline
2454/\\$/{
2455 N
2456 s,\\\n,,
2457 b mline
2458}
2459t clear
2460:clear
2461s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
2462t quote
2463s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
2464t quote
2465b any
2466:quote
2467s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2468s/\[/\\&/g
2469s/\]/\\&/g
2470s/\$/$$/g
2471H
2472:any
2473${
2474	g
2475	s/^\n//
2476	s/\n/ /g
2477	p
2478}
2479'
2480DEFS=`sed -n "$ac_script" confdefs.h`
2481
2482
2483ac_libobjs=
2484ac_ltlibobjs=
2485U=
2486for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2487  # 1. Remove the extension, and $U if already installed.
2488  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2489  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2490  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2491  #    will be set to the directory where LIBOBJS objects are built.
2492  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2493  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2494done
2495LIBOBJS=$ac_libobjs
2496
2497LTLIBOBJS=$ac_ltlibobjs
2498
2499
2500
2501: "${CONFIG_STATUS=./config.status}"
2502ac_write_fail=0
2503ac_clean_files_save=$ac_clean_files
2504ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2506$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2507as_write_fail=0
2508cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2509#! $SHELL
2510# Generated by $as_me.
2511# Run this file to recreate the current configuration.
2512# Compiler output produced by configure, useful for debugging
2513# configure, is in config.log if it exists.
2514
2515debug=false
2516ac_cs_recheck=false
2517ac_cs_silent=false
2518
2519SHELL=\${CONFIG_SHELL-$SHELL}
2520export SHELL
2521_ASEOF
2522cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2523## -------------------- ##
2524## M4sh Initialization. ##
2525## -------------------- ##
2526
2527# Be more Bourne compatible
2528DUALCASE=1; export DUALCASE # for MKS sh
2529if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2530  emulate sh
2531  NULLCMD=:
2532  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2533  # is contrary to our usage.  Disable this feature.
2534  alias -g '${1+"$@"}'='"$@"'
2535  setopt NO_GLOB_SUBST
2536else
2537  case `(set -o) 2>/dev/null` in #(
2538  *posix*) :
2539    set -o posix ;; #(
2540  *) :
2541     ;;
2542esac
2543fi
2544
2545
2546as_nl='
2547'
2548export as_nl
2549# Printing a long string crashes Solaris 7 /usr/bin/printf.
2550as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2551as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2552as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2553# Prefer a ksh shell builtin over an external printf program on Solaris,
2554# but without wasting forks for bash or zsh.
2555if test -z "$BASH_VERSION$ZSH_VERSION" \
2556    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2557  as_echo='print -r --'
2558  as_echo_n='print -rn --'
2559elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2560  as_echo='printf %s\n'
2561  as_echo_n='printf %s'
2562else
2563  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2564    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2565    as_echo_n='/usr/ucb/echo -n'
2566  else
2567    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2568    as_echo_n_body='eval
2569      arg=$1;
2570      case $arg in #(
2571      *"$as_nl"*)
2572	expr "X$arg" : "X\\(.*\\)$as_nl";
2573	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2574      esac;
2575      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2576    '
2577    export as_echo_n_body
2578    as_echo_n='sh -c $as_echo_n_body as_echo'
2579  fi
2580  export as_echo_body
2581  as_echo='sh -c $as_echo_body as_echo'
2582fi
2583
2584# The user is always right.
2585if test "${PATH_SEPARATOR+set}" != set; then
2586  PATH_SEPARATOR=:
2587  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2588    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2589      PATH_SEPARATOR=';'
2590  }
2591fi
2592
2593
2594# IFS
2595# We need space, tab and new line, in precisely that order.  Quoting is
2596# there to prevent editors from complaining about space-tab.
2597# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2598# splitting by setting IFS to empty value.)
2599IFS=" ""	$as_nl"
2600
2601# Find who we are.  Look in the path if we contain no directory separator.
2602as_myself=
2603case $0 in #((
2604  *[\\/]* ) as_myself=$0 ;;
2605  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608  IFS=$as_save_IFS
2609  test -z "$as_dir" && as_dir=.
2610    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2611  done
2612IFS=$as_save_IFS
2613
2614     ;;
2615esac
2616# We did not find ourselves, most probably we were run as `sh COMMAND'
2617# in which case we are not to be found in the path.
2618if test "x$as_myself" = x; then
2619  as_myself=$0
2620fi
2621if test ! -f "$as_myself"; then
2622  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2623  exit 1
2624fi
2625
2626# Unset variables that we do not need and which cause bugs (e.g. in
2627# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
2628# suppresses any "Segmentation fault" message there.  '((' could
2629# trigger a bug in pdksh 5.2.14.
2630for as_var in BASH_ENV ENV MAIL MAILPATH
2631do eval test x\${$as_var+set} = xset \
2632  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2633done
2634PS1='$ '
2635PS2='> '
2636PS4='+ '
2637
2638# NLS nuisances.
2639LC_ALL=C
2640export LC_ALL
2641LANGUAGE=C
2642export LANGUAGE
2643
2644# CDPATH.
2645(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2646
2647
2648# as_fn_error STATUS ERROR [LINENO LOG_FD]
2649# ----------------------------------------
2650# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2651# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2652# script with STATUS, using 1 if that was 0.
2653as_fn_error ()
2654{
2655  as_status=$1; test $as_status -eq 0 && as_status=1
2656  if test "$4"; then
2657    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2659  fi
2660  $as_echo "$as_me: error: $2" >&2
2661  as_fn_exit $as_status
2662} # as_fn_error
2663
2664
2665# as_fn_set_status STATUS
2666# -----------------------
2667# Set $? to STATUS, without forking.
2668as_fn_set_status ()
2669{
2670  return $1
2671} # as_fn_set_status
2672
2673# as_fn_exit STATUS
2674# -----------------
2675# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2676as_fn_exit ()
2677{
2678  set +e
2679  as_fn_set_status $1
2680  exit $1
2681} # as_fn_exit
2682
2683# as_fn_unset VAR
2684# ---------------
2685# Portably unset VAR.
2686as_fn_unset ()
2687{
2688  { eval $1=; unset $1;}
2689}
2690as_unset=as_fn_unset
2691# as_fn_append VAR VALUE
2692# ----------------------
2693# Append the text in VALUE to the end of the definition contained in VAR. Take
2694# advantage of any shell optimizations that allow amortized linear growth over
2695# repeated appends, instead of the typical quadratic growth present in naive
2696# implementations.
2697if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2698  eval 'as_fn_append ()
2699  {
2700    eval $1+=\$2
2701  }'
2702else
2703  as_fn_append ()
2704  {
2705    eval $1=\$$1\$2
2706  }
2707fi # as_fn_append
2708
2709# as_fn_arith ARG...
2710# ------------------
2711# Perform arithmetic evaluation on the ARGs, and store the result in the
2712# global $as_val. Take advantage of shells that can avoid forks. The arguments
2713# must be portable across $(()) and expr.
2714if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2715  eval 'as_fn_arith ()
2716  {
2717    as_val=$(( $* ))
2718  }'
2719else
2720  as_fn_arith ()
2721  {
2722    as_val=`expr "$@" || test $? -eq 1`
2723  }
2724fi # as_fn_arith
2725
2726
2727if expr a : '\(a\)' >/dev/null 2>&1 &&
2728   test "X`expr 00001 : '.*\(...\)'`" = X001; then
2729  as_expr=expr
2730else
2731  as_expr=false
2732fi
2733
2734if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2735  as_basename=basename
2736else
2737  as_basename=false
2738fi
2739
2740if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2741  as_dirname=dirname
2742else
2743  as_dirname=false
2744fi
2745
2746as_me=`$as_basename -- "$0" ||
2747$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2748	 X"$0" : 'X\(//\)$' \| \
2749	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2750$as_echo X/"$0" |
2751    sed '/^.*\/\([^/][^/]*\)\/*$/{
2752	    s//\1/
2753	    q
2754	  }
2755	  /^X\/\(\/\/\)$/{
2756	    s//\1/
2757	    q
2758	  }
2759	  /^X\/\(\/\).*/{
2760	    s//\1/
2761	    q
2762	  }
2763	  s/.*/./; q'`
2764
2765# Avoid depending upon Character Ranges.
2766as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2767as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2768as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2769as_cr_digits='0123456789'
2770as_cr_alnum=$as_cr_Letters$as_cr_digits
2771
2772ECHO_C= ECHO_N= ECHO_T=
2773case `echo -n x` in #(((((
2774-n*)
2775  case `echo 'xy\c'` in
2776  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
2777  xy)  ECHO_C='\c';;
2778  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
2779       ECHO_T='	';;
2780  esac;;
2781*)
2782  ECHO_N='-n';;
2783esac
2784
2785rm -f conf$$ conf$$.exe conf$$.file
2786if test -d conf$$.dir; then
2787  rm -f conf$$.dir/conf$$.file
2788else
2789  rm -f conf$$.dir
2790  mkdir conf$$.dir 2>/dev/null
2791fi
2792if (echo >conf$$.file) 2>/dev/null; then
2793  if ln -s conf$$.file conf$$ 2>/dev/null; then
2794    as_ln_s='ln -s'
2795    # ... but there are two gotchas:
2796    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2797    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2798    # In both cases, we have to default to `cp -pR'.
2799    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2800      as_ln_s='cp -pR'
2801  elif ln conf$$.file conf$$ 2>/dev/null; then
2802    as_ln_s=ln
2803  else
2804    as_ln_s='cp -pR'
2805  fi
2806else
2807  as_ln_s='cp -pR'
2808fi
2809rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2810rmdir conf$$.dir 2>/dev/null
2811
2812
2813# as_fn_mkdir_p
2814# -------------
2815# Create "$as_dir" as a directory, including parents if necessary.
2816as_fn_mkdir_p ()
2817{
2818
2819  case $as_dir in #(
2820  -*) as_dir=./$as_dir;;
2821  esac
2822  test -d "$as_dir" || eval $as_mkdir_p || {
2823    as_dirs=
2824    while :; do
2825      case $as_dir in #(
2826      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2827      *) as_qdir=$as_dir;;
2828      esac
2829      as_dirs="'$as_qdir' $as_dirs"
2830      as_dir=`$as_dirname -- "$as_dir" ||
2831$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2832	 X"$as_dir" : 'X\(//\)[^/]' \| \
2833	 X"$as_dir" : 'X\(//\)$' \| \
2834	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2835$as_echo X"$as_dir" |
2836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2837	    s//\1/
2838	    q
2839	  }
2840	  /^X\(\/\/\)[^/].*/{
2841	    s//\1/
2842	    q
2843	  }
2844	  /^X\(\/\/\)$/{
2845	    s//\1/
2846	    q
2847	  }
2848	  /^X\(\/\).*/{
2849	    s//\1/
2850	    q
2851	  }
2852	  s/.*/./; q'`
2853      test -d "$as_dir" && break
2854    done
2855    test -z "$as_dirs" || eval "mkdir $as_dirs"
2856  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2857
2858
2859} # as_fn_mkdir_p
2860if mkdir -p . 2>/dev/null; then
2861  as_mkdir_p='mkdir -p "$as_dir"'
2862else
2863  test -d ./-p && rmdir ./-p
2864  as_mkdir_p=false
2865fi
2866
2867
2868# as_fn_executable_p FILE
2869# -----------------------
2870# Test if FILE is an executable regular file.
2871as_fn_executable_p ()
2872{
2873  test -f "$1" && test -x "$1"
2874} # as_fn_executable_p
2875as_test_x='test -x'
2876as_executable_p=as_fn_executable_p
2877
2878# Sed expression to map a string onto a valid CPP name.
2879as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2880
2881# Sed expression to map a string onto a valid variable name.
2882as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2883
2884
2885exec 6>&1
2886## ----------------------------------- ##
2887## Main body of $CONFIG_STATUS script. ##
2888## ----------------------------------- ##
2889_ASEOF
2890test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2891
2892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2893# Save the log message, to keep $0 and so on meaningful, and to
2894# report actual input values of CONFIG_FILES etc. instead of their
2895# values after options handling.
2896ac_log="
2897This file was extended by $as_me, which was
2898generated by GNU Autoconf 2.69.  Invocation command line was
2899
2900  CONFIG_FILES    = $CONFIG_FILES
2901  CONFIG_HEADERS  = $CONFIG_HEADERS
2902  CONFIG_LINKS    = $CONFIG_LINKS
2903  CONFIG_COMMANDS = $CONFIG_COMMANDS
2904  $ $0 $@
2905
2906on `(hostname || uname -n) 2>/dev/null | sed 1q`
2907"
2908
2909_ACEOF
2910
2911case $ac_config_files in *"
2912"*) set x $ac_config_files; shift; ac_config_files=$*;;
2913esac
2914
2915
2916
2917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2918# Files that config.status was made for.
2919config_files="$ac_config_files"
2920config_commands="$ac_config_commands"
2921
2922_ACEOF
2923
2924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2925ac_cs_usage="\
2926\`$as_me' instantiates files and other configuration actions
2927from templates according to the current configuration.  Unless the files
2928and actions are specified as TAGs, all are instantiated by default.
2929
2930Usage: $0 [OPTION]... [TAG]...
2931
2932  -h, --help       print this help, then exit
2933  -V, --version    print version number and configuration settings, then exit
2934      --config     print configuration, then exit
2935  -q, --quiet, --silent
2936                   do not print progress messages
2937  -d, --debug      don't remove temporary files
2938      --recheck    update $as_me by reconfiguring in the same conditions
2939      --file=FILE[:TEMPLATE]
2940                   instantiate the configuration file FILE
2941
2942Configuration files:
2943$config_files
2944
2945Configuration commands:
2946$config_commands
2947
2948Report bugs to the package provider."
2949
2950_ACEOF
2951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2952ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2953ac_cs_version="\\
2954config.status
2955configured by $0, generated by GNU Autoconf 2.69,
2956  with options \\"\$ac_cs_config\\"
2957
2958Copyright (C) 2012 Free Software Foundation, Inc.
2959This config.status script is free software; the Free Software Foundation
2960gives unlimited permission to copy, distribute and modify it."
2961
2962ac_pwd='$ac_pwd'
2963srcdir='$srcdir'
2964test -n "\$AWK" || AWK=awk
2965_ACEOF
2966
2967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2968# The default lists apply if the user does not specify any file.
2969ac_need_defaults=:
2970while test $# != 0
2971do
2972  case $1 in
2973  --*=?*)
2974    ac_option=`expr "X$1" : 'X\([^=]*\)='`
2975    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2976    ac_shift=:
2977    ;;
2978  --*=)
2979    ac_option=`expr "X$1" : 'X\([^=]*\)='`
2980    ac_optarg=
2981    ac_shift=:
2982    ;;
2983  *)
2984    ac_option=$1
2985    ac_optarg=$2
2986    ac_shift=shift
2987    ;;
2988  esac
2989
2990  case $ac_option in
2991  # Handling of the options.
2992  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2993    ac_cs_recheck=: ;;
2994  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2995    $as_echo "$ac_cs_version"; exit ;;
2996  --config | --confi | --conf | --con | --co | --c )
2997    $as_echo "$ac_cs_config"; exit ;;
2998  --debug | --debu | --deb | --de | --d | -d )
2999    debug=: ;;
3000  --file | --fil | --fi | --f )
3001    $ac_shift
3002    case $ac_optarg in
3003    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3004    '') as_fn_error $? "missing file argument" ;;
3005    esac
3006    as_fn_append CONFIG_FILES " '$ac_optarg'"
3007    ac_need_defaults=false;;
3008  --he | --h |  --help | --hel | -h )
3009    $as_echo "$ac_cs_usage"; exit ;;
3010  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3011  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3012    ac_cs_silent=: ;;
3013
3014  # This is an error.
3015  -*) as_fn_error $? "unrecognized option: \`$1'
3016Try \`$0 --help' for more information." ;;
3017
3018  *) as_fn_append ac_config_targets " $1"
3019     ac_need_defaults=false ;;
3020
3021  esac
3022  shift
3023done
3024
3025ac_configure_extra_args=
3026
3027if $ac_cs_silent; then
3028  exec 6>/dev/null
3029  ac_configure_extra_args="$ac_configure_extra_args --silent"
3030fi
3031
3032_ACEOF
3033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3034if \$ac_cs_recheck; then
3035  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3036  shift
3037  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3038  CONFIG_SHELL='$SHELL'
3039  export CONFIG_SHELL
3040  exec "\$@"
3041fi
3042
3043_ACEOF
3044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3045exec 5>>config.log
3046{
3047  echo
3048  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3049## Running $as_me. ##
3050_ASBOX
3051  $as_echo "$ac_log"
3052} >&5
3053
3054_ACEOF
3055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3056_ACEOF
3057
3058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3059
3060# Handling of arguments.
3061for ac_config_target in $ac_config_targets
3062do
3063  case $ac_config_target in
3064    "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
3065    "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
3066    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
3067    "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
3068
3069  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3070  esac
3071done
3072
3073
3074# If the user did not use the arguments to specify the items to instantiate,
3075# then the envvar interface is used.  Set only those that are not.
3076# We use the long form for the default assignment because of an extremely
3077# bizarre bug on SunOS 4.1.3.
3078if $ac_need_defaults; then
3079  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3080  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3081fi
3082
3083# Have a temporary directory for convenience.  Make it in the build tree
3084# simply because there is no reason against having it here, and in addition,
3085# creating and moving files from /tmp can sometimes cause problems.
3086# Hook for its removal unless debugging.
3087# Note that there is a small window in which the directory will not be cleaned:
3088# after its creation but before its name has been assigned to `$tmp'.
3089$debug ||
3090{
3091  tmp= ac_tmp=
3092  trap 'exit_status=$?
3093  : "${ac_tmp:=$tmp}"
3094  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3095' 0
3096  trap 'as_fn_exit 1' 1 2 13 15
3097}
3098# Create a (secure) tmp directory for tmp files.
3099
3100{
3101  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3102  test -d "$tmp"
3103}  ||
3104{
3105  tmp=./conf$$-$RANDOM
3106  (umask 077 && mkdir "$tmp")
3107} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3108ac_tmp=$tmp
3109
3110# Set up the scripts for CONFIG_FILES section.
3111# No need to generate them if there are no CONFIG_FILES.
3112# This happens for instance with `./config.status config.h'.
3113if test -n "$CONFIG_FILES"; then
3114
3115
3116ac_cr=`echo X | tr X '\015'`
3117# On cygwin, bash can eat \r inside `` if the user requested igncr.
3118# But we know of no other shell where ac_cr would be empty at this
3119# point, so we can use a bashism as a fallback.
3120if test "x$ac_cr" = x; then
3121  eval ac_cr=\$\'\\r\'
3122fi
3123ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3124if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3125  ac_cs_awk_cr='\\r'
3126else
3127  ac_cs_awk_cr=$ac_cr
3128fi
3129
3130echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3131_ACEOF
3132
3133
3134{
3135  echo "cat >conf$$subs.awk <<_ACEOF" &&
3136  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3137  echo "_ACEOF"
3138} >conf$$subs.sh ||
3139  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3140ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3141ac_delim='%!_!# '
3142for ac_last_try in false false false false false :; do
3143  . ./conf$$subs.sh ||
3144    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3145
3146  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3147  if test $ac_delim_n = $ac_delim_num; then
3148    break
3149  elif $ac_last_try; then
3150    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3151  else
3152    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3153  fi
3154done
3155rm -f conf$$subs.sh
3156
3157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3158cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3159_ACEOF
3160sed -n '
3161h
3162s/^/S["/; s/!.*/"]=/
3163p
3164g
3165s/^[^!]*!//
3166:repl
3167t repl
3168s/'"$ac_delim"'$//
3169t delim
3170:nl
3171h
3172s/\(.\{148\}\)..*/\1/
3173t more1
3174s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3175p
3176n
3177b repl
3178:more1
3179s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3180p
3181g
3182s/.\{148\}//
3183t nl
3184:delim
3185h
3186s/\(.\{148\}\)..*/\1/
3187t more2
3188s/["\\]/\\&/g; s/^/"/; s/$/"/
3189p
3190b
3191:more2
3192s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3193p
3194g
3195s/.\{148\}//
3196t delim
3197' <conf$$subs.awk | sed '
3198/^[^""]/{
3199  N
3200  s/\n//
3201}
3202' >>$CONFIG_STATUS || ac_write_fail=1
3203rm -f conf$$subs.awk
3204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3205_ACAWK
3206cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3207  for (key in S) S_is_set[key] = 1
3208  FS = ""
3209
3210}
3211{
3212  line = $ 0
3213  nfields = split(line, field, "@")
3214  substed = 0
3215  len = length(field[1])
3216  for (i = 2; i < nfields; i++) {
3217    key = field[i]
3218    keylen = length(key)
3219    if (S_is_set[key]) {
3220      value = S[key]
3221      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3222      len += length(value) + length(field[++i])
3223      substed = 1
3224    } else
3225      len += 1 + keylen
3226  }
3227
3228  print line
3229}
3230
3231_ACAWK
3232_ACEOF
3233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3234if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3235  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3236else
3237  cat
3238fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3239  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3240_ACEOF
3241
3242# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3243# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3244# trailing colons and then remove the whole line if VPATH becomes empty
3245# (actually we leave an empty line to preserve line numbers).
3246if test "x$srcdir" = x.; then
3247  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
3248h
3249s///
3250s/^/:/
3251s/[	 ]*$/:/
3252s/:\$(srcdir):/:/g
3253s/:\${srcdir}:/:/g
3254s/:@srcdir@:/:/g
3255s/^:*//
3256s/:*$//
3257x
3258s/\(=[	 ]*\).*/\1/
3259G
3260s/\n//
3261s/^[^=]*=[	 ]*$//
3262}'
3263fi
3264
3265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3266fi # test -n "$CONFIG_FILES"
3267
3268
3269eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
3270shift
3271for ac_tag
3272do
3273  case $ac_tag in
3274  :[FHLC]) ac_mode=$ac_tag; continue;;
3275  esac
3276  case $ac_mode$ac_tag in
3277  :[FHL]*:*);;
3278  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3279  :[FH]-) ac_tag=-:-;;
3280  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3281  esac
3282  ac_save_IFS=$IFS
3283  IFS=:
3284  set x $ac_tag
3285  IFS=$ac_save_IFS
3286  shift
3287  ac_file=$1
3288  shift
3289
3290  case $ac_mode in
3291  :L) ac_source=$1;;
3292  :[FH])
3293    ac_file_inputs=
3294    for ac_f
3295    do
3296      case $ac_f in
3297      -) ac_f="$ac_tmp/stdin";;
3298      *) # Look for the file first in the build tree, then in the source tree
3299	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
3300	 # because $ac_f cannot contain `:'.
3301	 test -f "$ac_f" ||
3302	   case $ac_f in
3303	   [\\/$]*) false;;
3304	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3305	   esac ||
3306	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3307      esac
3308      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3309      as_fn_append ac_file_inputs " '$ac_f'"
3310    done
3311
3312    # Let's still pretend it is `configure' which instantiates (i.e., don't
3313    # use $as_me), people would be surprised to read:
3314    #    /* config.h.  Generated by config.status.  */
3315    configure_input='Generated from '`
3316	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3317	`' by configure.'
3318    if test x"$ac_file" != x-; then
3319      configure_input="$ac_file.  $configure_input"
3320      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3321$as_echo "$as_me: creating $ac_file" >&6;}
3322    fi
3323    # Neutralize special characters interpreted by sed in replacement strings.
3324    case $configure_input in #(
3325    *\&* | *\|* | *\\* )
3326       ac_sed_conf_input=`$as_echo "$configure_input" |
3327       sed 's/[\\\\&|]/\\\\&/g'`;; #(
3328    *) ac_sed_conf_input=$configure_input;;
3329    esac
3330
3331    case $ac_tag in
3332    *:-:* | *:-) cat >"$ac_tmp/stdin" \
3333      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3334    esac
3335    ;;
3336  esac
3337
3338  ac_dir=`$as_dirname -- "$ac_file" ||
3339$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3340	 X"$ac_file" : 'X\(//\)[^/]' \| \
3341	 X"$ac_file" : 'X\(//\)$' \| \
3342	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3343$as_echo X"$ac_file" |
3344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3345	    s//\1/
3346	    q
3347	  }
3348	  /^X\(\/\/\)[^/].*/{
3349	    s//\1/
3350	    q
3351	  }
3352	  /^X\(\/\/\)$/{
3353	    s//\1/
3354	    q
3355	  }
3356	  /^X\(\/\).*/{
3357	    s//\1/
3358	    q
3359	  }
3360	  s/.*/./; q'`
3361  as_dir="$ac_dir"; as_fn_mkdir_p
3362  ac_builddir=.
3363
3364case "$ac_dir" in
3365.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3366*)
3367  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3368  # A ".." for each directory in $ac_dir_suffix.
3369  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3370  case $ac_top_builddir_sub in
3371  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3372  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3373  esac ;;
3374esac
3375ac_abs_top_builddir=$ac_pwd
3376ac_abs_builddir=$ac_pwd$ac_dir_suffix
3377# for backward compatibility:
3378ac_top_builddir=$ac_top_build_prefix
3379
3380case $srcdir in
3381  .)  # We are building in place.
3382    ac_srcdir=.
3383    ac_top_srcdir=$ac_top_builddir_sub
3384    ac_abs_top_srcdir=$ac_pwd ;;
3385  [\\/]* | ?:[\\/]* )  # Absolute name.
3386    ac_srcdir=$srcdir$ac_dir_suffix;
3387    ac_top_srcdir=$srcdir
3388    ac_abs_top_srcdir=$srcdir ;;
3389  *) # Relative name.
3390    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3391    ac_top_srcdir=$ac_top_build_prefix$srcdir
3392    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3393esac
3394ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3395
3396
3397  case $ac_mode in
3398  :F)
3399  #
3400  # CONFIG_FILE
3401  #
3402
3403_ACEOF
3404
3405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3406# If the template does not know about datarootdir, expand it.
3407# FIXME: This hack should be removed a few years after 2.60.
3408ac_datarootdir_hack=; ac_datarootdir_seen=
3409ac_sed_dataroot='
3410/datarootdir/ {
3411  p
3412  q
3413}
3414/@datadir@/p
3415/@docdir@/p
3416/@infodir@/p
3417/@localedir@/p
3418/@mandir@/p'
3419case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3420*datarootdir*) ac_datarootdir_seen=yes;;
3421*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3423$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3424_ACEOF
3425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3426  ac_datarootdir_hack='
3427  s&@datadir@&$datadir&g
3428  s&@docdir@&$docdir&g
3429  s&@infodir@&$infodir&g
3430  s&@localedir@&$localedir&g
3431  s&@mandir@&$mandir&g
3432  s&\\\${datarootdir}&$datarootdir&g' ;;
3433esac
3434_ACEOF
3435
3436# Neutralize VPATH when `$srcdir' = `.'.
3437# Shell code in configure.ac might set extrasub.
3438# FIXME: do we really want to maintain this feature?
3439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3440ac_sed_extra="$ac_vpsub
3441$extrasub
3442_ACEOF
3443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3444:t
3445/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3446s|@configure_input@|$ac_sed_conf_input|;t t
3447s&@top_builddir@&$ac_top_builddir_sub&;t t
3448s&@top_build_prefix@&$ac_top_build_prefix&;t t
3449s&@srcdir@&$ac_srcdir&;t t
3450s&@abs_srcdir@&$ac_abs_srcdir&;t t
3451s&@top_srcdir@&$ac_top_srcdir&;t t
3452s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3453s&@builddir@&$ac_builddir&;t t
3454s&@abs_builddir@&$ac_abs_builddir&;t t
3455s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3456$ac_datarootdir_hack
3457"
3458eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3459  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3460
3461test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3462  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3463  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
3464      "$ac_tmp/out"`; test -z "$ac_out"; } &&
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3466which seems to be undefined.  Please make sure it is defined" >&5
3467$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3468which seems to be undefined.  Please make sure it is defined" >&2;}
3469
3470  rm -f "$ac_tmp/stdin"
3471  case $ac_file in
3472  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3473  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3474  esac \
3475  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3476 ;;
3477
3478
3479  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
3480$as_echo "$as_me: executing $ac_file commands" >&6;}
3481 ;;
3482  esac
3483
3484
3485  case $ac_file$ac_mode in
3486    "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
3487 rm -f Makesim1.tmp Makesim2.tmp Makefile
3488 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
3489 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
3490 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
3491	-e '/^## COMMON_POST_/ r Makesim2.tmp' \
3492	<Makefile.sim >Makefile
3493 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
3494 ;;
3495    "stamp-h":C) echo > stamp-h ;;
3496
3497  esac
3498done # for ac_tag
3499
3500
3501as_fn_exit 0
3502_ACEOF
3503ac_clean_files=$ac_clean_files_save
3504
3505test $ac_write_fail = 0 ||
3506  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3507
3508
3509# configure is writing to config.log, and then calls config.status.
3510# config.status does its own redirection, appending to config.log.
3511# Unfortunately, on DOS this fails, as config.log is still kept open
3512# by configure, so config.status won't be able to write to it; its
3513# output is simply discarded.  So we exec the FD to /dev/null,
3514# effectively closing config.log, so it can be properly (re)opened and
3515# appended to by config.status.  When coming back to configure, we
3516# need to make the FD available again.
3517if test "$no_create" != yes; then
3518  ac_cs_success=:
3519  ac_config_status_args=
3520  test "$silent" = yes &&
3521    ac_config_status_args="$ac_config_status_args --quiet"
3522  exec 5>/dev/null
3523  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3524  exec 5>>config.log
3525  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3526  # would make configure fail if this is the last instruction.
3527  $ac_cs_success || as_fn_exit 1
3528fi
3529if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3531$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3532fi
3533
3534
3535