2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
112 if test "x$as_myself" = x; then
115 if 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; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
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
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$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.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="elf2flt.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
645 use_ld_elf2flt_binary
646 binutils_ldscript_dir
702 program_transform_name
714 enable_option_checking
719 with_binutils_include_dir
720 with_binutils_ldscript_dir
721 with_binutils_build_dir
722 enable_ld_elf2flt_binary
725 enable_emit_ctor_dtor
726 enable_always_reloc_text
728 ac_precious_vars='build_alias
739 # Initialize some variables set by options.
741 ac_init_version=false
742 ac_unrecognized_opts=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
753 program_transform_name=s,x,x,
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 # Accept the important Cygnus configure options, so we can diagnose typos.
805 case $ac_dashdash$ac_option in
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
827 cache_file=config.cache ;;
829 -datadir | --datadir | --datadi | --datad)
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
841 -disable-* | --disable-*)
842 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
846 { (exit 1); exit 1; }; }
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
856 eval enable_$ac_useropt=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 -enable-* | --enable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
873 { (exit 1); exit 1; }; }
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
883 eval enable_$ac_useropt=\$ac_optarg ;;
885 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887 | --exec | --exe | --ex)
888 ac_prev=exec_prefix ;;
889 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891 | --exec=* | --exe=* | --ex=*)
892 exec_prefix=$ac_optarg ;;
894 -gas | --gas | --ga | --g)
895 # Obsolete; use --with-gas.
898 -help | --help | --hel | --he | -h)
900 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901 ac_init_help=recursive ;;
902 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903 ac_init_help=short ;;
905 -host | --host | --hos | --ho)
906 ac_prev=host_alias ;;
907 -host=* | --host=* | --hos=* | --ho=*)
908 host_alias=$ac_optarg ;;
910 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914 htmldir=$ac_optarg ;;
916 -includedir | --includedir | --includedi | --included | --include \
917 | --includ | --inclu | --incl | --inc)
918 ac_prev=includedir ;;
919 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920 | --includ=* | --inclu=* | --incl=* | --inc=*)
921 includedir=$ac_optarg ;;
923 -infodir | --infodir | --infodi | --infod | --info | --inf)
925 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926 infodir=$ac_optarg ;;
928 -libdir | --libdir | --libdi | --libd)
930 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934 | --libexe | --libex | --libe)
935 ac_prev=libexecdir ;;
936 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937 | --libexe=* | --libex=* | --libe=*)
938 libexecdir=$ac_optarg ;;
940 -localedir | --localedir | --localedi | --localed | --locale)
942 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943 localedir=$ac_optarg ;;
945 -localstatedir | --localstatedir | --localstatedi | --localstated \
946 | --localstate | --localstat | --localsta | --localst | --locals)
947 ac_prev=localstatedir ;;
948 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950 localstatedir=$ac_optarg ;;
952 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958 # Obsolete; use --without-fp.
961 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962 | --no-cr | --no-c | -n)
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971 | --oldin | --oldi | --old | --ol | --o)
972 ac_prev=oldincludedir ;;
973 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976 oldincludedir=$ac_optarg ;;
978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 -program-prefix | --program-prefix | --program-prefi | --program-pref \
984 | --program-pre | --program-pr | --program-p)
985 ac_prev=program_prefix ;;
986 -program-prefix=* | --program-prefix=* | --program-prefi=* \
987 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988 program_prefix=$ac_optarg ;;
990 -program-suffix | --program-suffix | --program-suffi | --program-suff \
991 | --program-suf | --program-su | --program-s)
992 ac_prev=program_suffix ;;
993 -program-suffix=* | --program-suffix=* | --program-suffi=* \
994 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995 program_suffix=$ac_optarg ;;
997 -program-transform-name | --program-transform-name \
998 | --program-transform-nam | --program-transform-na \
999 | --program-transform-n | --program-transform- \
1000 | --program-transform | --program-transfor \
1001 | --program-transfo | --program-transf \
1002 | --program-trans | --program-tran \
1003 | --progr-tra | --program-tr | --program-t)
1004 ac_prev=program_transform_name ;;
1005 -program-transform-name=* | --program-transform-name=* \
1006 | --program-transform-nam=* | --program-transform-na=* \
1007 | --program-transform-n=* | --program-transform-=* \
1008 | --program-transform=* | --program-transfor=* \
1009 | --program-transfo=* | --program-transf=* \
1010 | --program-trans=* | --program-tran=* \
1011 | --progr-tra=* | --program-tr=* | --program-t=*)
1012 program_transform_name=$ac_optarg ;;
1014 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017 pdfdir=$ac_optarg ;;
1019 -psdir | --psdir | --psdi | --psd | --ps)
1021 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025 | -silent | --silent | --silen | --sile | --sil)
1028 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032 sbindir=$ac_optarg ;;
1034 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1035 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036 | --sharedst | --shareds | --shared | --share | --shar \
1038 ac_prev=sharedstatedir ;;
1039 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043 sharedstatedir=$ac_optarg ;;
1045 -site | --site | --sit)
1047 -site=* | --site=* | --sit=*)
1050 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053 srcdir=$ac_optarg ;;
1055 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056 | --syscon | --sysco | --sysc | --sys | --sy)
1057 ac_prev=sysconfdir ;;
1058 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060 sysconfdir=$ac_optarg ;;
1062 -target | --target | --targe | --targ | --tar | --ta | --t)
1063 ac_prev=target_alias ;;
1064 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065 target_alias=$ac_optarg ;;
1067 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 -version | --version | --versio | --versi | --vers | -V)
1071 ac_init_version=: ;;
1074 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1088 eval with_$ac_useropt=\$ac_optarg ;;
1090 -without-* | --without-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval with_$ac_useropt=no ;;
1108 # Obsolete; use --with-x.
1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112 | --x-incl | --x-inc | --x-in | --x-i)
1113 ac_prev=x_includes ;;
1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116 x_includes=$ac_optarg ;;
1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120 ac_prev=x_libraries ;;
1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123 x_libraries=$ac_optarg ;;
1125 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1126 Try \`$0 --help' for more information." >&2
1127 { (exit 1); exit 1; }; }
1131 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1134 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1135 { (exit 1); exit 1; }; }
1136 eval $ac_envvar=\$ac_optarg
1137 export $ac_envvar ;;
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1150 if test -n "$ac_prev"; then
1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1153 { (exit 1); exit 1; }; }
1156 if test -n "$ac_unrecognized_opts"; then
1157 case $enable_option_checking in
1159 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1160 { (exit 1); exit 1; }; } ;;
1161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1165 # Check all directory arguments for consistency.
1166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir
1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1178 # Be sure to have absolute directory names.
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1184 { (exit 1); exit 1; }; }
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1192 target=$target_alias
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used." >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208 test "$silent" = yes && exec 6>/dev/null
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1215 { (exit 1); exit 1; }; }
1216 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1218 { (exit 1); exit 1; }; }
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1253 ac_srcdir_defaulted=no
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1258 { (exit 1); exit 1; }; }
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1263 { (exit 1); exit 1; }; }
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1289 \`configure' configures this package to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1347 --build=BUILD configure for building on BUILD [guessed]
1348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1349 --target=TARGET configure for building compilers for TARGET [HOST]
1353 if test -n "$ac_init_help"; then
1358 --disable-option-checking ignore unrecognized --enable/--with options
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --disable-ld-elf2flt-binary
1362 use ld-elf2flt shell script
1363 --disable-got-check - disable check for GOT (needed on H8)
1364 --disable-emit-relocs - don't use the --emit-relocs (-q) linker option
1365 --enable-emit-ctor-dtor manually create ctor/dtor list
1366 --enable-always-reloc-text
1367 always process text relocs ignoring pic/got (needed
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-zlib-prefix=<dir> path to installed zlib
1374 --with-libbfd=<file> path to libbfd.a library to use
1375 --with-libiberty=<file> path to libiberty.a library to use
1376 --with-bfd-include-dir=<dir> include path for correct bfd.h
1377 --with-binutils-include-dir=<dir> include path for binutils headers
1378 --with-binutils-ldscript-dir=<dir> path to install elf2flt.ld
1379 --with-binutils-build-dir=<dir> path to compiled binutils tree
1381 Some influential environment variables:
1382 CC C compiler command
1383 CFLAGS C compiler flags
1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1385 nonstandard directory <lib dir>
1386 LIBS libraries to pass to the linker, e.g. -l<library>
1387 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 you have headers in a nonstandard directory <include dir>
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" ||
1402 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1423 .) # We are building in place.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1447 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1457 generated by GNU Autoconf 2.63
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1470 It was created by $as_me, which was
1471 generated by GNU Autoconf 2.63. Invocation command line was
1483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1490 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1492 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1493 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1495 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1496 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1497 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1498 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 $as_echo "PATH: $as_dir"
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1531 ac_must_keep_next=false
1537 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539 | -silent | --silent | --silen | --sile | --sil)
1542 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1545 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1547 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548 if test $ac_must_keep_next = true; then
1549 ac_must_keep_next=false # Got value, back to normal.
1552 *=* | --config-cache | -C | -disable-* | --disable-* \
1553 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555 | -with-* | --with-* | -without-* | --without-* | --x)
1556 case "$ac_configure_args0 " in
1557 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560 -* ) ac_must_keep_next=true ;;
1563 ac_configure_args="$ac_configure_args '$ac_arg'"
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log. We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577 # Save into config.log some information that might help in debugging.
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1587 # The following way of writing the cache mishandles newlines in values,
1589 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1590 eval ac_val=\$$ac_var
1594 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1598 _ | IFS | as_nl) ;; #(
1599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1600 *) $as_unset $ac_var ;;
1605 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1606 *${as_nl}ac_space=\ *)
1608 "s/'\''/'\''\\\\'\'''\''/g;
1609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1612 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1620 ## ----------------- ##
1621 ## Output variables. ##
1622 ## ----------------- ##
1625 for ac_var in $ac_subst_vars
1627 eval ac_val=\$$ac_var
1629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 $as_echo "$ac_var='\''$ac_val'\''"
1635 if test -n "$ac_subst_files"; then
1637 ## ------------------- ##
1638 ## File substitutions. ##
1639 ## ------------------- ##
1642 for ac_var in $ac_subst_files
1644 eval ac_val=\$$ac_var
1646 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 $as_echo "$ac_var='\''$ac_val'\''"
1653 if test -s confdefs.h; then
1663 test "$ac_signal" != 0 &&
1664 $as_echo "$as_me: caught signal $ac_signal"
1665 $as_echo "$as_me: exit $exit_status"
1667 rm -f core *.core core.conftest.* &&
1668 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1671 for ac_signal in 1 2 13 15; do
1672 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1676 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1677 rm -f -r conftest* confdefs.h
1679 # Predefined preprocessor variables.
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_NAME "$PACKAGE_NAME"
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_STRING "$PACKAGE_STRING"
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1706 # Let the site file select an alternate cache file if it wants to.
1707 # Prefer an explicitly selected file to automatically selected ones.
1710 if test -n "$CONFIG_SITE"; then
1711 ac_site_file1=$CONFIG_SITE
1712 elif test "x$prefix" != xNONE; then
1713 ac_site_file1=$prefix/share/config.site
1714 ac_site_file2=$prefix/etc/config.site
1716 ac_site_file1=$ac_default_prefix/share/config.site
1717 ac_site_file2=$ac_default_prefix/etc/config.site
1719 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1721 test "x$ac_site_file" = xNONE && continue
1722 if test -r "$ac_site_file"; then
1723 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1724 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1725 sed 's/^/| /' "$ac_site_file" >&5
1730 if test -r "$cache_file"; then
1731 # Some versions of bash will fail to source /dev/null (special
1732 # files actually), so we avoid doing that.
1733 if test -f "$cache_file"; then
1734 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1735 $as_echo "$as_me: loading cache $cache_file" >&6;}
1737 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1738 *) . "./$cache_file";;
1742 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1743 $as_echo "$as_me: creating cache $cache_file" >&6;}
1747 # Check that the precious variables saved in the cache have kept the same
1749 ac_cache_corrupted=false
1750 for ac_var in $ac_precious_vars; do
1751 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1752 eval ac_new_set=\$ac_env_${ac_var}_set
1753 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1754 eval ac_new_val=\$ac_env_${ac_var}_value
1755 case $ac_old_set,$ac_new_set in
1757 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1758 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1761 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1762 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1763 ac_cache_corrupted=: ;;
1766 if test "x$ac_old_val" != "x$ac_new_val"; then
1767 # differences in whitespace do not lead to failure.
1768 ac_old_val_w=`echo x $ac_old_val`
1769 ac_new_val_w=`echo x $ac_new_val`
1770 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1771 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1772 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1773 ac_cache_corrupted=:
1775 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1776 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1777 eval $ac_var=\$ac_old_val
1779 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1780 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1781 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1782 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1785 # Pass precious variables to config.status.
1786 if test "$ac_new_set" = set; then
1788 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 *) ac_arg=$ac_var=$ac_new_val ;;
1791 case " $ac_configure_args " in
1792 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1793 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1797 if $ac_cache_corrupted; then
1798 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804 { (exit 1); exit 1; }; }
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 # Check whether --with-zlib-prefix was given.
1833 if test "${with_zlib_prefix+set}" = set; then
1834 withval=$with_zlib_prefix; ac_zlib_prefix=$withval
1842 # Check whether --with-libbfd was given.
1843 if test "${with_libbfd+set}" = set; then
1844 withval=$with_libbfd; ac_libbfd=$withval
1852 # Check whether --with-libiberty was given.
1853 if test "${with_libiberty+set}" = set; then
1854 withval=$with_libiberty; ac_libiberty=$withval
1862 # Check whether --with-bfd-include-dir was given.
1863 if test "${with_bfd_include_dir+set}" = set; then
1864 withval=$with_bfd_include_dir; ac_bfd_include_dir=$withval
1866 ac_bfd_include_dir=NONE
1872 # Check whether --with-binutils-include-dir was given.
1873 if test "${with_binutils_include_dir+set}" = set; then
1874 withval=$with_binutils_include_dir; ac_binutils_include_dir=$withval
1876 ac_binutils_include_dir=NONE
1882 # Check whether --with-binutils-ldscript-dir was given.
1883 if test "${with_binutils_ldscript_dir+set}" = set; then
1884 withval=$with_binutils_ldscript_dir; ac_binutils_ldscript_dir=$withval
1886 ac_binutils_ldscript_dir=NONE
1892 # Check whether --with-binutils-build-dir was given.
1893 if test "${with_binutils_build_dir+set}" = set; then
1894 withval=$with_binutils_build_dir; ac_binutils_build_dir=$withval
1896 ac_binutils_build_dir=NONE
1901 # Check whether --enable-ld-elf2flt-binary was given.
1902 if test "${enable_ld_elf2flt_binary+set}" = set; then
1903 enableval=$enable_ld_elf2flt_binary; use_ld_elf2flt_binary=$enableval
1905 use_ld_elf2flt_binary=yes
1911 if eval test \"\$$1\" = yes ; then
1918 # Check whether --enable-got-check was given.
1919 if test "${enable_got_check+set}" = set; then
1920 enableval=$enable_got_check; got_check=$enableval
1926 var_yn_to_10 got_check
1928 # Check whether --enable-emit-relocs was given.
1929 if test "${enable_emit_relocs+set}" = set; then
1930 enableval=$enable_emit_relocs; emit_relocs=$enableval
1936 var_yn_to_10 emit_relocs
1938 # Check whether --enable-emit-ctor-dtor was given.
1939 if test "${enable_emit_ctor_dtor+set}" = set; then
1940 enableval=$enable_emit_ctor_dtor; emit_ctor_dtor=$enableval
1946 var_yn_to_10 emit_ctor_dtor
1948 # Check whether --enable-always-reloc-text was given.
1949 if test "${enable_always_reloc_text+set}" = set; then
1950 enableval=$enable_always_reloc_text; always_reloc_text=$enableval
1954 bfin*) always_reloc_text=yes;;
1955 *) always_reloc_text=no;;
1961 var_yn_to_10 always_reloc_text
1964 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1965 if test -f "$ac_dir/install-sh"; then
1967 ac_install_sh="$ac_aux_dir/install-sh -c"
1969 elif test -f "$ac_dir/install.sh"; then
1971 ac_install_sh="$ac_aux_dir/install.sh -c"
1973 elif test -f "$ac_dir/shtool"; then
1975 ac_install_sh="$ac_aux_dir/shtool install -c"
1979 if test -z "$ac_aux_dir"; then
1980 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1981 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1982 { (exit 1); exit 1; }; }
1985 # These three variables are undocumented and unsupported,
1986 # and are intended to be withdrawn in a future Autoconf release.
1987 # They can cause serious problems if a builder's source tree is in a directory
1988 # whose full name contains unusual characters.
1989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1994 # Make sure we can run config.sub.
1995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1996 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1997 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1998 { (exit 1); exit 1; }; }
2000 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2001 $as_echo_n "checking build system type... " >&6; }
2002 if test "${ac_cv_build+set}" = set; then
2003 $as_echo_n "(cached) " >&6
2005 ac_build_alias=$build_alias
2006 test "x$ac_build_alias" = x &&
2007 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2008 test "x$ac_build_alias" = x &&
2009 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2010 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2011 { (exit 1); exit 1; }; }
2012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2013 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2014 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2015 { (exit 1); exit 1; }; }
2018 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2019 $as_echo "$ac_cv_build" >&6; }
2020 case $ac_cv_build in
2022 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2023 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2024 { (exit 1); exit 1; }; };;
2027 ac_save_IFS=$IFS; IFS='-'
2033 # Remember, the first character of IFS is used to create $*,
2034 # except with old shells:
2037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2040 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2041 $as_echo_n "checking host system type... " >&6; }
2042 if test "${ac_cv_host+set}" = set; then
2043 $as_echo_n "(cached) " >&6
2045 if test "x$host_alias" = x; then
2046 ac_cv_host=$ac_cv_build
2048 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2049 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2050 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2051 { (exit 1); exit 1; }; }
2055 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2056 $as_echo "$ac_cv_host" >&6; }
2059 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2060 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2061 { (exit 1); exit 1; }; };;
2064 ac_save_IFS=$IFS; IFS='-'
2070 # Remember, the first character of IFS is used to create $*,
2071 # except with old shells:
2074 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2077 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2078 $as_echo_n "checking target system type... " >&6; }
2079 if test "${ac_cv_target+set}" = set; then
2080 $as_echo_n "(cached) " >&6
2082 if test "x$target_alias" = x; then
2083 ac_cv_target=$ac_cv_host
2085 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2086 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2087 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2088 { (exit 1); exit 1; }; }
2092 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2093 $as_echo "$ac_cv_target" >&6; }
2094 case $ac_cv_target in
2096 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2097 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2098 { (exit 1); exit 1; }; };;
2100 target=$ac_cv_target
2101 ac_save_IFS=$IFS; IFS='-'
2107 # Remember, the first character of IFS is used to create $*,
2108 # except with old shells:
2111 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2114 # The aliases save the names the user supplied, while $host etc.
2115 # will get canonicalized.
2116 test -n "$target_alias" &&
2117 test "$program_prefix$program_suffix$program_transform_name" = \
2119 program_prefix=${target_alias}-
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126 if test -n "$ac_tool_prefix"; then
2127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 $as_echo_n "checking for $ac_word... " >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 $as_echo_n "(cached) " >&6
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 if test -n "$CC"; then
2156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2157 $as_echo "$CC" >&6; }
2159 { $as_echo "$as_me:$LINENO: result: no" >&5
2160 $as_echo "no" >&6; }
2165 if test -z "$ac_cv_prog_CC"; then
2167 # Extract the first word of "gcc", so it can be a program name with args.
2168 set dummy gcc; ac_word=$2
2169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172 $as_echo_n "(cached) " >&6
2174 if test -n "$ac_ct_CC"; then
2175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_ac_ct_CC="gcc"
2185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 $as_echo "$ac_ct_CC" >&6; }
2199 { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2203 if test "x$ac_ct_CC" = x; then
2206 case $cross_compiling:$ac_tool_warned in
2208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2210 ac_tool_warned=yes ;;
2218 if test -z "$CC"; then
2219 if test -n "$ac_tool_prefix"; then
2220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2221 set dummy ${ac_tool_prefix}cc; ac_word=$2
2222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 $as_echo_n "checking for $ac_word... " >&6; }
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225 $as_echo_n "(cached) " >&6
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237 ac_cv_prog_CC="${ac_tool_prefix}cc"
2238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 if test -n "$CC"; then
2249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2250 $as_echo "$CC" >&6; }
2252 { $as_echo "$as_me:$LINENO: result: no" >&5
2253 $as_echo "no" >&6; }
2259 if test -z "$CC"; then
2260 # Extract the first word of "cc", so it can be a program name with args.
2261 set dummy cc; ac_word=$2
2262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 $as_echo_n "checking for $ac_word... " >&6; }
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 $as_echo_n "(cached) " >&6
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2279 ac_prog_rejected=yes
2283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 if test $ac_prog_rejected = yes; then
2291 # We found a bogon in the path, so make sure we never use it.
2292 set dummy $ac_cv_prog_CC
2294 if test $# != 0; then
2295 # We chose a different compiler from the bogus one.
2296 # However, it has the same basename, so the bogon will be chosen
2297 # first if we set CC to just the basename; use the full file name.
2299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2305 if test -n "$CC"; then
2306 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2307 $as_echo "$CC" >&6; }
2309 { $as_echo "$as_me:$LINENO: result: no" >&5
2310 $as_echo "no" >&6; }
2315 if test -z "$CC"; then
2316 if test -n "$ac_tool_prefix"; then
2317 for ac_prog in cl.exe
2319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2326 if test -n "$CC"; then
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 if test -n "$CC"; then
2348 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2349 $as_echo "$CC" >&6; }
2351 { $as_echo "$as_me:$LINENO: result: no" >&5
2352 $as_echo "no" >&6; }
2356 test -n "$CC" && break
2359 if test -z "$CC"; then
2361 for ac_prog in cl.exe
2363 # Extract the first word of "$ac_prog", so it can be a program name with args.
2364 set dummy $ac_prog; ac_word=$2
2365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 $as_echo_n "(cached) " >&6
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_CC="$ac_prog"
2381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391 if test -n "$ac_ct_CC"; then
2392 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2393 $as_echo "$ac_ct_CC" >&6; }
2395 { $as_echo "$as_me:$LINENO: result: no" >&5
2396 $as_echo "no" >&6; }
2400 test -n "$ac_ct_CC" && break
2403 if test "x$ac_ct_CC" = x; then
2406 case $cross_compiling:$ac_tool_warned in
2408 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2410 ac_tool_warned=yes ;;
2419 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2422 See \`config.log' for more details." >&5
2423 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2424 See \`config.log' for more details." >&2;}
2425 { (exit 1); exit 1; }; }; }
2427 # Provide some information about the compiler.
2428 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2431 { (ac_try="$ac_compiler --version >&5"
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2437 $as_echo "$ac_try_echo") >&5
2438 (eval "$ac_compiler --version >&5") 2>&5
2440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2442 { (ac_try="$ac_compiler -v >&5"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2448 $as_echo "$ac_try_echo") >&5
2449 (eval "$ac_compiler -v >&5") 2>&5
2451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }
2453 { (ac_try="$ac_compiler -V >&5"
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2459 $as_echo "$ac_try_echo") >&5
2460 (eval "$ac_compiler -V >&5") 2>&5
2462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 ac_clean_files_save=$ac_clean_files
2481 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2482 # Try to create an executable without -o first, disregard a.out.
2483 # It will help us diagnose broken compilers, and finding out an intuition
2485 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2486 $as_echo_n "checking for C compiler default output file name... " >&6; }
2487 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2489 # The possible output files:
2490 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2493 for ac_file in $ac_files
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2497 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2502 if { (ac_try="$ac_link_default"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2508 $as_echo "$ac_try_echo") >&5
2509 (eval "$ac_link_default") 2>&5
2511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2514 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2515 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2516 # so that the user can short-circuit this test for compilers unknown to
2518 for ac_file in $ac_files ''
2520 test -f "$ac_file" || continue
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2525 # We found the default executable, but exeext='' is most
2529 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2531 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 # We set ac_cv_exeext here because the later test for it is not
2534 # safe: cross compilers may not add the suffix if given an `-o'
2535 # argument, so we may need to know it at that point already.
2536 # Even if this section looks crufty: it has the advantage of
2543 test "$ac_cv_exeext" = no && ac_cv_exeext=
2549 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2550 $as_echo "$ac_file" >&6; }
2551 if test -z "$ac_file"; then
2552 $as_echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2557 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2558 See \`config.log' for more details." >&5
2559 $as_echo "$as_me: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&2;}
2561 { (exit 77); exit 77; }; }; }
2564 ac_exeext=$ac_cv_exeext
2566 # Check that the compiler produces executables we can run. If not, either
2567 # the compiler is broken, or we cross compile.
2568 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2569 $as_echo_n "checking whether the C compiler works... " >&6; }
2570 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2571 # If not cross compiling, check that we can run a simple program.
2572 if test "$cross_compiling" != yes; then
2573 if { ac_try='./$ac_file'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2579 $as_echo "$ac_try_echo") >&5
2580 (eval "$ac_try") 2>&5
2582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2586 if test "$cross_compiling" = maybe; then
2589 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&5
2594 $as_echo "$as_me: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }; }
2601 { $as_echo "$as_me:$LINENO: result: yes" >&5
2602 $as_echo "yes" >&6; }
2604 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2605 ac_clean_files=$ac_clean_files_save
2606 # Check that the compiler produces executables we can run. If not, either
2607 # the compiler is broken, or we cross compile.
2608 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2609 $as_echo_n "checking whether we are cross compiling... " >&6; }
2610 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2611 $as_echo "$cross_compiling" >&6; }
2613 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2614 $as_echo_n "checking for suffix of executables... " >&6; }
2615 if { (ac_try="$ac_link"
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2621 $as_echo "$ac_try_echo") >&5
2622 (eval "$ac_link") 2>&5
2624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2627 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2628 # work properly (i.e., refer to `conftest.exe'), while it won't with
2630 for ac_file in conftest.exe conftest conftest.*; do
2631 test -f "$ac_file" || continue
2633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2643 See \`config.log' for more details." >&5
2644 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2645 See \`config.log' for more details." >&2;}
2646 { (exit 1); exit 1; }; }; }
2649 rm -f conftest$ac_cv_exeext
2650 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2651 $as_echo "$ac_cv_exeext" >&6; }
2653 rm -f conftest.$ac_ext
2654 EXEEXT=$ac_cv_exeext
2656 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2657 $as_echo_n "checking for suffix of object files... " >&6; }
2658 if test "${ac_cv_objext+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2661 cat >conftest.$ac_ext <<_ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2676 rm -f conftest.o conftest.obj
2677 if { (ac_try="$ac_compile"
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2683 $as_echo "$ac_try_echo") >&5
2684 (eval "$ac_compile") 2>&5
2686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; then
2688 for ac_file in conftest.o conftest.obj conftest.*; do
2689 test -f "$ac_file" || continue;
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2697 $as_echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2702 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2703 See \`config.log' for more details." >&5
2704 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }; }
2709 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2711 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2712 $as_echo "$ac_cv_objext" >&6; }
2713 OBJEXT=$ac_cv_objext
2715 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2716 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2717 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2718 $as_echo_n "(cached) " >&6
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2738 rm -f conftest.$ac_objext
2739 if { (ac_try="$ac_compile"
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2745 $as_echo "$ac_try_echo") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } && {
2753 test -z "$ac_c_werror_flag" ||
2754 test ! -s conftest.err
2755 } && test -s conftest.$ac_objext; then
2758 $as_echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2768 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2769 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2770 if test $ac_compiler_gnu = yes; then
2775 ac_test_CFLAGS=${CFLAGS+set}
2776 ac_save_CFLAGS=$CFLAGS
2777 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2778 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2779 if test "${ac_cv_prog_cc_g+set}" = set; then
2780 $as_echo_n "(cached) " >&6
2782 ac_save_c_werror_flag=$ac_c_werror_flag
2783 ac_c_werror_flag=yes
2786 cat >conftest.$ac_ext <<_ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2801 rm -f conftest.$ac_objext
2802 if { (ac_try="$ac_compile"
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808 $as_echo "$ac_try_echo") >&5
2809 (eval "$ac_compile") 2>conftest.er1
2811 grep -v '^ *+' conftest.er1 >conftest.err
2813 cat conftest.err >&5
2814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
2821 $as_echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2847 $as_echo "$ac_try_echo") >&5
2848 (eval "$ac_compile") 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } && {
2855 test -z "$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2857 } && test -s conftest.$ac_objext; then
2860 $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 ac_c_werror_flag=$ac_save_c_werror_flag
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2880 rm -f conftest.$ac_objext
2881 if { (ac_try="$ac_compile"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2887 $as_echo "$ac_try_echo") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2900 $as_echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 $as_echo "$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2926 if test "$GCC" = yes; then
2932 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935 $as_echo_n "(cached) " >&6
2937 ac_cv_prog_cc_c89=no
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2963 s = g (p, va_arg (v,int));
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2969 function prototypes and stuff, but not '\xHH' hex character constants.
2970 These don't provoke an error unfortunately, instead are silently treated
2971 as 'x'. The following induces an error, until -std is added to get
2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2973 array size at least. It's necessary to write '\x00'==0 to get something
2974 that's true only with -std. */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978 inside strings and character constants. */
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 CC="$ac_save_CC $ac_arg"
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3018 ac_cv_prog_cc_c89=$ac_arg
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3026 rm -f core conftest.err conftest.$ac_objext
3027 test "x$ac_cv_prog_cc_c89" != "xno" && break
3029 rm -f conftest.$ac_ext
3034 case "x$ac_cv_prog_cc_c89" in
3036 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3037 $as_echo "none needed" >&6; } ;;
3039 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3040 $as_echo "unsupported" >&6; } ;;
3042 CC="$CC $ac_cv_prog_cc_c89"
3043 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3061 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3066 if test -z "$CPP"; then
3067 if test "${ac_cv_prog_CPP+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3070 # Double quotes because CPP needs to be expanded
3071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3074 for ac_c_preproc_warn_flag in '' yes
3076 # Use a header file that comes with gcc, so configuring glibc
3077 # with a fresh cross-compiler works.
3078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079 # <limits.h> exists even on freestanding compilers.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3089 # include <limits.h>
3091 # include <assert.h>
3095 if { (ac_try="$ac_cpp conftest.$ac_ext"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101 $as_echo "$ac_try_echo") >&5
3102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null && {
3109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3114 $as_echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 # Broken: fails on valid input.
3121 rm -f conftest.err conftest.$ac_ext
3123 # OK, works on sane cases. Now check whether nonexistent headers
3124 # can be detected and how.
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #include <ac_nonexistent.h>
3133 if { (ac_try="$ac_cpp conftest.$ac_ext"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3139 $as_echo "$ac_try_echo") >&5
3140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null && {
3147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3148 test ! -s conftest.err
3150 # Broken: success on invalid input.
3153 $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 # Passes both tests.
3161 rm -f conftest.err conftest.$ac_ext
3164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3165 rm -f conftest.err conftest.$ac_ext
3166 if $ac_preproc_ok; then
3178 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3179 $as_echo "$CPP" >&6; }
3181 for ac_c_preproc_warn_flag in '' yes
3183 # Use a header file that comes with gcc, so configuring glibc
3184 # with a fresh cross-compiler works.
3185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3186 # <limits.h> exists even on freestanding compilers.
3187 # On the NeXT, cc -E runs the code through the compiler's parser,
3188 # not just through cpp. "Syntax error" is here to catch this case.
3189 cat >conftest.$ac_ext <<_ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3196 # include <limits.h>
3198 # include <assert.h>
3202 if { (ac_try="$ac_cpp conftest.$ac_ext"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3208 $as_echo "$ac_try_echo") >&5
3209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3211 grep -v '^ *+' conftest.er1 >conftest.err
3213 cat conftest.err >&5
3214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } >/dev/null && {
3216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3217 test ! -s conftest.err
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 # Broken: fails on valid input.
3228 rm -f conftest.err conftest.$ac_ext
3230 # OK, works on sane cases. Now check whether nonexistent headers
3231 # can be detected and how.
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 #include <ac_nonexistent.h>
3240 if { (ac_try="$ac_cpp conftest.$ac_ext"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null && {
3254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3255 test ! -s conftest.err
3257 # Broken: success on invalid input.
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Passes both tests.
3268 rm -f conftest.err conftest.$ac_ext
3271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272 rm -f conftest.err conftest.$ac_ext
3273 if $ac_preproc_ok; then
3276 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3279 See \`config.log' for more details." >&5
3280 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3281 See \`config.log' for more details." >&2;}
3282 { (exit 1); exit 1; }; }; }
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3293 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3294 if test "${ac_cv_path_GREP+set}" = set; then
3295 $as_echo_n "(cached) " >&6
3297 if test -z "$GREP"; then
3298 ac_path_GREP_found=false
3299 # Loop through the user's path and test for each of PROGNAME-LIST
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3304 test -z "$as_dir" && as_dir=.
3305 for ac_prog in grep ggrep; do
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3308 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3309 # Check for GNU ac_path_GREP and select it if it is found.
3310 # Check for GNU $ac_path_GREP
3311 case `"$ac_path_GREP" --version 2>&1` in
3313 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3316 $as_echo_n 0123456789 >"conftest.in"
3319 cat "conftest.in" "conftest.in" >"conftest.tmp"
3320 mv "conftest.tmp" "conftest.in"
3321 cp "conftest.in" "conftest.nl"
3322 $as_echo 'GREP' >> "conftest.nl"
3323 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3325 ac_count=`expr $ac_count + 1`
3326 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3327 # Best one so far, save it but keep looking for a better one
3328 ac_cv_path_GREP="$ac_path_GREP"
3329 ac_path_GREP_max=$ac_count
3331 # 10*(2^10) chars as input seems more than enough
3332 test $ac_count -gt 10 && break
3334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3337 $ac_path_GREP_found && break 3
3342 if test -z "$ac_cv_path_GREP"; then
3343 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345 { (exit 1); exit 1; }; }
3348 ac_cv_path_GREP=$GREP
3352 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3353 $as_echo "$ac_cv_path_GREP" >&6; }
3354 GREP="$ac_cv_path_GREP"
3357 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3358 $as_echo_n "checking for egrep... " >&6; }
3359 if test "${ac_cv_path_EGREP+set}" = set; then
3360 $as_echo_n "(cached) " >&6
3362 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3363 then ac_cv_path_EGREP="$GREP -E"
3365 if test -z "$EGREP"; then
3366 ac_path_EGREP_found=false
3367 # Loop through the user's path and test for each of PROGNAME-LIST
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3372 test -z "$as_dir" && as_dir=.
3373 for ac_prog in egrep; do
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3376 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3377 # Check for GNU ac_path_EGREP and select it if it is found.
3378 # Check for GNU $ac_path_EGREP
3379 case `"$ac_path_EGREP" --version 2>&1` in
3381 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3384 $as_echo_n 0123456789 >"conftest.in"
3387 cat "conftest.in" "conftest.in" >"conftest.tmp"
3388 mv "conftest.tmp" "conftest.in"
3389 cp "conftest.in" "conftest.nl"
3390 $as_echo 'EGREP' >> "conftest.nl"
3391 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393 ac_count=`expr $ac_count + 1`
3394 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3395 # Best one so far, save it but keep looking for a better one
3396 ac_cv_path_EGREP="$ac_path_EGREP"
3397 ac_path_EGREP_max=$ac_count
3399 # 10*(2^10) chars as input seems more than enough
3400 test $ac_count -gt 10 && break
3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405 $ac_path_EGREP_found && break 3
3410 if test -z "$ac_cv_path_EGREP"; then
3411 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3412 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3413 { (exit 1); exit 1; }; }
3416 ac_cv_path_EGREP=$EGREP
3421 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3422 $as_echo "$ac_cv_path_EGREP" >&6; }
3423 EGREP="$ac_cv_path_EGREP"
3426 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3427 $as_echo_n "checking for ANSI C header files... " >&6; }
3428 if test "${ac_cv_header_stdc+set}" = set; then
3429 $as_echo_n "(cached) " >&6
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3457 $as_echo "$ac_try_echo") >&5
3458 (eval "$ac_compile") 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } && {
3465 test -z "$ac_c_werror_flag" ||
3466 test ! -s conftest.err
3467 } && test -s conftest.$ac_objext; then
3468 ac_cv_header_stdc=yes
3470 $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 ac_cv_header_stdc=no
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 if test $ac_cv_header_stdc = yes; then
3479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 $EGREP "memchr" >/dev/null 2>&1; then
3493 ac_cv_header_stdc=no
3499 if test $ac_cv_header_stdc = yes; then
3500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511 $EGREP "free" >/dev/null 2>&1; then
3514 ac_cv_header_stdc=no
3520 if test $ac_cv_header_stdc = yes; then
3521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3522 if test "$cross_compiling" = yes; then
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3533 #if ((' ' & 0x0FF) == 0x020)
3534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3537 # define ISLOWER(c) \
3538 (('a' <= (c) && (c) <= 'i') \
3539 || ('j' <= (c) && (c) <= 'r') \
3540 || ('s' <= (c) && (c) <= 'z'))
3541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3549 for (i = 0; i < 256; i++)
3550 if (XOR (islower (i), ISLOWER (i))
3551 || toupper (i) != TOUPPER (i))
3556 rm -f conftest$ac_exeext
3557 if { (ac_try="$ac_link"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3563 $as_echo "$ac_try_echo") >&5
3564 (eval "$ac_link") 2>&5
3566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3568 { (case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_try") 2>&5
3576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3580 $as_echo "$as_me: program exited with status $ac_status" >&5
3581 $as_echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3585 ac_cv_header_stdc=no
3587 rm -rf conftest.dSYM
3588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3594 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3595 $as_echo "$ac_cv_header_stdc" >&6; }
3596 if test $ac_cv_header_stdc = yes; then
3598 cat >>confdefs.h <<\_ACEOF
3599 #define STDC_HEADERS 1
3604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3615 inttypes.h stdint.h unistd.h
3617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3619 $as_echo_n "checking for $ac_header... " >&6; }
3620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3621 $as_echo_n "(cached) " >&6
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 $ac_includes_default
3631 #include <$ac_header>
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3640 $as_echo "$ac_try_echo") >&5
3641 (eval "$ac_compile") 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } && {
3648 test -z "$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3650 } && test -s conftest.$ac_objext; then
3651 eval "$as_ac_Header=yes"
3653 $as_echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3656 eval "$as_ac_Header=no"
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_res=`eval 'as_val=${'$as_ac_Header'}
3662 $as_echo "$as_val"'`
3663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3664 $as_echo "$ac_res" >&6; }
3665 as_val=`eval 'as_val=${'$as_ac_Header'}
3666 $as_echo "$as_val"'`
3667 if test "x$as_val" = x""yes; then
3668 cat >>confdefs.h <<_ACEOF
3669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3678 if test "${ac_cv_header_minix_config_h+set}" = set; then
3679 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3680 $as_echo_n "checking for minix/config.h... " >&6; }
3681 if test "${ac_cv_header_minix_config_h+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3685 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3687 # Is the header compilable?
3688 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3689 $as_echo_n "checking minix/config.h usability... " >&6; }
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 $ac_includes_default
3697 #include <minix/config.h>
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3717 ac_header_compiler=yes
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_header_compiler=no
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3727 $as_echo "$ac_header_compiler" >&6; }
3729 # Is the header present?
3730 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3731 $as_echo_n "checking minix/config.h presence... " >&6; }
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #include <minix/config.h>
3740 if { (ac_try="$ac_cpp conftest.$ac_ext"
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3746 $as_echo "$ac_try_echo") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev/null && {
3754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3757 ac_header_preproc=yes
3759 $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_header_preproc=no
3765 rm -f conftest.err conftest.$ac_ext
3766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3767 $as_echo "$ac_header_preproc" >&6; }
3769 # So? What about this header?
3770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3773 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3775 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3776 ac_header_preproc=yes
3779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3780 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3782 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3784 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3786 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3788 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3790 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3795 $as_echo_n "checking for minix/config.h... " >&6; }
3796 if test "${ac_cv_header_minix_config_h+set}" = set; then
3797 $as_echo_n "(cached) " >&6
3799 ac_cv_header_minix_config_h=$ac_header_preproc
3801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3805 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3812 if test "$MINIX" = yes; then
3814 cat >>confdefs.h <<\_ACEOF
3815 #define _POSIX_SOURCE 1
3819 cat >>confdefs.h <<\_ACEOF
3820 #define _POSIX_1_SOURCE 2
3824 cat >>confdefs.h <<\_ACEOF
3832 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3835 $as_echo_n "(cached) " >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3844 # define __EXTENSIONS__ 1
3845 $ac_includes_default
3854 rm -f conftest.$ac_objext
3855 if { (ac_try="$ac_compile"
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3861 $as_echo "$ac_try_echo") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3872 ac_cv_safe_to_define___extensions__=yes
3874 $as_echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_safe_to_define___extensions__=no
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3884 test $ac_cv_safe_to_define___extensions__ = yes &&
3885 cat >>confdefs.h <<\_ACEOF
3886 #define __EXTENSIONS__ 1
3889 cat >>confdefs.h <<\_ACEOF
3890 #define _ALL_SOURCE 1
3893 cat >>confdefs.h <<\_ACEOF
3894 #define _GNU_SOURCE 1
3897 cat >>confdefs.h <<\_ACEOF
3898 #define _POSIX_PTHREAD_SEMANTICS 1
3901 cat >>confdefs.h <<\_ACEOF
3902 #define _TANDEM_SOURCE 1
3906 # Find a good install program. We prefer a C program (faster),
3907 # so one script is as good as another. But avoid the broken or
3908 # incompatible versions:
3909 # SysV /etc/install, /usr/sbin/install
3910 # SunOS /usr/etc/install
3911 # IRIX /sbin/install
3913 # AmigaOS /C/install, which installs bootblocks on floppy discs
3914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3917 # OS/2's system install, which has a completely different semantic
3918 # ./install, which can be erroneously created by make from ./install.sh.
3919 # Reject install programs that cannot install multiple files.
3920 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3921 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3922 if test -z "$INSTALL"; then
3923 if test "${ac_cv_path_install+set}" = set; then
3924 $as_echo_n "(cached) " >&6
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 # Account for people who put trailing slashes in PATH elements.
3933 ./ | .// | /cC/* | \
3934 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3935 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3938 # OSF1 and SCO ODT 3.0 have their own names for install.
3939 # Don't use installbsd from OSF since it installs stuff as root
3941 for ac_prog in ginstall scoinst install; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3944 if test $ac_prog = install &&
3945 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3946 # AIX install. It has an incompatible calling convention.
3948 elif test $ac_prog = install &&
3949 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3950 # program-specific install script used by HP pwplus--don't use.
3953 rm -rf conftest.one conftest.two conftest.dir
3954 echo one > conftest.one
3955 echo two > conftest.two
3957 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3958 test -s conftest.one && test -s conftest.two &&
3959 test -s conftest.dir/conftest.one &&
3960 test -s conftest.dir/conftest.two
3962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3975 rm -rf conftest.one conftest.two conftest.dir
3978 if test "${ac_cv_path_install+set}" = set; then
3979 INSTALL=$ac_cv_path_install
3981 # As a last resort, use the slow shell script. Don't cache a
3982 # value for INSTALL within a source directory, because that will
3983 # break other packages using the cache if that directory is
3984 # removed, or if the value is a relative name.
3985 INSTALL=$ac_install_sh
3988 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3989 $as_echo "$INSTALL" >&6; }
3991 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3992 # It thinks the first close brace ends the variable substitution.
3993 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3995 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3997 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4000 if test "$ac_binutils_build_dir" != "NONE"; then
4001 test "$ac_libbfd" = "NONE" && ac_libbfd="$ac_binutils_build_dir/bfd/libbfd.a"
4002 test "$ac_libiberty" = "NONE" && ac_libiberty="$ac_binutils_build_dir/libiberty/libiberty.a"
4003 test "$ac_bfd_include_dir" = "NONE" && ac_bfd_include_dir="$ac_binutils_build_dir/bfd"
4004 test "$ac_binutils_include_dir" = "NONE" && ac_binutils_include_dir="$ac_binutils_build_dir/include"
4007 if test "$ac_libiberty" = "NONE"; then
4009 { $as_echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
4010 $as_echo_n "checking for objalloc_create in -liberty... " >&6; }
4011 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
4012 $as_echo_n "(cached) " >&6
4014 ac_check_lib_save_LIBS=$LIBS
4015 LIBS="-liberty $LIBS"
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4023 /* Override any GCC internal prototype to avoid an error.
4024 Use char because int might match the return type of a GCC
4025 builtin and then its argument prototype would still apply. */
4029 char objalloc_create ();
4033 return objalloc_create ();
4038 rm -f conftest.$ac_objext conftest$ac_exeext
4039 if { (ac_try="$ac_link"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4045 $as_echo "$ac_try_echo") >&5
4046 (eval "$ac_link") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest$ac_exeext && {
4056 test "$cross_compiling" = yes ||
4057 $as_test_x conftest$ac_exeext
4059 ac_cv_lib_iberty_objalloc_create=yes
4061 $as_echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4064 ac_cv_lib_iberty_objalloc_create=no
4067 rm -rf conftest.dSYM
4068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4069 conftest$ac_exeext conftest.$ac_ext
4070 LIBS=$ac_check_lib_save_LIBS
4072 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
4073 $as_echo "$ac_cv_lib_iberty_objalloc_create" >&6; }
4074 if test "x$ac_cv_lib_iberty_objalloc_create" = x""yes; then
4075 cat >>confdefs.h <<_ACEOF
4076 #define HAVE_LIBIBERTY 1
4079 LIBS="-liberty $LIBS"
4085 LIBS="$ac_libiberty $LIBS"
4087 if test "$ac_libbfd" = "NONE"; then
4089 { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
4090 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
4091 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
4092 $as_echo_n "(cached) " >&6
4094 ac_check_lib_save_LIBS=$LIBS
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4103 /* Override any GCC internal prototype to avoid an error.
4104 Use char because int might match the return type of a GCC
4105 builtin and then its argument prototype would still apply. */
4113 return bfd_openr ();
4118 rm -f conftest.$ac_objext conftest$ac_exeext
4119 if { (ac_try="$ac_link"
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125 $as_echo "$ac_try_echo") >&5
4126 (eval "$ac_link") 2>conftest.er1
4128 grep -v '^ *+' conftest.er1 >conftest.err
4130 cat conftest.err >&5
4131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } && {
4133 test -z "$ac_c_werror_flag" ||
4134 test ! -s conftest.err
4135 } && test -s conftest$ac_exeext && {
4136 test "$cross_compiling" = yes ||
4137 $as_test_x conftest$ac_exeext
4139 ac_cv_lib_bfd_bfd_openr=yes
4141 $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 ac_cv_lib_bfd_bfd_openr=no
4147 rm -rf conftest.dSYM
4148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4149 conftest$ac_exeext conftest.$ac_ext
4150 LIBS=$ac_check_lib_save_LIBS
4152 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
4153 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
4154 if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
4155 cat >>confdefs.h <<_ACEOF
4156 #define HAVE_LIBBFD 1
4165 LIBS="$ac_libbfd $LIBS"
4167 if test "$ac_zlib_prefix" = "NONE"; then
4169 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4170 $as_echo_n "checking for deflate in -lz... " >&6; }
4171 if test "${ac_cv_lib_z_deflate+set}" = set; then
4172 $as_echo_n "(cached) " >&6
4174 ac_check_lib_save_LIBS=$LIBS
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4183 /* Override any GCC internal prototype to avoid an error.
4184 Use char because int might match the return type of a GCC
4185 builtin and then its argument prototype would still apply. */
4198 rm -f conftest.$ac_objext conftest$ac_exeext
4199 if { (ac_try="$ac_link"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4205 $as_echo "$ac_try_echo") >&5
4206 (eval "$ac_link") 2>conftest.er1
4208 grep -v '^ *+' conftest.er1 >conftest.err
4210 cat conftest.err >&5
4211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } && {
4213 test -z "$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4215 } && test -s conftest$ac_exeext && {
4216 test "$cross_compiling" = yes ||
4217 $as_test_x conftest$ac_exeext
4219 ac_cv_lib_z_deflate=yes
4221 $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_lib_z_deflate=no
4227 rm -rf conftest.dSYM
4228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4229 conftest$ac_exeext conftest.$ac_ext
4230 LIBS=$ac_check_lib_save_LIBS
4232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4233 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4234 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4235 cat >>confdefs.h <<_ACEOF
4244 LIBS="-L$ac_zlib_prefix/lib -lz $LIBS"
4248 if test "$ac_bfd_include_dir" != "NONE"; then
4249 bfd_include_dir="-I$ac_bfd_include_dir"
4252 binutils_include_dir=
4253 if test "$ac_binutils_include_dir" != "NONE"; then
4254 binutils_include_dir="-I$ac_binutils_include_dir"
4258 if test "$ac_zlib_prefix" != "NONE"; then
4259 zlib_include_dir="-I$ac_zlib_prefix/include"
4262 binutils_ldscript_dir=
4263 if test "$ac_binutils_ldscript_dir" = "NONE"; then
4264 ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
4266 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
4268 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
4269 { { $as_echo "$as_me:$LINENO: error:
4271 You need to specify the location of the libfd.a and libiberty.a
4272 host libraries from the binutils package.
4274 Run configure again specifying these options:
4276 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4278 $as_echo "$as_me: error:
4280 You need to specify the location of the libfd.a and libiberty.a
4281 host libraries from the binutils package.
4283 Run configure again specifying these options:
4285 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4287 { (exit 1); exit 1; }; }
4290 if test "$ac_bfd_include_dir" = "NONE" ; then
4291 { { $as_echo "$as_me:$LINENO: error:
4293 You need to specify the location of the bfd.h header from a
4294 configured/compiled version of the binutils package for your target.
4295 Without this your elf2flt may crash as it will try to use the
4296 systems bfd.h which may be from a different binutils package.
4298 Run configure again specifying these options:
4300 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4302 $as_echo "$as_me: error:
4304 You need to specify the location of the bfd.h header from a
4305 configured/compiled version of the binutils package for your target.
4306 Without this your elf2flt may crash as it will try to use the
4307 systems bfd.h which may be from a different binutils package.
4309 Run configure again specifying these options:
4311 ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4313 { (exit 1); exit 1; }; }
4323 { $as_echo "$as_me:$LINENO: checking for malloc in -lc" >&5
4324 $as_echo_n "checking for malloc in -lc... " >&6; }
4325 if test "${ac_cv_lib_c_malloc+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4328 ac_check_lib_save_LIBS=$LIBS
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4337 /* Override any GCC internal prototype to avoid an error.
4338 Use char because int might match the return type of a GCC
4339 builtin and then its argument prototype would still apply. */
4352 rm -f conftest.$ac_objext conftest$ac_exeext
4353 if { (ac_try="$ac_link"
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4359 $as_echo "$ac_try_echo") >&5
4360 (eval "$ac_link") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest$ac_exeext && {
4370 test "$cross_compiling" = yes ||
4371 $as_test_x conftest$ac_exeext
4373 ac_cv_lib_c_malloc=yes
4375 $as_echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 ac_cv_lib_c_malloc=no
4381 rm -rf conftest.dSYM
4382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4383 conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_malloc" >&5
4387 $as_echo "$ac_cv_lib_c_malloc" >&6; }
4388 if test "x$ac_cv_lib_c_malloc" = x""yes; then
4393 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4394 $as_echo_n "checking for ANSI C header files... " >&6; }
4395 if test "${ac_cv_header_stdc+set}" = set; then
4396 $as_echo_n "(cached) " >&6
4398 cat >conftest.$ac_ext <<_ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4424 $as_echo "$ac_try_echo") >&5
4425 (eval "$ac_compile") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1 >conftest.err
4429 cat conftest.err >&5
4430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest.$ac_objext; then
4435 ac_cv_header_stdc=yes
4437 $as_echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 ac_cv_header_stdc=no
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 if test $ac_cv_header_stdc = yes; then
4446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457 $EGREP "memchr" >/dev/null 2>&1; then
4460 ac_cv_header_stdc=no
4466 if test $ac_cv_header_stdc = yes; then
4467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478 $EGREP "free" >/dev/null 2>&1; then
4481 ac_cv_header_stdc=no
4487 if test $ac_cv_header_stdc = yes; then
4488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4489 if test "$cross_compiling" = yes; then
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4504 # define ISLOWER(c) \
4505 (('a' <= (c) && (c) <= 'i') \
4506 || ('j' <= (c) && (c) <= 'r') \
4507 || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4516 for (i = 0; i < 256; i++)
4517 if (XOR (islower (i), ISLOWER (i))
4518 || toupper (i) != TOUPPER (i))
4523 rm -f conftest$ac_exeext
4524 if { (ac_try="$ac_link"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530 $as_echo "$ac_try_echo") >&5
4531 (eval "$ac_link") 2>&5
4533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4535 { (case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4540 $as_echo "$ac_try_echo") >&5
4541 (eval "$ac_try") 2>&5
4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4547 $as_echo "$as_me: program exited with status $ac_status" >&5
4548 $as_echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4552 ac_cv_header_stdc=no
4554 rm -rf conftest.dSYM
4555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4562 $as_echo "$ac_cv_header_stdc" >&6; }
4563 if test $ac_cv_header_stdc = yes; then
4565 cat >>confdefs.h <<\_ACEOF
4566 #define STDC_HEADERS 1
4574 for ac_header in fcntl.h unistd.h bfd.h
4576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 $as_echo_n "checking for $ac_header... " >&6; }
4580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4581 $as_echo_n "(cached) " >&6
4583 ac_res=`eval 'as_val=${'$as_ac_Header'}
4584 $as_echo "$as_val"'`
4585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4586 $as_echo "$ac_res" >&6; }
4588 # Is the header compilable?
4589 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4590 $as_echo_n "checking $ac_header usability... " >&6; }
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 $ac_includes_default
4598 #include <$ac_header>
4600 rm -f conftest.$ac_objext
4601 if { (ac_try="$ac_compile"
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4607 $as_echo "$ac_try_echo") >&5
4608 (eval "$ac_compile") 2>conftest.er1
4610 grep -v '^ *+' conftest.er1 >conftest.err
4612 cat conftest.err >&5
4613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && {
4615 test -z "$ac_c_werror_flag" ||
4616 test ! -s conftest.err
4617 } && test -s conftest.$ac_objext; then
4618 ac_header_compiler=yes
4620 $as_echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 ac_header_compiler=no
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4628 $as_echo "$ac_header_compiler" >&6; }
4630 # Is the header present?
4631 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4632 $as_echo_n "checking $ac_header presence... " >&6; }
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 #include <$ac_header>
4641 if { (ac_try="$ac_cpp conftest.$ac_ext"
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1 >conftest.err
4652 cat conftest.err >&5
4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } >/dev/null && {
4655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4658 ac_header_preproc=yes
4660 $as_echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_header_preproc=no
4666 rm -f conftest.err conftest.$ac_ext
4667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4668 $as_echo "$ac_header_preproc" >&6; }
4670 # So? What about this header?
4671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4674 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4676 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4677 ac_header_preproc=yes
4680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4681 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4683 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4685 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4687 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4691 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4695 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4696 $as_echo_n "checking for $ac_header... " >&6; }
4697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4698 $as_echo_n "(cached) " >&6
4700 eval "$as_ac_Header=\$ac_header_preproc"
4702 ac_res=`eval 'as_val=${'$as_ac_Header'}
4703 $as_echo "$as_val"'`
4704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4705 $as_echo "$ac_res" >&6; }
4708 as_val=`eval 'as_val=${'$as_ac_Header'}
4709 $as_echo "$as_val"'`
4710 if test "x$as_val" = x""yes; then
4711 cat >>confdefs.h <<_ACEOF
4712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4720 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4721 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4722 if test "${ac_cv_c_const+set}" = set; then
4723 $as_echo_n "(cached) " >&6
4725 cat >conftest.$ac_ext <<_ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4735 /* FIXME: Include the comments suggested by Paul. */
4737 /* Ultrix mips cc rejects this. */
4738 typedef int charset[2];
4740 /* SunOS 4.1.1 cc rejects this. */
4741 char const *const *pcpcc;
4743 /* NEC SVR4.0.2 mips cc rejects this. */
4744 struct point {int x, y;};
4745 static struct point const zero = {0,0};
4746 /* AIX XL C 1.02.0.0 rejects this.
4747 It does not let you subtract one const X* pointer from another in
4748 an arm of an if-expression whose if-part is not a constant
4750 const char *g = "string";
4751 pcpcc = &g + (g ? g-g : 0);
4752 /* HPUX 7.0 cc rejects these. */
4754 ppc = (char**) pcpcc;
4755 pcpcc = (char const *const *) ppc;
4756 { /* SCO 3.2v4 cc rejects this. */
4758 char const *s = 0 ? (char *) 0 : (char const *) 0;
4763 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4765 const int *foo = &x[0];
4768 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4769 typedef const int *iptr;
4773 { /* AIX XL C 1.02.0.0 rejects this saying
4774 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4775 struct s { int j; const int *ap[3]; };
4776 struct s *b; b->j = 5;
4778 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4782 return !cs[0] && !zero.x;
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest.$ac_objext; then
4809 $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4818 $as_echo "$ac_cv_c_const" >&6; }
4819 if test $ac_cv_c_const = no; then
4821 cat >>confdefs.h <<\_ACEOF
4829 for ac_func in vprintf
4831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4832 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4833 $as_echo_n "checking for $ac_func... " >&6; }
4834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4835 $as_echo_n "(cached) " >&6
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4845 #define $ac_func innocuous_$ac_func
4847 /* System header to define __stub macros and hopefully few prototypes,
4848 which can conflict with char $ac_func (); below.
4849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4850 <limits.h> exists even on freestanding compilers. */
4853 # include <limits.h>
4855 # include <assert.h>
4860 /* Override any GCC internal prototype to avoid an error.
4861 Use char because int might match the return type of a GCC
4862 builtin and then its argument prototype would still apply. */
4867 /* The GNU C library defines this for functions which it implements
4868 to always fail with ENOSYS. Some functions are actually named
4869 something starting with __ and the normal name is an alias. */
4870 #if defined __stub_$ac_func || defined __stub___$ac_func
4882 rm -f conftest.$ac_objext conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890 (eval "$ac_link") 2>conftest.er1
4892 grep -v '^ *+' conftest.er1 >conftest.err
4894 cat conftest.err >&5
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest$ac_exeext && {
4900 test "$cross_compiling" = yes ||
4901 $as_test_x conftest$ac_exeext
4903 eval "$as_ac_var=yes"
4905 $as_echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 eval "$as_ac_var=no"
4911 rm -rf conftest.dSYM
4912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4913 conftest$ac_exeext conftest.$ac_ext
4915 ac_res=`eval 'as_val=${'$as_ac_var'}
4916 $as_echo "$as_val"'`
4917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4918 $as_echo "$ac_res" >&6; }
4919 as_val=`eval 'as_val=${'$as_ac_var'}
4920 $as_echo "$as_val"'`
4921 if test "x$as_val" = x""yes; then
4922 cat >>confdefs.h <<_ACEOF
4923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4926 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
4927 $as_echo_n "checking for _doprnt... " >&6; }
4928 if test "${ac_cv_func__doprnt+set}" = set; then
4929 $as_echo_n "(cached) " >&6
4931 cat >conftest.$ac_ext <<_ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4939 #define _doprnt innocuous__doprnt
4941 /* System header to define __stub macros and hopefully few prototypes,
4942 which can conflict with char _doprnt (); below.
4943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 <limits.h> exists even on freestanding compilers. */
4947 # include <limits.h>
4949 # include <assert.h>
4954 /* Override any GCC internal prototype to avoid an error.
4955 Use char because int might match the return type of a GCC
4956 builtin and then its argument prototype would still apply. */
4961 /* The GNU C library defines this for functions which it implements
4962 to always fail with ENOSYS. Some functions are actually named
4963 something starting with __ and the normal name is an alias. */
4964 #if defined __stub__doprnt || defined __stub____doprnt
4976 rm -f conftest.$ac_objext conftest$ac_exeext
4977 if { (ac_try="$ac_link"
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984 (eval "$ac_link") 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest$ac_exeext && {
4994 test "$cross_compiling" = yes ||
4995 $as_test_x conftest$ac_exeext
4997 ac_cv_func__doprnt=yes
4999 $as_echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_cv_func__doprnt=no
5005 rm -rf conftest.dSYM
5006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5007 conftest$ac_exeext conftest.$ac_ext
5009 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5010 $as_echo "$ac_cv_func__doprnt" >&6; }
5011 if test "x$ac_cv_func__doprnt" = x""yes; then
5013 cat >>confdefs.h <<\_ACEOF
5014 #define HAVE_DOPRNT 1
5035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5037 $as_echo_n "checking for $ac_func... " >&6; }
5038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5039 $as_echo_n "(cached) " >&6
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5049 #define $ac_func innocuous_$ac_func
5051 /* System header to define __stub macros and hopefully few prototypes,
5052 which can conflict with char $ac_func (); below.
5053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054 <limits.h> exists even on freestanding compilers. */
5057 # include <limits.h>
5059 # include <assert.h>
5064 /* Override any GCC internal prototype to avoid an error.
5065 Use char because int might match the return type of a GCC
5066 builtin and then its argument prototype would still apply. */
5071 /* The GNU C library defines this for functions which it implements
5072 to always fail with ENOSYS. Some functions are actually named
5073 something starting with __ and the normal name is an alias. */
5074 #if defined __stub_$ac_func || defined __stub___$ac_func
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (ac_try="$ac_link"
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094 (eval "$ac_link") 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && {
5101 test -z "$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 } && test -s conftest$ac_exeext && {
5104 test "$cross_compiling" = yes ||
5105 $as_test_x conftest$ac_exeext
5107 eval "$as_ac_var=yes"
5109 $as_echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 eval "$as_ac_var=no"
5115 rm -rf conftest.dSYM
5116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5117 conftest$ac_exeext conftest.$ac_ext
5119 ac_res=`eval 'as_val=${'$as_ac_var'}
5120 $as_echo "$as_val"'`
5121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5122 $as_echo "$ac_res" >&6; }
5123 as_val=`eval 'as_val=${'$as_ac_var'}
5124 $as_echo "$as_val"'`
5125 if test "x$as_val" = x""yes; then
5126 cat >>confdefs.h <<_ACEOF
5127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5134 test "$GCC" = yes && CFLAGS="-Wall $CFLAGS"
5152 ac_config_files="$ac_config_files ld-elf2flt.sh:ld-elf2flt.in Makefile elf2flt.ld"
5154 cat >confcache <<\_ACEOF
5155 # This file is a shell script that caches the results of configure
5156 # tests run on this system so they can be shared between configure
5157 # scripts and configure runs, see configure's option --config-cache.
5158 # It is not useful on other systems. If it contains results you don't
5159 # want to keep, you may remove or edit it.
5161 # config.status only pays attention to the cache file if you give it
5162 # the --recheck option to rerun configure.
5164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5170 # The following way of writing the cache mishandles newlines in values,
5171 # but we know of no workaround that is simple, portable, and efficient.
5172 # So, we kill variables containing newlines.
5173 # Ultrix sh set writes to stderr and can't be redirected directly,
5174 # and sets the high bit in the cache file unless we assign to the vars.
5176 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5177 eval ac_val=\$$ac_var
5181 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5185 _ | IFS | as_nl) ;; #(
5186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5187 *) $as_unset $ac_var ;;
5193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5194 *${as_nl}ac_space=\ *)
5195 # `set' does not quote correctly, so add quotes (double-quote
5196 # substitution turns \\\\ into \\, and sed turns \\ into \).
5199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5202 # `set' quotes correctly as required by POSIX, so do not add quotes.
5203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5216 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5217 if test -w "$cache_file"; then
5218 test "x$cache_file" != "x/dev/null" &&
5219 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5220 $as_echo "$as_me: updating cache $cache_file" >&6;}
5221 cat confcache >$cache_file
5223 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5224 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5230 # Let make expand exec_prefix.
5231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5233 # Transform confdefs.h into DEFS.
5234 # Protect against shell expansion while executing Makefile rules.
5235 # Protect against Makefile macro expansion.
5237 # If the first sed substitution is executed (which looks for macros that
5238 # take arguments), then branch to the quote section. Otherwise,
5239 # look for a macro that doesn't take arguments.
5249 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5251 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5255 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5268 DEFS=`sed -n "$ac_script" confdefs.h`
5273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5274 # 1. Remove the extension, and $U if already installed.
5275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5276 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5278 # will be set to the directory where LIBOBJS objects are built.
5279 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5280 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5284 LTLIBOBJS=$ac_ltlibobjs
5288 : ${CONFIG_STATUS=./config.status}
5290 ac_clean_files_save=$ac_clean_files
5291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5292 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5293 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5294 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5296 # Generated by $as_me.
5297 # Run this file to recreate the current configuration.
5298 # Compiler output produced by configure, useful for debugging
5299 # configure, is in config.log if it exists.
5304 SHELL=\${CONFIG_SHELL-$SHELL}
5307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5308 ## --------------------- ##
5309 ## M4sh Initialization. ##
5310 ## --------------------- ##
5312 # Be more Bourne compatible
5313 DUALCASE=1; export DUALCASE # for MKS sh
5314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5317 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5318 # is contrary to our usage. Disable this feature.
5319 alias -g '${1+"$@"}'='"$@"'
5320 setopt NO_GLOB_SUBST
5322 case `(set -o) 2>/dev/null` in
5323 *posix*) set -o posix ;;
5332 # Avoid depending upon Character Ranges.
5333 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5334 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5335 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5336 as_cr_digits='0123456789'
5337 as_cr_alnum=$as_cr_Letters$as_cr_digits
5342 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5343 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5346 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5347 as_echo='printf %s\n'
5348 as_echo_n='printf %s'
5350 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5351 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5352 as_echo_n='/usr/ucb/echo -n'
5354 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5355 as_echo_n_body='eval
5359 expr "X$arg" : "X\\(.*\\)$as_nl";
5360 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5362 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5364 export as_echo_n_body
5365 as_echo_n='sh -c $as_echo_n_body as_echo'
5368 as_echo='sh -c $as_echo_body as_echo'
5371 # The user is always right.
5372 if test "${PATH_SEPARATOR+set}" != set; then
5374 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5375 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5380 # Support unset when possible.
5381 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5389 # We need space, tab and new line, in precisely that order. Quoting is
5390 # there to prevent editors from complaining about space-tab.
5391 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5392 # splitting by setting IFS to empty value.)
5395 # Find who we are. Look in the path if we contain no directory separator.
5397 *[\\/]* ) as_myself=$0 ;;
5398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir=.
5403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5409 # We did not find ourselves, most probably we were run as `sh COMMAND'
5410 # in which case we are not to be found in the path.
5411 if test "x$as_myself" = x; then
5414 if test ! -f "$as_myself"; then
5415 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5416 { (exit 1); exit 1; }
5419 # Work around bugs in pre-3.0 UWIN ksh.
5420 for as_var in ENV MAIL MAILPATH
5421 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5433 # Required to use basename.
5434 if expr a : '\(a\)' >/dev/null 2>&1 &&
5435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5442 as_basename=basename
5448 # Name of the executable.
5449 as_me=`$as_basename -- "$0" ||
5450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5451 X"$0" : 'X\(//\)$' \| \
5452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5454 sed '/^.*\/\([^/][^/]*\)\/*$/{
5475 test "x$as_lineno_1" != "x$as_lineno_2" &&
5476 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5479 # uniformly replaced by the line number. The first 'sed' inserts a
5480 # line-number line after each line using $LINENO; the second 'sed'
5481 # does the real work. The second script uses 'N' to pair each
5482 # line-number line with the line containing $LINENO, and appends
5483 # trailing '-' during substitution so that $LINENO is not a special
5485 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5486 # scripts with optimization help from Paolo Bonzini. Blame Lee
5487 # E. McMahon (1931-1989) for sed's syntax. :-)
5499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5503 chmod +x "$as_me.lineno" ||
5504 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5505 { (exit 1); exit 1; }; }
5507 # Don't try to exec as it changes $[0], causing all sort of problems
5508 # (the dirname of $[0] is not the place where we might find the
5509 # original and so on. Autoconf is especially sensitive to this).
5511 # Exit status is that of the last command.
5516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5522 ECHO_C= ECHO_N= ECHO_T=
5525 case `echo 'x\c'` in
5526 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5532 if expr a : '\(a\)' >/dev/null 2>&1 &&
5533 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5539 rm -f conf$$ conf$$.exe conf$$.file
5540 if test -d conf$$.dir; then
5541 rm -f conf$$.dir/conf$$.file
5544 mkdir conf$$.dir 2>/dev/null
5546 if (echo >conf$$.file) 2>/dev/null; then
5547 if ln -s conf$$.file conf$$ 2>/dev/null; then
5549 # ... but there are two gotchas:
5550 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5551 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5552 # In both cases, we have to default to `cp -p'.
5553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5555 elif ln conf$$.file conf$$ 2>/dev/null; then
5563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5564 rmdir conf$$.dir 2>/dev/null
5566 if mkdir -p . 2>/dev/null; then
5569 test -d ./-p && rmdir ./-p
5573 if test -x / >/dev/null 2>&1; then
5576 if ls -dL / >/dev/null 2>&1; then
5583 if test -d "$1"; then
5589 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5590 ???[sx]*):;;*)false;;esac;fi
5594 as_executable_p=$as_test_x
5596 # Sed expression to map a string onto a valid CPP name.
5597 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5599 # Sed expression to map a string onto a valid variable name.
5600 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5605 # Save the log message, to keep $[0] and so on meaningful, and to
5606 # report actual input values of CONFIG_FILES etc. instead of their
5607 # values after options handling.
5609 This file was extended by $as_me, which was
5610 generated by GNU Autoconf 2.63. Invocation command line was
5612 CONFIG_FILES = $CONFIG_FILES
5613 CONFIG_HEADERS = $CONFIG_HEADERS
5614 CONFIG_LINKS = $CONFIG_LINKS
5615 CONFIG_COMMANDS = $CONFIG_COMMANDS
5618 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5623 case $ac_config_files in *"
5624 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5630 # Files that config.status was made for.
5631 config_files="$ac_config_files"
5635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5637 \`$as_me' instantiates files from templates according to the
5638 current configuration.
5640 Usage: $0 [OPTION]... [FILE]...
5642 -h, --help print this help, then exit
5643 -V, --version print version number and configuration settings, then exit
5644 -q, --quiet, --silent
5645 do not print progress messages
5646 -d, --debug don't remove temporary files
5647 --recheck update $as_me by reconfiguring in the same conditions
5648 --file=FILE[:TEMPLATE]
5649 instantiate the configuration file FILE
5651 Configuration files:
5654 Report bugs to <bug-autoconf@gnu.org>."
5657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5660 configured by $0, generated by GNU Autoconf 2.63,
5661 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5663 Copyright (C) 2008 Free Software Foundation, Inc.
5664 This config.status script is free software; the Free Software Foundation
5665 gives unlimited permission to copy, distribute and modify it."
5670 test -n "\$AWK" || AWK=awk
5673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5674 # The default lists apply if the user does not specify any file.
5680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5692 # Handling of the options.
5693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5696 $as_echo "$ac_cs_version"; exit ;;
5697 --debug | --debu | --deb | --de | --d | -d )
5699 --file | --fil | --fi | --f )
5702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5704 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
5705 ac_need_defaults=false;;
5706 --he | --h | --help | --hel | -h )
5707 $as_echo "$ac_cs_usage"; exit ;;
5708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5709 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5713 -*) { $as_echo "$as_me: error: unrecognized option: $1
5714 Try \`$0 --help' for more information." >&2
5715 { (exit 1); exit 1; }; } ;;
5717 *) ac_config_targets="$ac_config_targets $1"
5718 ac_need_defaults=false ;;
5724 ac_configure_extra_args=
5726 if $ac_cs_silent; then
5728 ac_configure_extra_args="$ac_configure_extra_args --silent"
5732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5733 if \$ac_cs_recheck; then
5734 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5737 CONFIG_SHELL='$SHELL'
5743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5748 ## Running $as_me. ##
5754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5759 # Handling of arguments.
5760 for ac_config_target in $ac_config_targets
5762 case $ac_config_target in
5763 "ld-elf2flt.sh") CONFIG_FILES="$CONFIG_FILES ld-elf2flt.sh:ld-elf2flt.in" ;;
5764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5765 "elf2flt.ld") CONFIG_FILES="$CONFIG_FILES elf2flt.ld" ;;
5767 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5768 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5769 { (exit 1); exit 1; }; };;
5774 # If the user did not use the arguments to specify the items to instantiate,
5775 # then the envvar interface is used. Set only those that are not.
5776 # We use the long form for the default assignment because of an extremely
5777 # bizarre bug on SunOS 4.1.3.
5778 if $ac_need_defaults; then
5779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5782 # Have a temporary directory for convenience. Make it in the build tree
5783 # simply because there is no reason against having it here, and in addition,
5784 # creating and moving files from /tmp can sometimes cause problems.
5785 # Hook for its removal unless debugging.
5786 # Note that there is a small window in which the directory will not be cleaned:
5787 # after its creation but before its name has been assigned to `$tmp'.
5791 trap 'exit_status=$?
5792 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5794 trap '{ (exit 1); exit 1; }' 1 2 13 15
5796 # Create a (secure) tmp directory for tmp files.
5799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5800 test -n "$tmp" && test -d "$tmp"
5803 tmp=./conf$$-$RANDOM
5804 (umask 077 && mkdir "$tmp")
5807 $as_echo "$as_me: cannot create a temporary directory in ." >&2
5808 { (exit 1); exit 1; }
5811 # Set up the scripts for CONFIG_FILES section.
5812 # No need to generate them if there are no CONFIG_FILES.
5813 # This happens for instance with `./config.status config.h'.
5814 if test -n "$CONFIG_FILES"; then
5818 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5819 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5825 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5830 echo "cat >conf$$subs.awk <<_ACEOF" &&
5831 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5834 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5835 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5836 { (exit 1); exit 1; }; }
5837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5839 for ac_last_try in false false false false false :; do
5840 . ./conf$$subs.sh ||
5841 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5842 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5843 { (exit 1); exit 1; }; }
5845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5846 if test $ac_delim_n = $ac_delim_num; then
5848 elif $ac_last_try; then
5849 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5850 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5851 { (exit 1); exit 1; }; }
5853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5859 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5863 s/^/S["/; s/!.*/"]=/
5873 s/\(.\{148\}\).*/\1/
5875 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5887 s/\(.\{148\}\).*/\1/
5889 s/["\\]/\\&/g; s/^/"/; s/$/"/
5893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5898 ' <conf$$subs.awk | sed '
5903 ' >>$CONFIG_STATUS || ac_write_fail=1
5904 rm -f conf$$subs.awk
5905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5907 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5908 for (key in S) S_is_set[key] = 1
5914 nfields = split(line, field, "@")
5916 len = length(field[1])
5917 for (i = 2; i < nfields; i++) {
5919 keylen = length(key)
5920 if (S_is_set[key]) {
5922 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5923 len += length(value) + length(field[++i])
5934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5935 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5936 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5939 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5940 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5941 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
5942 { (exit 1); exit 1; }; }
5945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5947 # trailing colons and then remove the whole line if VPATH becomes empty
5948 # (actually we leave an empty line to preserve line numbers).
5949 if test "x$srcdir" = x.; then
5950 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5954 s/^\([^=]*=[ ]*\):*/\1/
5960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5961 fi # test -n "$CONFIG_FILES"
5964 eval set X " :F $CONFIG_FILES "
5969 :[FHLC]) ac_mode=$ac_tag; continue;;
5971 case $ac_mode$ac_tag in
5973 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
5974 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5975 { (exit 1); exit 1; }; };;
5976 :[FH]-) ac_tag=-:-;;
5977 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5994 -) ac_f="$tmp/stdin";;
5995 *) # Look for the file first in the build tree, then in the source tree
5996 # (if the path is not absolute). The absolute path cannot be DOS-style,
5997 # because $ac_f cannot contain `:'.
6001 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6003 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6004 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6005 { (exit 1); exit 1; }; };;
6007 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6008 ac_file_inputs="$ac_file_inputs '$ac_f'"
6011 # Let's still pretend it is `configure' which instantiates (i.e., don't
6012 # use $as_me), people would be surprised to read:
6013 # /* config.h. Generated by config.status. */
6014 configure_input='Generated from '`
6015 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6017 if test x"$ac_file" != x-; then
6018 configure_input="$ac_file. $configure_input"
6019 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6020 $as_echo "$as_me: creating $ac_file" >&6;}
6022 # Neutralize special characters interpreted by sed in replacement strings.
6023 case $configure_input in #(
6024 *\&* | *\|* | *\\* )
6025 ac_sed_conf_input=`$as_echo "$configure_input" |
6026 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6027 *) ac_sed_conf_input=$configure_input;;
6031 *:-:* | *:-) cat >"$tmp/stdin" \
6032 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6033 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6034 { (exit 1); exit 1; }; } ;;
6039 ac_dir=`$as_dirname -- "$ac_file" ||
6040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6041 X"$ac_file" : 'X\(//\)[^/]' \| \
6042 X"$ac_file" : 'X\(//\)$' \| \
6043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6044 $as_echo X"$ac_file" |
6045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6064 -*) as_dir=./$as_dir;;
6066 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6070 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6071 *) as_qdir=$as_dir;;
6073 as_dirs="'$as_qdir' $as_dirs"
6074 as_dir=`$as_dirname -- "$as_dir" ||
6075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6076 X"$as_dir" : 'X\(//\)[^/]' \| \
6077 X"$as_dir" : 'X\(//\)$' \| \
6078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6079 $as_echo X"$as_dir" |
6080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6097 test -d "$as_dir" && break
6099 test -z "$as_dirs" || eval "mkdir $as_dirs"
6100 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6101 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6102 { (exit 1); exit 1; }; }; }
6106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6109 # A ".." for each directory in $ac_dir_suffix.
6110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6111 case $ac_top_builddir_sub in
6112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6116 ac_abs_top_builddir=$ac_pwd
6117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6118 # for backward compatibility:
6119 ac_top_builddir=$ac_top_build_prefix
6122 .) # We are building in place.
6124 ac_top_srcdir=$ac_top_builddir_sub
6125 ac_abs_top_srcdir=$ac_pwd ;;
6126 [\\/]* | ?:[\\/]* ) # Absolute name.
6127 ac_srcdir=$srcdir$ac_dir_suffix;
6128 ac_top_srcdir=$srcdir
6129 ac_abs_top_srcdir=$srcdir ;;
6131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6132 ac_top_srcdir=$ac_top_build_prefix$srcdir
6133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6145 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6146 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6151 # If the template does not know about datarootdir, expand it.
6152 # FIXME: This hack should be removed a few years after 2.60.
6153 ac_datarootdir_hack=; ac_datarootdir_seen=
6166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6167 *datarootdir*) ac_datarootdir_seen=yes;;
6168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6169 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6173 ac_datarootdir_hack='
6174 s&@datadir@&$datadir&g
6175 s&@docdir@&$docdir&g
6176 s&@infodir@&$infodir&g
6177 s&@localedir@&$localedir&g
6178 s&@mandir@&$mandir&g
6179 s&\\\${datarootdir}&$datarootdir&g' ;;
6183 # Neutralize VPATH when `$srcdir' = `.'.
6184 # Shell code in configure.ac might set extrasub.
6185 # FIXME: do we really want to maintain this feature?
6186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6187 ac_sed_extra="$ac_vpsub
6190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6193 s|@configure_input@|$ac_sed_conf_input|;t t
6194 s&@top_builddir@&$ac_top_builddir_sub&;t t
6195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6196 s&@srcdir@&$ac_srcdir&;t t
6197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6198 s&@top_srcdir@&$ac_top_srcdir&;t t
6199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6200 s&@builddir@&$ac_builddir&;t t
6201 s&@abs_builddir@&$ac_abs_builddir&;t t
6202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6203 s&@INSTALL@&$ac_INSTALL&;t t
6204 $ac_datarootdir_hack
6206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6207 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6208 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6209 { (exit 1); exit 1; }; }
6211 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6212 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6213 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6214 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6215 which seems to be undefined. Please make sure it is defined." >&5
6216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6217 which seems to be undefined. Please make sure it is defined." >&2;}
6221 -) cat "$tmp/out" && rm -f "$tmp/out";;
6222 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6224 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6225 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6226 { (exit 1); exit 1; }; }
6236 { (exit 0); exit 0; }
6238 chmod +x $CONFIG_STATUS
6239 ac_clean_files=$ac_clean_files_save
6241 test $ac_write_fail = 0 ||
6242 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6243 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6244 { (exit 1); exit 1; }; }
6247 # configure is writing to config.log, and then calls config.status.
6248 # config.status does its own redirection, appending to config.log.
6249 # Unfortunately, on DOS this fails, as config.log is still kept open
6250 # by configure, so config.status won't be able to write to it; its
6251 # output is simply discarded. So we exec the FD to /dev/null,
6252 # effectively closing config.log, so it can be properly (re)opened and
6253 # appended to by config.status. When coming back to configure, we
6254 # need to make the FD available again.
6255 if test "$no_create" != yes; then
6257 ac_config_status_args=
6258 test "$silent" = yes &&
6259 ac_config_status_args="$ac_config_status_args --quiet"
6261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6264 # would make configure fail if this is the last instruction.
6265 $ac_cs_success || { (exit 1); exit 1; }
6267 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6268 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6269 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}