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