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