sim: bfin: new PINT model
[external/binutils.git] / sim / bfin / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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   }
79 fi
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.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="Makefile.in"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 cgen_breaks
594 SDL_LIBS
595 SDL_CFLAGS
596 PKG_CONFIG_LIBDIR
597 PKG_CONFIG_PATH
598 PKG_CONFIG
599 BFIN_SIM_EXTRA_OBJS
600 REPORT_BUGS_TEXI
601 REPORT_BUGS_TO
602 PKGVERSION
603 sim_profile
604 sim_trace
605 sim_stdio
606 sim_debug
607 sim_cflags
608 sim_bswap
609 MAINT
610 CATOBJEXT
611 GENCAT
612 INSTOBJEXT
613 DATADIRNAME
614 CATALOGS
615 POSUB
616 GMSGFMT
617 XGETTEXT
618 INCINTL
619 LIBINTL_DEP
620 LIBINTL
621 USE_NLS
622 GMAKE_FALSE
623 GMAKE_TRUE
624 MAKE
625 CCDEPMODE
626 DEPDIR
627 am__leading_dot
628 RANLIB
629 AR
630 HDEFINES
631 CC_FOR_BUILD
632 INSTALL_DATA
633 INSTALL_SCRIPT
634 INSTALL_PROGRAM
635 EGREP
636 GREP
637 CPP
638 target_os
639 target_vendor
640 target_cpu
641 target
642 host_os
643 host_vendor
644 host_cpu
645 host
646 build_os
647 build_vendor
648 build_cpu
649 build
650 OBJEXT
651 EXEEXT
652 ac_ct_CC
653 CPPFLAGS
654 LDFLAGS
655 CFLAGS
656 CC
657 WERROR_CFLAGS
658 WARN_CFLAGS
659 sim_xor_endian
660 sim_stdcall
661 sim_smp
662 sim_reserved_bits
663 sim_regparm
664 sim_packages
665 sim_inline
666 sim_hw
667 sim_hw_objs
668 sim_hw_cflags
669 sim_default_model
670 sim_scache
671 sim_float
672 sim_hostendian
673 sim_endian
674 sim_bitsize
675 sim_assert
676 sim_alignment
677 sim_environment
678 target_alias
679 host_alias
680 build_alias
681 LIBS
682 ECHO_T
683 ECHO_N
684 ECHO_C
685 DEFS
686 mandir
687 localedir
688 libdir
689 psdir
690 pdfdir
691 dvidir
692 htmldir
693 infodir
694 docdir
695 oldincludedir
696 includedir
697 localstatedir
698 sharedstatedir
699 sysconfdir
700 datadir
701 datarootdir
702 libexecdir
703 sbindir
704 bindir
705 program_transform_name
706 prefix
707 exec_prefix
708 PACKAGE_URL
709 PACKAGE_BUGREPORT
710 PACKAGE_STRING
711 PACKAGE_VERSION
712 PACKAGE_TARNAME
713 PACKAGE_NAME
714 PATH_SEPARATOR
715 SHELL'
716 ac_subst_files=''
717 ac_user_opts='
718 enable_option_checking
719 with_zlib
720 enable_maintainer_mode
721 enable_sim_bswap
722 enable_sim_cflags
723 enable_sim_debug
724 enable_sim_stdio
725 enable_sim_trace
726 enable_sim_profile
727 with_pkgversion
728 with_bugurl
729 enable_sim_endian
730 enable_sim_alignment
731 enable_sim_hostendian
732 enable_sim_default_model
733 enable_sim_environment
734 enable_sim_inline
735 enable_werror
736 enable_build_warnings
737 enable_sim_build_warnings
738 enable_sim_hardware
739 '
740       ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP
749 PKG_CONFIG
750 PKG_CONFIG_PATH
751 PKG_CONFIG_LIBDIR
752 SDL_CFLAGS
753 SDL_LIBS'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 ac_unrecognized_opts=
760 ac_unrecognized_sep=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808   # If the previous option needs an argument, assign it.
809   if test -n "$ac_prev"; then
810     eval $ac_prev=\$ac_option
811     ac_prev=
812     continue
813   fi
814
815   case $ac_option in
816   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817   *)    ac_optarg=yes ;;
818   esac
819
820   # Accept the important Cygnus configure options, so we can diagnose typos.
821
822   case $ac_dashdash$ac_option in
823   --)
824     ac_dashdash=yes ;;
825
826   -bindir | --bindir | --bindi | --bind | --bin | --bi)
827     ac_prev=bindir ;;
828   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829     bindir=$ac_optarg ;;
830
831   -build | --build | --buil | --bui | --bu)
832     ac_prev=build_alias ;;
833   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834     build_alias=$ac_optarg ;;
835
836   -cache-file | --cache-file | --cache-fil | --cache-fi \
837   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838     ac_prev=cache_file ;;
839   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841     cache_file=$ac_optarg ;;
842
843   --config-cache | -C)
844     cache_file=config.cache ;;
845
846   -datadir | --datadir | --datadi | --datad)
847     ac_prev=datadir ;;
848   -datadir=* | --datadir=* | --datadi=* | --datad=*)
849     datadir=$ac_optarg ;;
850
851   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852   | --dataroo | --dataro | --datar)
853     ac_prev=datarootdir ;;
854   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856     datarootdir=$ac_optarg ;;
857
858   -disable-* | --disable-*)
859     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860     # Reject names that are not valid shell variable names.
861     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862       as_fn_error "invalid feature name: $ac_useropt"
863     ac_useropt_orig=$ac_useropt
864     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865     case $ac_user_opts in
866       *"
867 "enable_$ac_useropt"
868 "*) ;;
869       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870          ac_unrecognized_sep=', ';;
871     esac
872     eval enable_$ac_useropt=no ;;
873
874   -docdir | --docdir | --docdi | --doc | --do)
875     ac_prev=docdir ;;
876   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877     docdir=$ac_optarg ;;
878
879   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880     ac_prev=dvidir ;;
881   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882     dvidir=$ac_optarg ;;
883
884   -enable-* | --enable-*)
885     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886     # Reject names that are not valid shell variable names.
887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888       as_fn_error "invalid feature name: $ac_useropt"
889     ac_useropt_orig=$ac_useropt
890     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891     case $ac_user_opts in
892       *"
893 "enable_$ac_useropt"
894 "*) ;;
895       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896          ac_unrecognized_sep=', ';;
897     esac
898     eval enable_$ac_useropt=\$ac_optarg ;;
899
900   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902   | --exec | --exe | --ex)
903     ac_prev=exec_prefix ;;
904   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906   | --exec=* | --exe=* | --ex=*)
907     exec_prefix=$ac_optarg ;;
908
909   -gas | --gas | --ga | --g)
910     # Obsolete; use --with-gas.
911     with_gas=yes ;;
912
913   -help | --help | --hel | --he | -h)
914     ac_init_help=long ;;
915   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916     ac_init_help=recursive ;;
917   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918     ac_init_help=short ;;
919
920   -host | --host | --hos | --ho)
921     ac_prev=host_alias ;;
922   -host=* | --host=* | --hos=* | --ho=*)
923     host_alias=$ac_optarg ;;
924
925   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926     ac_prev=htmldir ;;
927   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928   | --ht=*)
929     htmldir=$ac_optarg ;;
930
931   -includedir | --includedir | --includedi | --included | --include \
932   | --includ | --inclu | --incl | --inc)
933     ac_prev=includedir ;;
934   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935   | --includ=* | --inclu=* | --incl=* | --inc=*)
936     includedir=$ac_optarg ;;
937
938   -infodir | --infodir | --infodi | --infod | --info | --inf)
939     ac_prev=infodir ;;
940   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941     infodir=$ac_optarg ;;
942
943   -libdir | --libdir | --libdi | --libd)
944     ac_prev=libdir ;;
945   -libdir=* | --libdir=* | --libdi=* | --libd=*)
946     libdir=$ac_optarg ;;
947
948   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949   | --libexe | --libex | --libe)
950     ac_prev=libexecdir ;;
951   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952   | --libexe=* | --libex=* | --libe=*)
953     libexecdir=$ac_optarg ;;
954
955   -localedir | --localedir | --localedi | --localed | --locale)
956     ac_prev=localedir ;;
957   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958     localedir=$ac_optarg ;;
959
960   -localstatedir | --localstatedir | --localstatedi | --localstated \
961   | --localstate | --localstat | --localsta | --localst | --locals)
962     ac_prev=localstatedir ;;
963   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965     localstatedir=$ac_optarg ;;
966
967   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968     ac_prev=mandir ;;
969   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970     mandir=$ac_optarg ;;
971
972   -nfp | --nfp | --nf)
973     # Obsolete; use --without-fp.
974     with_fp=no ;;
975
976   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977   | --no-cr | --no-c | -n)
978     no_create=yes ;;
979
980   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982     no_recursion=yes ;;
983
984   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986   | --oldin | --oldi | --old | --ol | --o)
987     ac_prev=oldincludedir ;;
988   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991     oldincludedir=$ac_optarg ;;
992
993   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994     ac_prev=prefix ;;
995   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996     prefix=$ac_optarg ;;
997
998   -program-prefix | --program-prefix | --program-prefi | --program-pref \
999   | --program-pre | --program-pr | --program-p)
1000     ac_prev=program_prefix ;;
1001   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003     program_prefix=$ac_optarg ;;
1004
1005   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006   | --program-suf | --program-su | --program-s)
1007     ac_prev=program_suffix ;;
1008   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010     program_suffix=$ac_optarg ;;
1011
1012   -program-transform-name | --program-transform-name \
1013   | --program-transform-nam | --program-transform-na \
1014   | --program-transform-n | --program-transform- \
1015   | --program-transform | --program-transfor \
1016   | --program-transfo | --program-transf \
1017   | --program-trans | --program-tran \
1018   | --progr-tra | --program-tr | --program-t)
1019     ac_prev=program_transform_name ;;
1020   -program-transform-name=* | --program-transform-name=* \
1021   | --program-transform-nam=* | --program-transform-na=* \
1022   | --program-transform-n=* | --program-transform-=* \
1023   | --program-transform=* | --program-transfor=* \
1024   | --program-transfo=* | --program-transf=* \
1025   | --program-trans=* | --program-tran=* \
1026   | --progr-tra=* | --program-tr=* | --program-t=*)
1027     program_transform_name=$ac_optarg ;;
1028
1029   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030     ac_prev=pdfdir ;;
1031   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032     pdfdir=$ac_optarg ;;
1033
1034   -psdir | --psdir | --psdi | --psd | --ps)
1035     ac_prev=psdir ;;
1036   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037     psdir=$ac_optarg ;;
1038
1039   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040   | -silent | --silent | --silen | --sile | --sil)
1041     silent=yes ;;
1042
1043   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044     ac_prev=sbindir ;;
1045   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046   | --sbi=* | --sb=*)
1047     sbindir=$ac_optarg ;;
1048
1049   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051   | --sharedst | --shareds | --shared | --share | --shar \
1052   | --sha | --sh)
1053     ac_prev=sharedstatedir ;;
1054   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057   | --sha=* | --sh=*)
1058     sharedstatedir=$ac_optarg ;;
1059
1060   -site | --site | --sit)
1061     ac_prev=site ;;
1062   -site=* | --site=* | --sit=*)
1063     site=$ac_optarg ;;
1064
1065   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066     ac_prev=srcdir ;;
1067   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068     srcdir=$ac_optarg ;;
1069
1070   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071   | --syscon | --sysco | --sysc | --sys | --sy)
1072     ac_prev=sysconfdir ;;
1073   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075     sysconfdir=$ac_optarg ;;
1076
1077   -target | --target | --targe | --targ | --tar | --ta | --t)
1078     ac_prev=target_alias ;;
1079   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080     target_alias=$ac_optarg ;;
1081
1082   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083     verbose=yes ;;
1084
1085   -version | --version | --versio | --versi | --vers | -V)
1086     ac_init_version=: ;;
1087
1088   -with-* | --with-*)
1089     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092       as_fn_error "invalid package name: $ac_useropt"
1093     ac_useropt_orig=$ac_useropt
1094     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095     case $ac_user_opts in
1096       *"
1097 "with_$ac_useropt"
1098 "*) ;;
1099       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100          ac_unrecognized_sep=', ';;
1101     esac
1102     eval with_$ac_useropt=\$ac_optarg ;;
1103
1104   -without-* | --without-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       as_fn_error "invalid package name: $ac_useropt"
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval with_$ac_useropt=no ;;
1119
1120   --x)
1121     # Obsolete; use --with-x.
1122     with_x=yes ;;
1123
1124   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125   | --x-incl | --x-inc | --x-in | --x-i)
1126     ac_prev=x_includes ;;
1127   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129     x_includes=$ac_optarg ;;
1130
1131   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133     ac_prev=x_libraries ;;
1134   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136     x_libraries=$ac_optarg ;;
1137
1138   -*) as_fn_error "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information."
1140     ;;
1141
1142   *=*)
1143     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144     # Reject names that are not valid shell variable names.
1145     case $ac_envvar in #(
1146       '' | [0-9]* | *[!_$as_cr_alnum]* )
1147       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1148     esac
1149     eval $ac_envvar=\$ac_optarg
1150     export $ac_envvar ;;
1151
1152   *)
1153     # FIXME: should be removed in autoconf 3.0.
1154     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158     ;;
1159
1160   esac
1161 done
1162
1163 if test -n "$ac_prev"; then
1164   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165   as_fn_error "missing argument to $ac_option"
1166 fi
1167
1168 if test -n "$ac_unrecognized_opts"; then
1169   case $enable_option_checking in
1170     no) ;;
1171     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1172     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173   esac
1174 fi
1175
1176 # Check all directory arguments for consistency.
1177 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178                 datadir sysconfdir sharedstatedir localstatedir includedir \
1179                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180                 libdir localedir mandir
1181 do
1182   eval ac_val=\$$ac_var
1183   # Remove trailing slashes.
1184   case $ac_val in
1185     */ )
1186       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187       eval $ac_var=\$ac_val;;
1188   esac
1189   # Be sure to have absolute directory names.
1190   case $ac_val in
1191     [\\/$]* | ?:[\\/]* )  continue;;
1192     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193   esac
1194   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1195 done
1196
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1200 build=$build_alias
1201 host=$host_alias
1202 target=$target_alias
1203
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206   if test "x$build_alias" = x; then
1207     cross_compiling=maybe
1208     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1209     If a cross compiler is detected then cross compile mode will be used." >&2
1210   elif test "x$build_alias" != "x$host_alias"; then
1211     cross_compiling=yes
1212   fi
1213 fi
1214
1215 ac_tool_prefix=
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218 test "$silent" = yes && exec 6>/dev/null
1219
1220
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224   as_fn_error "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226   as_fn_error "pwd does not report name of working directory"
1227
1228
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231   ac_srcdir_defaulted=yes
1232   # Try the directory containing this script, then the parent directory.
1233   ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235          X"$as_myself" : 'X\(//\)[^/]' \| \
1236          X"$as_myself" : 'X\(//\)$' \| \
1237          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\/\)[^/].*/{
1244             s//\1/
1245             q
1246           }
1247           /^X\(\/\/\)$/{
1248             s//\1/
1249             q
1250           }
1251           /^X\(\/\).*/{
1252             s//\1/
1253             q
1254           }
1255           s/.*/./; q'`
1256   srcdir=$ac_confdir
1257   if test ! -r "$srcdir/$ac_unique_file"; then
1258     srcdir=..
1259   fi
1260 else
1261   ac_srcdir_defaulted=no
1262 fi
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1266 fi
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1270         pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273   srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283   eval ac_env_${ac_var}_value=\$${ac_var}
1284   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292   # Omit some internal or obsolete options to make the list less imposing.
1293   # This message is too long to be a string in the A/UX 3.1 sh.
1294   cat <<_ACEOF
1295 \`configure' configures this package to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305   -h, --help              display this help and exit
1306       --help=short        display options specific to this package
1307       --help=recursive    display the short help of all the included packages
1308   -V, --version           display version information and exit
1309   -q, --quiet, --silent   do not print \`checking...' messages
1310       --cache-file=FILE   cache test results in FILE [disabled]
1311   -C, --config-cache      alias for \`--cache-file=config.cache'
1312   -n, --no-create         do not create output files
1313       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316   --prefix=PREFIX         install architecture-independent files in PREFIX
1317                           [$ac_default_prefix]
1318   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                           [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329   --bindir=DIR            user executables [EPREFIX/bin]
1330   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1331   --libexecdir=DIR        program executables [EPREFIX/libexec]
1332   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1333   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1334   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1335   --libdir=DIR            object code libraries [EPREFIX/lib]
1336   --includedir=DIR        C header files [PREFIX/include]
1337   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1338   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1339   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1340   --infodir=DIR           info documentation [DATAROOTDIR/info]
1341   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1342   --mandir=DIR            man documentation [DATAROOTDIR/man]
1343   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1344   --htmldir=DIR           html documentation [DOCDIR]
1345   --dvidir=DIR            dvi documentation [DOCDIR]
1346   --pdfdir=DIR            pdf documentation [DOCDIR]
1347   --psdir=DIR             ps documentation [DOCDIR]
1348 _ACEOF
1349
1350   cat <<\_ACEOF
1351
1352 Program names:
1353   --program-prefix=PREFIX            prepend PREFIX to installed program names
1354   --program-suffix=SUFFIX            append SUFFIX to installed program names
1355   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1356
1357 System types:
1358   --build=BUILD     configure for building on BUILD [guessed]
1359   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1360   --target=TARGET   configure for building compilers for TARGET [HOST]
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365
1366   cat <<\_ACEOF
1367
1368 Optional Features:
1369   --disable-option-checking  ignore unrecognized --enable/--with options
1370   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1371   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1372   --enable-maintainer-mode              Enable developer functionality.
1373   --enable-sim-bswap                    Use Host specific BSWAP instruction.
1374   --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
1375   --enable-sim-debug=opts               Enable debugging flags
1376   --enable-sim-stdio                    Specify whether to use stdio for console input/output.
1377   --enable-sim-trace=opts               Enable tracing flags
1378   --enable-sim-profile=opts             Enable profiling flags
1379   --enable-sim-endian=endian            Specify target byte endian orientation.
1380   --enable-sim-alignment=align          Specify strict,  nonstrict or forced alignment of memory accesses.
1381   --enable-sim-hostendian=end           Specify host byte endian orientation.
1382   --enable-sim-default-model=model      Specify default model to simulate.
1383   --enable-sim-environment=environment  Specify mixed, user, virtual or operating environment.
1384   --enable-sim-inline=inlines           Specify which functions should be inlined.
1385   --enable-werror         treat compile warnings as errors
1386   --enable-build-warnings enable build-time compiler warnings if gcc is used
1387   --enable-sim-build-warnings
1388                           enable SIM specific build-time compiler warnings if
1389                           gcc is used
1390   --enable-sim-hardware=LIST            Specify the hardware to be included in the build.
1391
1392 Optional Packages:
1393   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1394   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1395   --with-zlib             include zlib support (auto/yes/no) default=auto
1396   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1397   --with-bugurl=URL       Direct users to URL to report a bug
1398
1399 Some influential environment variables:
1400   CC          C compiler command
1401   CFLAGS      C compiler flags
1402   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1403               nonstandard directory <lib dir>
1404   LIBS        libraries to pass to the linker, e.g. -l<library>
1405   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406               you have headers in a nonstandard directory <include dir>
1407   CPP         C preprocessor
1408   PKG_CONFIG  path to pkg-config utility
1409   PKG_CONFIG_PATH
1410               directories to add to pkg-config's search path
1411   PKG_CONFIG_LIBDIR
1412               path overriding pkg-config's built-in search path
1413   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1414   SDL_LIBS    linker flags for SDL, overriding pkg-config
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to the package provider.
1420 _ACEOF
1421 ac_status=$?
1422 fi
1423
1424 if test "$ac_init_help" = "recursive"; then
1425   # If there are subdirs, report their specific --help.
1426   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427     test -d "$ac_dir" ||
1428       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429       continue
1430     ac_builddir=.
1431
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *)
1435   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436   # A ".." for each directory in $ac_dir_suffix.
1437   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438   case $ac_top_builddir_sub in
1439   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441   esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1447
1448 case $srcdir in
1449   .)  # We are building in place.
1450     ac_srcdir=.
1451     ac_top_srcdir=$ac_top_builddir_sub
1452     ac_abs_top_srcdir=$ac_pwd ;;
1453   [\\/]* | ?:[\\/]* )  # Absolute name.
1454     ac_srcdir=$srcdir$ac_dir_suffix;
1455     ac_top_srcdir=$srcdir
1456     ac_abs_top_srcdir=$srcdir ;;
1457   *) # Relative name.
1458     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459     ac_top_srcdir=$ac_top_build_prefix$srcdir
1460     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464     cd "$ac_dir" || { ac_status=$?; continue; }
1465     # Check for guested configure.
1466     if test -f "$ac_srcdir/configure.gnu"; then
1467       echo &&
1468       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469     elif test -f "$ac_srcdir/configure"; then
1470       echo &&
1471       $SHELL "$ac_srcdir/configure" --help=recursive
1472     else
1473       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474     fi || ac_status=$?
1475     cd "$ac_pwd" || { ac_status=$?; break; }
1476   done
1477 fi
1478
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481   cat <<\_ACEOF
1482 configure
1483 generated by GNU Autoconf 2.64
1484
1485 Copyright (C) 2009 Free Software Foundation, Inc.
1486 This configure script is free software; the Free Software Foundation
1487 gives unlimited permission to copy, distribute and modify it.
1488 _ACEOF
1489   exit
1490 fi
1491
1492 ## ------------------------ ##
1493 ## Autoconf initialization. ##
1494 ## ------------------------ ##
1495
1496 # ac_fn_c_try_compile LINENO
1497 # --------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_c_try_compile ()
1500 {
1501   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502   rm -f conftest.$ac_objext
1503   if { { ac_try="$ac_compile"
1504 case "(($ac_try" in
1505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506   *) ac_try_echo=$ac_try;;
1507 esac
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510   (eval "$ac_compile") 2>conftest.err
1511   ac_status=$?
1512   if test -s conftest.err; then
1513     grep -v '^ *+' conftest.err >conftest.er1
1514     cat conftest.er1 >&5
1515     mv -f conftest.er1 conftest.err
1516   fi
1517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518   test $ac_status = 0; } && {
1519          test -z "$ac_c_werror_flag" ||
1520          test ! -s conftest.err
1521        } && test -s conftest.$ac_objext; then :
1522   ac_retval=0
1523 else
1524   $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1526
1527         ac_retval=1
1528 fi
1529   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1530   return $ac_retval
1531
1532 } # ac_fn_c_try_compile
1533
1534 # ac_fn_c_try_cpp LINENO
1535 # ----------------------
1536 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_cpp ()
1538 {
1539   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540   if { { ac_try="$ac_cpp conftest.$ac_ext"
1541 case "(($ac_try" in
1542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543   *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1548   ac_status=$?
1549   if test -s conftest.err; then
1550     grep -v '^ *+' conftest.err >conftest.er1
1551     cat conftest.er1 >&5
1552     mv -f conftest.er1 conftest.err
1553   fi
1554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555   test $ac_status = 0; } >/dev/null && {
1556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1557          test ! -s conftest.err
1558        }; then :
1559   ac_retval=0
1560 else
1561   $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564     ac_retval=1
1565 fi
1566   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567   return $ac_retval
1568
1569 } # ac_fn_c_try_cpp
1570
1571 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1572 # -------------------------------------------------------
1573 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1574 # the include files in INCLUDES and setting the cache variable VAR
1575 # accordingly.
1576 ac_fn_c_check_header_mongrel ()
1577 {
1578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581 $as_echo_n "checking for $2... " >&6; }
1582 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1583   $as_echo_n "(cached) " >&6
1584 fi
1585 eval ac_res=\$$3
1586                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1588 else
1589   # Is the header compilable?
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1591 $as_echo_n "checking $2 usability... " >&6; }
1592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593 /* end confdefs.h.  */
1594 $4
1595 #include <$2>
1596 _ACEOF
1597 if ac_fn_c_try_compile "$LINENO"; then :
1598   ac_header_compiler=yes
1599 else
1600   ac_header_compiler=no
1601 fi
1602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1604 $as_echo "$ac_header_compiler" >&6; }
1605
1606 # Is the header present?
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1608 $as_echo_n "checking $2 presence... " >&6; }
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h.  */
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_cpp "$LINENO"; then :
1614   ac_header_preproc=yes
1615 else
1616   ac_header_preproc=no
1617 fi
1618 rm -f conftest.err conftest.$ac_ext
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1620 $as_echo "$ac_header_preproc" >&6; }
1621
1622 # So?  What about this header?
1623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1624   yes:no: )
1625     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1626 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1627     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1628 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1629     ;;
1630   no:yes:* )
1631     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1632 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1633     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1634 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1635     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1636 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1637     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1638 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641     ;;
1642 esac
1643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1646   $as_echo_n "(cached) " >&6
1647 else
1648   eval "$3=\$ac_header_compiler"
1649 fi
1650 eval ac_res=\$$3
1651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 fi
1654   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655
1656 } # ac_fn_c_check_header_mongrel
1657
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1662 ac_fn_c_try_run ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_link") 2>&5
1673   ac_status=$?
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676   { { case "(($ac_try" in
1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678   *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682   (eval "$ac_try") 2>&5
1683   ac_status=$?
1684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685   test $ac_status = 0; }; }; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: program exited with status $ac_status" >&5
1689        $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692        ac_retval=$ac_status
1693 fi
1694   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696   return $ac_retval
1697
1698 } # ac_fn_c_try_run
1699
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1710   $as_echo_n "(cached) " >&6
1711 else
1712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h.  */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718   eval "$3=yes"
1719 else
1720   eval "$3=no"
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 fi
1724 eval ac_res=\$$3
1725                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728
1729 } # ac_fn_c_check_header_compile
1730
1731 # ac_fn_c_try_link LINENO
1732 # -----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_link ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   rm -f conftest.$ac_objext conftest$ac_exeext
1738   if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_link") 2>conftest.err
1746   ac_status=$?
1747   if test -s conftest.err; then
1748     grep -v '^ *+' conftest.err >conftest.er1
1749     cat conftest.er1 >&5
1750     mv -f conftest.er1 conftest.err
1751   fi
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; } && {
1754          test -z "$ac_c_werror_flag" ||
1755          test ! -s conftest.err
1756        } && test -s conftest$ac_exeext && {
1757          test "$cross_compiling" = yes ||
1758          $as_test_x conftest$ac_exeext
1759        }; then :
1760   ac_retval=0
1761 else
1762   $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765         ac_retval=1
1766 fi
1767   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769   # interfere with the next link command; also delete a directory that is
1770   # left behind by Apple's compiler.  We do this before executing the actions.
1771   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773   return $ac_retval
1774
1775 } # ac_fn_c_try_link
1776
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786   $as_echo_n "(cached) " >&6
1787 else
1788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1792 #define $2 innocuous_$2
1793
1794 /* System header to define __stub macros and hopefully few prototypes,
1795     which can conflict with char $2 (); below.
1796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797     <limits.h> exists even on freestanding compilers.  */
1798
1799 #ifdef __STDC__
1800 # include <limits.h>
1801 #else
1802 # include <assert.h>
1803 #endif
1804
1805 #undef $2
1806
1807 /* Override any GCC internal prototype to avoid an error.
1808    Use char because int might match the return type of a GCC
1809    builtin and then its argument prototype would still apply.  */
1810 #ifdef __cplusplus
1811 extern "C"
1812 #endif
1813 char $2 ();
1814 /* The GNU C library defines this for functions which it implements
1815     to always fail with ENOSYS.  Some functions are actually named
1816     something starting with __ and the normal name is an alias.  */
1817 #if defined __stub_$2 || defined __stub___$2
1818 choke me
1819 #endif
1820
1821 int
1822 main ()
1823 {
1824 return $2 ();
1825   ;
1826   return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_link "$LINENO"; then :
1830   eval "$3=yes"
1831 else
1832   eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext \
1835     conftest$ac_exeext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841
1842 } # ac_fn_c_check_func
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1846
1847 It was created by $as_me, which was
1848 generated by GNU Autoconf 2.64.  Invocation command line was
1849
1850   $ $0 $@
1851
1852 _ACEOF
1853 exec 5>>config.log
1854 {
1855 cat <<_ASUNAME
1856 ## --------- ##
1857 ## Platform. ##
1858 ## --------- ##
1859
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1865
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1868
1869 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1870 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1873 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1874 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1875 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1876
1877 _ASUNAME
1878
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884     $as_echo "PATH: $as_dir"
1885   done
1886 IFS=$as_save_IFS
1887
1888 } >&5
1889
1890 cat >&5 <<_ACEOF
1891
1892
1893 ## ----------- ##
1894 ## Core tests. ##
1895 ## ----------- ##
1896
1897 _ACEOF
1898
1899
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1905 ac_configure_args=
1906 ac_configure_args0=
1907 ac_configure_args1=
1908 ac_must_keep_next=false
1909 for ac_pass in 1 2
1910 do
1911   for ac_arg
1912   do
1913     case $ac_arg in
1914     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916     | -silent | --silent | --silen | --sile | --sil)
1917       continue ;;
1918     *\'*)
1919       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1920     esac
1921     case $ac_pass in
1922     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1923     2)
1924       as_fn_append ac_configure_args1 " '$ac_arg'"
1925       if test $ac_must_keep_next = true; then
1926         ac_must_keep_next=false # Got value, back to normal.
1927       else
1928         case $ac_arg in
1929           *=* | --config-cache | -C | -disable-* | --disable-* \
1930           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932           | -with-* | --with-* | -without-* | --without-* | --x)
1933             case "$ac_configure_args0 " in
1934               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1935             esac
1936             ;;
1937           -* ) ac_must_keep_next=true ;;
1938         esac
1939       fi
1940       as_fn_append ac_configure_args " '$ac_arg'"
1941       ;;
1942     esac
1943   done
1944 done
1945 { ac_configure_args0=; unset ac_configure_args0;}
1946 { ac_configure_args1=; unset ac_configure_args1;}
1947
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log.  We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954   # Save into config.log some information that might help in debugging.
1955   {
1956     echo
1957
1958     cat <<\_ASBOX
1959 ## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##
1962 _ASBOX
1963     echo
1964     # The following way of writing the cache mishandles newlines in values,
1965 (
1966   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967     eval ac_val=\$$ac_var
1968     case $ac_val in #(
1969     *${as_nl}*)
1970       case $ac_var in #(
1971       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1973       esac
1974       case $ac_var in #(
1975       _ | IFS | as_nl) ;; #(
1976       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1977       *) { eval $ac_var=; unset $ac_var;} ;;
1978       esac ;;
1979     esac
1980   done
1981   (set) 2>&1 |
1982     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983     *${as_nl}ac_space=\ *)
1984       sed -n \
1985         "s/'\''/'\''\\\\'\'''\''/g;
1986           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987       ;; #(
1988     *)
1989       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1990       ;;
1991     esac |
1992     sort
1993 )
1994     echo
1995
1996     cat <<\_ASBOX
1997 ## ----------------- ##
1998 ## Output variables. ##
1999 ## ----------------- ##
2000 _ASBOX
2001     echo
2002     for ac_var in $ac_subst_vars
2003     do
2004       eval ac_val=\$$ac_var
2005       case $ac_val in
2006       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007       esac
2008       $as_echo "$ac_var='\''$ac_val'\''"
2009     done | sort
2010     echo
2011
2012     if test -n "$ac_subst_files"; then
2013       cat <<\_ASBOX
2014 ## ------------------- ##
2015 ## File substitutions. ##
2016 ## ------------------- ##
2017 _ASBOX
2018       echo
2019       for ac_var in $ac_subst_files
2020       do
2021         eval ac_val=\$$ac_var
2022         case $ac_val in
2023         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024         esac
2025         $as_echo "$ac_var='\''$ac_val'\''"
2026       done | sort
2027       echo
2028     fi
2029
2030     if test -s confdefs.h; then
2031       cat <<\_ASBOX
2032 ## ----------- ##
2033 ## confdefs.h. ##
2034 ## ----------- ##
2035 _ASBOX
2036       echo
2037       cat confdefs.h
2038       echo
2039     fi
2040     test "$ac_signal" != 0 &&
2041       $as_echo "$as_me: caught signal $ac_signal"
2042     $as_echo "$as_me: exit $exit_status"
2043   } >&5
2044   rm -f core *.core core.conftest.* &&
2045     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046     exit $exit_status
2047 ' 0
2048 for ac_signal in 1 2 13 15; do
2049   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2050 done
2051 ac_signal=0
2052
2053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2054 rm -f -r conftest* confdefs.h
2055
2056 $as_echo "/* confdefs.h */" > confdefs.h
2057
2058 # Predefined preprocessor variables.
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2066 _ACEOF
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_STRING "$PACKAGE_STRING"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_URL "$PACKAGE_URL"
2082 _ACEOF
2083
2084
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer an explicitly selected file to automatically selected ones.
2087 ac_site_file1=NONE
2088 ac_site_file2=NONE
2089 if test -n "$CONFIG_SITE"; then
2090   ac_site_file1=$CONFIG_SITE
2091 elif test "x$prefix" != xNONE; then
2092   ac_site_file1=$prefix/share/config.site
2093   ac_site_file2=$prefix/etc/config.site
2094 else
2095   ac_site_file1=$ac_default_prefix/share/config.site
2096   ac_site_file2=$ac_default_prefix/etc/config.site
2097 fi
2098 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2099 do
2100   test "x$ac_site_file" = xNONE && continue
2101   if test -r "$ac_site_file"; then
2102     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2104     sed 's/^/| /' "$ac_site_file" >&5
2105     . "$ac_site_file"
2106   fi
2107 done
2108
2109 if test -r "$cache_file"; then
2110   # Some versions of bash will fail to source /dev/null (special
2111   # files actually), so we avoid doing that.
2112   if test -f "$cache_file"; then
2113     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2114 $as_echo "$as_me: loading cache $cache_file" >&6;}
2115     case $cache_file in
2116       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2117       *)                      . "./$cache_file";;
2118     esac
2119   fi
2120 else
2121   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2122 $as_echo "$as_me: creating cache $cache_file" >&6;}
2123   >$cache_file
2124 fi
2125
2126 # Check that the precious variables saved in the cache have kept the same
2127 # value.
2128 ac_cache_corrupted=false
2129 for ac_var in $ac_precious_vars; do
2130   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2131   eval ac_new_set=\$ac_env_${ac_var}_set
2132   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2133   eval ac_new_val=\$ac_env_${ac_var}_value
2134   case $ac_old_set,$ac_new_set in
2135     set,)
2136       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2138       ac_cache_corrupted=: ;;
2139     ,set)
2140       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2142       ac_cache_corrupted=: ;;
2143     ,);;
2144     *)
2145       if test "x$ac_old_val" != "x$ac_new_val"; then
2146         # differences in whitespace do not lead to failure.
2147         ac_old_val_w=`echo x $ac_old_val`
2148         ac_new_val_w=`echo x $ac_new_val`
2149         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2150           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2152           ac_cache_corrupted=:
2153         else
2154           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2156           eval $ac_var=\$ac_old_val
2157         fi
2158         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2159 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2160         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2161 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2162       fi;;
2163   esac
2164   # Pass precious variables to config.status.
2165   if test "$ac_new_set" = set; then
2166     case $ac_new_val in
2167     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2168     *) ac_arg=$ac_var=$ac_new_val ;;
2169     esac
2170     case " $ac_configure_args " in
2171       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2172       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2173     esac
2174   fi
2175 done
2176 if $ac_cache_corrupted; then
2177   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2182 fi
2183 ## -------------------- ##
2184 ## Main body of script. ##
2185 ## -------------------- ##
2186
2187 ac_ext=c
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192
2193
2194 # This file contains common code used by all simulators.
2195 #
2196 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2197 # directory.  It is intended to be invoked before any target specific stuff.
2198 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2199 # It is intended to be invoked last.
2200 #
2201 # The simulator's configure.in should look like:
2202 #
2203 # dnl Process this file with autoconf to produce a configure script.
2204 # AC_PREREQ(2.64)dnl
2205 # AC_INIT(Makefile.in)
2206 # sinclude(../common/aclocal.m4)
2207 #
2208 # SIM_AC_COMMON
2209 #
2210 # ... target specific stuff ...
2211 #
2212 # SIM_AC_OUTPUT
2213
2214 # Include global overrides and fixes for Autoconf.
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241 # _AC_CHECK_DECL_BODY
2242 # -------------------
2243 # Shell function body for AC_CHECK_DECL.
2244 # _AC_CHECK_DECL_BODY
2245
2246 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2247 #                 INCLUDES)
2248 # -------------------------------------------------------------
2249 # Helper to AC_CHECK_DECLS, which generates the check for a single
2250 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2251 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262 ##                                                          -*- Autoconf -*-
2263
2264 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
2265 # Free Software Foundation, Inc.
2266 #
2267 # This file is free software; the Free Software Foundation
2268 # gives unlimited permission to copy and/or distribute it,
2269 # with or without modifications, as long as this notice is preserved.
2270
2271 # serial 8
2272
2273 # Based on depend.m4 from automake 1.9, modified for standalone use in
2274 # an environment where GNU make is required.
2275
2276 # ZW_PROG_COMPILER_DEPENDENCIES
2277 # -----------------------------
2278 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
2279 # sets fooDEPMODE accordingly.  Cache-variable compatible with
2280 # original; not side-effect compatible.  As the users of this macro
2281 # may require accurate dependencies for correct builds, it does *not*
2282 # honor --disable-dependency-checking, and failure to detect a usable
2283 # method is an error.  depcomp is assumed to be located in
2284 # $ac_aux_dir.
2285 #
2286 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
2287
2288
2289
2290 # AM_SET_DEPDIR
2291 # -------------
2292 # Choose a directory name for dependency files.
2293
2294
2295 # ZW_CREATE_DEPDIR
2296 # ----------------
2297 # As AM_SET_DEPDIR, but also create the directory at config.status time.
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348 sim_inline="-DDEFAULT_INLINE=0"
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385 # intl sister-directory configuration rules.
2386 #
2387
2388 # The idea behind this macro is that there's no need to repeat all the
2389 # autoconf probes done by the intl directory - it's already done them
2390 # for us.  In fact, there's no need even to look at the cache for the
2391 # answers.  All we need to do is nab a few pieces of information.
2392 # The intl directory is set up to make this easy, by generating a
2393 # small file which can be sourced as a shell script; then we produce
2394 # the necessary substitutions and definitions for this directory.
2395
2396
2397
2398 # Autoconf M4 include file defining utility macros for complex Canadian
2399 # cross builds.
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409 ####
2410 # _NCN_TOOL_PREFIXES:  Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2411 # or AC_INIT.
2412 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2413
2414 ####
2415 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2416 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2417
2418
2419 ####
2420 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2421 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2422
2423
2424
2425 # Backported from Autoconf 2.5x; can go away when and if
2426 # we switch.  Put the OS path separator in $PATH_SEPARATOR.
2427
2428
2429
2430
2431 # ACX_HAVE_GCC_FOR_TARGET
2432 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2433
2434
2435 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2436 # Searching for installed target binutils.  We need to take extra care,
2437 # else we may find the wrong assembler, linker, etc., and lose.
2438 #
2439 # First try --with-build-time-tools, if specified.
2440 #
2441 # For build != host, we ask the installed GCC for the name of the tool it
2442 # uses, and accept it if it is an absolute path.  This is because the
2443 # only good choice for a compiler is the same GCC version that is being
2444 # installed (or we couldn't make target libraries), and we assume that
2445 # on the host system we'll have not only the same GCC version, but also
2446 # the same binutils version.
2447 #
2448 # For build == host, search the same directories that the installed
2449 # compiler will search.  We used to do this for the assembler, linker,
2450 # and nm only; for simplicity of configuration, however, we extend this
2451 # criterion to tools (such as ar and ranlib) that are never invoked by
2452 # the compiler, to avoid mismatches.
2453 #
2454 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2455 # if build == target.  This makes the most sense only when bootstrapping,
2456 # but we also do so when build != host.  In this case, we hope that the
2457 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2458 #
2459 # If we do not find a suitable binary, then try the user's path.
2460
2461
2462 ###
2463 # AC_PROG_CPP_WERROR
2464 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2465 # triggers warnings from the preprocessor.  Will be in autoconf 2.58.
2466 # For now, using this also overrides header checks to use only the
2467 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2468 # bit harder from here).
2469 # Eventually autoconf will default to checking headers with the compiler
2470 # instead, and we'll have to do this differently.
2471
2472 # AC_PROG_CPP_WERROR
2473
2474 # Test for GNAT.
2475 # We require the gnatbind & gnatmake programs, as well as a compiler driver
2476 # that understands Ada.  We use the user's CC setting, already found, and
2477 # possibly add $1 to the command-line parameters.
2478 #
2479 # Sets the shell variable have_gnat to yes or no as appropriate, and
2480 # substitutes GNATBIND and GNATMAKE.
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506 ac_ext=c
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 if test -n "$ac_tool_prefix"; then
2512   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then :
2517   $as_echo_n "(cached) " >&6
2518 else
2519   if test -n "$CC"; then
2520   ac_cv_prog_CC="$CC" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527     for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534   done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 CC=$ac_cv_prog_CC
2540 if test -n "$CC"; then
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2542 $as_echo "$CC" >&6; }
2543 else
2544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 fi
2547
2548
2549 fi
2550 if test -z "$ac_cv_prog_CC"; then
2551   ac_ct_CC=$CC
2552   # Extract the first word of "gcc", so it can be a program name with args.
2553 set dummy gcc; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   if test -n "$ac_ct_CC"; then
2560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567     for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_ac_ct_CC="gcc"
2570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574   done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580 if test -n "$ac_ct_CC"; then
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2582 $as_echo "$ac_ct_CC" >&6; }
2583 else
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588   if test "x$ac_ct_CC" = x; then
2589     CC=""
2590   else
2591     case $cross_compiling:$ac_tool_warned in
2592 yes:)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2595 ac_tool_warned=yes ;;
2596 esac
2597     CC=$ac_ct_CC
2598   fi
2599 else
2600   CC="$ac_cv_prog_CC"
2601 fi
2602
2603 if test -z "$CC"; then
2604           if test -n "$ac_tool_prefix"; then
2605     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2606 set dummy ${ac_tool_prefix}cc; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then :
2610   $as_echo_n "(cached) " >&6
2611 else
2612   if test -n "$CC"; then
2613   ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620     for ac_exec_ext in '' $ac_executable_extensions; do
2621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622     ac_cv_prog_CC="${ac_tool_prefix}cc"
2623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627   done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2635 $as_echo "$CC" >&6; }
2636 else
2637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641
2642   fi
2643 fi
2644 if test -z "$CC"; then
2645   # Extract the first word of "cc", so it can be a program name with args.
2646 set dummy cc; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if test "${ac_cv_prog_CC+set}" = set; then :
2650   $as_echo_n "(cached) " >&6
2651 else
2652   if test -n "$CC"; then
2653   ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655   ac_prog_rejected=no
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     for ac_exec_ext in '' $ac_executable_extensions; do
2662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2664        ac_prog_rejected=yes
2665        continue
2666      fi
2667     ac_cv_prog_CC="cc"
2668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669     break 2
2670   fi
2671 done
2672   done
2673 IFS=$as_save_IFS
2674
2675 if test $ac_prog_rejected = yes; then
2676   # We found a bogon in the path, so make sure we never use it.
2677   set dummy $ac_cv_prog_CC
2678   shift
2679   if test $# != 0; then
2680     # We chose a different compiler from the bogus one.
2681     # However, it has the same basename, so the bogon will be chosen
2682     # first if we set CC to just the basename; use the full file name.
2683     shift
2684     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2685   fi
2686 fi
2687 fi
2688 fi
2689 CC=$ac_cv_prog_CC
2690 if test -n "$CC"; then
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2693 else
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$CC"; then
2701   if test -n "$ac_tool_prefix"; then
2702   for ac_prog in cl.exe
2703   do
2704     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_CC+set}" = set; then :
2709   $as_echo_n "(cached) " >&6
2710 else
2711   if test -n "$CC"; then
2712   ac_cv_prog_CC="$CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719     for ac_exec_ext in '' $ac_executable_extensions; do
2720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726   done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 CC=$ac_cv_prog_CC
2732 if test -n "$CC"; then
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2734 $as_echo "$CC" >&6; }
2735 else
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740
2741     test -n "$CC" && break
2742   done
2743 fi
2744 if test -z "$CC"; then
2745   ac_ct_CC=$CC
2746   for ac_prog in cl.exe
2747 do
2748   # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy $ac_prog; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2753   $as_echo_n "(cached) " >&6
2754 else
2755   if test -n "$ac_ct_CC"; then
2756   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761   IFS=$as_save_IFS
2762   test -z "$as_dir" && as_dir=.
2763     for ac_exec_ext in '' $ac_executable_extensions; do
2764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765     ac_cv_prog_ac_ct_CC="$ac_prog"
2766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767     break 2
2768   fi
2769 done
2770   done
2771 IFS=$as_save_IFS
2772
2773 fi
2774 fi
2775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2778 $as_echo "$ac_ct_CC" >&6; }
2779 else
2780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 fi
2783
2784
2785   test -n "$ac_ct_CC" && break
2786 done
2787
2788   if test "x$ac_ct_CC" = x; then
2789     CC=""
2790   else
2791     case $cross_compiling:$ac_tool_warned in
2792 yes:)
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795 ac_tool_warned=yes ;;
2796 esac
2797     CC=$ac_ct_CC
2798   fi
2799 fi
2800
2801 fi
2802
2803
2804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806 as_fn_error "no acceptable C compiler found in \$PATH
2807 See \`config.log' for more details." "$LINENO" 5; }
2808
2809 # Provide some information about the compiler.
2810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2811 set X $ac_compile
2812 ac_compiler=$2
2813 for ac_option in --version -v -V -qversion; do
2814   { { ac_try="$ac_compiler $ac_option >&5"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2822   ac_status=$?
2823   if test -s conftest.err; then
2824     sed '10a\
2825 ... rest of stderr output deleted ...
2826          10q' conftest.err >conftest.er1
2827     cat conftest.er1 >&5
2828     rm -f conftest.er1 conftest.err
2829   fi
2830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831   test $ac_status = 0; }
2832 done
2833
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h.  */
2836
2837 int
2838 main ()
2839 {
2840
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 ac_clean_files_save=$ac_clean_files
2846 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2847 # Try to create an executable without -o first, disregard a.out.
2848 # It will help us diagnose broken compilers, and finding out an intuition
2849 # of exeext.
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2851 $as_echo_n "checking for C compiler default output file name... " >&6; }
2852 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2853
2854 # The possible output files:
2855 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2856
2857 ac_rmfiles=
2858 for ac_file in $ac_files
2859 do
2860   case $ac_file in
2861     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2862     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2863   esac
2864 done
2865 rm -f $ac_rmfiles
2866
2867 if { { ac_try="$ac_link_default"
2868 case "(($ac_try" in
2869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870   *) ac_try_echo=$ac_try;;
2871 esac
2872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2873 $as_echo "$ac_try_echo"; } >&5
2874   (eval "$ac_link_default") 2>&5
2875   ac_status=$?
2876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877   test $ac_status = 0; }; then :
2878   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2879 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2880 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2881 # so that the user can short-circuit this test for compilers unknown to
2882 # Autoconf.
2883 for ac_file in $ac_files ''
2884 do
2885   test -f "$ac_file" || continue
2886   case $ac_file in
2887     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2888         ;;
2889     [ab].out )
2890         # We found the default executable, but exeext='' is most
2891         # certainly right.
2892         break;;
2893     *.* )
2894         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2895         then :; else
2896            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897         fi
2898         # We set ac_cv_exeext here because the later test for it is not
2899         # safe: cross compilers may not add the suffix if given an `-o'
2900         # argument, so we may need to know it at that point already.
2901         # Even if this section looks crufty: it has the advantage of
2902         # actually working.
2903         break;;
2904     * )
2905         break;;
2906   esac
2907 done
2908 test "$ac_cv_exeext" = no && ac_cv_exeext=
2909
2910 else
2911   ac_file=''
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2914 $as_echo "$ac_file" >&6; }
2915 if test -z "$ac_file"; then :
2916   $as_echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { as_fn_set_status 77
2922 as_fn_error "C compiler cannot create executables
2923 See \`config.log' for more details." "$LINENO" 5; }; }
2924 fi
2925 ac_exeext=$ac_cv_exeext
2926
2927 # Check that the compiler produces executables we can run.  If not, either
2928 # the compiler is broken, or we cross compile.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2930 $as_echo_n "checking whether the C compiler works... " >&6; }
2931 # If not cross compiling, check that we can run a simple program.
2932 if test "$cross_compiling" != yes; then
2933   if { ac_try='./$ac_file'
2934   { { case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939 $as_echo "$ac_try_echo"; } >&5
2940   (eval "$ac_try") 2>&5
2941   ac_status=$?
2942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943   test $ac_status = 0; }; }; then
2944     cross_compiling=no
2945   else
2946     if test "$cross_compiling" = maybe; then
2947         cross_compiling=yes
2948     else
2949         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error "cannot run C compiled programs.
2952 If you meant to cross compile, use \`--host'.
2953 See \`config.log' for more details." "$LINENO" 5; }
2954     fi
2955   fi
2956 fi
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2959
2960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2961 ac_clean_files=$ac_clean_files_save
2962 # Check that the compiler produces executables we can run.  If not, either
2963 # the compiler is broken, or we cross compile.
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2965 $as_echo_n "checking whether we are cross compiling... " >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2967 $as_echo "$cross_compiling" >&6; }
2968
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2970 $as_echo_n "checking for suffix of executables... " >&6; }
2971 if { { ac_try="$ac_link"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978   (eval "$ac_link") 2>&5
2979   ac_status=$?
2980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981   test $ac_status = 0; }; then :
2982   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2983 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2984 # work properly (i.e., refer to `conftest.exe'), while it won't with
2985 # `rm'.
2986 for ac_file in conftest.exe conftest conftest.*; do
2987   test -f "$ac_file" || continue
2988   case $ac_file in
2989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991           break;;
2992     * ) break;;
2993   esac
2994 done
2995 else
2996   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 as_fn_error "cannot compute suffix of executables: cannot compile and link
2999 See \`config.log' for more details." "$LINENO" 5; }
3000 fi
3001 rm -f conftest$ac_cv_exeext
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3003 $as_echo "$ac_cv_exeext" >&6; }
3004
3005 rm -f conftest.$ac_ext
3006 EXEEXT=$ac_cv_exeext
3007 ac_exeext=$EXEEXT
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3009 $as_echo_n "checking for suffix of object files... " >&6; }
3010 if test "${ac_cv_objext+set}" = set; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.o conftest.obj
3025 if { { ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032   (eval "$ac_compile") 2>&5
3033   ac_status=$?
3034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035   test $ac_status = 0; }; then :
3036   for ac_file in conftest.o conftest.obj conftest.*; do
3037   test -f "$ac_file" || continue;
3038   case $ac_file in
3039     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3040     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3041        break;;
3042   esac
3043 done
3044 else
3045   $as_echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error "cannot compute suffix of object files: cannot compile
3051 See \`config.log' for more details." "$LINENO" 5; }
3052 fi
3053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3056 $as_echo "$ac_cv_objext" >&6; }
3057 OBJEXT=$ac_cv_objext
3058 ac_objext=$OBJEXT
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3060 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3061 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070 #ifndef __GNUC__
3071        choke me
3072 #endif
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 if ac_fn_c_try_compile "$LINENO"; then :
3079   ac_compiler_gnu=yes
3080 else
3081   ac_compiler_gnu=no
3082 fi
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3085
3086 fi
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3088 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3089 if test $ac_compiler_gnu = yes; then
3090   GCC=yes
3091 else
3092   GCC=
3093 fi
3094 ac_test_CFLAGS=${CFLAGS+set}
3095 ac_save_CFLAGS=$CFLAGS
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3097 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3098 if test "${ac_cv_prog_cc_g+set}" = set; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   ac_save_c_werror_flag=$ac_c_werror_flag
3102    ac_c_werror_flag=yes
3103    ac_cv_prog_cc_g=no
3104    CFLAGS="-g"
3105    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117   ac_cv_prog_cc_g=yes
3118 else
3119   CFLAGS=""
3120       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 if ac_fn_c_try_compile "$LINENO"; then :
3132
3133 else
3134   ac_c_werror_flag=$ac_save_c_werror_flag
3135          CFLAGS="-g"
3136          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h.  */
3138
3139 int
3140 main ()
3141 {
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 if ac_fn_c_try_compile "$LINENO"; then :
3148   ac_cv_prog_cc_g=yes
3149 fi
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 fi
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 fi
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155    ac_c_werror_flag=$ac_save_c_werror_flag
3156 fi
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3158 $as_echo "$ac_cv_prog_cc_g" >&6; }
3159 if test "$ac_test_CFLAGS" = set; then
3160   CFLAGS=$ac_save_CFLAGS
3161 elif test $ac_cv_prog_cc_g = yes; then
3162   if test "$GCC" = yes; then
3163     CFLAGS="-g -O2"
3164   else
3165     CFLAGS="-g"
3166   fi
3167 else
3168   if test "$GCC" = yes; then
3169     CFLAGS="-O2"
3170   else
3171     CFLAGS=
3172   fi
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3175 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3176 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3177   $as_echo_n "(cached) " >&6
3178 else
3179   ac_cv_prog_cc_c89=no
3180 ac_save_CC=$CC
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h.  */
3183 #include <stdarg.h>
3184 #include <stdio.h>
3185 #include <sys/types.h>
3186 #include <sys/stat.h>
3187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3188 struct buf { int x; };
3189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3190 static char *e (p, i)
3191      char **p;
3192      int i;
3193 {
3194   return p[i];
3195 }
3196 static char *f (char * (*g) (char **, int), char **p, ...)
3197 {
3198   char *s;
3199   va_list v;
3200   va_start (v,p);
3201   s = g (p, va_arg (v,int));
3202   va_end (v);
3203   return s;
3204 }
3205
3206 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3207    function prototypes and stuff, but not '\xHH' hex character constants.
3208    These don't provoke an error unfortunately, instead are silently treated
3209    as 'x'.  The following induces an error, until -std is added to get
3210    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3211    array size at least.  It's necessary to write '\x00'==0 to get something
3212    that's true only with -std.  */
3213 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3214
3215 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3216    inside strings and character constants.  */
3217 #define FOO(x) 'x'
3218 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3219
3220 int test (int i, double x);
3221 struct s1 {int (*f) (int a);};
3222 struct s2 {int (*f) (double a);};
3223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3224 int argc;
3225 char **argv;
3226 int
3227 main ()
3228 {
3229 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3235         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3236 do
3237   CC="$ac_save_CC $ac_arg"
3238   if ac_fn_c_try_compile "$LINENO"; then :
3239   ac_cv_prog_cc_c89=$ac_arg
3240 fi
3241 rm -f core conftest.err conftest.$ac_objext
3242   test "x$ac_cv_prog_cc_c89" != "xno" && break
3243 done
3244 rm -f conftest.$ac_ext
3245 CC=$ac_save_CC
3246
3247 fi
3248 # AC_CACHE_VAL
3249 case "x$ac_cv_prog_cc_c89" in
3250   x)
3251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3252 $as_echo "none needed" >&6; } ;;
3253   xno)
3254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3255 $as_echo "unsupported" >&6; } ;;
3256   *)
3257     CC="$CC $ac_cv_prog_cc_c89"
3258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3259 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3260 esac
3261 if test "x$ac_cv_prog_cc_c89" != xno; then :
3262
3263 fi
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271 ac_aux_dir=
3272 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3273   for ac_t in install-sh install.sh shtool; do
3274     if test -f "$ac_dir/$ac_t"; then
3275       ac_aux_dir=$ac_dir
3276       ac_install_sh="$ac_aux_dir/$ac_t -c"
3277       break 2
3278     fi
3279   done
3280 done
3281 if test -z "$ac_aux_dir"; then
3282   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3283 fi
3284
3285 # These three variables are undocumented and unsupported,
3286 # and are intended to be withdrawn in a future Autoconf release.
3287 # They can cause serious problems if a builder's source tree is in a directory
3288 # whose full name contains unusual characters.
3289 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3290 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3291 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3292
3293
3294 # Make sure we can run config.sub.
3295 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3296   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3297
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3299 $as_echo_n "checking build system type... " >&6; }
3300 if test "${ac_cv_build+set}" = set; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   ac_build_alias=$build_alias
3304 test "x$ac_build_alias" = x &&
3305   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3306 test "x$ac_build_alias" = x &&
3307   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3308 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3309   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3310
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3313 $as_echo "$ac_cv_build" >&6; }
3314 case $ac_cv_build in
3315 *-*-*) ;;
3316 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3317 esac
3318 build=$ac_cv_build
3319 ac_save_IFS=$IFS; IFS='-'
3320 set x $ac_cv_build
3321 shift
3322 build_cpu=$1
3323 build_vendor=$2
3324 shift; shift
3325 # Remember, the first character of IFS is used to create $*,
3326 # except with old shells:
3327 build_os=$*
3328 IFS=$ac_save_IFS
3329 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3330
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3333 $as_echo_n "checking host system type... " >&6; }
3334 if test "${ac_cv_host+set}" = set; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   if test "x$host_alias" = x; then
3338   ac_cv_host=$ac_cv_build
3339 else
3340   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3341     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3342 fi
3343
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3346 $as_echo "$ac_cv_host" >&6; }
3347 case $ac_cv_host in
3348 *-*-*) ;;
3349 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3350 esac
3351 host=$ac_cv_host
3352 ac_save_IFS=$IFS; IFS='-'
3353 set x $ac_cv_host
3354 shift
3355 host_cpu=$1
3356 host_vendor=$2
3357 shift; shift
3358 # Remember, the first character of IFS is used to create $*,
3359 # except with old shells:
3360 host_os=$*
3361 IFS=$ac_save_IFS
3362 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3363
3364
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3366 $as_echo_n "checking target system type... " >&6; }
3367 if test "${ac_cv_target+set}" = set; then :
3368   $as_echo_n "(cached) " >&6
3369 else
3370   if test "x$target_alias" = x; then
3371   ac_cv_target=$ac_cv_host
3372 else
3373   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3374     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3375 fi
3376
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3379 $as_echo "$ac_cv_target" >&6; }
3380 case $ac_cv_target in
3381 *-*-*) ;;
3382 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3383 esac
3384 target=$ac_cv_target
3385 ac_save_IFS=$IFS; IFS='-'
3386 set x $ac_cv_target
3387 shift
3388 target_cpu=$1
3389 target_vendor=$2
3390 shift; shift
3391 # Remember, the first character of IFS is used to create $*,
3392 # except with old shells:
3393 target_os=$*
3394 IFS=$ac_save_IFS
3395 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3396
3397
3398 # The aliases save the names the user supplied, while $host etc.
3399 # will get canonicalized.
3400 test -n "$target_alias" &&
3401   test "$program_prefix$program_suffix$program_transform_name" = \
3402     NONENONEs,x,x, &&
3403   program_prefix=${target_alias}-
3404
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3411 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3412 # On Suns, sometimes $CPP names a directory.
3413 if test -n "$CPP" && test -d "$CPP"; then
3414   CPP=
3415 fi
3416 if test -z "$CPP"; then
3417   if test "${ac_cv_prog_CPP+set}" = set; then :
3418   $as_echo_n "(cached) " >&6
3419 else
3420       # Double quotes because CPP needs to be expanded
3421     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3422     do
3423       ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3425 do
3426   # Use a header file that comes with gcc, so configuring glibc
3427   # with a fresh cross-compiler works.
3428   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429   # <limits.h> exists even on freestanding compilers.
3430   # On the NeXT, cc -E runs the code through the compiler's parser,
3431   # not just through cpp. "Syntax error" is here to catch this case.
3432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434 #ifdef __STDC__
3435 # include <limits.h>
3436 #else
3437 # include <assert.h>
3438 #endif
3439                      Syntax error
3440 _ACEOF
3441 if ac_fn_c_try_cpp "$LINENO"; then :
3442
3443 else
3444   # Broken: fails on valid input.
3445 continue
3446 fi
3447 rm -f conftest.err conftest.$ac_ext
3448
3449   # OK, works on sane cases.  Now check whether nonexistent headers
3450   # can be detected and how.
3451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h.  */
3453 #include <ac_nonexistent.h>
3454 _ACEOF
3455 if ac_fn_c_try_cpp "$LINENO"; then :
3456   # Broken: success on invalid input.
3457 continue
3458 else
3459   # Passes both tests.
3460 ac_preproc_ok=:
3461 break
3462 fi
3463 rm -f conftest.err conftest.$ac_ext
3464
3465 done
3466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467 rm -f conftest.err conftest.$ac_ext
3468 if $ac_preproc_ok; then :
3469   break
3470 fi
3471
3472     done
3473     ac_cv_prog_CPP=$CPP
3474
3475 fi
3476   CPP=$ac_cv_prog_CPP
3477 else
3478   ac_cv_prog_CPP=$CPP
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3481 $as_echo "$CPP" >&6; }
3482 ac_preproc_ok=false
3483 for ac_c_preproc_warn_flag in '' yes
3484 do
3485   # Use a header file that comes with gcc, so configuring glibc
3486   # with a fresh cross-compiler works.
3487   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3488   # <limits.h> exists even on freestanding compilers.
3489   # On the NeXT, cc -E runs the code through the compiler's parser,
3490   # not just through cpp. "Syntax error" is here to catch this case.
3491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h.  */
3493 #ifdef __STDC__
3494 # include <limits.h>
3495 #else
3496 # include <assert.h>
3497 #endif
3498                      Syntax error
3499 _ACEOF
3500 if ac_fn_c_try_cpp "$LINENO"; then :
3501
3502 else
3503   # Broken: fails on valid input.
3504 continue
3505 fi
3506 rm -f conftest.err conftest.$ac_ext
3507
3508   # OK, works on sane cases.  Now check whether nonexistent headers
3509   # can be detected and how.
3510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512 #include <ac_nonexistent.h>
3513 _ACEOF
3514 if ac_fn_c_try_cpp "$LINENO"; then :
3515   # Broken: success on invalid input.
3516 continue
3517 else
3518   # Passes both tests.
3519 ac_preproc_ok=:
3520 break
3521 fi
3522 rm -f conftest.err conftest.$ac_ext
3523
3524 done
3525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526 rm -f conftest.err conftest.$ac_ext
3527 if $ac_preproc_ok; then :
3528
3529 else
3530   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3533 See \`config.log' for more details." "$LINENO" 5; }
3534 fi
3535
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541
3542
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3544 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3545 if test "${ac_cv_path_GREP+set}" = set; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   if test -z "$GREP"; then
3549   ac_path_GREP_found=false
3550   # Loop through the user's path and test for each of PROGNAME-LIST
3551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556     for ac_prog in grep ggrep; do
3557     for ac_exec_ext in '' $ac_executable_extensions; do
3558       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3559       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3560 # Check for GNU ac_path_GREP and select it if it is found.
3561   # Check for GNU $ac_path_GREP
3562 case `"$ac_path_GREP" --version 2>&1` in
3563 *GNU*)
3564   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3565 *)
3566   ac_count=0
3567   $as_echo_n 0123456789 >"conftest.in"
3568   while :
3569   do
3570     cat "conftest.in" "conftest.in" >"conftest.tmp"
3571     mv "conftest.tmp" "conftest.in"
3572     cp "conftest.in" "conftest.nl"
3573     $as_echo 'GREP' >> "conftest.nl"
3574     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3575     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3576     as_fn_arith $ac_count + 1 && ac_count=$as_val
3577     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3578       # Best one so far, save it but keep looking for a better one
3579       ac_cv_path_GREP="$ac_path_GREP"
3580       ac_path_GREP_max=$ac_count
3581     fi
3582     # 10*(2^10) chars as input seems more than enough
3583     test $ac_count -gt 10 && break
3584   done
3585   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3586 esac
3587
3588       $ac_path_GREP_found && break 3
3589     done
3590   done
3591   done
3592 IFS=$as_save_IFS
3593   if test -z "$ac_cv_path_GREP"; then
3594     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3595   fi
3596 else
3597   ac_cv_path_GREP=$GREP
3598 fi
3599
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3602 $as_echo "$ac_cv_path_GREP" >&6; }
3603  GREP="$ac_cv_path_GREP"
3604
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3607 $as_echo_n "checking for egrep... " >&6; }
3608 if test "${ac_cv_path_EGREP+set}" = set; then :
3609   $as_echo_n "(cached) " >&6
3610 else
3611   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3612    then ac_cv_path_EGREP="$GREP -E"
3613    else
3614      if test -z "$EGREP"; then
3615   ac_path_EGREP_found=false
3616   # Loop through the user's path and test for each of PROGNAME-LIST
3617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619 do
3620   IFS=$as_save_IFS
3621   test -z "$as_dir" && as_dir=.
3622     for ac_prog in egrep; do
3623     for ac_exec_ext in '' $ac_executable_extensions; do
3624       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3625       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3626 # Check for GNU ac_path_EGREP and select it if it is found.
3627   # Check for GNU $ac_path_EGREP
3628 case `"$ac_path_EGREP" --version 2>&1` in
3629 *GNU*)
3630   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3631 *)
3632   ac_count=0
3633   $as_echo_n 0123456789 >"conftest.in"
3634   while :
3635   do
3636     cat "conftest.in" "conftest.in" >"conftest.tmp"
3637     mv "conftest.tmp" "conftest.in"
3638     cp "conftest.in" "conftest.nl"
3639     $as_echo 'EGREP' >> "conftest.nl"
3640     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3642     as_fn_arith $ac_count + 1 && ac_count=$as_val
3643     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3644       # Best one so far, save it but keep looking for a better one
3645       ac_cv_path_EGREP="$ac_path_EGREP"
3646       ac_path_EGREP_max=$ac_count
3647     fi
3648     # 10*(2^10) chars as input seems more than enough
3649     test $ac_count -gt 10 && break
3650   done
3651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3652 esac
3653
3654       $ac_path_EGREP_found && break 3
3655     done
3656   done
3657   done
3658 IFS=$as_save_IFS
3659   if test -z "$ac_cv_path_EGREP"; then
3660     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3661   fi
3662 else
3663   ac_cv_path_EGREP=$EGREP
3664 fi
3665
3666    fi
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3669 $as_echo "$ac_cv_path_EGREP" >&6; }
3670  EGREP="$ac_cv_path_EGREP"
3671
3672
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3674 $as_echo_n "checking for ANSI C header files... " >&6; }
3675 if test "${ac_cv_header_stdc+set}" = set; then :
3676   $as_echo_n "(cached) " >&6
3677 else
3678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h.  */
3680 #include <stdlib.h>
3681 #include <stdarg.h>
3682 #include <string.h>
3683 #include <float.h>
3684
3685 int
3686 main ()
3687 {
3688
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694   ac_cv_header_stdc=yes
3695 else
3696   ac_cv_header_stdc=no
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699
3700 if test $ac_cv_header_stdc = yes; then
3701   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704 #include <string.h>
3705
3706 _ACEOF
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708   $EGREP "memchr" >/dev/null 2>&1; then :
3709
3710 else
3711   ac_cv_header_stdc=no
3712 fi
3713 rm -f conftest*
3714
3715 fi
3716
3717 if test $ac_cv_header_stdc = yes; then
3718   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h.  */
3721 #include <stdlib.h>
3722
3723 _ACEOF
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725   $EGREP "free" >/dev/null 2>&1; then :
3726
3727 else
3728   ac_cv_header_stdc=no
3729 fi
3730 rm -f conftest*
3731
3732 fi
3733
3734 if test $ac_cv_header_stdc = yes; then
3735   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3736   if test "$cross_compiling" = yes; then :
3737   :
3738 else
3739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741 #include <ctype.h>
3742 #include <stdlib.h>
3743 #if ((' ' & 0x0FF) == 0x020)
3744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3746 #else
3747 # define ISLOWER(c) \
3748                    (('a' <= (c) && (c) <= 'i') \
3749                      || ('j' <= (c) && (c) <= 'r') \
3750                      || ('s' <= (c) && (c) <= 'z'))
3751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3752 #endif
3753
3754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3755 int
3756 main ()
3757 {
3758   int i;
3759   for (i = 0; i < 256; i++)
3760     if (XOR (islower (i), ISLOWER (i))
3761         || toupper (i) != TOUPPER (i))
3762       return 2;
3763   return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_run "$LINENO"; then :
3767
3768 else
3769   ac_cv_header_stdc=no
3770 fi
3771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3772   conftest.$ac_objext conftest.beam conftest.$ac_ext
3773 fi
3774
3775 fi
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3778 $as_echo "$ac_cv_header_stdc" >&6; }
3779 if test $ac_cv_header_stdc = yes; then
3780
3781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3782
3783 fi
3784
3785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3786 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3787                   inttypes.h stdint.h unistd.h
3788 do :
3789   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3791 "
3792 eval as_val=\$$as_ac_Header
3793    if test "x$as_val" = x""yes; then :
3794   cat >>confdefs.h <<_ACEOF
3795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3796 _ACEOF
3797
3798 fi
3799
3800 done
3801
3802
3803
3804   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3805 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3806   MINIX=yes
3807 else
3808   MINIX=
3809 fi
3810
3811
3812   if test "$MINIX" = yes; then
3813
3814 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3815
3816
3817 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3818
3819
3820 $as_echo "#define _MINIX 1" >>confdefs.h
3821
3822   fi
3823
3824
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3826 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3827 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832
3833 #         define __EXTENSIONS__ 1
3834           $ac_includes_default
3835 int
3836 main ()
3837 {
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844   ac_cv_safe_to_define___extensions__=yes
3845 else
3846   ac_cv_safe_to_define___extensions__=no
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3851 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3852   test $ac_cv_safe_to_define___extensions__ = yes &&
3853     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3854
3855   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3856
3857   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3858
3859   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3860
3861   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3862
3863
3864 test "$program_prefix" != NONE &&
3865   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3866 # Use a double $ so make ignores it.
3867 test "$program_suffix" != NONE &&
3868   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3869 # Double any \ or $.
3870 # By default was `s,x,x', remove it if useless.
3871 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3872 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3873
3874 # Find a good install program.  We prefer a C program (faster),
3875 # so one script is as good as another.  But avoid the broken or
3876 # incompatible versions:
3877 # SysV /etc/install, /usr/sbin/install
3878 # SunOS /usr/etc/install
3879 # IRIX /sbin/install
3880 # AIX /bin/install
3881 # AmigaOS /C/install, which installs bootblocks on floppy discs
3882 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3883 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3884 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3885 # OS/2's system install, which has a completely different semantic
3886 # ./install, which can be erroneously created by make from ./install.sh.
3887 # Reject install programs that cannot install multiple files.
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3889 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3890 if test -z "$INSTALL"; then
3891 if test "${ac_cv_path_install+set}" = set; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897   IFS=$as_save_IFS
3898   test -z "$as_dir" && as_dir=.
3899     # Account for people who put trailing slashes in PATH elements.
3900 case $as_dir/ in #((
3901   ./ | .// | /[cC]/* | \
3902   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3903   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3904   /usr/ucb/* ) ;;
3905   *)
3906     # OSF1 and SCO ODT 3.0 have their own names for install.
3907     # Don't use installbsd from OSF since it installs stuff as root
3908     # by default.
3909     for ac_prog in ginstall scoinst install; do
3910       for ac_exec_ext in '' $ac_executable_extensions; do
3911         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3912           if test $ac_prog = install &&
3913             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3914             # AIX install.  It has an incompatible calling convention.
3915             :
3916           elif test $ac_prog = install &&
3917             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3918             # program-specific install script used by HP pwplus--don't use.
3919             :
3920           else
3921             rm -rf conftest.one conftest.two conftest.dir
3922             echo one > conftest.one
3923             echo two > conftest.two
3924             mkdir conftest.dir
3925             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3926               test -s conftest.one && test -s conftest.two &&
3927               test -s conftest.dir/conftest.one &&
3928               test -s conftest.dir/conftest.two
3929             then
3930               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3931               break 3
3932             fi
3933           fi
3934         fi
3935       done
3936     done
3937     ;;
3938 esac
3939
3940   done
3941 IFS=$as_save_IFS
3942
3943 rm -rf conftest.one conftest.two conftest.dir
3944
3945 fi
3946   if test "${ac_cv_path_install+set}" = set; then
3947     INSTALL=$ac_cv_path_install
3948   else
3949     # As a last resort, use the slow shell script.  Don't cache a
3950     # value for INSTALL within a source directory, because that will
3951     # break other packages using the cache if that directory is
3952     # removed, or if the value is a relative name.
3953     INSTALL=$ac_install_sh
3954   fi
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3957 $as_echo "$INSTALL" >&6; }
3958
3959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3960 # It thinks the first close brace ends the variable substitution.
3961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962
3963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964
3965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3966
3967 rm -rf .tst 2>/dev/null
3968 mkdir .tst 2>/dev/null
3969 if test -d .tst; then
3970   am__leading_dot=.
3971 else
3972   am__leading_dot=_
3973 fi
3974 rmdir .tst 2>/dev/null
3975
3976 DEPDIR="${am__leading_dot}deps"
3977
3978
3979
3980 # autoconf.info says this should be called right after AC_INIT.
3981 ac_config_headers="$ac_config_headers config.h:config.in"
3982
3983
3984
3985
3986
3987
3988 # Put a plausible default for CC_FOR_BUILD in Makefile.
3989 if test "x$cross_compiling" = "xno"; then
3990   CC_FOR_BUILD='$(CC)'
3991 else
3992   CC_FOR_BUILD=gcc
3993 fi
3994
3995
3996
3997
3998 AR=${AR-ar}
3999
4000 if test -n "$ac_tool_prefix"; then
4001   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4006   $as_echo_n "(cached) " >&6
4007 else
4008   if test -n "$RANLIB"; then
4009   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4010 else
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014   IFS=$as_save_IFS
4015   test -z "$as_dir" && as_dir=.
4016     for ac_exec_ext in '' $ac_executable_extensions; do
4017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020     break 2
4021   fi
4022 done
4023   done
4024 IFS=$as_save_IFS
4025
4026 fi
4027 fi
4028 RANLIB=$ac_cv_prog_RANLIB
4029 if test -n "$RANLIB"; then
4030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4031 $as_echo "$RANLIB" >&6; }
4032 else
4033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 $as_echo "no" >&6; }
4035 fi
4036
4037
4038 fi
4039 if test -z "$ac_cv_prog_RANLIB"; then
4040   ac_ct_RANLIB=$RANLIB
4041   # Extract the first word of "ranlib", so it can be a program name with args.
4042 set dummy ranlib; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   if test -n "$ac_ct_RANLIB"; then
4049   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056     for ac_exec_ext in '' $ac_executable_extensions; do
4057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4058     ac_cv_prog_ac_ct_RANLIB="ranlib"
4059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063   done
4064 IFS=$as_save_IFS
4065
4066 fi
4067 fi
4068 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4069 if test -n "$ac_ct_RANLIB"; then
4070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4071 $as_echo "$ac_ct_RANLIB" >&6; }
4072 else
4073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4075 fi
4076
4077   if test "x$ac_ct_RANLIB" = x; then
4078     RANLIB=":"
4079   else
4080     case $cross_compiling:$ac_tool_warned in
4081 yes:)
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4084 ac_tool_warned=yes ;;
4085 esac
4086     RANLIB=$ac_ct_RANLIB
4087   fi
4088 else
4089   RANLIB="$ac_cv_prog_RANLIB"
4090 fi
4091
4092
4093 # Dependency checking.
4094 ac_config_commands="$ac_config_commands depdir"
4095
4096
4097 depcc="$CC"   am_compiler_list=
4098
4099 am_depcomp=$ac_aux_dir/depcomp
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4101 $as_echo_n "checking dependency style of $depcc... " >&6; }
4102 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4103   $as_echo_n "(cached) " >&6
4104 else
4105   if test -f "$am_depcomp"; then
4106   # We make a subdir and do the tests there.  Otherwise we can end up
4107   # making bogus files that we don't know about and never remove.  For
4108   # instance it was reported that on HP-UX the gcc test will end up
4109   # making a dummy file named `D' -- because `-MD' means `put the output
4110   # in D'.
4111   mkdir conftest.dir
4112   # Copy depcomp to subdir because otherwise we won't find it if we're
4113   # using a relative directory.
4114   cp "$am_depcomp" conftest.dir
4115   cd conftest.dir
4116   # We will build objects and dependencies in a subdirectory because
4117   # it helps to detect inapplicable dependency modes.  For instance
4118   # both Tru64's cc and ICC support -MD to output dependencies as a
4119   # side effect of compilation, but ICC will put the dependencies in
4120   # the current directory while Tru64 will put them in the object
4121   # directory.
4122   mkdir sub
4123
4124   am_cv_CC_dependencies_compiler_type=none
4125   if test "$am_compiler_list" = ""; then
4126      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4127   fi
4128   for depmode in $am_compiler_list; do
4129     if test $depmode = none; then break; fi
4130
4131     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4132     # Setup a source with many dependencies, because some compilers
4133     # like to wrap large dependency lists on column 80 (with \), and
4134     # we should not choose a depcomp mode which is confused by this.
4135     #
4136     # We need to recreate these files for each test, as the compiler may
4137     # overwrite some of them when testing with obscure command lines.
4138     # This happens at least with the AIX C compiler.
4139     : > sub/conftest.c
4140     for i in 1 2 3 4 5 6; do
4141       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4142       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4143       # Solaris 8's {/usr,}/bin/sh.
4144       touch sub/conftst$i.h
4145     done
4146     echo "include sub/conftest.Po" > confmf
4147
4148     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4149     # mode.  It turns out that the SunPro C++ compiler does not properly
4150     # handle `-M -o', and we need to detect this.
4151     depcmd="depmode=$depmode \
4152        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4153        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4154        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4155     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4156     if env $depcmd > conftest.err 2>&1 &&
4157        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4158        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4159        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4160       # icc doesn't choke on unknown options, it will just issue warnings
4161       # or remarks (even with -Werror).  So we grep stderr for any message
4162       # that says an option was ignored or not supported.
4163       # When given -MP, icc 7.0 and 7.1 complain thusly:
4164       #   icc: Command line warning: ignoring option '-M'; no argument required
4165       # The diagnosis changed in icc 8.0:
4166       #   icc: Command line remark: option '-MP' not supported
4167       if (grep 'ignoring option' conftest.err ||
4168           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4169         am_cv_CC_dependencies_compiler_type=$depmode
4170         $as_echo "$as_me:$LINENO: success" >&5
4171         break
4172       fi
4173     fi
4174     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4175     sed -e 's/^/| /' < conftest.err >&5
4176   done
4177
4178   cd ..
4179   rm -rf conftest.dir
4180 else
4181   am_cv_CC_dependencies_compiler_type=none
4182 fi
4183
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4186 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4187 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4188 then as_fn_error "no usable dependency style found" "$LINENO" 5
4189 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4190
4191 fi
4192
4193
4194 # Check for the 'make' the user wants to use.
4195 for ac_prog in make
4196 do
4197   # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if test "${ac_cv_prog_MAKE+set}" = set; then :
4202   $as_echo_n "(cached) " >&6
4203 else
4204   if test -n "$MAKE"; then
4205   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212     for ac_exec_ext in '' $ac_executable_extensions; do
4213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214     ac_cv_prog_MAKE="$ac_prog"
4215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219   done
4220 IFS=$as_save_IFS
4221
4222 fi
4223 fi
4224 MAKE=$ac_cv_prog_MAKE
4225 if test -n "$MAKE"; then
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4227 $as_echo "$MAKE" >&6; }
4228 else
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232
4233
4234   test -n "$MAKE" && break
4235 done
4236
4237 MAKE_IS_GNU=
4238 case "`$MAKE --version 2>&1 | sed 1q`" in
4239   *GNU*)
4240     MAKE_IS_GNU=yes
4241     ;;
4242 esac
4243  if test "$MAKE_IS_GNU" = yes; then
4244   GMAKE_TRUE=
4245   GMAKE_FALSE='#'
4246 else
4247   GMAKE_TRUE='#'
4248   GMAKE_FALSE=
4249 fi
4250
4251
4252 ALL_LINGUAS=
4253 # If we haven't got the data from the intl directory,
4254 # assume NLS is disabled.
4255 USE_NLS=no
4256 LIBINTL=
4257 LIBINTL_DEP=
4258 INCINTL=
4259 XGETTEXT=
4260 GMSGFMT=
4261 POSUB=
4262
4263 if test -f  ../../intl/config.intl; then
4264   .  ../../intl/config.intl
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4267 $as_echo_n "checking whether NLS is requested... " >&6; }
4268 if test x"$USE_NLS" != xyes; then
4269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 $as_echo "no" >&6; }
4271 else
4272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4273 $as_echo "yes" >&6; }
4274
4275 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4276
4277
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4279 $as_echo_n "checking for catalogs to be installed... " >&6; }
4280   # Look for .po and .gmo files in the source directory.
4281   CATALOGS=
4282   XLINGUAS=
4283   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4284     # If there aren't any .gmo files the shell will give us the
4285     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4286     # weeded out.
4287     case "$cat" in *\**)
4288       continue;;
4289     esac
4290     # The quadruple backslash is collapsed to a double backslash
4291     # by the backticks, then collapsed again by the double quotes,
4292     # leaving us with one backslash in the sed expression (right
4293     # before the dot that mustn't act as a wildcard).
4294     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4295     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4296     # The user is allowed to set LINGUAS to a list of languages to
4297     # install catalogs for.  If it's empty that means "all of them."
4298     if test "x$LINGUAS" = x; then
4299       CATALOGS="$CATALOGS $cat"
4300       XLINGUAS="$XLINGUAS $lang"
4301     else
4302       case "$LINGUAS" in *$lang*)
4303         CATALOGS="$CATALOGS $cat"
4304         XLINGUAS="$XLINGUAS $lang"
4305         ;;
4306       esac
4307     fi
4308   done
4309   LINGUAS="$XLINGUAS"
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4311 $as_echo "$LINGUAS" >&6; }
4312
4313
4314     DATADIRNAME=share
4315
4316   INSTOBJEXT=.mo
4317
4318   GENCAT=gencat
4319
4320   CATOBJEXT=.gmo
4321
4322 fi
4323
4324 # Check for common headers.
4325 # FIXME: Seems to me this can cause problems for i386-windows hosts.
4326 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
4327 for ac_header in stdlib.h string.h strings.h unistd.h time.h
4328 do :
4329   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4330 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4331 eval as_val=\$$as_ac_Header
4332    if test "x$as_val" = x""yes; then :
4333   cat >>confdefs.h <<_ACEOF
4334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335 _ACEOF
4336
4337 fi
4338
4339 done
4340
4341 for ac_header in sys/time.h sys/resource.h
4342 do :
4343   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4344 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4345 eval as_val=\$$as_ac_Header
4346    if test "x$as_val" = x""yes; then :
4347   cat >>confdefs.h <<_ACEOF
4348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349 _ACEOF
4350
4351 fi
4352
4353 done
4354
4355 for ac_header in fcntl.h fpu_control.h
4356 do :
4357   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4358 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4359 eval as_val=\$$as_ac_Header
4360    if test "x$as_val" = x""yes; then :
4361   cat >>confdefs.h <<_ACEOF
4362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4363 _ACEOF
4364
4365 fi
4366
4367 done
4368
4369 for ac_header in dlfcn.h errno.h sys/stat.h
4370 do :
4371   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4373 eval as_val=\$$as_ac_Header
4374    if test "x$as_val" = x""yes; then :
4375   cat >>confdefs.h <<_ACEOF
4376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4377 _ACEOF
4378
4379 fi
4380
4381 done
4382
4383 for ac_func in getrusage time sigaction __setfpucw
4384 do :
4385   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4387 eval as_val=\$$as_ac_var
4388    if test "x$as_val" = x""yes; then :
4389   cat >>confdefs.h <<_ACEOF
4390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4391 _ACEOF
4392
4393 fi
4394 done
4395
4396
4397 # Check for socket libraries
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4399 $as_echo_n "checking for bind in -lsocket... " >&6; }
4400 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   ac_check_lib_save_LIBS=$LIBS
4404 LIBS="-lsocket  $LIBS"
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h.  */
4407
4408 /* Override any GCC internal prototype to avoid an error.
4409    Use char because int might match the return type of a GCC
4410    builtin and then its argument prototype would still apply.  */
4411 #ifdef __cplusplus
4412 extern "C"
4413 #endif
4414 char bind ();
4415 int
4416 main ()
4417 {
4418 return bind ();
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 if ac_fn_c_try_link "$LINENO"; then :
4424   ac_cv_lib_socket_bind=yes
4425 else
4426   ac_cv_lib_socket_bind=no
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext \
4429     conftest$ac_exeext conftest.$ac_ext
4430 LIBS=$ac_check_lib_save_LIBS
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4433 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4434 if test "x$ac_cv_lib_socket_bind" = x""yes; then :
4435   cat >>confdefs.h <<_ACEOF
4436 #define HAVE_LIBSOCKET 1
4437 _ACEOF
4438
4439   LIBS="-lsocket $LIBS"
4440
4441 fi
4442
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4444 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4445 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448   ac_check_lib_save_LIBS=$LIBS
4449 LIBS="-lnsl  $LIBS"
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452
4453 /* Override any GCC internal prototype to avoid an error.
4454    Use char because int might match the return type of a GCC
4455    builtin and then its argument prototype would still apply.  */
4456 #ifdef __cplusplus
4457 extern "C"
4458 #endif
4459 char gethostbyname ();
4460 int
4461 main ()
4462 {
4463 return gethostbyname ();
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_link "$LINENO"; then :
4469   ac_cv_lib_nsl_gethostbyname=yes
4470 else
4471   ac_cv_lib_nsl_gethostbyname=no
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext \
4474     conftest$ac_exeext conftest.$ac_ext
4475 LIBS=$ac_check_lib_save_LIBS
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4478 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4479 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4480   cat >>confdefs.h <<_ACEOF
4481 #define HAVE_LIBNSL 1
4482 _ACEOF
4483
4484   LIBS="-lnsl $LIBS"
4485
4486 fi
4487
4488
4489 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4490 # using the same condition.
4491
4492   # See if the user specified whether he wants zlib support or not.
4493
4494 # Check whether --with-zlib was given.
4495 if test "${with_zlib+set}" = set; then :
4496   withval=$with_zlib;
4497 else
4498   with_zlib=auto
4499 fi
4500
4501
4502   if test "$with_zlib" != "no"; then
4503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4504 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4505 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   ac_func_search_save_LIBS=$LIBS
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511
4512 /* Override any GCC internal prototype to avoid an error.
4513    Use char because int might match the return type of a GCC
4514    builtin and then its argument prototype would still apply.  */
4515 #ifdef __cplusplus
4516 extern "C"
4517 #endif
4518 char zlibVersion ();
4519 int
4520 main ()
4521 {
4522 return zlibVersion ();
4523   ;
4524   return 0;
4525 }
4526 _ACEOF
4527 for ac_lib in '' z; do
4528   if test -z "$ac_lib"; then
4529     ac_res="none required"
4530   else
4531     ac_res=-l$ac_lib
4532     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4533   fi
4534   if ac_fn_c_try_link "$LINENO"; then :
4535   ac_cv_search_zlibVersion=$ac_res
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext \
4538     conftest$ac_exeext
4539   if test "${ac_cv_search_zlibVersion+set}" = set; then :
4540   break
4541 fi
4542 done
4543 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4544
4545 else
4546   ac_cv_search_zlibVersion=no
4547 fi
4548 rm conftest.$ac_ext
4549 LIBS=$ac_func_search_save_LIBS
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4552 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4553 ac_res=$ac_cv_search_zlibVersion
4554 if test "$ac_res" != no; then :
4555   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4556   for ac_header in zlib.h
4557 do :
4558   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4559 if test "x$ac_cv_header_zlib_h" = x""yes; then :
4560   cat >>confdefs.h <<_ACEOF
4561 #define HAVE_ZLIB_H 1
4562 _ACEOF
4563
4564 fi
4565
4566 done
4567
4568 fi
4569
4570     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4571       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4572     fi
4573   fi
4574
4575
4576 . ${srcdir}/../../bfd/configure.host
4577
4578
4579
4580 USE_MAINTAINER_MODE=no
4581 # Check whether --enable-maintainer-mode was given.
4582 if test "${enable_maintainer_mode+set}" = set; then :
4583   enableval=$enable_maintainer_mode; case "${enableval}" in
4584   yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
4585   no)   MAINT="#" ;;
4586   *)    as_fn_error "\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT="#" ;;
4587 esac
4588 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4589   echo "Setting maintainer mode" 6>&1
4590 fi
4591 else
4592   MAINT="#"
4593 fi
4594
4595
4596
4597 # Check whether --enable-sim-bswap was given.
4598 if test "${enable_sim_bswap+set}" = set; then :
4599   enableval=$enable_sim_bswap; case "${enableval}" in
4600   yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4601   no)   sim_bswap="-DWITH_BSWAP=0";;
4602   *)    as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
4603 esac
4604 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4605   echo "Setting bswap flags = $sim_bswap" 6>&1
4606 fi
4607 else
4608   sim_bswap=""
4609 fi
4610
4611
4612
4613 # Check whether --enable-sim-cflags was given.
4614 if test "${enable_sim_cflags+set}" = set; then :
4615   enableval=$enable_sim_cflags; case "${enableval}" in
4616   yes)   sim_cflags="-O2 -fomit-frame-pointer";;
4617   trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
4618   no)    sim_cflags="";;
4619   *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4620 esac
4621 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4622   echo "Setting sim cflags = $sim_cflags" 6>&1
4623 fi
4624 else
4625   sim_cflags=""
4626 fi
4627
4628
4629
4630 # Check whether --enable-sim-debug was given.
4631 if test "${enable_sim_debug+set}" = set; then :
4632   enableval=$enable_sim_debug; case "${enableval}" in
4633   yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4634   no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4635   *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4636 esac
4637 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4638   echo "Setting sim debug = $sim_debug" 6>&1
4639 fi
4640 else
4641   sim_debug=""
4642 fi
4643
4644
4645
4646 # Check whether --enable-sim-stdio was given.
4647 if test "${enable_sim_stdio+set}" = set; then :
4648   enableval=$enable_sim_stdio; case "${enableval}" in
4649   yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4650   no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4651   *)    as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
4652 esac
4653 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4654   echo "Setting stdio flags = $sim_stdio" 6>&1
4655 fi
4656 else
4657   sim_stdio=""
4658 fi
4659
4660
4661
4662 # Check whether --enable-sim-trace was given.
4663 if test "${enable_sim_trace+set}" = set; then :
4664   enableval=$enable_sim_trace; case "${enableval}" in
4665   yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4666   no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4667   [-0-9]*)
4668         sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4669   [[:lower:]]*)
4670         sim_trace=""
4671         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4672           if test x"$sim_trace" = x; then
4673             sim_trace="-DWITH_TRACE='(TRACE_$x"
4674           else
4675             sim_trace="${sim_trace}|TRACE_$x"
4676           fi
4677         done
4678         sim_trace="$sim_trace)'" ;;
4679 esac
4680 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4681   echo "Setting sim trace = $sim_trace" 6>&1
4682 fi
4683 else
4684   sim_trace=""
4685 fi
4686
4687
4688
4689 # Check whether --enable-sim-profile was given.
4690 if test "${enable_sim_profile+set}" = set; then :
4691   enableval=$enable_sim_profile; case "${enableval}" in
4692   yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4693   no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4694   [-0-9]*)
4695         sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4696   [a-z]*)
4697         sim_profile=""
4698         for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4699           if test x"$sim_profile" = x; then
4700             sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4701           else
4702             sim_profile="${sim_profile}|PROFILE_$x"
4703           fi
4704         done
4705         sim_profile="$sim_profile)'" ;;
4706 esac
4707 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4708   echo "Setting sim profile = $sim_profile" 6>&1
4709 fi
4710 else
4711   sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4712 fi
4713
4714
4715
4716
4717 # Check whether --with-pkgversion was given.
4718 if test "${with_pkgversion+set}" = set; then :
4719   withval=$with_pkgversion; case "$withval" in
4720       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
4721       no)  PKGVERSION= ;;
4722       *)   PKGVERSION="($withval) " ;;
4723      esac
4724 else
4725   PKGVERSION="(GDB) "
4726
4727 fi
4728
4729
4730
4731
4732
4733 # Check whether --with-bugurl was given.
4734 if test "${with_bugurl+set}" = set; then :
4735   withval=$with_bugurl; case "$withval" in
4736       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4737       no)  BUGURL=
4738            ;;
4739       *)   BUGURL="$withval"
4740            ;;
4741      esac
4742 else
4743   BUGURL="http://www.gnu.org/software/gdb/bugs/"
4744
4745 fi
4746
4747   case ${BUGURL} in
4748   "")
4749     REPORT_BUGS_TO=
4750     REPORT_BUGS_TEXI=
4751     ;;
4752   *)
4753     REPORT_BUGS_TO="<$BUGURL>"
4754     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4755     ;;
4756   esac;
4757
4758
4759
4760
4761 cat >>confdefs.h <<_ACEOF
4762 #define PKGVERSION "$PKGVERSION"
4763 _ACEOF
4764
4765
4766 cat >>confdefs.h <<_ACEOF
4767 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4768 _ACEOF
4769
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4772 $as_echo_n "checking return type of signal handlers... " >&6; }
4773 if test "${ac_cv_type_signal+set}" = set; then :
4774   $as_echo_n "(cached) " >&6
4775 else
4776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h.  */
4778 #include <sys/types.h>
4779 #include <signal.h>
4780
4781 int
4782 main ()
4783 {
4784 return *(signal (0, 0)) (0) == 1;
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790   ac_cv_type_signal=int
4791 else
4792   ac_cv_type_signal=void
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4797 $as_echo "$ac_cv_type_signal" >&6; }
4798
4799 cat >>confdefs.h <<_ACEOF
4800 #define RETSIGTYPE $ac_cv_type_signal
4801 _ACEOF
4802
4803
4804
4805
4806
4807 sim_link_files=
4808 sim_link_links=
4809
4810 sim_link_links=tconfig.h
4811 if test -f ${srcdir}/tconfig.in
4812 then
4813   sim_link_files=tconfig.in
4814 else
4815   sim_link_files=../common/tconfig.in
4816 fi
4817
4818 # targ-vals.def points to the libc macro description file.
4819 case "${target}" in
4820 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4821 esac
4822 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4823 sim_link_links="${sim_link_links} targ-vals.def"
4824
4825
4826
4827
4828 wire_endian="LITTLE_ENDIAN"
4829 default_endian=""
4830 # Check whether --enable-sim-endian was given.
4831 if test "${enable_sim_endian+set}" = set; then :
4832   enableval=$enable_sim_endian; case "${enableval}" in
4833   b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4834   l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4835   yes)   if test x"$wire_endian" != x; then
4836            sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4837          else
4838            if test x"$default_endian" != x; then
4839              sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4840            else
4841              echo "No hard-wired endian for target $target" 1>&6
4842              sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
4843            fi
4844          fi;;
4845   no)    if test x"$default_endian" != x; then
4846            sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4847          else
4848            if test x"$wire_endian" != x; then
4849              sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4850            else
4851              echo "No default endian for target $target" 1>&6
4852              sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4853            fi
4854          fi;;
4855   *)     as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
4856 esac
4857 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
4858   echo "Setting endian flags = $sim_endian" 6>&1
4859 fi
4860 else
4861   if test x"$default_endian" != x; then
4862   sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4863 else
4864   if test x"$wire_endian" != x; then
4865     sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4866   else
4867     sim_endian=
4868   fi
4869 fi
4870 fi
4871
4872 wire_alignment="STRICT_ALIGNMENT"
4873 default_alignment="STRICT_ALIGNMENT"
4874
4875 # Check whether --enable-sim-alignment was given.
4876 if test "${enable_sim_alignment+set}" = set; then :
4877   enableval=$enable_sim_alignment; case "${enableval}" in
4878   strict | STRICT)       sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4879   nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4880   forced | FORCED)       sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4881   yes) if test x"$wire_alignment" != x; then
4882          sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4883        else
4884          if test x"$default_alignment" != x; then
4885            sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4886          else
4887            echo "No hard-wired alignment for target $target" 1>&6
4888            sim_alignment="-DWITH_ALIGNMENT=0"
4889          fi
4890        fi;;
4891   no)  if test x"$default_alignment" != x; then
4892          sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4893        else
4894          if test x"$wire_alignment" != x; then
4895            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4896          else
4897            echo "No default alignment for target $target" 1>&6
4898            sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4899          fi
4900        fi;;
4901   *)   as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
4902 esac
4903 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4904   echo "Setting alignment flags = $sim_alignment" 6>&1
4905 fi
4906 else
4907   if test x"$default_alignment" != x; then
4908   sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4909 else
4910   if test x"$wire_alignment" != x; then
4911     sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4912   else
4913     sim_alignment=
4914   fi
4915 fi
4916 fi
4917
4918
4919 # Check whether --enable-sim-hostendian was given.
4920 if test "${enable_sim_hostendian+set}" = set; then :
4921   enableval=$enable_sim_hostendian; case "${enableval}" in
4922   no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4923   b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4924   l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4925   *)     as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
4926 esac
4927 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4928   echo "Setting hostendian flags = $sim_hostendian" 6>&1
4929 fi
4930 else
4931
4932 if test "x$cross_compiling" = "xno"; then
4933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4934 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4935 if test "${ac_cv_c_bigendian+set}" = set; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   ac_cv_c_bigendian=unknown
4939     # See if we're dealing with a universal compiler.
4940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h.  */
4942 #ifndef __APPLE_CC__
4943                not a universal capable compiler
4944              #endif
4945              typedef int dummy;
4946
4947 _ACEOF
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949
4950         # Check for potential -arch flags.  It is not universal unless
4951         # there are at least two -arch flags with different values.
4952         ac_arch=
4953         ac_prev=
4954         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4955          if test -n "$ac_prev"; then
4956            case $ac_word in
4957              i?86 | x86_64 | ppc | ppc64)
4958                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4959                  ac_arch=$ac_word
4960                else
4961                  ac_cv_c_bigendian=universal
4962                  break
4963                fi
4964                ;;
4965            esac
4966            ac_prev=
4967          elif test "x$ac_word" = "x-arch"; then
4968            ac_prev=arch
4969          fi
4970        done
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973     if test $ac_cv_c_bigendian = unknown; then
4974       # See if sys/param.h defines the BYTE_ORDER macro.
4975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977 #include <sys/types.h>
4978              #include <sys/param.h>
4979
4980 int
4981 main ()
4982 {
4983 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4984                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4985                      && LITTLE_ENDIAN)
4986               bogus endian macros
4987              #endif
4988
4989   ;
4990   return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_c_try_compile "$LINENO"; then :
4994   # It does; now see whether it defined to BIG_ENDIAN or not.
4995          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h.  */
4997 #include <sys/types.h>
4998                 #include <sys/param.h>
4999
5000 int
5001 main ()
5002 {
5003 #if BYTE_ORDER != BIG_ENDIAN
5004                  not big endian
5005                 #endif
5006
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012   ac_cv_c_bigendian=yes
5013 else
5014   ac_cv_c_bigendian=no
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019     fi
5020     if test $ac_cv_c_bigendian = unknown; then
5021       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5022       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h.  */
5024 #include <limits.h>
5025
5026 int
5027 main ()
5028 {
5029 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5030               bogus endian macros
5031              #endif
5032
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 if ac_fn_c_try_compile "$LINENO"; then :
5038   # It does; now see whether it defined to _BIG_ENDIAN or not.
5039          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h.  */
5041 #include <limits.h>
5042
5043 int
5044 main ()
5045 {
5046 #ifndef _BIG_ENDIAN
5047                  not big endian
5048                 #endif
5049
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055   ac_cv_c_bigendian=yes
5056 else
5057   ac_cv_c_bigendian=no
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062     fi
5063     if test $ac_cv_c_bigendian = unknown; then
5064       # Compile a test program.
5065       if test "$cross_compiling" = yes; then :
5066   # Try to guess by grepping values from an object file.
5067          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h.  */
5069 short int ascii_mm[] =
5070                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5071                 short int ascii_ii[] =
5072                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5073                 int use_ascii (int i) {
5074                   return ascii_mm[i] + ascii_ii[i];
5075                 }
5076                 short int ebcdic_ii[] =
5077                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5078                 short int ebcdic_mm[] =
5079                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5080                 int use_ebcdic (int i) {
5081                   return ebcdic_mm[i] + ebcdic_ii[i];
5082                 }
5083                 extern int foo;
5084
5085 int
5086 main ()
5087 {
5088 return use_ascii (foo) == use_ebcdic (foo);
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5095               ac_cv_c_bigendian=yes
5096             fi
5097             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5098               if test "$ac_cv_c_bigendian" = unknown; then
5099                 ac_cv_c_bigendian=no
5100               else
5101                 # finding both strings is unlikely to happen, but who knows?
5102                 ac_cv_c_bigendian=unknown
5103               fi
5104             fi
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 else
5108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h.  */
5110 $ac_includes_default
5111 int
5112 main ()
5113 {
5114
5115              /* Are we little or big endian?  From Harbison&Steele.  */
5116              union
5117              {
5118                long int l;
5119                char c[sizeof (long int)];
5120              } u;
5121              u.l = 1;
5122              return u.c[sizeof (long int) - 1] == 1;
5123
5124   ;
5125   return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_run "$LINENO"; then :
5129   ac_cv_c_bigendian=no
5130 else
5131   ac_cv_c_bigendian=yes
5132 fi
5133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5134   conftest.$ac_objext conftest.beam conftest.$ac_ext
5135 fi
5136
5137     fi
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5140 $as_echo "$ac_cv_c_bigendian" >&6; }
5141  case $ac_cv_c_bigendian in #(
5142    yes)
5143      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5144 ;; #(
5145    no)
5146       ;; #(
5147    universal)
5148
5149 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5150
5151      ;; #(
5152    *)
5153      as_fn_error "unknown endianness
5154  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5155  esac
5156
5157   if test $ac_cv_c_bigendian = yes; then
5158     sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5159   else
5160     sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5161   fi
5162 else
5163   sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
5164 fi
5165 fi
5166
5167
5168 default_sim_default_model="bf537"
5169 # Check whether --enable-sim-default-model was given.
5170 if test "${enable_sim_default_model+set}" = set; then :
5171   enableval=$enable_sim_default_model; case "${enableval}" in
5172   yes|no) as_fn_error "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
5173   *)    sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
5174 esac
5175 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5176   echo "Setting default model = $sim_default_model" 6>&1
5177 fi
5178 else
5179   sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
5180 fi
5181
5182
5183
5184 # Check whether --enable-sim-environment was given.
5185 if test "${enable_sim_environment+set}" = set; then :
5186   enableval=$enable_sim_environment; case "${enableval}" in
5187   all | ALL)             sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
5188   user | USER)           sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5189   virtual | VIRTUAL)     sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5190   operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5191   *)   as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
5192        sim_environment="";;
5193 esac
5194 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
5195   echo "Setting sim environment = $sim_environment" 6>&1
5196 fi
5197 else
5198   sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
5199 fi
5200
5201
5202 default_sim_inline=""
5203 # Check whether --enable-sim-inline was given.
5204 if test "${enable_sim_inline+set}" = set; then :
5205   enableval=$enable_sim_inline; sim_inline=""
5206 case "$enableval" in
5207   no)           sim_inline="-DDEFAULT_INLINE=0";;
5208   0)            sim_inline="-DDEFAULT_INLINE=0";;
5209   yes | 2)      sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
5210   1)            sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
5211   *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
5212        new_flag=""
5213        case "$x" in
5214          *_INLINE=*)    new_flag="-D$x";;
5215          *=*)           new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
5216          *_INLINE)      new_flag="-D$x=ALL_C_INLINE";;
5217          *)             new_flag="-D$x""_INLINE=ALL_C_INLINE";;
5218        esac
5219        if test x"$sim_inline" = x""; then
5220          sim_inline="$new_flag"
5221        else
5222          sim_inline="$sim_inline $new_flag"
5223        fi
5224      done;;
5225 esac
5226 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
5227   echo "Setting inline flags = $sim_inline" 6>&1
5228 fi
5229 else
5230
5231 if test "x$cross_compiling" = "xno"; then
5232   if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
5233     sim_inline="${default_sim_inline}"
5234     if test x"$silent" != x"yes"; then
5235       echo "Setting inline flags = $sim_inline" 6>&1
5236     fi
5237   else
5238     sim_inline=""
5239   fi
5240 else
5241   sim_inline="-DDEFAULT_INLINE=0"
5242 fi
5243 fi
5244
5245
5246 # Check whether --enable-werror was given.
5247 if test "${enable_werror+set}" = set; then :
5248   enableval=$enable_werror; case "${enableval}" in
5249      yes | y) ERROR_ON_WARNING="yes" ;;
5250      no | n)  ERROR_ON_WARNING="no" ;;
5251      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5252    esac
5253 fi
5254
5255
5256 # Enable -Werror by default when using gcc
5257 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5258     ERROR_ON_WARNING=yes
5259 fi
5260
5261 WERROR_CFLAGS=""
5262 if test "${ERROR_ON_WARNING}" = yes ; then
5263 # NOTE: Disabled in the sim dir due to most sims generating warnings.
5264 #    WERROR_CFLAGS="-Werror"
5265      true
5266 fi
5267
5268 # The entries after -Wno-pointer-sign are disabled warnings which may
5269 # be enabled in the future, which can not currently be used to build
5270 # GDB.
5271 # NOTE: If you change this list, remember to update
5272 # gdb/doc/gdbint.texinfo.
5273 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
5274 -Wformat-nonliteral -Wno-pointer-sign \
5275 -Wno-unused -Wunused-value -Wunused-function \
5276 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
5277
5278 # Enable -Wno-format by default when using gcc on mingw since many
5279 # GCC versions complain about %I64.
5280 case "${host}" in
5281   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
5282 esac
5283
5284 # Check whether --enable-build-warnings was given.
5285 if test "${enable_build_warnings+set}" = set; then :
5286   enableval=$enable_build_warnings; case "${enableval}" in
5287   yes)  ;;
5288   no)   build_warnings="-w";;
5289   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
5290         build_warnings="${build_warnings} ${t}";;
5291   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
5292         build_warnings="${t} ${build_warnings}";;
5293   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5294 esac
5295 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5296   echo "Setting compiler warning flags = $build_warnings" 6>&1
5297 fi
5298 fi
5299 # Check whether --enable-sim-build-warnings was given.
5300 if test "${enable_sim_build_warnings+set}" = set; then :
5301   enableval=$enable_sim_build_warnings; case "${enableval}" in
5302   yes)  ;;
5303   no)   build_warnings="-w";;
5304   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
5305         build_warnings="${build_warnings} ${t}";;
5306   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
5307         build_warnings="${t} ${build_warnings}";;
5308   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5309 esac
5310 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5311   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5312 fi
5313 fi
5314 WARN_CFLAGS=""
5315 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5316 then
5317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5318 $as_echo_n "checking compiler warning flags... " >&6; }
5319     # Separate out the -Werror flag as some files just cannot be
5320     # compiled with it enabled.
5321     for w in ${build_warnings}; do
5322         case $w in
5323         -Werr*) WERROR_CFLAGS=-Werror ;;
5324         *) # Check that GCC accepts it
5325             saved_CFLAGS="$CFLAGS"
5326             CFLAGS="$CFLAGS $w"
5327             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h.  */
5329
5330 int
5331 main ()
5332 {
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339   WARN_CFLAGS="${WARN_CFLAGS} $w"
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342             CFLAGS="$saved_CFLAGS"
5343         esac
5344     done
5345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5346 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5347 fi
5348
5349
5350 if test x"yes" = x"yes"; then
5351   sim_hw_p=yes
5352 else
5353   sim_hw_p=no
5354 fi
5355 if test ""; then
5356   hardware=""
5357 else
5358   hardware="cfi core pal glue"
5359 fi
5360 hardware="$hardware \
5361         bfin_cec \
5362         bfin_ctimer \
5363         bfin_dma \
5364         bfin_dmac \
5365         bfin_ebiu_amc \
5366         bfin_ebiu_ddrc \
5367         bfin_ebiu_sdc \
5368         bfin_emac \
5369         bfin_eppi \
5370         bfin_evt \
5371         bfin_gpio \
5372         bfin_gpio2 \
5373         bfin_gptimer \
5374         bfin_jtag \
5375         bfin_mmu \
5376         bfin_nfc \
5377         bfin_otp \
5378         bfin_pfmon \
5379         bfin_pint \
5380         bfin_pll \
5381         bfin_ppi \
5382         bfin_rtc \
5383         bfin_sic \
5384         bfin_spi \
5385         bfin_trace \
5386         bfin_twi \
5387         bfin_uart \
5388         bfin_uart2 \
5389         bfin_wdog \
5390         bfin_wp \
5391         eth_phy \
5392 "
5393 sim_hw_cflags="-DWITH_HW=1"
5394 sim_hw="$hardware"
5395 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5396 # Check whether --enable-sim-hardware was given.
5397 if test "${enable_sim_hardware+set}" = set; then :
5398   enableval=$enable_sim_hardware;
5399 case "${enableval}" in
5400   yes)  sim_hw_p=yes;;
5401   no)   sim_hw_p=no;;
5402   ,*)   sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5403   *,)   sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5404   *)    sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5405 esac
5406 if test "$sim_hw_p" != yes; then
5407   sim_hw_objs=
5408   sim_hw_cflags="-DWITH_HW=0"
5409   sim_hw=
5410 else
5411   sim_hw_cflags="-DWITH_HW=1"
5412   # remove duplicates
5413   sim_hw=""
5414   sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
5415   for i in $hardware ; do
5416     case " $sim_hw " in
5417       *" $i "*) ;;
5418       *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5419     esac
5420   done
5421 fi
5422 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5423   echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5424 fi
5425 else
5426
5427 if test "$sim_hw_p" != yes; then
5428   sim_hw_objs=
5429   sim_hw_cflags="-DWITH_HW=0"
5430   sim_hw=
5431 fi
5432 if test x"$silent" != x"yes"; then
5433   echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5434 fi
5435 fi
5436
5437 case " $hardware " in
5438   *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
5439 $as_echo_n "checking for log2 in -lm... " >&6; }
5440 if test "${ac_cv_lib_m_log2+set}" = set; then :
5441   $as_echo_n "(cached) " >&6
5442 else
5443   ac_check_lib_save_LIBS=$LIBS
5444 LIBS="-lm  $LIBS"
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h.  */
5447
5448 /* Override any GCC internal prototype to avoid an error.
5449    Use char because int might match the return type of a GCC
5450    builtin and then its argument prototype would still apply.  */
5451 #ifdef __cplusplus
5452 extern "C"
5453 #endif
5454 char log2 ();
5455 int
5456 main ()
5457 {
5458 return log2 ();
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 if ac_fn_c_try_link "$LINENO"; then :
5464   ac_cv_lib_m_log2=yes
5465 else
5466   ac_cv_lib_m_log2=no
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext \
5469     conftest$ac_exeext conftest.$ac_ext
5470 LIBS=$ac_check_lib_save_LIBS
5471 fi
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
5473 $as_echo "$ac_cv_lib_m_log2" >&6; }
5474 if test "x$ac_cv_lib_m_log2" = x""yes; then :
5475   cat >>confdefs.h <<_ACEOF
5476 #define HAVE_LIBM 1
5477 _ACEOF
5478
5479   LIBS="-lm $LIBS"
5480
5481 fi
5482 ;;
5483 esac
5484
5485
5486 for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread
5487 do :
5488   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5490 eval as_val=\$$as_ac_var
5491    if test "x$as_val" = x""yes; then :
5492   cat >>confdefs.h <<_ACEOF
5493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5494 _ACEOF
5495
5496 fi
5497 done
5498
5499 for ac_header in  \
5500         linux/if_tun.h \
5501         linux/mii.h \
5502         linux/types.h \
5503         net/if.h \
5504         sys/ioctl.h \
5505         sys/mman.h \
5506
5507 do :
5508   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5510 eval as_val=\$$as_ac_Header
5511    if test "x$as_val" = x""yes; then :
5512   cat >>confdefs.h <<_ACEOF
5513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5514 _ACEOF
5515
5516 fi
5517
5518 done
5519
5520
5521 BFIN_SIM_EXTRA_OBJS=
5522
5523 case ${host} in
5524   *mingw32*) ;;
5525   *)
5526
5527 cat >>confdefs.h <<_ACEOF
5528 #define HAVE_DV_SOCKSER 1
5529 _ACEOF
5530
5531     BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} dv-sockser.o"
5532     ;;
5533 esac
5534
5535 BFIN_SIM_EXTRA_OBJS=${BFIN_SIM_EXTRA_OBJS}
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5546         if test -n "$ac_tool_prefix"; then
5547   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5548 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   case $PKG_CONFIG in
5555   [\\/]* | ?:[\\/]*)
5556   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5557   ;;
5558   *)
5559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564     for ac_exec_ext in '' $ac_executable_extensions; do
5565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571   done
5572 IFS=$as_save_IFS
5573
5574   ;;
5575 esac
5576 fi
5577 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5578 if test -n "$PKG_CONFIG"; then
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5580 $as_echo "$PKG_CONFIG" >&6; }
5581 else
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5584 fi
5585
5586
5587 fi
5588 if test -z "$ac_cv_path_PKG_CONFIG"; then
5589   ac_pt_PKG_CONFIG=$PKG_CONFIG
5590   # Extract the first word of "pkg-config", so it can be a program name with args.
5591 set dummy pkg-config; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5595   $as_echo_n "(cached) " >&6
5596 else
5597   case $ac_pt_PKG_CONFIG in
5598   [\\/]* | ?:[\\/]*)
5599   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5600   ;;
5601   *)
5602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607     for ac_exec_ext in '' $ac_executable_extensions; do
5608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614   done
5615 IFS=$as_save_IFS
5616
5617   ;;
5618 esac
5619 fi
5620 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5621 if test -n "$ac_pt_PKG_CONFIG"; then
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5623 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5624 else
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629   if test "x$ac_pt_PKG_CONFIG" = x; then
5630     PKG_CONFIG=""
5631   else
5632     case $cross_compiling:$ac_tool_warned in
5633 yes:)
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5636 ac_tool_warned=yes ;;
5637 esac
5638     PKG_CONFIG=$ac_pt_PKG_CONFIG
5639   fi
5640 else
5641   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5642 fi
5643
5644 fi
5645 if test -n "$PKG_CONFIG"; then
5646         _pkg_min_version=0.9.0
5647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5648 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5649         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5650                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5651 $as_echo "yes" >&6; }
5652         else
5653                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655                 PKG_CONFIG=""
5656         fi
5657 fi
5658
5659 pkg_failed=no
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
5661 $as_echo_n "checking for SDL... " >&6; }
5662
5663 if test -n "$SDL_CFLAGS"; then
5664     pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
5665  elif test -n "$PKG_CONFIG"; then
5666     if test -n "$PKG_CONFIG" && \
5667     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
5668   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
5669   ac_status=$?
5670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671   test $ac_status = 0; }; then
5672   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
5673                       test "x$?" != "x0" && pkg_failed=yes
5674 else
5675   pkg_failed=yes
5676 fi
5677  else
5678     pkg_failed=untried
5679 fi
5680 if test -n "$SDL_LIBS"; then
5681     pkg_cv_SDL_LIBS="$SDL_LIBS"
5682  elif test -n "$PKG_CONFIG"; then
5683     if test -n "$PKG_CONFIG" && \
5684     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
5685   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
5686   ac_status=$?
5687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688   test $ac_status = 0; }; then
5689   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
5690                       test "x$?" != "x0" && pkg_failed=yes
5691 else
5692   pkg_failed=yes
5693 fi
5694  else
5695     pkg_failed=untried
5696 fi
5697
5698
5699
5700 if test $pkg_failed = yes; then
5701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703
5704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5705         _pkg_short_errors_supported=yes
5706 else
5707         _pkg_short_errors_supported=no
5708 fi
5709         if test $_pkg_short_errors_supported = yes; then
5710                 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
5711         else
5712                 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
5713         fi
5714         # Put the nasty error message in config.log where it belongs
5715         echo "$SDL_PKG_ERRORS" >&5
5716
5717         :
5718 elif test $pkg_failed = untried; then
5719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721         :
5722 else
5723         SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
5724         SDL_LIBS=$pkg_cv_SDL_LIBS
5725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726 $as_echo "yes" >&6; }
5727
5728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5729 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   ac_check_lib_save_LIBS=$LIBS
5734 LIBS="-ldl  $LIBS"
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h.  */
5737
5738 /* Override any GCC internal prototype to avoid an error.
5739    Use char because int might match the return type of a GCC
5740    builtin and then its argument prototype would still apply.  */
5741 #ifdef __cplusplus
5742 extern "C"
5743 #endif
5744 char dlopen ();
5745 int
5746 main ()
5747 {
5748 return dlopen ();
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_link "$LINENO"; then :
5754   ac_cv_lib_dl_dlopen=yes
5755 else
5756   ac_cv_lib_dl_dlopen=no
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext \
5759     conftest$ac_exeext conftest.$ac_ext
5760 LIBS=$ac_check_lib_save_LIBS
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5763 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5764 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5765
5766                 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
5767                 SDL_LIBS="-ldl"
5768
5769 else
5770   SDL_CFLAGS= SDL_LIBS=
5771 fi
5772
5773
5774 fi
5775
5776
5777
5778
5779 ac_sources="$sim_link_files"
5780 ac_dests="$sim_link_links"
5781 while test -n "$ac_sources"; do
5782   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5783   set $ac_sources; ac_source=$1; shift; ac_sources=$*
5784   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5785 done
5786 ac_config_links="$ac_config_links $ac_config_links_1"
5787
5788 cgen_breaks=""
5789 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5790 cgen_breaks="break cgen_rtx_error";
5791 fi
5792
5793 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5794
5795 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5796
5797 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5798
5799 ac_config_commands="$ac_config_commands Makefile"
5800
5801 ac_config_commands="$ac_config_commands stamp-h"
5802
5803 cat >confcache <<\_ACEOF
5804 # This file is a shell script that caches the results of configure
5805 # tests run on this system so they can be shared between configure
5806 # scripts and configure runs, see configure's option --config-cache.
5807 # It is not useful on other systems.  If it contains results you don't
5808 # want to keep, you may remove or edit it.
5809 #
5810 # config.status only pays attention to the cache file if you give it
5811 # the --recheck option to rerun configure.
5812 #
5813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5815 # following values.
5816
5817 _ACEOF
5818
5819 # The following way of writing the cache mishandles newlines in values,
5820 # but we know of no workaround that is simple, portable, and efficient.
5821 # So, we kill variables containing newlines.
5822 # Ultrix sh set writes to stderr and can't be redirected directly,
5823 # and sets the high bit in the cache file unless we assign to the vars.
5824 (
5825   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5826     eval ac_val=\$$ac_var
5827     case $ac_val in #(
5828     *${as_nl}*)
5829       case $ac_var in #(
5830       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5832       esac
5833       case $ac_var in #(
5834       _ | IFS | as_nl) ;; #(
5835       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5836       *) { eval $ac_var=; unset $ac_var;} ;;
5837       esac ;;
5838     esac
5839   done
5840
5841   (set) 2>&1 |
5842     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5843     *${as_nl}ac_space=\ *)
5844       # `set' does not quote correctly, so add quotes: double-quote
5845       # substitution turns \\\\ into \\, and sed turns \\ into \.
5846       sed -n \
5847         "s/'/'\\\\''/g;
5848           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5849       ;; #(
5850     *)
5851       # `set' quotes correctly as required by POSIX, so do not add quotes.
5852       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5853       ;;
5854     esac |
5855     sort
5856 ) |
5857   sed '
5858      /^ac_cv_env_/b end
5859      t clear
5860      :clear
5861      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5862      t end
5863      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5864      :end' >>confcache
5865 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5866   if test -w "$cache_file"; then
5867     test "x$cache_file" != "x/dev/null" &&
5868       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5869 $as_echo "$as_me: updating cache $cache_file" >&6;}
5870     cat confcache >$cache_file
5871   else
5872     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5873 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5874   fi
5875 fi
5876 rm -f confcache
5877
5878 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5879 # Let make expand exec_prefix.
5880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5881
5882 DEFS=-DHAVE_CONFIG_H
5883
5884 ac_libobjs=
5885 ac_ltlibobjs=
5886 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5887   # 1. Remove the extension, and $U if already installed.
5888   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5889   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5890   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5891   #    will be set to the directory where LIBOBJS objects are built.
5892   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5893   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5894 done
5895 LIBOBJS=$ac_libobjs
5896
5897 LTLIBOBJS=$ac_ltlibobjs
5898
5899
5900 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
5901   as_fn_error "conditional \"GMAKE\" was never defined.
5902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5903 fi
5904
5905
5906 : ${CONFIG_STATUS=./config.status}
5907 ac_write_fail=0
5908 ac_clean_files_save=$ac_clean_files
5909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5911 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5912 as_write_fail=0
5913 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5914 #! $SHELL
5915 # Generated by $as_me.
5916 # Run this file to recreate the current configuration.
5917 # Compiler output produced by configure, useful for debugging
5918 # configure, is in config.log if it exists.
5919
5920 debug=false
5921 ac_cs_recheck=false
5922 ac_cs_silent=false
5923
5924 SHELL=\${CONFIG_SHELL-$SHELL}
5925 export SHELL
5926 _ASEOF
5927 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5928 ## -------------------- ##
5929 ## M4sh Initialization. ##
5930 ## -------------------- ##
5931
5932 # Be more Bourne compatible
5933 DUALCASE=1; export DUALCASE # for MKS sh
5934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5935   emulate sh
5936   NULLCMD=:
5937   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5938   # is contrary to our usage.  Disable this feature.
5939   alias -g '${1+"$@"}'='"$@"'
5940   setopt NO_GLOB_SUBST
5941 else
5942   case `(set -o) 2>/dev/null` in #(
5943   *posix*) :
5944     set -o posix ;; #(
5945   *) :
5946      ;;
5947 esac
5948 fi
5949
5950
5951 as_nl='
5952 '
5953 export as_nl
5954 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5955 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5958 # Prefer a ksh shell builtin over an external printf program on Solaris,
5959 # but without wasting forks for bash or zsh.
5960 if test -z "$BASH_VERSION$ZSH_VERSION" \
5961     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5962   as_echo='print -r --'
5963   as_echo_n='print -rn --'
5964 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5965   as_echo='printf %s\n'
5966   as_echo_n='printf %s'
5967 else
5968   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5969     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5970     as_echo_n='/usr/ucb/echo -n'
5971   else
5972     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5973     as_echo_n_body='eval
5974       arg=$1;
5975       case $arg in #(
5976       *"$as_nl"*)
5977         expr "X$arg" : "X\\(.*\\)$as_nl";
5978         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5979       esac;
5980       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5981     '
5982     export as_echo_n_body
5983     as_echo_n='sh -c $as_echo_n_body as_echo'
5984   fi
5985   export as_echo_body
5986   as_echo='sh -c $as_echo_body as_echo'
5987 fi
5988
5989 # The user is always right.
5990 if test "${PATH_SEPARATOR+set}" != set; then
5991   PATH_SEPARATOR=:
5992   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5993     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5994       PATH_SEPARATOR=';'
5995   }
5996 fi
5997
5998
5999 # IFS
6000 # We need space, tab and new line, in precisely that order.  Quoting is
6001 # there to prevent editors from complaining about space-tab.
6002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6003 # splitting by setting IFS to empty value.)
6004 IFS=" ""        $as_nl"
6005
6006 # Find who we are.  Look in the path if we contain no directory separator.
6007 case $0 in #((
6008   *[\\/]* ) as_myself=$0 ;;
6009   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6015   done
6016 IFS=$as_save_IFS
6017
6018      ;;
6019 esac
6020 # We did not find ourselves, most probably we were run as `sh COMMAND'
6021 # in which case we are not to be found in the path.
6022 if test "x$as_myself" = x; then
6023   as_myself=$0
6024 fi
6025 if test ! -f "$as_myself"; then
6026   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6027   exit 1
6028 fi
6029
6030 # Unset variables that we do not need and which cause bugs (e.g. in
6031 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6032 # suppresses any "Segmentation fault" message there.  '((' could
6033 # trigger a bug in pdksh 5.2.14.
6034 for as_var in BASH_ENV ENV MAIL MAILPATH
6035 do eval test x\${$as_var+set} = xset \
6036   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6037 done
6038 PS1='$ '
6039 PS2='> '
6040 PS4='+ '
6041
6042 # NLS nuisances.
6043 LC_ALL=C
6044 export LC_ALL
6045 LANGUAGE=C
6046 export LANGUAGE
6047
6048 # CDPATH.
6049 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6050
6051
6052 # as_fn_error ERROR [LINENO LOG_FD]
6053 # ---------------------------------
6054 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6055 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6056 # script with status $?, using 1 if that was 0.
6057 as_fn_error ()
6058 {
6059   as_status=$?; test $as_status -eq 0 && as_status=1
6060   if test "$3"; then
6061     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6062     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6063   fi
6064   $as_echo "$as_me: error: $1" >&2
6065   as_fn_exit $as_status
6066 } # as_fn_error
6067
6068
6069 # as_fn_set_status STATUS
6070 # -----------------------
6071 # Set $? to STATUS, without forking.
6072 as_fn_set_status ()
6073 {
6074   return $1
6075 } # as_fn_set_status
6076
6077 # as_fn_exit STATUS
6078 # -----------------
6079 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6080 as_fn_exit ()
6081 {
6082   set +e
6083   as_fn_set_status $1
6084   exit $1
6085 } # as_fn_exit
6086
6087 # as_fn_unset VAR
6088 # ---------------
6089 # Portably unset VAR.
6090 as_fn_unset ()
6091 {
6092   { eval $1=; unset $1;}
6093 }
6094 as_unset=as_fn_unset
6095 # as_fn_append VAR VALUE
6096 # ----------------------
6097 # Append the text in VALUE to the end of the definition contained in VAR. Take
6098 # advantage of any shell optimizations that allow amortized linear growth over
6099 # repeated appends, instead of the typical quadratic growth present in naive
6100 # implementations.
6101 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6102   eval 'as_fn_append ()
6103   {
6104     eval $1+=\$2
6105   }'
6106 else
6107   as_fn_append ()
6108   {
6109     eval $1=\$$1\$2
6110   }
6111 fi # as_fn_append
6112
6113 # as_fn_arith ARG...
6114 # ------------------
6115 # Perform arithmetic evaluation on the ARGs, and store the result in the
6116 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6117 # must be portable across $(()) and expr.
6118 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6119   eval 'as_fn_arith ()
6120   {
6121     as_val=$(( $* ))
6122   }'
6123 else
6124   as_fn_arith ()
6125   {
6126     as_val=`expr "$@" || test $? -eq 1`
6127   }
6128 fi # as_fn_arith
6129
6130
6131 if expr a : '\(a\)' >/dev/null 2>&1 &&
6132    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6133   as_expr=expr
6134 else
6135   as_expr=false
6136 fi
6137
6138 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6139   as_basename=basename
6140 else
6141   as_basename=false
6142 fi
6143
6144 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6145   as_dirname=dirname
6146 else
6147   as_dirname=false
6148 fi
6149
6150 as_me=`$as_basename -- "$0" ||
6151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6152          X"$0" : 'X\(//\)$' \| \
6153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6154 $as_echo X/"$0" |
6155     sed '/^.*\/\([^/][^/]*\)\/*$/{
6156             s//\1/
6157             q
6158           }
6159           /^X\/\(\/\/\)$/{
6160             s//\1/
6161             q
6162           }
6163           /^X\/\(\/\).*/{
6164             s//\1/
6165             q
6166           }
6167           s/.*/./; q'`
6168
6169 # Avoid depending upon Character Ranges.
6170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6173 as_cr_digits='0123456789'
6174 as_cr_alnum=$as_cr_Letters$as_cr_digits
6175
6176 ECHO_C= ECHO_N= ECHO_T=
6177 case `echo -n x` in #(((((
6178 -n*)
6179   case `echo 'xy\c'` in
6180   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6181   xy)  ECHO_C='\c';;
6182   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6183        ECHO_T=' ';;
6184   esac;;
6185 *)
6186   ECHO_N='-n';;
6187 esac
6188
6189 rm -f conf$$ conf$$.exe conf$$.file
6190 if test -d conf$$.dir; then
6191   rm -f conf$$.dir/conf$$.file
6192 else
6193   rm -f conf$$.dir
6194   mkdir conf$$.dir 2>/dev/null
6195 fi
6196 if (echo >conf$$.file) 2>/dev/null; then
6197   if ln -s conf$$.file conf$$ 2>/dev/null; then
6198     as_ln_s='ln -s'
6199     # ... but there are two gotchas:
6200     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6201     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6202     # In both cases, we have to default to `cp -p'.
6203     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6204       as_ln_s='cp -p'
6205   elif ln conf$$.file conf$$ 2>/dev/null; then
6206     as_ln_s=ln
6207   else
6208     as_ln_s='cp -p'
6209   fi
6210 else
6211   as_ln_s='cp -p'
6212 fi
6213 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6214 rmdir conf$$.dir 2>/dev/null
6215
6216
6217 # as_fn_mkdir_p
6218 # -------------
6219 # Create "$as_dir" as a directory, including parents if necessary.
6220 as_fn_mkdir_p ()
6221 {
6222
6223   case $as_dir in #(
6224   -*) as_dir=./$as_dir;;
6225   esac
6226   test -d "$as_dir" || eval $as_mkdir_p || {
6227     as_dirs=
6228     while :; do
6229       case $as_dir in #(
6230       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6231       *) as_qdir=$as_dir;;
6232       esac
6233       as_dirs="'$as_qdir' $as_dirs"
6234       as_dir=`$as_dirname -- "$as_dir" ||
6235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6236          X"$as_dir" : 'X\(//\)[^/]' \| \
6237          X"$as_dir" : 'X\(//\)$' \| \
6238          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6239 $as_echo X"$as_dir" |
6240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6241             s//\1/
6242             q
6243           }
6244           /^X\(\/\/\)[^/].*/{
6245             s//\1/
6246             q
6247           }
6248           /^X\(\/\/\)$/{
6249             s//\1/
6250             q
6251           }
6252           /^X\(\/\).*/{
6253             s//\1/
6254             q
6255           }
6256           s/.*/./; q'`
6257       test -d "$as_dir" && break
6258     done
6259     test -z "$as_dirs" || eval "mkdir $as_dirs"
6260   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6261
6262
6263 } # as_fn_mkdir_p
6264 if mkdir -p . 2>/dev/null; then
6265   as_mkdir_p='mkdir -p "$as_dir"'
6266 else
6267   test -d ./-p && rmdir ./-p
6268   as_mkdir_p=false
6269 fi
6270
6271 if test -x / >/dev/null 2>&1; then
6272   as_test_x='test -x'
6273 else
6274   if ls -dL / >/dev/null 2>&1; then
6275     as_ls_L_option=L
6276   else
6277     as_ls_L_option=
6278   fi
6279   as_test_x='
6280     eval sh -c '\''
6281       if test -d "$1"; then
6282         test -d "$1/.";
6283       else
6284         case $1 in #(
6285         -*)set "./$1";;
6286         esac;
6287         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6288         ???[sx]*):;;*)false;;esac;fi
6289     '\'' sh
6290   '
6291 fi
6292 as_executable_p=$as_test_x
6293
6294 # Sed expression to map a string onto a valid CPP name.
6295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6296
6297 # Sed expression to map a string onto a valid variable name.
6298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6299
6300
6301 exec 6>&1
6302 ## ----------------------------------- ##
6303 ## Main body of $CONFIG_STATUS script. ##
6304 ## ----------------------------------- ##
6305 _ASEOF
6306 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6307
6308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6309 # Save the log message, to keep $0 and so on meaningful, and to
6310 # report actual input values of CONFIG_FILES etc. instead of their
6311 # values after options handling.
6312 ac_log="
6313 This file was extended by $as_me, which was
6314 generated by GNU Autoconf 2.64.  Invocation command line was
6315
6316   CONFIG_FILES    = $CONFIG_FILES
6317   CONFIG_HEADERS  = $CONFIG_HEADERS
6318   CONFIG_LINKS    = $CONFIG_LINKS
6319   CONFIG_COMMANDS = $CONFIG_COMMANDS
6320   $ $0 $@
6321
6322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6323 "
6324
6325 _ACEOF
6326
6327 case $ac_config_files in *"
6328 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6329 esac
6330
6331 case $ac_config_headers in *"
6332 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6333 esac
6334
6335
6336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6337 # Files that config.status was made for.
6338 config_files="$ac_config_files"
6339 config_headers="$ac_config_headers"
6340 config_links="$ac_config_links"
6341 config_commands="$ac_config_commands"
6342
6343 _ACEOF
6344
6345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6346 ac_cs_usage="\
6347 \`$as_me' instantiates files and other configuration actions
6348 from templates according to the current configuration.  Unless the files
6349 and actions are specified as TAGs, all are instantiated by default.
6350
6351 Usage: $0 [OPTION]... [TAG]...
6352
6353   -h, --help       print this help, then exit
6354   -V, --version    print version number and configuration settings, then exit
6355   -q, --quiet, --silent
6356                    do not print progress messages
6357   -d, --debug      don't remove temporary files
6358       --recheck    update $as_me by reconfiguring in the same conditions
6359       --file=FILE[:TEMPLATE]
6360                    instantiate the configuration file FILE
6361       --header=FILE[:TEMPLATE]
6362                    instantiate the configuration header FILE
6363
6364 Configuration files:
6365 $config_files
6366
6367 Configuration headers:
6368 $config_headers
6369
6370 Configuration links:
6371 $config_links
6372
6373 Configuration commands:
6374 $config_commands
6375
6376 Report bugs to the package provider."
6377
6378 _ACEOF
6379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6380 ac_cs_version="\\
6381 config.status
6382 configured by $0, generated by GNU Autoconf 2.64,
6383   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6384
6385 Copyright (C) 2009 Free Software Foundation, Inc.
6386 This config.status script is free software; the Free Software Foundation
6387 gives unlimited permission to copy, distribute and modify it."
6388
6389 ac_pwd='$ac_pwd'
6390 srcdir='$srcdir'
6391 INSTALL='$INSTALL'
6392 test -n "\$AWK" || AWK=awk
6393 _ACEOF
6394
6395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6396 # The default lists apply if the user does not specify any file.
6397 ac_need_defaults=:
6398 while test $# != 0
6399 do
6400   case $1 in
6401   --*=*)
6402     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6403     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6404     ac_shift=:
6405     ;;
6406   *)
6407     ac_option=$1
6408     ac_optarg=$2
6409     ac_shift=shift
6410     ;;
6411   esac
6412
6413   case $ac_option in
6414   # Handling of the options.
6415   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6416     ac_cs_recheck=: ;;
6417   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6418     $as_echo "$ac_cs_version"; exit ;;
6419   --debug | --debu | --deb | --de | --d | -d )
6420     debug=: ;;
6421   --file | --fil | --fi | --f )
6422     $ac_shift
6423     case $ac_optarg in
6424     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6425     esac
6426     as_fn_append CONFIG_FILES " '$ac_optarg'"
6427     ac_need_defaults=false;;
6428   --header | --heade | --head | --hea )
6429     $ac_shift
6430     case $ac_optarg in
6431     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6432     esac
6433     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6434     ac_need_defaults=false;;
6435   --he | --h)
6436     # Conflict between --help and --header
6437     as_fn_error "ambiguous option: \`$1'
6438 Try \`$0 --help' for more information.";;
6439   --help | --hel | -h )
6440     $as_echo "$ac_cs_usage"; exit ;;
6441   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6442   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6443     ac_cs_silent=: ;;
6444
6445   # This is an error.
6446   -*) as_fn_error "unrecognized option: \`$1'
6447 Try \`$0 --help' for more information." ;;
6448
6449   *) as_fn_append ac_config_targets " $1"
6450      ac_need_defaults=false ;;
6451
6452   esac
6453   shift
6454 done
6455
6456 ac_configure_extra_args=
6457
6458 if $ac_cs_silent; then
6459   exec 6>/dev/null
6460   ac_configure_extra_args="$ac_configure_extra_args --silent"
6461 fi
6462
6463 _ACEOF
6464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6465 if \$ac_cs_recheck; then
6466   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6467   shift
6468   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6469   CONFIG_SHELL='$SHELL'
6470   export CONFIG_SHELL
6471   exec "\$@"
6472 fi
6473
6474 _ACEOF
6475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6476 exec 5>>config.log
6477 {
6478   echo
6479   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6480 ## Running $as_me. ##
6481 _ASBOX
6482   $as_echo "$ac_log"
6483 } >&5
6484
6485 _ACEOF
6486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6487 #
6488 # INIT-COMMANDS
6489 #
6490 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6491
6492 _ACEOF
6493
6494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6495
6496 # Handling of arguments.
6497 for ac_config_target in $ac_config_targets
6498 do
6499   case $ac_config_target in
6500     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6501     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6502     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6503     "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6504     "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6505     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6506     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6507     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
6508
6509   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6510   esac
6511 done
6512
6513
6514 # If the user did not use the arguments to specify the items to instantiate,
6515 # then the envvar interface is used.  Set only those that are not.
6516 # We use the long form for the default assignment because of an extremely
6517 # bizarre bug on SunOS 4.1.3.
6518 if $ac_need_defaults; then
6519   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6520   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6521   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6522   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6523 fi
6524
6525 # Have a temporary directory for convenience.  Make it in the build tree
6526 # simply because there is no reason against having it here, and in addition,
6527 # creating and moving files from /tmp can sometimes cause problems.
6528 # Hook for its removal unless debugging.
6529 # Note that there is a small window in which the directory will not be cleaned:
6530 # after its creation but before its name has been assigned to `$tmp'.
6531 $debug ||
6532 {
6533   tmp=
6534   trap 'exit_status=$?
6535   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6536 ' 0
6537   trap 'as_fn_exit 1' 1 2 13 15
6538 }
6539 # Create a (secure) tmp directory for tmp files.
6540
6541 {
6542   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6543   test -n "$tmp" && test -d "$tmp"
6544 }  ||
6545 {
6546   tmp=./conf$$-$RANDOM
6547   (umask 077 && mkdir "$tmp")
6548 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6549
6550 # Set up the scripts for CONFIG_FILES section.
6551 # No need to generate them if there are no CONFIG_FILES.
6552 # This happens for instance with `./config.status config.h'.
6553 if test -n "$CONFIG_FILES"; then
6554
6555
6556 ac_cr=`echo X | tr X '\015'`
6557 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6558 # But we know of no other shell where ac_cr would be empty at this
6559 # point, so we can use a bashism as a fallback.
6560 if test "x$ac_cr" = x; then
6561   eval ac_cr=\$\'\\r\'
6562 fi
6563 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6565   ac_cs_awk_cr='\r'
6566 else
6567   ac_cs_awk_cr=$ac_cr
6568 fi
6569
6570 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6571 _ACEOF
6572
6573
6574 {
6575   echo "cat >conf$$subs.awk <<_ACEOF" &&
6576   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6577   echo "_ACEOF"
6578 } >conf$$subs.sh ||
6579   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6580 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6581 ac_delim='%!_!# '
6582 for ac_last_try in false false false false false :; do
6583   . ./conf$$subs.sh ||
6584     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6585
6586   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6587   if test $ac_delim_n = $ac_delim_num; then
6588     break
6589   elif $ac_last_try; then
6590     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6591   else
6592     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6593   fi
6594 done
6595 rm -f conf$$subs.sh
6596
6597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6598 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6599 _ACEOF
6600 sed -n '
6601 h
6602 s/^/S["/; s/!.*/"]=/
6603 p
6604 g
6605 s/^[^!]*!//
6606 :repl
6607 t repl
6608 s/'"$ac_delim"'$//
6609 t delim
6610 :nl
6611 h
6612 s/\(.\{148\}\).*/\1/
6613 t more1
6614 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6615 p
6616 n
6617 b repl
6618 :more1
6619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6620 p
6621 g
6622 s/.\{148\}//
6623 t nl
6624 :delim
6625 h
6626 s/\(.\{148\}\).*/\1/
6627 t more2
6628 s/["\\]/\\&/g; s/^/"/; s/$/"/
6629 p
6630 b
6631 :more2
6632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6633 p
6634 g
6635 s/.\{148\}//
6636 t delim
6637 ' <conf$$subs.awk | sed '
6638 /^[^""]/{
6639   N
6640   s/\n//
6641 }
6642 ' >>$CONFIG_STATUS || ac_write_fail=1
6643 rm -f conf$$subs.awk
6644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6645 _ACAWK
6646 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6647   for (key in S) S_is_set[key] = 1
6648   FS = "\a"
6649
6650 }
6651 {
6652   line = $ 0
6653   nfields = split(line, field, "@")
6654   substed = 0
6655   len = length(field[1])
6656   for (i = 2; i < nfields; i++) {
6657     key = field[i]
6658     keylen = length(key)
6659     if (S_is_set[key]) {
6660       value = S[key]
6661       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6662       len += length(value) + length(field[++i])
6663       substed = 1
6664     } else
6665       len += 1 + keylen
6666   }
6667
6668   print line
6669 }
6670
6671 _ACAWK
6672 _ACEOF
6673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6674 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6675   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6676 else
6677   cat
6678 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6679   || as_fn_error "could not setup config files machinery" "$LINENO" 5
6680 _ACEOF
6681
6682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6684 # trailing colons and then remove the whole line if VPATH becomes empty
6685 # (actually we leave an empty line to preserve line numbers).
6686 if test "x$srcdir" = x.; then
6687   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6688 s/:*\$(srcdir):*/:/
6689 s/:*\${srcdir}:*/:/
6690 s/:*@srcdir@:*/:/
6691 s/^\([^=]*=[     ]*\):*/\1/
6692 s/:*$//
6693 s/^[^=]*=[       ]*$//
6694 }'
6695 fi
6696
6697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6698 fi # test -n "$CONFIG_FILES"
6699
6700 # Set up the scripts for CONFIG_HEADERS section.
6701 # No need to generate them if there are no CONFIG_HEADERS.
6702 # This happens for instance with `./config.status Makefile'.
6703 if test -n "$CONFIG_HEADERS"; then
6704 cat >"$tmp/defines.awk" <<\_ACAWK ||
6705 BEGIN {
6706 _ACEOF
6707
6708 # Transform confdefs.h into an awk script `defines.awk', embedded as
6709 # here-document in config.status, that substitutes the proper values into
6710 # config.h.in to produce config.h.
6711
6712 # Create a delimiter string that does not exist in confdefs.h, to ease
6713 # handling of long lines.
6714 ac_delim='%!_!# '
6715 for ac_last_try in false false :; do
6716   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6717   if test -z "$ac_t"; then
6718     break
6719   elif $ac_last_try; then
6720     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6721   else
6722     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6723   fi
6724 done
6725
6726 # For the awk script, D is an array of macro values keyed by name,
6727 # likewise P contains macro parameters if any.  Preserve backslash
6728 # newline sequences.
6729
6730 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6731 sed -n '
6732 s/.\{148\}/&'"$ac_delim"'/g
6733 t rset
6734 :rset
6735 s/^[     ]*#[    ]*define[       ][      ]*/ /
6736 t def
6737 d
6738 :def
6739 s/\\$//
6740 t bsnl
6741 s/["\\]/\\&/g
6742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6743 D["\1"]=" \3"/p
6744 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6745 d
6746 :bsnl
6747 s/["\\]/\\&/g
6748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6749 D["\1"]=" \3\\\\\\n"\\/p
6750 t cont
6751 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6752 t cont
6753 d
6754 :cont
6755 n
6756 s/.\{148\}/&'"$ac_delim"'/g
6757 t clear
6758 :clear
6759 s/\\$//
6760 t bsnlc
6761 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6762 d
6763 :bsnlc
6764 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6765 b cont
6766 ' <confdefs.h | sed '
6767 s/'"$ac_delim"'/"\\\
6768 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6769
6770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6771   for (key in D) D_is_set[key] = 1
6772   FS = "\a"
6773 }
6774 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6775   line = \$ 0
6776   split(line, arg, " ")
6777   if (arg[1] == "#") {
6778     defundef = arg[2]
6779     mac1 = arg[3]
6780   } else {
6781     defundef = substr(arg[1], 2)
6782     mac1 = arg[2]
6783   }
6784   split(mac1, mac2, "(") #)
6785   macro = mac2[1]
6786   prefix = substr(line, 1, index(line, defundef) - 1)
6787   if (D_is_set[macro]) {
6788     # Preserve the white space surrounding the "#".
6789     print prefix "define", macro P[macro] D[macro]
6790     next
6791   } else {
6792     # Replace #undef with comments.  This is necessary, for example,
6793     # in the case of _POSIX_SOURCE, which is predefined and required
6794     # on some systems where configure will not decide to define it.
6795     if (defundef == "undef") {
6796       print "/*", prefix defundef, macro, "*/"
6797       next
6798     }
6799   }
6800 }
6801 { print }
6802 _ACAWK
6803 _ACEOF
6804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6805   as_fn_error "could not setup config headers machinery" "$LINENO" 5
6806 fi # test -n "$CONFIG_HEADERS"
6807
6808
6809 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
6810 shift
6811 for ac_tag
6812 do
6813   case $ac_tag in
6814   :[FHLC]) ac_mode=$ac_tag; continue;;
6815   esac
6816   case $ac_mode$ac_tag in
6817   :[FHL]*:*);;
6818   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6819   :[FH]-) ac_tag=-:-;;
6820   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6821   esac
6822   ac_save_IFS=$IFS
6823   IFS=:
6824   set x $ac_tag
6825   IFS=$ac_save_IFS
6826   shift
6827   ac_file=$1
6828   shift
6829
6830   case $ac_mode in
6831   :L) ac_source=$1;;
6832   :[FH])
6833     ac_file_inputs=
6834     for ac_f
6835     do
6836       case $ac_f in
6837       -) ac_f="$tmp/stdin";;
6838       *) # Look for the file first in the build tree, then in the source tree
6839          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6840          # because $ac_f cannot contain `:'.
6841          test -f "$ac_f" ||
6842            case $ac_f in
6843            [\\/$]*) false;;
6844            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6845            esac ||
6846            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6847       esac
6848       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6849       as_fn_append ac_file_inputs " '$ac_f'"
6850     done
6851
6852     # Let's still pretend it is `configure' which instantiates (i.e., don't
6853     # use $as_me), people would be surprised to read:
6854     #    /* config.h.  Generated by config.status.  */
6855     configure_input='Generated from '`
6856           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6857         `' by configure.'
6858     if test x"$ac_file" != x-; then
6859       configure_input="$ac_file.  $configure_input"
6860       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6861 $as_echo "$as_me: creating $ac_file" >&6;}
6862     fi
6863     # Neutralize special characters interpreted by sed in replacement strings.
6864     case $configure_input in #(
6865     *\&* | *\|* | *\\* )
6866        ac_sed_conf_input=`$as_echo "$configure_input" |
6867        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6868     *) ac_sed_conf_input=$configure_input;;
6869     esac
6870
6871     case $ac_tag in
6872     *:-:* | *:-) cat >"$tmp/stdin" \
6873       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6874     esac
6875     ;;
6876   esac
6877
6878   ac_dir=`$as_dirname -- "$ac_file" ||
6879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6880          X"$ac_file" : 'X\(//\)[^/]' \| \
6881          X"$ac_file" : 'X\(//\)$' \| \
6882          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6883 $as_echo X"$ac_file" |
6884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6885             s//\1/
6886             q
6887           }
6888           /^X\(\/\/\)[^/].*/{
6889             s//\1/
6890             q
6891           }
6892           /^X\(\/\/\)$/{
6893             s//\1/
6894             q
6895           }
6896           /^X\(\/\).*/{
6897             s//\1/
6898             q
6899           }
6900           s/.*/./; q'`
6901   as_dir="$ac_dir"; as_fn_mkdir_p
6902   ac_builddir=.
6903
6904 case "$ac_dir" in
6905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6906 *)
6907   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6908   # A ".." for each directory in $ac_dir_suffix.
6909   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6910   case $ac_top_builddir_sub in
6911   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6912   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6913   esac ;;
6914 esac
6915 ac_abs_top_builddir=$ac_pwd
6916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6917 # for backward compatibility:
6918 ac_top_builddir=$ac_top_build_prefix
6919
6920 case $srcdir in
6921   .)  # We are building in place.
6922     ac_srcdir=.
6923     ac_top_srcdir=$ac_top_builddir_sub
6924     ac_abs_top_srcdir=$ac_pwd ;;
6925   [\\/]* | ?:[\\/]* )  # Absolute name.
6926     ac_srcdir=$srcdir$ac_dir_suffix;
6927     ac_top_srcdir=$srcdir
6928     ac_abs_top_srcdir=$srcdir ;;
6929   *) # Relative name.
6930     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6931     ac_top_srcdir=$ac_top_build_prefix$srcdir
6932     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6933 esac
6934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6935
6936
6937   case $ac_mode in
6938   :F)
6939   #
6940   # CONFIG_FILE
6941   #
6942
6943   case $INSTALL in
6944   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6945   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6946   esac
6947 _ACEOF
6948
6949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6950 # If the template does not know about datarootdir, expand it.
6951 # FIXME: This hack should be removed a few years after 2.60.
6952 ac_datarootdir_hack=; ac_datarootdir_seen=
6953 ac_sed_dataroot='
6954 /datarootdir/ {
6955   p
6956   q
6957 }
6958 /@datadir@/p
6959 /@docdir@/p
6960 /@infodir@/p
6961 /@localedir@/p
6962 /@mandir@/p'
6963 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6964 *datarootdir*) ac_datarootdir_seen=yes;;
6965 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6966   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6967 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6968 _ACEOF
6969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6970   ac_datarootdir_hack='
6971   s&@datadir@&$datadir&g
6972   s&@docdir@&$docdir&g
6973   s&@infodir@&$infodir&g
6974   s&@localedir@&$localedir&g
6975   s&@mandir@&$mandir&g
6976   s&\\\${datarootdir}&$datarootdir&g' ;;
6977 esac
6978 _ACEOF
6979
6980 # Neutralize VPATH when `$srcdir' = `.'.
6981 # Shell code in configure.ac might set extrasub.
6982 # FIXME: do we really want to maintain this feature?
6983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6984 ac_sed_extra="$ac_vpsub
6985 $extrasub
6986 _ACEOF
6987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6988 :t
6989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6990 s|@configure_input@|$ac_sed_conf_input|;t t
6991 s&@top_builddir@&$ac_top_builddir_sub&;t t
6992 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6993 s&@srcdir@&$ac_srcdir&;t t
6994 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6995 s&@top_srcdir@&$ac_top_srcdir&;t t
6996 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6997 s&@builddir@&$ac_builddir&;t t
6998 s&@abs_builddir@&$ac_abs_builddir&;t t
6999 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7000 s&@INSTALL@&$ac_INSTALL&;t t
7001 $ac_datarootdir_hack
7002 "
7003 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7004   || as_fn_error "could not create $ac_file" "$LINENO" 5
7005
7006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7007   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7008   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7010 which seems to be undefined.  Please make sure it is defined." >&5
7011 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7012 which seems to be undefined.  Please make sure it is defined." >&2;}
7013
7014   rm -f "$tmp/stdin"
7015   case $ac_file in
7016   -) cat "$tmp/out" && rm -f "$tmp/out";;
7017   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7018   esac \
7019   || as_fn_error "could not create $ac_file" "$LINENO" 5
7020  ;;
7021   :H)
7022   #
7023   # CONFIG_HEADER
7024   #
7025   if test x"$ac_file" != x-; then
7026     {
7027       $as_echo "/* $configure_input  */" \
7028       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7029     } >"$tmp/config.h" \
7030       || as_fn_error "could not create $ac_file" "$LINENO" 5
7031     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7032       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7033 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7034     else
7035       rm -f "$ac_file"
7036       mv "$tmp/config.h" "$ac_file" \
7037         || as_fn_error "could not create $ac_file" "$LINENO" 5
7038     fi
7039   else
7040     $as_echo "/* $configure_input  */" \
7041       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7042       || as_fn_error "could not create -" "$LINENO" 5
7043   fi
7044  ;;
7045   :L)
7046   #
7047   # CONFIG_LINK
7048   #
7049
7050   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
7051     :
7052   else
7053     # Prefer the file from the source tree if names are identical.
7054     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7055       ac_source=$srcdir/$ac_source
7056     fi
7057
7058     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7059 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7060
7061     if test ! -r "$ac_source"; then
7062       as_fn_error "$ac_source: file not found" "$LINENO" 5
7063     fi
7064     rm -f "$ac_file"
7065
7066     # Try a relative symlink, then a hard link, then a copy.
7067     case $srcdir in
7068     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7069         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7070     esac
7071     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7072       ln "$ac_source" "$ac_file" 2>/dev/null ||
7073       cp -p "$ac_source" "$ac_file" ||
7074       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7075   fi
7076  ;;
7077   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7078 $as_echo "$as_me: executing $ac_file commands" >&6;}
7079  ;;
7080   esac
7081
7082
7083   case $ac_file$ac_mode in
7084     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7085     "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7086  rm -f Makesim1.tmp Makesim2.tmp Makefile
7087  sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7088  sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
7089  sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7090         -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7091         <Makefile.sim >Makefile
7092  rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7093  ;;
7094     "stamp-h":C) echo > stamp-h ;;
7095
7096   esac
7097 done # for ac_tag
7098
7099
7100 as_fn_exit 0
7101 _ACEOF
7102 ac_clean_files=$ac_clean_files_save
7103
7104 test $ac_write_fail = 0 ||
7105   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7106
7107
7108 # configure is writing to config.log, and then calls config.status.
7109 # config.status does its own redirection, appending to config.log.
7110 # Unfortunately, on DOS this fails, as config.log is still kept open
7111 # by configure, so config.status won't be able to write to it; its
7112 # output is simply discarded.  So we exec the FD to /dev/null,
7113 # effectively closing config.log, so it can be properly (re)opened and
7114 # appended to by config.status.  When coming back to configure, we
7115 # need to make the FD available again.
7116 if test "$no_create" != yes; then
7117   ac_cs_success=:
7118   ac_config_status_args=
7119   test "$silent" = yes &&
7120     ac_config_status_args="$ac_config_status_args --quiet"
7121   exec 5>/dev/null
7122   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7123   exec 5>>config.log
7124   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7125   # would make configure fail if this is the last instruction.
7126   $ac_cs_success || as_fn_exit $?
7127 fi
7128 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7130 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7131 fi
7132
7133