2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file=".version"
580 ac_unique_file="Makefile.in"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
682 sdccconf_h_dir_separator
696 OPT_DISABLE_DEVICE_LIB
711 ac_precious_vars='build_alias
720 sdccconf_h_dir_separator
724 ac_subdirs_all='support/cpp
731 # Initialize some variables set by options.
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name=s,x,x,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
789 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
817 cache_file=config.cache ;;
819 -datadir | --datadir | --datadi | --datad)
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850 -enable-* | --enable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=\$ac_optarg ;;
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
872 -help | --help | --hel | --he | -h)
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 htmldir=$ac_optarg ;;
890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
902 -libdir | --libdir | --libdi | --libd)
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
914 -localedir | --localedir | --localedi | --localed | --locale)
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
919 -localstatedir | --localstatedir | --localstatedi | --localstated \
920 | --localstate | --localstat | --localsta | --localst | --locals)
921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924 localstatedir=$ac_optarg ;;
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 # Obsolete; use --without-fp.
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 -psdir | --psdir | --psdi | --psd | --ps)
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 sbindir=$ac_optarg ;;
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 sharedstatedir=$ac_optarg ;;
1019 -site | --site | --sit)
1021 -site=* | --site=* | --sit=*)
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1048 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid package name: $ac_package" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054 eval with_$ac_package=\$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=no ;;
1066 # Obsolete; use --with-x.
1069 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070 | --x-incl | --x-inc | --x-in | --x-i)
1071 ac_prev=x_includes ;;
1072 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074 x_includes=$ac_optarg ;;
1076 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078 ac_prev=x_libraries ;;
1079 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081 x_libraries=$ac_optarg ;;
1083 -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085 { (exit 1); exit 1; }; }
1089 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093 { (exit 1); exit 1; }; }
1094 eval $ac_envvar=\$ac_optarg
1095 export $ac_envvar ;;
1098 # FIXME: should be removed in autoconf 3.0.
1099 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108 if test -n "$ac_prev"; then
1109 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110 { echo "$as_me: error: missing argument to $ac_option" >&2
1111 { (exit 1); exit 1; }; }
1114 # Be sure to have absolute directory names.
1115 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
1120 eval ac_val=\$$ac_var
1122 [\\/$]* | ?:[\\/]* ) continue;;
1123 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126 { (exit 1); exit 1; }; }
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1134 target=$target_alias
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141 If a cross compiler is detected then cross compile mode will be used." >&2
1142 elif test "x$build_alias" != "x$host_alias"; then
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150 test "$silent" = yes && exec 6>/dev/null
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156 { echo "$as_me: error: Working directory cannot be determined" >&2
1157 { (exit 1); exit 1; }; }
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159 { echo "$as_me: error: pwd does not report name of working directory" >&2
1160 { (exit 1); exit 1; }; }
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165 ac_srcdir_defaulted=yes
1166 # Try the directory containing this script, then the parent directory.
1167 ac_confdir=`$as_dirname -- "$0" ||
1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169 X"$0" : 'X\(//\)[^/]' \| \
1170 X"$0" : 'X\(//\)$' \| \
1171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1195 ac_srcdir_defaulted=no
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200 { (exit 1); exit 1; }; }
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205 { (exit 1); exit 1; }; }
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225 # Report the --help message.
1227 if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1231 \`configure' configures this package to adapt to many kinds of systems.
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE. See below for descriptions of some of the useful variables.
1238 Defaults for the options are specified in brackets.
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
1245 -q, --quiet, --silent do not print \`checking...' messages
1246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251 Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
1253 [$ac_default_prefix]
1254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1262 For better control, use the options below.
1264 Fine tuning of the installation directories:
1265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
1289 --program-prefix=PREFIX prepend PREFIX to installed program names
1290 --program-suffix=SUFFIX append SUFFIX to installed program names
1291 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1295 if test -n "$ac_init_help"; then
1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302 --disable-mcs51-port Excludes the Intel mcs51 port
1303 --disable-gbz80-port Excludes the Gameboy gbz80 port
1304 --disable-z80-port Excludes the z80 port
1305 --disable-avr-port Excludes the AVR port
1306 --disable-ds390-port Excludes the DS390 port
1307 --disable-ds400-port Excludes the DS400 port
1308 --disable-pic-port Excludes the PIC port
1309 --disable-pic16-port Excludes the PIC16 port
1310 --disable-xa51-port Excludes the XA51 port
1311 --disable-hc08-port Excludes the HC08 port
1312 --disable-ucsim Disables configuring and building of ucsim
1313 --disable-device-lib Disables building device libraries
1314 --disable-packihx Disables building packihx
1315 --disable-sdcpp Disables building sdcpp
1316 --disable-sdcdb Disables building sdcdb
1317 --enable-doc Enables building the documentation
1318 --enable-libgc Use the Bohem memory allocator. Lower runtime
1322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1324 --without-ccache do not use ccache even if available
1326 Some influential environment variables:
1327 CC C compiler command
1328 CFLAGS C compiler flags
1329 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1330 nonstandard directory <lib dir>
1331 LIBS libraries to pass to the linker, e.g. -l<library>
1332 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1333 you have headers in a nonstandard directory <include dir>
1335 sdccconf_h_dir_separator
1336 needed in sdccconf.h: either "/" (default) or "\\"
1338 appended to datadir to define SDCC's include directory
1340 appended to datadir to define SDCC's library root directory
1341 docdir documentation installation directory
1343 Use these variables to override the choices made by `configure' or to help
1344 it to find libraries and programs with nonstandard names/locations.
1350 if test "$ac_init_help" = "recursive"; then
1351 # If there are subdirs, report their specific --help.
1352 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1353 test -d "$ac_dir" || continue
1357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1360 # A ".." for each directory in $ac_dir_suffix.
1361 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1362 case $ac_top_builddir_sub in
1363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1367 ac_abs_top_builddir=$ac_pwd
1368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369 # for backward compatibility:
1370 ac_top_builddir=$ac_top_build_prefix
1373 .) # We are building in place.
1375 ac_top_srcdir=$ac_top_builddir_sub
1376 ac_abs_top_srcdir=$ac_pwd ;;
1377 [\\/]* | ?:[\\/]* ) # Absolute name.
1378 ac_srcdir=$srcdir$ac_dir_suffix;
1379 ac_top_srcdir=$srcdir
1380 ac_abs_top_srcdir=$srcdir ;;
1382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383 ac_top_srcdir=$ac_top_build_prefix$srcdir
1384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388 cd "$ac_dir" || { ac_status=$?; continue; }
1389 # Check for guested configure.
1390 if test -f "$ac_srcdir/configure.gnu"; then
1392 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393 elif test -f "$ac_srcdir/configure"; then
1395 $SHELL "$ac_srcdir/configure" --help=recursive
1397 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399 cd "$ac_pwd" || { ac_status=$?; break; }
1403 test -n "$ac_init_help" && exit $ac_status
1404 if $ac_init_version; then
1407 generated by GNU Autoconf 2.61
1409 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1410 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1411 This configure script is free software; the Free Software Foundation
1412 gives unlimited permission to copy, distribute and modify it.
1416 cat >config.log <<_ACEOF
1417 This file contains any messages produced by compilers while
1418 running configure, to aid debugging if configure makes a mistake.
1420 It was created by $as_me, which was
1421 generated by GNU Autoconf 2.61. Invocation command line was
1433 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1434 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1435 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1436 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1437 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1439 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1440 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1442 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1443 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1444 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1445 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1446 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1447 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1448 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 test -z "$as_dir" && as_dir=.
1457 echo "PATH: $as_dir"
1473 # Keep a trace of the command line.
1474 # Strip out --no-create and --no-recursion so they do not pile up.
1475 # Strip out --silent because we don't want to record it for future runs.
1476 # Also quote any args containing shell meta-characters.
1477 # Make two passes to allow for proper duplicate-argument suppression.
1481 ac_must_keep_next=false
1487 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1489 | -silent | --silent | --silen | --sile | --sil)
1492 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1497 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1498 if test $ac_must_keep_next = true; then
1499 ac_must_keep_next=false # Got value, back to normal.
1502 *=* | --config-cache | -C | -disable-* | --disable-* \
1503 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1504 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1505 | -with-* | --with-* | -without-* | --without-* | --x)
1506 case "$ac_configure_args0 " in
1507 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1510 -* ) ac_must_keep_next=true ;;
1513 ac_configure_args="$ac_configure_args '$ac_arg'"
1518 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1519 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1521 # When interrupted or exit'd, cleanup temporary files, and complete
1522 # config.log. We remove comments because anyway the quotes in there
1523 # would cause problems or look ugly.
1524 # WARNING: Use '\'' to represent an apostrophe within the trap.
1525 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1526 trap 'exit_status=$?
1527 # Save into config.log some information that might help in debugging.
1532 ## ---------------- ##
1533 ## Cache variables. ##
1534 ## ---------------- ##
1537 # The following way of writing the cache mishandles newlines in values,
1539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1540 eval ac_val=\$$ac_var
1544 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1545 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1548 _ | IFS | as_nl) ;; #(
1549 *) $as_unset $ac_var ;;
1554 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1555 *${as_nl}ac_space=\ *)
1557 "s/'\''/'\''\\\\'\'''\''/g;
1558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1569 ## ----------------- ##
1570 ## Output variables. ##
1571 ## ----------------- ##
1574 for ac_var in $ac_subst_vars
1576 eval ac_val=\$$ac_var
1578 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1580 echo "$ac_var='\''$ac_val'\''"
1584 if test -n "$ac_subst_files"; then
1586 ## ------------------- ##
1587 ## File substitutions. ##
1588 ## ------------------- ##
1591 for ac_var in $ac_subst_files
1593 eval ac_val=\$$ac_var
1595 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 echo "$ac_var='\''$ac_val'\''"
1602 if test -s confdefs.h; then
1612 test "$ac_signal" != 0 &&
1613 echo "$as_me: caught signal $ac_signal"
1614 echo "$as_me: exit $exit_status"
1616 rm -f core *.core core.conftest.* &&
1617 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1620 for ac_signal in 1 2 13 15; do
1621 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1625 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1626 rm -f -r conftest* confdefs.h
1628 # Predefined preprocessor variables.
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_NAME "$PACKAGE_NAME"
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_STRING "$PACKAGE_STRING"
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1655 # Let the site file select an alternate cache file if it wants to.
1656 # Prefer explicitly selected file to automatically selected ones.
1657 if test -n "$CONFIG_SITE"; then
1658 set x "$CONFIG_SITE"
1659 elif test "x$prefix" != xNONE; then
1660 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1662 set x "$ac_default_prefix/share/config.site" \
1663 "$ac_default_prefix/etc/config.site"
1668 if test -r "$ac_site_file"; then
1669 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1670 echo "$as_me: loading site script $ac_site_file" >&6;}
1671 sed 's/^/| /' "$ac_site_file" >&5
1676 if test -r "$cache_file"; then
1677 # Some versions of bash will fail to source /dev/null (special
1678 # files actually), so we avoid doing that.
1679 if test -f "$cache_file"; then
1680 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1681 echo "$as_me: loading cache $cache_file" >&6;}
1683 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1684 *) . "./$cache_file";;
1688 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1689 echo "$as_me: creating cache $cache_file" >&6;}
1693 # Check that the precious variables saved in the cache have kept the same
1695 ac_cache_corrupted=false
1696 for ac_var in $ac_precious_vars; do
1697 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1698 eval ac_new_set=\$ac_env_${ac_var}_set
1699 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1700 eval ac_new_val=\$ac_env_${ac_var}_value
1701 case $ac_old_set,$ac_new_set in
1703 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1704 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1705 ac_cache_corrupted=: ;;
1707 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1708 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1709 ac_cache_corrupted=: ;;
1712 if test "x$ac_old_val" != "x$ac_new_val"; then
1713 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1714 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1715 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1716 echo "$as_me: former value: $ac_old_val" >&2;}
1717 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1718 echo "$as_me: current value: $ac_new_val" >&2;}
1719 ac_cache_corrupted=:
1722 # Pass precious variables to config.status.
1723 if test "$ac_new_set" = set; then
1725 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1726 *) ac_arg=$ac_var=$ac_new_val ;;
1728 case " $ac_configure_args " in
1729 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1730 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1734 if $ac_cache_corrupted; then
1735 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1736 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1737 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1738 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1739 { (exit 1); exit 1; }; }
1759 ac_cpp='$CPP $CPPFLAGS'
1760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1766 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1769 for ac_prog in gawk mawk nawk awk
1771 # Extract the first word of "$ac_prog", so it can be a program name with args.
1772 set dummy $ac_prog; ac_word=$2
1773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1775 if test "${ac_cv_prog_AWK+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 if test -n "$AWK"; then
1779 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1788 ac_cv_prog_AWK="$ac_prog"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 if test -n "$AWK"; then
1800 { echo "$as_me:$LINENO: result: $AWK" >&5
1801 echo "${ECHO_T}$AWK" >&6; }
1803 { echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6; }
1808 test -n "$AWK" && break
1812 { echo "$as_me:$LINENO: checking version of the package" >&5
1813 echo $ECHO_N "checking version of the package... $ECHO_C" >&6; }
1814 if test -f ${srcdir}/.version; then
1815 { read VERSION; } < ${srcdir}/.version
1816 { echo "$as_me:$LINENO: result: $VERSION" >&5
1817 echo "${ECHO_T}$VERSION" >&6; }
1818 elif test -f ../.version; then
1819 { read VERSION; } < ../.version
1820 { echo "$as_me:$LINENO: result: $VERSION" >&5
1821 echo "${ECHO_T}$VERSION" >&6; }
1824 { echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1825 echo "${ECHO_T}unknown using 0.0.0" >&6; }
1827 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1828 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1829 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1837 cat >>confdefs.h <<_ACEOF
1838 #define SDCC_VERSION_LO ${VERSIONLO}
1841 cat >>confdefs.h <<_ACEOF
1842 #define SDCC_VERSION_HI ${VERSIONHI}
1845 cat >>confdefs.h <<_ACEOF
1846 #define SDCC_VERSION_P ${VERSIONP}
1849 cat >>confdefs.h <<_ACEOF
1850 #define SDCC_VERSION_STR "${VERSION}"
1853 test "$program_prefix" != NONE &&
1854 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1855 # Use a double $ so make ignores it.
1856 test "$program_suffix" != NONE &&
1857 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1858 # Double any \ or $. echo might interpret backslashes.
1859 # By default was `s,x,x', remove it if useless.
1860 cat <<\_ACEOF >conftest.sed
1861 s/[\\$]/&&/g;s/;s,x,x,$//
1863 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1866 sdcc_cv_version=$VERSION
1867 sdcc_cv_versionhi=$VERSIONHI
1868 sdcc_cv_versionlo=$VERSIONLO
1869 sdcc_cv_versionp=$VERSIONP
1873 # ===========================================================================
1875 ac_cpp='$CPP $CPPFLAGS'
1876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879 if test -n "$ac_tool_prefix"; then
1880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1884 if test "${ac_cv_prog_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 { echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6; }
1912 { echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6; }
1918 if test -z "$ac_cv_prog_CC"; then
1920 # Extract the first word of "gcc", so it can be a program name with args.
1921 set dummy gcc; ac_word=$2
1922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1937 ac_cv_prog_ac_ct_CC="gcc"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6; }
1952 { echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6; }
1956 if test "x$ac_ct_CC" = x; then
1959 case $cross_compiling:$ac_tool_warned in
1961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1962 whose name does not start with the host triplet. If you think this
1963 configuration is useful to you, please write to autoconf@gnu.org." >&5
1964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1965 whose name does not start with the host triplet. If you think this
1966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1967 ac_tool_warned=yes ;;
1975 if test -z "$CC"; then
1976 if test -n "$ac_tool_prefix"; then
1977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1978 set dummy ${ac_tool_prefix}cc; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_CC="${ac_tool_prefix}cc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2016 if test -z "$CC"; then
2017 # Extract the first word of "cc", so it can be a program name with args.
2018 set dummy cc; ac_word=$2
2019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2036 ac_prog_rejected=yes
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test $ac_prog_rejected = yes; then
2048 # We found a bogon in the path, so make sure we never use it.
2049 set dummy $ac_cv_prog_CC
2051 if test $# != 0; then
2052 # We chose a different compiler from the bogus one.
2053 # However, it has the same basename, so the bogon will be chosen
2054 # first if we set CC to just the basename; use the full file name.
2056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2062 if test -n "$CC"; then
2063 { echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6; }
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2072 if test -z "$CC"; then
2073 if test -n "$ac_tool_prefix"; then
2074 for ac_prog in cl.exe
2076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 if test -n "$CC"; then
2105 { echo "$as_me:$LINENO: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6; }
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2113 test -n "$CC" && break
2116 if test -z "$CC"; then
2118 for ac_prog in cl.exe
2120 # Extract the first word of "$ac_prog", so it can be a program name with args.
2121 set dummy $ac_prog; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 if test -n "$ac_ct_CC"; then
2128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_ac_ct_CC="$ac_prog"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6; }
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2157 test -n "$ac_ct_CC" && break
2160 if test "x$ac_ct_CC" = x; then
2163 case $cross_compiling:$ac_tool_warned in
2165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2166 whose name does not start with the host triplet. If you think this
2167 configuration is useful to you, please write to autoconf@gnu.org." >&5
2168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2169 whose name does not start with the host triplet. If you think this
2170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2171 ac_tool_warned=yes ;;
2180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2181 See \`config.log' for more details." >&5
2182 echo "$as_me: error: no acceptable C compiler found in \$PATH
2183 See \`config.log' for more details." >&2;}
2184 { (exit 1); exit 1; }; }
2186 # Provide some information about the compiler.
2187 echo "$as_me:$LINENO: checking for C compiler version" >&5
2188 ac_compiler=`set X $ac_compile; echo $2`
2189 { (ac_try="$ac_compiler --version >&5"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195 (eval "$ac_compiler --version >&5") 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (ac_try="$ac_compiler -v >&5"
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2205 (eval "$ac_compiler -v >&5") 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }
2209 { (ac_try="$ac_compiler -V >&5"
2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2215 (eval "$ac_compiler -V >&5") 2>&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }
2220 cat >conftest.$ac_ext <<_ACEOF
2223 cat confdefs.h >>conftest.$ac_ext
2224 cat >>conftest.$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2235 ac_clean_files_save=$ac_clean_files
2236 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2237 # Try to create an executable without -o first, disregard a.out.
2238 # It will help us diagnose broken compilers, and finding out an intuition
2240 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2244 # List of possible output files, starting from the most likely.
2245 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2246 # only as a last resort. b.out is created by i960 compilers.
2247 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2249 # The IRIX 6 linker writes into existing files which may not be
2250 # executable, retaining their permissions. Remove them first so a
2251 # subsequent execution test works.
2253 for ac_file in $ac_files
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2257 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2262 if { (ac_try="$ac_link_default"
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268 (eval "$ac_link_default") 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2275 # so that the user can short-circuit this test for compilers unknown to
2277 for ac_file in $ac_files ''
2279 test -f "$ac_file" || continue
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2284 # We found the default executable, but exeext='' is most
2288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 # We set ac_cv_exeext here because the later test for it is not
2293 # safe: cross compilers may not add the suffix if given an `-o'
2294 # argument, so we may need to know it at that point already.
2295 # Even if this section looks crufty: it has the advantage of
2302 test "$ac_cv_exeext" = no && ac_cv_exeext=
2308 { echo "$as_me:$LINENO: result: $ac_file" >&5
2309 echo "${ECHO_T}$ac_file" >&6; }
2310 if test -z "$ac_file"; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: C compiler cannot create executables
2317 See \`config.log' for more details." >&2;}
2318 { (exit 77); exit 77; }; }
2321 ac_exeext=$ac_cv_exeext
2323 # Check that the compiler produces executables we can run. If not, either
2324 # the compiler is broken, or we cross compile.
2325 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2326 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2328 # If not cross compiling, check that we can run a simple program.
2329 if test "$cross_compiling" != yes; then
2330 if { ac_try='./$ac_file'
2331 { (case "(($ac_try" in
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336 (eval "$ac_try") 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 if test "$cross_compiling" = maybe; then
2345 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2346 If you meant to cross compile, use \`--host'.
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot run C compiled programs.
2349 If you meant to cross compile, use \`--host'.
2350 See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
2355 { echo "$as_me:$LINENO: result: yes" >&5
2356 echo "${ECHO_T}yes" >&6; }
2358 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2359 ac_clean_files=$ac_clean_files_save
2360 # Check that the compiler produces executables we can run. If not, either
2361 # the compiler is broken, or we cross compile.
2362 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2363 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2364 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2365 echo "${ECHO_T}$cross_compiling" >&6; }
2367 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2368 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2369 if { (ac_try="$ac_link"
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_link") 2>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2380 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2381 # work properly (i.e., refer to `conftest.exe'), while it won't with
2383 for ac_file in conftest.exe conftest conftest.*; do
2384 test -f "$ac_file" || continue
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2396 See \`config.log' for more details." >&2;}
2397 { (exit 1); exit 1; }; }
2400 rm -f conftest$ac_cv_exeext
2401 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2402 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2404 rm -f conftest.$ac_ext
2405 EXEEXT=$ac_cv_exeext
2407 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2408 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2409 if test "${ac_cv_objext+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2427 rm -f conftest.o conftest.obj
2428 if { (ac_try="$ac_compile"
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_compile") 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; then
2438 for ac_file in conftest.o conftest.obj conftest.*; do
2439 test -f "$ac_file" || continue;
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2459 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2460 echo "${ECHO_T}$ac_cv_objext" >&6; }
2461 OBJEXT=$ac_cv_objext
2463 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 cat >conftest.$ac_ext <<_ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2486 rm -f conftest.$ac_objext
2487 if { (ac_try="$ac_compile"
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_compile") 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } && {
2500 test -z "$ac_c_werror_flag" ||
2501 test ! -s conftest.err
2502 } && test -s conftest.$ac_objext; then
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2517 GCC=`test $ac_compiler_gnu = yes && echo yes`
2518 ac_test_CFLAGS=${CFLAGS+set}
2519 ac_save_CFLAGS=$CFLAGS
2520 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_cc_g+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 ac_save_c_werror_flag=$ac_c_werror_flag
2526 ac_c_werror_flag=yes
2529 cat >conftest.$ac_ext <<_ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compile") 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } && {
2558 test -z "$ac_c_werror_flag" ||
2559 test ! -s conftest.err
2560 } && test -s conftest.$ac_objext; then
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (ac_try="$ac_compile"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } && {
2596 test -z "$ac_c_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest.$ac_objext; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 ac_c_werror_flag=$ac_save_c_werror_flag
2606 cat >conftest.$ac_ext <<_ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2621 rm -f conftest.$ac_objext
2622 if { (ac_try="$ac_compile"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_compile") 2>conftest.er1
2630 grep -v '^ *+' conftest.er1 >conftest.err
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } && {
2635 test -z "$ac_c_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest.$ac_objext; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 ac_c_werror_flag=$ac_save_c_werror_flag
2655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2657 if test "$ac_test_CFLAGS" = set; then
2658 CFLAGS=$ac_save_CFLAGS
2659 elif test $ac_cv_prog_cc_g = yes; then
2660 if test "$GCC" = yes; then
2666 if test "$GCC" = yes; then
2672 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2673 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_cc_c89+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 ac_cv_prog_cc_c89=no
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2687 #include <sys/types.h>
2688 #include <sys/stat.h>
2689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2690 struct buf { int x; };
2691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2692 static char *e (p, i)
2698 static char *f (char * (*g) (char **, int), char **p, ...)
2703 s = g (p, va_arg (v,int));
2708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2709 function prototypes and stuff, but not '\xHH' hex character constants.
2710 These don't provoke an error unfortunately, instead are silently treated
2711 as 'x'. The following induces an error, until -std is added to get
2712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2713 array size at least. It's necessary to write '\x00'==0 to get something
2714 that's true only with -std. */
2715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2718 inside strings and character constants. */
2720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2722 int test (int i, double x);
2723 struct s1 {int (*f) (int a);};
2724 struct s2 {int (*f) (double a);};
2725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2739 CC="$ac_save_CC $ac_arg"
2740 rm -f conftest.$ac_objext
2741 if { (ac_try="$ac_compile"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compile") 2>conftest.er1
2749 grep -v '^ *+' conftest.er1 >conftest.err
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } && {
2754 test -z "$ac_c_werror_flag" ||
2755 test ! -s conftest.err
2756 } && test -s conftest.$ac_objext; then
2757 ac_cv_prog_cc_c89=$ac_arg
2759 echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2765 rm -f core conftest.err conftest.$ac_objext
2766 test "x$ac_cv_prog_cc_c89" != "xno" && break
2768 rm -f conftest.$ac_ext
2773 case "x$ac_cv_prog_cc_c89" in
2775 { echo "$as_me:$LINENO: result: none needed" >&5
2776 echo "${ECHO_T}none needed" >&6; } ;;
2778 { echo "$as_me:$LINENO: result: unsupported" >&5
2779 echo "${ECHO_T}unsupported" >&6; } ;;
2781 CC="$CC $ac_cv_prog_cc_c89"
2782 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2783 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2799 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2800 # On Suns, sometimes $CPP names a directory.
2801 if test -n "$CPP" && test -d "$CPP"; then
2804 if test -z "$CPP"; then
2805 if test "${ac_cv_prog_CPP+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 # Double quotes because CPP needs to be expanded
2809 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2812 for ac_c_preproc_warn_flag in '' yes
2814 # Use a header file that comes with gcc, so configuring glibc
2815 # with a fresh cross-compiler works.
2816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2817 # <limits.h> exists even on freestanding compilers.
2818 # On the NeXT, cc -E runs the code through the compiler's parser,
2819 # not just through cpp. "Syntax error" is here to catch this case.
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2827 # include <limits.h>
2829 # include <assert.h>
2833 if { (ac_try="$ac_cpp conftest.$ac_ext"
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } >/dev/null && {
2846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2847 test ! -s conftest.err
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # Broken: fails on valid input.
2858 rm -f conftest.err conftest.$ac_ext
2860 # OK, works on sane cases. Now check whether nonexistent headers
2861 # can be detected and how.
2862 cat >conftest.$ac_ext <<_ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (ac_try="$ac_cpp conftest.$ac_ext"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } >/dev/null && {
2883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2886 # Broken: success on invalid input.
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2914 { echo "$as_me:$LINENO: result: $CPP" >&5
2915 echo "${ECHO_T}$CPP" >&6; }
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (ac_try="$ac_cpp conftest.$ac_ext"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev/null && {
2951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2963 rm -f conftest.err conftest.$ac_ext
2965 # OK, works on sane cases. Now check whether nonexistent headers
2966 # can be detected and how.
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 #include <ac_nonexistent.h>
2975 if { (ac_try="$ac_cpp conftest.$ac_ext"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } >/dev/null && {
2988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2989 test ! -s conftest.err
2991 # Broken: success on invalid input.
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 # Passes both tests.
3002 rm -f conftest.err conftest.$ac_ext
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3010 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3011 See \`config.log' for more details." >&5
3012 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3013 See \`config.log' for more details." >&2;}
3014 { (exit 1); exit 1; }; }
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3025 if test -f "$ac_dir/install-sh"; then
3027 ac_install_sh="$ac_aux_dir/install-sh -c"
3029 elif test -f "$ac_dir/install.sh"; then
3031 ac_install_sh="$ac_aux_dir/install.sh -c"
3033 elif test -f "$ac_dir/shtool"; then
3035 ac_install_sh="$ac_aux_dir/shtool install -c"
3039 if test -z "$ac_aux_dir"; then
3040 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3041 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3042 { (exit 1); exit 1; }; }
3045 # These three variables are undocumented and unsupported,
3046 # and are intended to be withdrawn in a future Autoconf release.
3047 # They can cause serious problems if a builder's source tree is in a directory
3048 # whose full name contains unusual characters.
3049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3054 # Find a good install program. We prefer a C program (faster),
3055 # so one script is as good as another. But avoid the broken or
3056 # incompatible versions:
3057 # SysV /etc/install, /usr/sbin/install
3058 # SunOS /usr/etc/install
3059 # IRIX /sbin/install
3061 # AmigaOS /C/install, which installs bootblocks on floppy discs
3062 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3063 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3064 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3065 # OS/2's system install, which has a completely different semantic
3066 # ./install, which can be erroneously created by make from ./install.sh.
3067 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3068 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3069 if test -z "$INSTALL"; then
3070 if test "${ac_cv_path_install+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 # Account for people who put trailing slashes in PATH elements.
3080 ./ | .// | /cC/* | \
3081 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3082 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3085 # OSF1 and SCO ODT 3.0 have their own names for install.
3086 # Don't use installbsd from OSF since it installs stuff as root
3088 for ac_prog in ginstall scoinst install; do
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3091 if test $ac_prog = install &&
3092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093 # AIX install. It has an incompatible calling convention.
3095 elif test $ac_prog = install &&
3096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3097 # program-specific install script used by HP pwplus--don't use.
3100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3113 if test "${ac_cv_path_install+set}" = set; then
3114 INSTALL=$ac_cv_path_install
3116 # As a last resort, use the slow shell script. Don't cache a
3117 # value for INSTALL within a source directory, because that will
3118 # break other packages using the cache if that directory is
3119 # removed, or if the value is a relative name.
3120 INSTALL=$ac_install_sh
3123 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6; }
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 if test -n "$RANLIB"; then
3143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6; }
3167 { echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6; }
3173 if test -z "$ac_cv_prog_RANLIB"; then
3174 ac_ct_RANLIB=$RANLIB
3175 # Extract the first word of "ranlib", so it can be a program name with args.
3176 set dummy ranlib; ac_word=$2
3177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3179 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 if test -n "$ac_ct_RANLIB"; then
3183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_RANLIB="ranlib"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3203 if test -n "$ac_ct_RANLIB"; then
3204 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3205 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3207 { echo "$as_me:$LINENO: result: no" >&5
3208 echo "${ECHO_T}no" >&6; }
3211 if test "x$ac_ct_RANLIB" = x; then
3214 case $cross_compiling:$ac_tool_warned in
3216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3217 whose name does not start with the host triplet. If you think this
3218 configuration is useful to you, please write to autoconf@gnu.org." >&5
3219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3220 whose name does not start with the host triplet. If you think this
3221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3222 ac_tool_warned=yes ;;
3224 RANLIB=$ac_ct_RANLIB
3227 RANLIB="$ac_cv_prog_RANLIB"
3230 # Extract the first word of "autoconf", so it can be a program name with args.
3231 set dummy autoconf; ac_word=$2
3232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3234 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if test -n "$AUTOCONF"; then
3238 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_AUTOCONF="autoconf"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3258 AUTOCONF=$ac_cv_prog_AUTOCONF
3259 if test -n "$AUTOCONF"; then
3260 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3261 echo "${ECHO_T}$AUTOCONF" >&6; }
3263 { echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6; }
3268 # Extract the first word of "strip", so it can be a program name with args.
3269 set dummy strip; ac_word=$2
3270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_STRIP+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 if test -n "$STRIP"; then
3276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_STRIP="strip"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3296 STRIP=$ac_cv_prog_STRIP
3297 if test -n "$STRIP"; then
3298 { echo "$as_me:$LINENO: result: $STRIP" >&5
3299 echo "${ECHO_T}$STRIP" >&6; }
3301 { echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6; }
3306 # Extract the first word of "as", so it can be a program name with args.
3307 set dummy as; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_AS+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$AS"; then
3314 ac_cv_prog_AS="$AS" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3335 if test -n "$AS"; then
3336 { echo "$as_me:$LINENO: result: $AS" >&5
3337 echo "${ECHO_T}$AS" >&6; }
3339 { echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6; }
3344 # Extract the first word of "cp", so it can be a program name with args.
3345 set dummy cp; ac_word=$2
3346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3348 if test "${ac_cv_prog_CP+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$CP"; then
3352 ac_cv_prog_CP="$CP" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3373 if test -n "$CP"; then
3374 { echo "$as_me:$LINENO: result: $CP" >&5
3375 echo "${ECHO_T}$CP" >&6; }
3377 { echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6; }
3383 for ac_prog in flex lex
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3389 if test "${ac_cv_prog_LEX+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 if test -n "$LEX"; then
3393 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_LEX="$ac_prog"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 if test -n "$LEX"; then
3414 { echo "$as_me:$LINENO: result: $LEX" >&5
3415 echo "${ECHO_T}$LEX" >&6; }
3417 { echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6; }
3422 test -n "$LEX" && break
3424 test -n "$LEX" || LEX=":"
3427 for ac_prog in 'bison -y' byacc yacc
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3433 if test "${ac_cv_prog_YACC+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 if test -n "$YACC"; then
3437 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_YACC="$ac_prog"
3447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 YACC=$ac_cv_prog_YACC
3457 if test -n "$YACC"; then
3458 { echo "$as_me:$LINENO: result: $YACC" >&5
3459 echo "${ECHO_T}$YACC" >&6; }
3461 { echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6; }
3466 test -n "$YACC" && break
3468 test -n "$YACC" || YACC=":"
3473 if test "$YACC" = ":"; then
3474 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3475 echo "$as_me: error: Cannot find required program bison." >&2;}
3476 { (exit 1); exit 1; }; }
3479 if test "$LEX" = ":"; then
3480 { { echo "$as_me:$LINENO: error: Cannot find required program flex." >&5
3481 echo "$as_me: error: Cannot find required program flex." >&2;}
3482 { (exit 1); exit 1; }; }
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 # Check whether --with-ccache was given.
3495 if test "${with_ccache+set}" = set; then
3496 withval=$with_ccache;
3499 case x${with_ccache-yes} in
3500 xyes) # Extract the first word of "ccache", so it can be a program name with args.
3501 set dummy ccache; ac_word=$2
3502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3504 if test "${ac_cv_prog_CCACHE+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 if test -n "$CCACHE"; then
3508 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_CCACHE="ccache"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 CCACHE=$ac_cv_prog_CCACHE
3528 if test -n "$CCACHE"; then
3529 { echo "$as_me:$LINENO: result: $CCACHE" >&5
3530 echo "${ECHO_T}$CCACHE" >&6; }
3532 { echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6; }
3538 *) CCACHE=$with_ccache
3543 # Checking for functions
3544 # ===========================================================================
3547 for ac_func in strerror
3549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3563 #define $ac_func innocuous_$ac_func
3565 /* System header to define __stub macros and hopefully few prototypes,
3566 which can conflict with char $ac_func (); below.
3567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 <limits.h> exists even on freestanding compilers. */
3571 # include <limits.h>
3573 # include <assert.h>
3578 /* Override any GCC internal prototype to avoid an error.
3579 Use char because int might match the return type of a GCC
3580 builtin and then its argument prototype would still apply. */
3585 /* The GNU C library defines this for functions which it implements
3586 to always fail with ENOSYS. Some functions are actually named
3587 something starting with __ and the normal name is an alias. */
3588 #if defined __stub_$ac_func || defined __stub___$ac_func
3600 rm -f conftest.$ac_objext conftest$ac_exeext
3601 if { (ac_try="$ac_link"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_link") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && {
3614 test -z "$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3616 } && test -s conftest$ac_exeext &&
3617 $as_test_x conftest$ac_exeext; then
3618 eval "$as_ac_var=yes"
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 eval "$as_ac_var=no"
3626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3627 conftest$ac_exeext conftest.$ac_ext
3629 ac_res=`eval echo '${'$as_ac_var'}'`
3630 { echo "$as_me:$LINENO: result: $ac_res" >&5
3631 echo "${ECHO_T}$ac_res" >&6; }
3632 if test `eval echo '${'$as_ac_var'}'` = yes; then
3633 cat >>confdefs.h <<_ACEOF
3634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3644 for ac_func in vsnprintf snprintf vsprintf mkstemp
3646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3660 #define $ac_func innocuous_$ac_func
3662 /* System header to define __stub macros and hopefully few prototypes,
3663 which can conflict with char $ac_func (); below.
3664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665 <limits.h> exists even on freestanding compilers. */
3668 # include <limits.h>
3670 # include <assert.h>
3675 /* Override any GCC internal prototype to avoid an error.
3676 Use char because int might match the return type of a GCC
3677 builtin and then its argument prototype would still apply. */
3682 /* The GNU C library defines this for functions which it implements
3683 to always fail with ENOSYS. Some functions are actually named
3684 something starting with __ and the normal name is an alias. */
3685 #if defined __stub_$ac_func || defined __stub___$ac_func
3697 rm -f conftest.$ac_objext conftest$ac_exeext
3698 if { (ac_try="$ac_link"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_link") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest$ac_exeext &&
3714 $as_test_x conftest$ac_exeext; then
3715 eval "$as_ac_var=yes"
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 eval "$as_ac_var=no"
3723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3724 conftest$ac_exeext conftest.$ac_ext
3726 ac_res=`eval echo '${'$as_ac_var'}'`
3727 { echo "$as_me:$LINENO: result: $ac_res" >&5
3728 echo "${ECHO_T}$ac_res" >&6; }
3729 if test `eval echo '${'$as_ac_var'}'` = yes; then
3730 cat >>confdefs.h <<_ACEOF
3731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3740 # ===========================================================================
3742 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3743 # supports option specified as the 2nd parameter
3744 # For example: DD_CPORT(CXX, fPIC)
3748 # This macro expands DIR and assigns it to RET.
3749 # If DIR is NONE, then it's replaced by DEFAULT.
3751 # Based on AC_DEFINE_DIR
3755 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3759 # adl_NORMALIZE_PATH
3761 # - empty paths are changed to '.'
3762 # - trailing slashes are removed
3763 # - repeated slashes are squeezed except a leading doubled slash '//'
3764 # (which might indicate a networked disk on some OS).
3767 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3768 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3769 # are turned into backslashes, otherwise they are all turned into slashes.
3771 # This makes processing of DOS filenames quite easier, because you can turn a
3772 # filename to the Unix notation, make your processing, and turn it back to
3773 # original notation.
3778 # adl_COMPUTE_RELATIVE_PATH
3780 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3781 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3782 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3783 # absolute filenames for this macro to success.
3789 ## The following helper macros are too fragile to be used out
3790 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3791 ## paths are normalized), that's why I'm keeping them in the same file.
3792 ## Still, some of them maybe worth to reuse.
3810 # Checking characteristics of compilers and other programs
3811 # ===========================================================================
3812 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3813 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
3814 if test "${sdcc_cv_MM+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 echo "#include <stdio.h>" >_test_.c
3819 $CPP -v -MM _test_.c 1>&5 2>&5
3820 if test "$?" = "0"; then
3827 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3828 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
3832 # This is the first time when CFLAGS are set/modified!!
3834 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3835 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
3836 if test "${sdcc_cv_CCggdb+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3844 if test "$?" = "0"; then
3845 sdcc_cv_CCggdb="yes"
3849 rm -f _test_.* a.out
3851 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3852 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
3854 if test "$sdcc_cv_CCggdb" = "yes"; then
3855 CFLAGS="-ggdb ${CFLAGS}"
3859 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3860 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
3861 if test "${sdcc_cv_CCpipe+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 $CC -v -pipe -c _test_.c 1>&5 2>&5
3869 if test "$?" = "0"; then
3870 sdcc_cv_CCpipe="yes"
3874 rm -f _test_.* a.out
3876 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3877 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
3879 if test "$sdcc_cv_CCpipe" = "yes"; then
3880 CFLAGS="-pipe $CFLAGS"
3884 # Checks for typedefs, structures, and compiler characteristics.
3885 # ===========================================================================
3886 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3887 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3888 if test "${ac_cv_type_signal+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 #include <sys/types.h>
3903 return *(signal (0, 0)) (0) == 1;
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3925 ac_cv_type_signal=int
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 ac_cv_type_signal=void
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3936 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3938 cat >>confdefs.h <<_ACEOF
3939 #define RETSIGTYPE $ac_cv_type_signal
3945 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3946 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3947 if test "${ac_cv_path_GREP+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 # Extract the first word of "grep ggrep" to use in msg output
3951 if test -z "$GREP"; then
3952 set dummy grep ggrep; ac_prog_name=$2
3953 if test "${ac_cv_path_GREP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 ac_path_GREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in grep ggrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3967 # Check for GNU ac_path_GREP and select it if it is found.
3968 # Check for GNU $ac_path_GREP
3969 case `"$ac_path_GREP" --version 2>&1` in
3971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3974 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 echo 'GREP' >> "conftest.nl"
3981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 ac_count=`expr $ac_count + 1`
3984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_GREP="$ac_path_GREP"
3987 ac_path_GREP_max=$ac_count
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996 $ac_path_GREP_found && break 3
4006 GREP="$ac_cv_path_GREP"
4007 if test -z "$GREP"; then
4008 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4009 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4010 { (exit 1); exit 1; }; }
4014 ac_cv_path_GREP=$GREP
4019 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4020 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4021 GREP="$ac_cv_path_GREP"
4024 { echo "$as_me:$LINENO: checking for egrep" >&5
4025 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4026 if test "${ac_cv_path_EGREP+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4030 then ac_cv_path_EGREP="$GREP -E"
4032 # Extract the first word of "egrep" to use in msg output
4033 if test -z "$EGREP"; then
4034 set dummy egrep; ac_prog_name=$2
4035 if test "${ac_cv_path_EGREP+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 ac_path_EGREP_found=false
4039 # Loop through the user's path and test for each of PROGNAME-LIST
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044 test -z "$as_dir" && as_dir=.
4045 for ac_prog in egrep; do
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4048 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4049 # Check for GNU ac_path_EGREP and select it if it is found.
4050 # Check for GNU $ac_path_EGREP
4051 case `"$ac_path_EGREP" --version 2>&1` in
4053 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4056 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4059 cat "conftest.in" "conftest.in" >"conftest.tmp"
4060 mv "conftest.tmp" "conftest.in"
4061 cp "conftest.in" "conftest.nl"
4062 echo 'EGREP' >> "conftest.nl"
4063 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4065 ac_count=`expr $ac_count + 1`
4066 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4067 # Best one so far, save it but keep looking for a better one
4068 ac_cv_path_EGREP="$ac_path_EGREP"
4069 ac_path_EGREP_max=$ac_count
4071 # 10*(2^10) chars as input seems more than enough
4072 test $ac_count -gt 10 && break
4074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078 $ac_path_EGREP_found && break 3
4088 EGREP="$ac_cv_path_EGREP"
4089 if test -z "$EGREP"; then
4090 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4091 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4092 { (exit 1); exit 1; }; }
4096 ac_cv_path_EGREP=$EGREP
4102 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4103 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4104 EGREP="$ac_cv_path_EGREP"
4107 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4108 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4109 if test "${ac_cv_header_stdc+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 ac_cv_header_stdc=yes
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_cv_header_stdc=no
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 if test $ac_cv_header_stdc = yes; then
4159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "memchr" >/dev/null 2>&1; then
4173 ac_cv_header_stdc=no
4179 if test $ac_cv_header_stdc = yes; then
4180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 $EGREP "free" >/dev/null 2>&1; then
4194 ac_cv_header_stdc=no
4200 if test $ac_cv_header_stdc = yes; then
4201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4202 if test "$cross_compiling" = yes; then
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4213 #if ((' ' & 0x0FF) == 0x020)
4214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4217 # define ISLOWER(c) \
4218 (('a' <= (c) && (c) <= 'i') \
4219 || ('j' <= (c) && (c) <= 'r') \
4220 || ('s' <= (c) && (c) <= 'z'))
4221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4229 for (i = 0; i < 256; i++)
4230 if (XOR (islower (i), ISLOWER (i))
4231 || toupper (i) != TOUPPER (i))
4236 rm -f conftest$ac_exeext
4237 if { (ac_try="$ac_link"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_link") 2>&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247 { (case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_try") 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4258 echo "$as_me: program exited with status $ac_status" >&5
4259 echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4263 ac_cv_header_stdc=no
4265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4271 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4272 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4273 if test $ac_cv_header_stdc = yes; then
4275 cat >>confdefs.h <<\_ACEOF
4276 #define STDC_HEADERS 1
4281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4292 inttypes.h stdint.h unistd.h
4294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4308 #include <$ac_header>
4310 rm -f conftest.$ac_objext
4311 if { (ac_try="$ac_compile"
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } && {
4324 test -z "$ac_c_werror_flag" ||
4325 test ! -s conftest.err
4326 } && test -s conftest.$ac_objext; then
4327 eval "$as_ac_Header=yes"
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 eval "$as_ac_Header=no"
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_res=`eval echo '${'$as_ac_Header'}'`
4338 { echo "$as_me:$LINENO: result: $ac_res" >&5
4339 echo "${ECHO_T}$ac_res" >&6; }
4340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4341 cat >>confdefs.h <<_ACEOF
4342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350 { echo "$as_me:$LINENO: checking for char" >&5
4351 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
4352 if test "${ac_cv_type_char+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 $ac_includes_default
4362 typedef char ac__type_new_;
4366 if ((ac__type_new_ *) 0)
4368 if (sizeof (ac__type_new_))
4374 rm -f conftest.$ac_objext
4375 if { (ac_try="$ac_compile"
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_compile") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } && {
4388 test -z "$ac_c_werror_flag" ||
4389 test ! -s conftest.err
4390 } && test -s conftest.$ac_objext; then
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4402 echo "${ECHO_T}$ac_cv_type_char" >&6; }
4404 # The cast to long int works around a bug in the HP C Compiler
4405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4407 # This bug is HP SR number 8606223364.
4408 { echo "$as_me:$LINENO: checking size of char" >&5
4409 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
4410 if test "${ac_cv_sizeof_char+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test "$cross_compiling" = yes; then
4414 # Depending upon the size, compute the lo and hi bounds.
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 $ac_includes_default
4422 typedef char ac__type_sizeof_;
4426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4433 rm -f conftest.$ac_objext
4434 if { (ac_try="$ac_compile"
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_compile") 2>conftest.er1
4442 grep -v '^ *+' conftest.er1 >conftest.err
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && {
4447 test -z "$ac_c_werror_flag" ||
4448 test ! -s conftest.err
4449 } && test -s conftest.$ac_objext; then
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 $ac_includes_default
4459 typedef char ac__type_sizeof_;
4463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_compile") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && {
4484 test -z "$ac_c_werror_flag" ||
4485 test ! -s conftest.err
4486 } && test -s conftest.$ac_objext; then
4487 ac_hi=$ac_mid; break
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 ac_lo=`expr $ac_mid + 1`
4493 if test $ac_lo -le $ac_mid; then
4497 ac_mid=`expr 2 '*' $ac_mid + 1`
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 $ac_includes_default
4513 typedef char ac__type_sizeof_;
4517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4524 rm -f conftest.$ac_objext
4525 if { (ac_try="$ac_compile"
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_compile") 2>conftest.er1
4533 grep -v '^ *+' conftest.er1 >conftest.err
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && {
4538 test -z "$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest.$ac_objext; then
4543 cat >conftest.$ac_ext <<_ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4550 typedef char ac__type_sizeof_;
4554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4561 rm -f conftest.$ac_objext
4562 if { (ac_try="$ac_compile"
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_compile") 2>conftest.er1
4570 grep -v '^ *+' conftest.er1 >conftest.err
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && {
4575 test -z "$ac_c_werror_flag" ||
4576 test ! -s conftest.err
4577 } && test -s conftest.$ac_objext; then
4578 ac_lo=$ac_mid; break
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 ac_hi=`expr '(' $ac_mid ')' - 1`
4584 if test $ac_mid -le $ac_hi; then
4588 ac_mid=`expr 2 '*' $ac_mid`
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 # Binary search between lo and hi bounds.
4605 while test "x$ac_lo" != "x$ac_hi"; do
4606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 typedef char ac__type_sizeof_;
4618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4625 rm -f conftest.$ac_objext
4626 if { (ac_try="$ac_compile"
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_compile") 2>conftest.er1
4634 grep -v '^ *+' conftest.er1 >conftest.err
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && {
4639 test -z "$ac_c_werror_flag" ||
4640 test ! -s conftest.err
4641 } && test -s conftest.$ac_objext; then
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 ac_lo=`expr '(' $ac_mid ')' + 1`
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ?*) ac_cv_sizeof_char=$ac_lo;;
4654 '') if test "$ac_cv_type_char" = yes; then
4655 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4656 See \`config.log' for more details." >&5
4657 echo "$as_me: error: cannot compute sizeof (char)
4658 See \`config.log' for more details." >&2;}
4659 { (exit 77); exit 77; }; }
4665 cat >conftest.$ac_ext <<_ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 $ac_includes_default
4672 typedef char ac__type_sizeof_;
4673 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4674 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4681 FILE *f = fopen ("conftest.val", "w");
4684 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4686 long int i = longval ();
4687 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4689 fprintf (f, "%ld\n", i);
4693 unsigned long int i = ulongval ();
4694 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4696 fprintf (f, "%lu\n", i);
4698 return ferror (f) || fclose (f) != 0;
4704 rm -f conftest$ac_exeext
4705 if { (ac_try="$ac_link"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_link") 2>&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4715 { (case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_try") 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 ac_cv_sizeof_char=`cat conftest.val`
4726 echo "$as_me: program exited with status $ac_status" >&5
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4731 if test "$ac_cv_type_char" = yes; then
4732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4733 See \`config.log' for more details." >&5
4734 echo "$as_me: error: cannot compute sizeof (char)
4735 See \`config.log' for more details." >&2;}
4736 { (exit 77); exit 77; }; }
4741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4745 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4746 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
4750 cat >>confdefs.h <<_ACEOF
4751 #define SIZEOF_CHAR $ac_cv_sizeof_char
4755 { echo "$as_me:$LINENO: checking for short" >&5
4756 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4757 if test "${ac_cv_type_short+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 cat >conftest.$ac_ext <<_ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 $ac_includes_default
4767 typedef short ac__type_new_;
4771 if ((ac__type_new_ *) 0)
4773 if (sizeof (ac__type_new_))
4779 rm -f conftest.$ac_objext
4780 if { (ac_try="$ac_compile"
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_compile") 2>conftest.er1
4788 grep -v '^ *+' conftest.er1 >conftest.err
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
4796 ac_cv_type_short=yes
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4807 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4809 # The cast to long int works around a bug in the HP C Compiler
4810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4812 # This bug is HP SR number 8606223364.
4813 { echo "$as_me:$LINENO: checking size of short" >&5
4814 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4815 if test "${ac_cv_sizeof_short+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test "$cross_compiling" = yes; then
4819 # Depending upon the size, compute the lo and hi bounds.
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 typedef short ac__type_sizeof_;
4831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 $ac_includes_default
4864 typedef short ac__type_sizeof_;
4868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4875 rm -f conftest.$ac_objext
4876 if { (ac_try="$ac_compile"
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_compile") 2>conftest.er1
4884 grep -v '^ *+' conftest.er1 >conftest.err
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } && {
4889 test -z "$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 } && test -s conftest.$ac_objext; then
4892 ac_hi=$ac_mid; break
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 ac_lo=`expr $ac_mid + 1`
4898 if test $ac_lo -le $ac_mid; then
4902 ac_mid=`expr 2 '*' $ac_mid + 1`
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 cat >conftest.$ac_ext <<_ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 $ac_includes_default
4918 typedef short ac__type_sizeof_;
4922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4929 rm -f conftest.$ac_objext
4930 if { (ac_try="$ac_compile"
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_compile") 2>conftest.er1
4938 grep -v '^ *+' conftest.er1 >conftest.err
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } && {
4943 test -z "$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 } && test -s conftest.$ac_objext; then
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4955 typedef short ac__type_sizeof_;
4959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4983 ac_lo=$ac_mid; break
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 ac_hi=`expr '(' $ac_mid ')' - 1`
4989 if test $ac_mid -le $ac_hi; then
4993 ac_mid=`expr 2 '*' $ac_mid`
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 # Binary search between lo and hi bounds.
5010 while test "x$ac_lo" != "x$ac_hi"; do
5011 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5019 typedef short ac__type_sizeof_;
5023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5030 rm -f conftest.$ac_objext
5031 if { (ac_try="$ac_compile"
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_compile") 2>conftest.er1
5039 grep -v '^ *+' conftest.er1 >conftest.err
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } && {
5044 test -z "$ac_c_werror_flag" ||
5045 test ! -s conftest.err
5046 } && test -s conftest.$ac_objext; then
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052 ac_lo=`expr '(' $ac_mid ')' + 1`
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 ?*) ac_cv_sizeof_short=$ac_lo;;
5059 '') if test "$ac_cv_type_short" = yes; then
5060 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5061 See \`config.log' for more details." >&5
5062 echo "$as_me: error: cannot compute sizeof (short)
5063 See \`config.log' for more details." >&2;}
5064 { (exit 77); exit 77; }; }
5066 ac_cv_sizeof_short=0
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5077 typedef short ac__type_sizeof_;
5078 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5079 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5086 FILE *f = fopen ("conftest.val", "w");
5089 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5091 long int i = longval ();
5092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5094 fprintf (f, "%ld\n", i);
5098 unsigned long int i = ulongval ();
5099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5101 fprintf (f, "%lu\n", i);
5103 return ferror (f) || fclose (f) != 0;
5109 rm -f conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_link") 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120 { (case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_try") 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_sizeof_short=`cat conftest.val`
5131 echo "$as_me: program exited with status $ac_status" >&5
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5136 if test "$ac_cv_type_short" = yes; then
5137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: cannot compute sizeof (short)
5140 See \`config.log' for more details." >&2;}
5141 { (exit 77); exit 77; }; }
5143 ac_cv_sizeof_short=0
5146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5150 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5151 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5155 cat >>confdefs.h <<_ACEOF
5156 #define SIZEOF_SHORT $ac_cv_sizeof_short
5160 { echo "$as_me:$LINENO: checking for int" >&5
5161 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5162 if test "${ac_cv_type_int+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5172 typedef int ac__type_new_;
5176 if ((ac__type_new_ *) 0)
5178 if (sizeof (ac__type_new_))
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_objext; then
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5212 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5214 # The cast to long int works around a bug in the HP C Compiler
5215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5217 # This bug is HP SR number 8606223364.
5218 { echo "$as_me:$LINENO: checking size of int" >&5
5219 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5220 if test "${ac_cv_sizeof_int+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 if test "$cross_compiling" = yes; then
5224 # Depending upon the size, compute the lo and hi bounds.
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5232 typedef int ac__type_sizeof_;
5236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
5262 cat >conftest.$ac_ext <<_ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 typedef int ac__type_sizeof_;
5273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5280 rm -f conftest.$ac_objext
5281 if { (ac_try="$ac_compile"
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_hi=$ac_mid; break
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_lo=`expr $ac_mid + 1`
5303 if test $ac_lo -le $ac_mid; then
5307 ac_mid=`expr 2 '*' $ac_mid + 1`
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5323 typedef int ac__type_sizeof_;
5327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 $ac_includes_default
5360 typedef int ac__type_sizeof_;
5364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 ac_lo=$ac_mid; break
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_hi=`expr '(' $ac_mid ')' - 1`
5394 if test $ac_mid -le $ac_hi; then
5398 ac_mid=`expr 2 '*' $ac_mid`
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 # Binary search between lo and hi bounds.
5415 while test "x$ac_lo" != "x$ac_hi"; do
5416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5424 typedef int ac__type_sizeof_;
5428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
5444 grep -v '^ *+' conftest.er1 >conftest.err
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_lo=`expr '(' $ac_mid ')' + 1`
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ?*) ac_cv_sizeof_int=$ac_lo;;
5464 '') if test "$ac_cv_type_int" = yes; then
5465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5466 See \`config.log' for more details." >&5
5467 echo "$as_me: error: cannot compute sizeof (int)
5468 See \`config.log' for more details." >&2;}
5469 { (exit 77); exit 77; }; }
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 typedef int ac__type_sizeof_;
5483 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5484 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5491 FILE *f = fopen ("conftest.val", "w");
5494 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5496 long int i = longval ();
5497 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5499 fprintf (f, "%ld\n", i);
5503 unsigned long int i = ulongval ();
5504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5506 fprintf (f, "%lu\n", i);
5508 return ferror (f) || fclose (f) != 0;
5514 rm -f conftest$ac_exeext
5515 if { (ac_try="$ac_link"
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_link") 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5525 { (case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_try") 2>&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_sizeof_int=`cat conftest.val`
5536 echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5541 if test "$ac_cv_type_int" = yes; then
5542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot compute sizeof (int)
5545 See \`config.log' for more details." >&2;}
5546 { (exit 77); exit 77; }; }
5551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5555 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5556 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5560 cat >>confdefs.h <<_ACEOF
5561 #define SIZEOF_INT $ac_cv_sizeof_int
5565 { echo "$as_me:$LINENO: checking for long" >&5
5566 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5567 if test "${ac_cv_type_long+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 cat >conftest.$ac_ext <<_ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 $ac_includes_default
5577 typedef long ac__type_new_;
5581 if ((ac__type_new_ *) 0)
5583 if (sizeof (ac__type_new_))
5589 rm -f conftest.$ac_objext
5590 if { (ac_try="$ac_compile"
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_compile") 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && {
5603 test -z "$ac_c_werror_flag" ||
5604 test ! -s conftest.err
5605 } && test -s conftest.$ac_objext; then
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5617 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5619 # The cast to long int works around a bug in the HP C Compiler
5620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5622 # This bug is HP SR number 8606223364.
5623 { echo "$as_me:$LINENO: checking size of long" >&5
5624 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5625 if test "${ac_cv_sizeof_long+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 if test "$cross_compiling" = yes; then
5629 # Depending upon the size, compute the lo and hi bounds.
5630 cat >conftest.$ac_ext <<_ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 $ac_includes_default
5637 typedef long ac__type_sizeof_;
5641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5648 rm -f conftest.$ac_objext
5649 if { (ac_try="$ac_compile"
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 $ac_includes_default
5674 typedef long ac__type_sizeof_;
5678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5685 rm -f conftest.$ac_objext
5686 if { (ac_try="$ac_compile"
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compile") 2>conftest.er1
5694 grep -v '^ *+' conftest.er1 >conftest.err
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && {
5699 test -z "$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 } && test -s conftest.$ac_objext; then
5702 ac_hi=$ac_mid; break
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 ac_lo=`expr $ac_mid + 1`
5708 if test $ac_lo -le $ac_mid; then
5712 ac_mid=`expr 2 '*' $ac_mid + 1`
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 cat >conftest.$ac_ext <<_ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 $ac_includes_default
5728 typedef long ac__type_sizeof_;
5732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5739 rm -f conftest.$ac_objext
5740 if { (ac_try="$ac_compile"
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5748 grep -v '^ *+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 $ac_includes_default
5765 typedef long ac__type_sizeof_;
5769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
5793 ac_lo=$ac_mid; break
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 ac_hi=`expr '(' $ac_mid ')' - 1`
5799 if test $ac_mid -le $ac_hi; then
5803 ac_mid=`expr 2 '*' $ac_mid`
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 # Binary search between lo and hi bounds.
5820 while test "x$ac_lo" != "x$ac_hi"; do
5821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 $ac_includes_default
5829 typedef long ac__type_sizeof_;
5833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1 >conftest.err
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.$ac_objext; then
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_lo=`expr '(' $ac_mid ')' + 1`
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 ?*) ac_cv_sizeof_long=$ac_lo;;
5869 '') if test "$ac_cv_type_long" = yes; then
5870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5871 See \`config.log' for more details." >&5
5872 echo "$as_me: error: cannot compute sizeof (long)
5873 See \`config.log' for more details." >&2;}
5874 { (exit 77); exit 77; }; }
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5887 typedef long ac__type_sizeof_;
5888 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5889 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5896 FILE *f = fopen ("conftest.val", "w");
5899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5901 long int i = longval ();
5902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5904 fprintf (f, "%ld\n", i);
5908 unsigned long int i = ulongval ();
5909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5911 fprintf (f, "%lu\n", i);
5913 return ferror (f) || fclose (f) != 0;
5919 rm -f conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_link") 2>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_sizeof_long=`cat conftest.val`
5941 echo "$as_me: program exited with status $ac_status" >&5
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5946 if test "$ac_cv_type_long" = yes; then
5947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5948 See \`config.log' for more details." >&5
5949 echo "$as_me: error: cannot compute sizeof (long)
5950 See \`config.log' for more details." >&2;}
5951 { (exit 77); exit 77; }; }
5956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5960 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5961 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5965 cat >>confdefs.h <<_ACEOF
5966 #define SIZEOF_LONG $ac_cv_sizeof_long
5971 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5972 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
5973 if test "${ac_cv_c_char_unsigned+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5986 static int test_array [1 - 2 * !(((char) -1) < 0)];
5993 rm -f conftest.$ac_objext
5994 if { (ac_try="$ac_compile"
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
6010 ac_cv_c_char_unsigned=no
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_cv_c_char_unsigned=yes
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6021 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
6022 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6023 cat >>confdefs.h <<\_ACEOF
6024 #define __CHAR_UNSIGNED__ 1
6032 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
6036 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
6040 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
6044 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
6051 { echo "$as_me:$LINENO: checking type name for byte" >&5
6052 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
6053 TYPE_CHAR=`type_name 1`
6054 if test "$ac_cv_c_char_unsigned" = "yes"; then
6055 TYPE_BYTE="signed $TYPE_CHAR"
6057 TYPE_BYTE=$TYPE_CHAR
6059 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6060 echo "${ECHO_T}$TYPE_BYTE" >&6; }
6061 { echo "$as_me:$LINENO: checking type name for word" >&5
6062 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
6063 TYPE_WORD=`type_name 2`
6064 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6065 echo "${ECHO_T}$TYPE_WORD" >&6; }
6066 { echo "$as_me:$LINENO: checking type name for dword" >&5
6067 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
6068 TYPE_DWORD=`type_name 4`
6069 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6070 echo "${ECHO_T}$TYPE_DWORD" >&6; }
6072 cat >>confdefs.h <<_ACEOF
6073 #define TYPE_BYTE $TYPE_BYTE
6076 cat >>confdefs.h <<_ACEOF
6077 #define TYPE_WORD $TYPE_WORD
6080 cat >>confdefs.h <<_ACEOF
6081 #define TYPE_DWORD $TYPE_DWORD
6085 cat >>confdefs.h <<_ACEOF
6086 #define TYPE_UBYTE unsigned $TYPE_CHAR
6089 cat >>confdefs.h <<_ACEOF
6090 #define TYPE_UWORD unsigned $TYPE_WORD
6093 cat >>confdefs.h <<_ACEOF
6094 #define TYPE_UDWORD unsigned $TYPE_DWORD
6099 # SDCC_BUILD_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
6100 # -------------------------------------------------------------------------
6101 # SDCC_BUILD_BIGENDIAN
6103 { echo "$as_me:$LINENO: checking whether host machine byte ordering is bigendian" >&5
6104 echo $ECHO_N "checking whether host machine byte ordering is bigendian... $ECHO_C" >&6; }
6105 if test "${sdcc_cv_build_bigendian+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 # See if sys/param.h defines the BYTE_ORDER macro.
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <sys/types.h>
6116 #include <sys/param.h>
6121 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6122 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6139 grep -v '^ *+' conftest.er1 >conftest.err
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.$ac_objext; then
6147 # It does; now see whether it defined to BIG_ENDIAN or not.
6148 cat >conftest.$ac_ext <<_ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <sys/types.h>
6155 #include <sys/param.h>
6160 #if BYTE_ORDER != BIG_ENDIAN
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compile") 2>conftest.er1
6177 grep -v '^ *+' conftest.er1 >conftest.err
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } && {
6182 test -z "$ac_c_werror_flag" ||
6183 test ! -s conftest.err
6184 } && test -s conftest.$ac_objext; then
6185 sdcc_cv_build_bigendian=yes
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 sdcc_cv_build_bigendian=no
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 # It does not; compile a test program.
6199 if test "$cross_compiling" = yes; then
6200 # try to guess the endianness by grepping values into an object file
6201 sdcc_cv_build_bigendian=unknown
6202 cat >conftest.$ac_ext <<_ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6209 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6210 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6211 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6212 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6213 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6217 _ascii (); _ebcdic ();
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_compile") 2>conftest.er1
6231 grep -v '^ *+' conftest.er1 >conftest.err
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && {
6236 test -z "$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 } && test -s conftest.$ac_objext; then
6239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6240 sdcc_cv_build_bigendian=yes
6242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6243 if test "$sdcc_cv_build_bigendian" = unknown; then
6244 sdcc_cv_build_bigendian=no
6246 # finding both strings is unlikely to happen, but who knows?
6247 sdcc_cv_build_bigendian=unknown
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6270 /* Are we little or big endian? From Harbison&Steele. */
6274 char c[sizeof (long int)];
6277 return u.c[sizeof (long int) - 1] == 1;
6283 rm -f conftest$ac_exeext
6284 if { (ac_try="$ac_link"
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_link") 2>&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6294 { (case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_try") 2>&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 sdcc_cv_build_bigendian=no
6305 echo "$as_me: program exited with status $ac_status" >&5
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6310 sdcc_cv_build_bigendian=yes
6312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 { echo "$as_me:$LINENO: result: $sdcc_cv_build_bigendian" >&5
6321 echo "${ECHO_T}$sdcc_cv_build_bigendian" >&6; }
6322 case $sdcc_cv_build_bigendian in
6325 cat >>confdefs.h <<\_ACEOF
6326 #define BUILD_WORDS_BIGENDIAN 1
6332 { { echo "$as_me:$LINENO: error: unknown endianness
6333 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&5
6334 echo "$as_me: error: unknown endianness
6335 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&2;}
6336 { (exit 1); exit 1; }; } ;;
6340 # Set standard installation paths
6341 # ===========================================================================
6343 # In the Makefiles we need paths with '/' as directory separator, even if
6344 # crosscompiling for Win32.
6345 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6346 # The variables in the Makefiles are replaced by AC_SUBST()
6348 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6350 # The macros are expanded for the header.
6351 # The variables in the header are replaced by AC_*DEFINE*()
6352 # sdccconf_h_dir_separator contains a backslash.
6354 if test "x${sdccconf_h_dir_separator}" = "x"; then
6355 sdccconf_h_dir_separator="/"
6361 # include_dir_suffix:
6362 # *nix default: "sdcc/include"
6365 if test "${include_dir_suffix}" = ""; then
6366 include_dir_suffix="sdcc/include"
6370 # *nix default: "sdcc/lib"
6372 if test "${lib_dir_suffix}" = ""; then
6373 lib_dir_suffix="sdcc/lib"
6377 # *nix default: "${datadir}/sdcc/doc"
6379 if test "${docdir}" = ""; then
6380 docdir="\${datadir}"/sdcc/doc
6388 cat >>confdefs.h <<_ACEOF
6389 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6392 cat >>confdefs.h <<_ACEOF
6393 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6398 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6400 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6403 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6404 ac_expand=`eval echo $ac_expand`
6405 expanded_prefix=`eval echo $ac_expand`
6408 ac_ndu=$expanded_prefix
6411 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6414 case $sdccconf_h_dir_separator in
6416 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6417 s,^[\\/],\\\\\\\\,'` ;;
6419 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6421 cat >>confdefs.h <<_ACEOF
6422 #define PREFIX "${ac_ndu}"
6428 # default: "${prefix}"
6430 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6432 ac_expand=$exec_prefix
6433 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6434 ac_expand=`eval echo $ac_expand`
6435 expanded_exec_prefix=`eval echo $ac_expand`
6438 ac_ndu=$expanded_exec_prefix
6441 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6444 case $sdccconf_h_dir_separator in
6446 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6447 s,^[\\/],\\\\\\\\,'` ;;
6449 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6451 cat >>confdefs.h <<_ACEOF
6452 #define EXEC_PREFIX "${ac_ndu}"
6458 # default: "${exec_prefix}/bin"
6460 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6461 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6463 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6464 ac_expand=`eval echo $ac_expand`
6465 expanded_bindir=`eval echo $ac_expand`
6468 ac_ndu=$expanded_bindir
6471 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6474 case $sdccconf_h_dir_separator in
6476 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6477 s,^[\\/],\\\\\\\\,'` ;;
6479 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6481 cat >>confdefs.h <<_ACEOF
6482 #define BINDIR "${ac_ndu}"
6488 # default: "${prefix}/share"
6490 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6493 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6494 ac_expand=`eval echo $ac_expand`
6495 expanded_datadir=`eval echo $ac_expand`
6498 ac_ndu=$expanded_datadir
6501 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6504 case $sdccconf_h_dir_separator in
6506 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6507 s,^[\\/],\\\\\\\\,'` ;;
6509 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6511 cat >>confdefs.h <<_ACEOF
6512 #define DATADIR "${ac_ndu}"
6517 # include/lib suffix
6518 norm_inc_dir_suffix=${include_dir_suffix}
6519 case ":$norm_inc_dir_suffix:" in
6520 ::) norm_inc_dir_suffix='.' ;;
6521 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6524 case $sdccconf_h_dir_separator in
6526 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6527 s,^[\\/],\\\\\\\\,'` ;;
6529 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6531 cat >>confdefs.h <<_ACEOF
6532 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6535 norm_lib_dir_suffix=${lib_dir_suffix}
6536 case ":$norm_lib_dir_suffix:" in
6537 ::) norm_lib_dir_suffix='.' ;;
6538 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6541 case $sdccconf_h_dir_separator in
6543 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6544 s,^[\\/],\\\\\\\\,'` ;;
6546 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6548 cat >>confdefs.h <<_ACEOF
6549 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6554 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6555 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6556 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6557 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6558 _lcl_receval="$_lcl_from"
6559 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6560 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6562 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6563 _lcl_receval_old="$_lcl_receval"
6564 eval _lcl_receval="\"$_lcl_receval\""
6566 echo "$_lcl_receval")`
6567 _lcl_receval="$_lcl_to"
6568 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6569 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6571 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6572 _lcl_receval_old="$_lcl_receval"
6573 eval _lcl_receval="\"$_lcl_receval\""
6575 echo "$_lcl_receval")`
6576 _lcl_notation="$_lcl_from$_lcl_to"
6577 case ":$_lcl_from:" in
6578 ::) _lcl_from='.' ;;
6579 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6584 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6585 s,^[\\/],\\\\\\\\,'` ;;
6587 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6589 case ":$_lcl_to:" in
6591 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6596 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6597 s,^[\\/],\\\\\\\\,'` ;;
6599 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6601 _lcl_common_prefix=''
6602 _lcl_second_prefix_match=''
6603 while test "$_lcl_second_prefix_match" != 0; do
6604 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6605 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6606 if test "$_lcl_second_prefix_match" != 0; then
6607 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6608 _lcl_common_prefix="$_lcl_first_prefix"
6610 _lcl_second_prefix_match=0
6614 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6617 while test "$_lcl_tmp" != ''; do
6618 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6619 if test "$_lcl_first_suffix" != ''; then
6620 _lcl_first_suffix="$_lcl_tmp"
6621 _lcl_first_rel="../$_lcl_first_rel"
6624 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6625 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6626 case ":$_lcl_result_tmp:" in
6627 ::) _lcl_result_tmp='.' ;;
6628 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6631 case "$_lcl_notation" in
6633 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6634 s,^[\\/],\\\\\\\\,'` ;;
6636 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6638 eval $_lcl_result_var='$_lcl_result_tmp'
6640 case ":$bin2data_dir:" in
6641 ::) bin2data_dir='.' ;;
6642 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6645 case $sdccconf_h_dir_separator in
6647 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6648 s,^[\\/],\\\\\\\\,'` ;;
6650 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6652 cat >>confdefs.h <<_ACEOF
6653 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6657 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6658 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6659 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6660 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6661 _lcl_receval="$_lcl_from"
6662 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6663 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6665 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6666 _lcl_receval_old="$_lcl_receval"
6667 eval _lcl_receval="\"$_lcl_receval\""
6669 echo "$_lcl_receval")`
6670 _lcl_receval="$_lcl_to"
6671 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6672 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6674 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6675 _lcl_receval_old="$_lcl_receval"
6676 eval _lcl_receval="\"$_lcl_receval\""
6678 echo "$_lcl_receval")`
6679 _lcl_notation="$_lcl_from$_lcl_to"
6680 case ":$_lcl_from:" in
6681 ::) _lcl_from='.' ;;
6682 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6687 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6688 s,^[\\/],\\\\\\\\,'` ;;
6690 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6692 case ":$_lcl_to:" in
6694 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6699 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6700 s,^[\\/],\\\\\\\\,'` ;;
6702 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6704 _lcl_common_prefix=''
6705 _lcl_second_prefix_match=''
6706 while test "$_lcl_second_prefix_match" != 0; do
6707 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6708 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6709 if test "$_lcl_second_prefix_match" != 0; then
6710 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6711 _lcl_common_prefix="$_lcl_first_prefix"
6713 _lcl_second_prefix_match=0
6717 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6720 while test "$_lcl_tmp" != ''; do
6721 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6722 if test "$_lcl_first_suffix" != ''; then
6723 _lcl_first_suffix="$_lcl_tmp"
6724 _lcl_first_rel="../$_lcl_first_rel"
6727 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6728 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6729 case ":$_lcl_result_tmp:" in
6730 ::) _lcl_result_tmp='.' ;;
6731 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6734 case "$_lcl_notation" in
6736 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6737 s,^[\\/],\\\\\\\\,'` ;;
6739 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6741 eval $_lcl_result_var='$_lcl_result_tmp'
6743 case ":$prefix2bin_dir:" in
6744 ::) prefix2bin_dir='.' ;;
6745 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6748 case $sdccconf_h_dir_separator in
6750 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6751 s,^[\\/],\\\\\\\\,'` ;;
6753 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6755 cat >>confdefs.h <<_ACEOF
6756 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6760 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6761 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6762 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6763 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6764 _lcl_receval="$_lcl_from"
6765 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6766 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6768 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6769 _lcl_receval_old="$_lcl_receval"
6770 eval _lcl_receval="\"$_lcl_receval\""
6772 echo "$_lcl_receval")`
6773 _lcl_receval="$_lcl_to"
6774 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6775 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6777 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6778 _lcl_receval_old="$_lcl_receval"
6779 eval _lcl_receval="\"$_lcl_receval\""
6781 echo "$_lcl_receval")`
6782 _lcl_notation="$_lcl_from$_lcl_to"
6783 case ":$_lcl_from:" in
6784 ::) _lcl_from='.' ;;
6785 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6790 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6791 s,^[\\/],\\\\\\\\,'` ;;
6793 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6795 case ":$_lcl_to:" in
6797 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6802 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6803 s,^[\\/],\\\\\\\\,'` ;;
6805 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6807 _lcl_common_prefix=''
6808 _lcl_second_prefix_match=''
6809 while test "$_lcl_second_prefix_match" != 0; do
6810 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6811 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6812 if test "$_lcl_second_prefix_match" != 0; then
6813 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6814 _lcl_common_prefix="$_lcl_first_prefix"
6816 _lcl_second_prefix_match=0
6820 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6823 while test "$_lcl_tmp" != ''; do
6824 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6825 if test "$_lcl_first_suffix" != ''; then
6826 _lcl_first_suffix="$_lcl_tmp"
6827 _lcl_first_rel="../$_lcl_first_rel"
6830 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6831 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6832 case ":$_lcl_result_tmp:" in
6833 ::) _lcl_result_tmp='.' ;;
6834 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6837 case "$_lcl_notation" in
6839 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6840 s,^[\\/],\\\\\\\\,'` ;;
6842 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6844 eval $_lcl_result_var='$_lcl_result_tmp'
6846 case ":$prefix2data_dir:" in
6847 ::) prefix2data_dir='.' ;;
6848 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6851 case $sdccconf_h_dir_separator in
6853 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6854 s,^[\\/],\\\\\\\\,'` ;;
6856 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6858 if test "${prefix2data_dir}" = "."; then
6859 # small optimization for Mingw32; otherwise Borut will complain ;-)
6860 cat >>confdefs.h <<_ACEOF
6861 #define PREFIX2DATA_DIR ""
6865 cat >>confdefs.h <<_ACEOF
6866 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6872 cat >>confdefs.h <<_ACEOF
6873 #define STD_LIB "libsdcc"
6876 cat >>confdefs.h <<_ACEOF
6877 #define STD_INT_LIB "libint"
6880 cat >>confdefs.h <<_ACEOF
6881 #define STD_LONG_LIB "liblong"
6884 cat >>confdefs.h <<_ACEOF
6885 #define STD_FP_LIB "libfloat"
6888 cat >>confdefs.h <<_ACEOF
6889 #define STD_DS390_LIB "libds390"
6892 cat >>confdefs.h <<_ACEOF
6893 #define STD_DS400_LIB "libds400"
6896 cat >>confdefs.h <<_ACEOF
6897 #define STD_XA51_LIB "libxa51"
6901 # SDCC runtime environment variables
6902 sdcc_dir_name="SDCC_HOME"
6903 cat >>confdefs.h <<_ACEOF
6904 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6908 sdcc_include_name="SDCC_INCLUDE"
6909 cat >>confdefs.h <<_ACEOF
6910 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6914 sdcc_lib_name="SDCC_LIB"
6915 cat >>confdefs.h <<_ACEOF
6916 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6920 # Port selection helper
6921 # ===========================================================================
6922 # macro AC_DO_ENABLER()
6923 # $1 used to access enable_$1, e.g. enable_doc
6924 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6928 # macro AC_DO_DISABLER()
6929 # $1 used to access disable_$1, e.g. ucsim
6930 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6934 # macro AC_DO_PORT($1, $2, $3, $4)
6935 # $1 used to access enable_$2_port, e.g. gbz80
6936 # $2 port name in ports.all and ports.build, e.g. z80
6937 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6941 # Now handle the port selection
6942 # ===========================================================================
6943 rm -f ports.all ports.build
6945 # Check whether --enable-mcs51-port was given.
6946 if test "${enable_mcs51_port+set}" = set; then
6947 enableval=$enable_mcs51_port;
6951 if test "$enable_mcs51_port" = "no"; then
6954 enable_mcs51_port="yes"
6958 cat >>confdefs.h <<_ACEOF
6959 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6964 echo mcs51 >>ports.all
6965 if test $OPT_DISABLE_MCS51 = 0; then
6966 echo mcs51 >>ports.build
6970 # Check whether --enable-gbz80-port was given.
6971 if test "${enable_gbz80_port+set}" = set; then
6972 enableval=$enable_gbz80_port;
6976 if test "$enable_gbz80_port" = "no"; then
6979 enable_gbz80_port="yes"
6983 cat >>confdefs.h <<_ACEOF
6984 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6989 echo z80 >>ports.all
6990 if test $OPT_DISABLE_GBZ80 = 0; then
6991 echo z80 >>ports.build
6995 # Check whether --enable-z80-port was given.
6996 if test "${enable_z80_port+set}" = set; then
6997 enableval=$enable_z80_port;
7001 if test "$enable_z80_port" = "no"; then
7004 enable_z80_port="yes"
7008 cat >>confdefs.h <<_ACEOF
7009 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
7014 echo z80 >>ports.all
7015 if test $OPT_DISABLE_Z80 = 0; then
7016 echo z80 >>ports.build
7020 # Check whether --enable-avr-port was given.
7021 if test "${enable_avr_port+set}" = set; then
7022 enableval=$enable_avr_port;
7026 if test "$enable_avr_port" = "no"; then
7029 enable_avr_port="yes"
7033 cat >>confdefs.h <<_ACEOF
7034 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
7039 echo avr >>ports.all
7040 if test $OPT_DISABLE_AVR = 0; then
7041 echo avr >>ports.build
7045 # Check whether --enable-ds390-port was given.
7046 if test "${enable_ds390_port+set}" = set; then
7047 enableval=$enable_ds390_port;
7051 if test "$enable_ds390_port" = "no"; then
7054 enable_ds390_port="yes"
7058 cat >>confdefs.h <<_ACEOF
7059 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
7064 echo ds390 >>ports.all
7065 if test $OPT_DISABLE_DS390 = 0; then
7066 echo ds390 >>ports.build
7069 cat >>confdefs.h <<_ACEOF
7070 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
7074 # Check whether --enable-ds400-port was given.
7075 if test "${enable_ds400_port+set}" = set; then
7076 enableval=$enable_ds400_port;
7080 if test "$enable_ds400_port" = "no"; then
7083 enable_ds400_port="yes"
7087 cat >>confdefs.h <<_ACEOF
7088 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
7093 echo ds400 >>ports.all
7094 if test $OPT_DISABLE_DS400 = 0; then
7095 echo ds400 >>ports.build
7099 # Check whether --enable-pic-port was given.
7100 if test "${enable_pic_port+set}" = set; then
7101 enableval=$enable_pic_port;
7105 if test "$enable_pic_port" = "no"; then
7108 enable_pic_port="yes"
7112 cat >>confdefs.h <<_ACEOF
7113 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
7118 echo pic >>ports.all
7119 if test $OPT_DISABLE_PIC = 0; then
7120 echo pic >>ports.build
7124 # Check whether --enable-pic16-port was given.
7125 if test "${enable_pic16_port+set}" = set; then
7126 enableval=$enable_pic16_port;
7130 if test "$enable_pic16_port" = "no"; then
7133 enable_pic16_port="yes"
7137 cat >>confdefs.h <<_ACEOF
7138 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
7143 echo pic16 >>ports.all
7144 if test $OPT_DISABLE_PIC16 = 0; then
7145 echo pic16 >>ports.build
7149 # Check whether --enable-xa51-port was given.
7150 if test "${enable_xa51_port+set}" = set; then
7151 enableval=$enable_xa51_port;
7155 if test "$enable_xa51_port" = "no"; then
7158 enable_xa51_port="yes"
7162 cat >>confdefs.h <<_ACEOF
7163 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
7168 echo xa51 >>ports.all
7169 if test $OPT_DISABLE_XA51 = 0; then
7170 echo xa51 >>ports.build
7174 # Check whether --enable-hc08-port was given.
7175 if test "${enable_hc08_port+set}" = set; then
7176 enableval=$enable_hc08_port;
7180 if test "$enable_hc08_port" = "no"; then
7183 enable_hc08_port="yes"
7187 cat >>confdefs.h <<_ACEOF
7188 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
7193 echo hc08 >>ports.all
7194 if test $OPT_DISABLE_HC08 = 0; then
7195 echo hc08 >>ports.build
7200 # Check whether --enable-ucsim was given.
7201 if test "${enable_ucsim+set}" = set; then
7202 enableval=$enable_ucsim;
7206 arg1=`echo ucsim | sed s/-/_/`
7208 if test "`eval echo \\$enable_$arg1`" = "no"; then
7214 cat >>confdefs.h <<_ACEOF
7215 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
7221 # Check whether --enable-device-lib was given.
7222 if test "${enable_device_lib+set}" = set; then
7223 enableval=$enable_device_lib;
7227 arg1=`echo device-lib | sed s/-/_/`
7229 if test "`eval echo \\$enable_$arg1`" = "no"; then
7230 OPT_DISABLE_DEVICE_LIB=1
7232 OPT_DISABLE_DEVICE_LIB=0
7235 cat >>confdefs.h <<_ACEOF
7236 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
7242 # Check whether --enable-packihx was given.
7243 if test "${enable_packihx+set}" = set; then
7244 enableval=$enable_packihx;
7248 arg1=`echo packihx | sed s/-/_/`
7250 if test "`eval echo \\$enable_$arg1`" = "no"; then
7251 OPT_DISABLE_PACKIHX=1
7253 OPT_DISABLE_PACKIHX=0
7256 cat >>confdefs.h <<_ACEOF
7257 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
7263 # Check whether --enable-sdcpp was given.
7264 if test "${enable_sdcpp+set}" = set; then
7265 enableval=$enable_sdcpp;
7269 arg1=`echo sdcpp | sed s/-/_/`
7271 if test "`eval echo \\$enable_$arg1`" = "no"; then
7277 cat >>confdefs.h <<_ACEOF
7278 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
7284 # Check whether --enable-sdcdb was given.
7285 if test "${enable_sdcdb+set}" = set; then
7286 enableval=$enable_sdcdb;
7290 arg1=`echo sdcdb | sed s/-/_/`
7292 if test "`eval echo \\$enable_$arg1`" = "no"; then
7298 cat >>confdefs.h <<_ACEOF
7299 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
7306 # Check whether --enable-doc was given.
7307 if test "${enable_doc+set}" = set; then
7308 enableval=$enable_doc;
7312 if test "$enable_doc" = "yes"; then
7318 cat >>confdefs.h <<_ACEOF
7319 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
7324 # Extract the first word of "lyx", so it can be a program name with args.
7325 set dummy lyx; ac_word=$2
7326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7328 if test "${ac_cv_prog_LYX+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 if test -n "$LYX"; then
7332 ac_cv_prog_LYX="$LYX" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_LYX="lyx"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
7353 if test -n "$LYX"; then
7354 { echo "$as_me:$LINENO: result: $LYX" >&5
7355 echo "${ECHO_T}$LYX" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7362 # Extract the first word of "latex2html", so it can be a program name with args.
7363 set dummy latex2html; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 if test -n "$LATEX2HTML"; then
7370 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_LATEX2HTML="latex2html"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7390 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7391 if test -n "$LATEX2HTML"; then
7392 { echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7393 echo "${ECHO_T}$LATEX2HTML" >&6; }
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7400 # Extract the first word of "pdflatex", so it can be a program name with args.
7401 set dummy pdflatex; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 if test -n "$PDFLATEX"; then
7408 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_PDFLATEX="pdflatex"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7428 PDFLATEX=$ac_cv_prog_PDFLATEX
7429 if test -n "$PDFLATEX"; then
7430 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7431 echo "${ECHO_T}$PDFLATEX" >&6; }
7433 { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7438 # Extract the first word of "pdfopt", so it can be a program name with args.
7439 set dummy pdfopt; ac_word=$2
7440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7442 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 if test -n "$PDFOPT"; then
7446 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7455 ac_cv_prog_PDFOPT="pdfopt"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7466 PDFOPT=$ac_cv_prog_PDFOPT
7467 if test -n "$PDFOPT"; then
7468 { echo "$as_me:$LINENO: result: $PDFOPT" >&5
7469 echo "${ECHO_T}$PDFOPT" >&6; }
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7476 # Extract the first word of "makeindex", so it can be a program name with args.
7477 set dummy makeindex; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 if test -n "$MAKEINDEX"; then
7484 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_prog_MAKEINDEX="makeindex"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7504 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7505 if test -n "$MAKEINDEX"; then
7506 { echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7507 echo "${ECHO_T}$MAKEINDEX" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7515 if test $OPT_ENABLE_DOC = 1; then
7516 if test "$LYX" = ":"; then
7517 { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7518 echo "$as_me: error: Cannot find required program lyx." >&2;}
7519 { (exit 1); exit 1; }; }
7522 if test "$LATEX2HTML" = ":"; then
7523 { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7524 echo "$as_me: error: Cannot find required program latex2html." >&2;}
7525 { (exit 1); exit 1; }; }
7528 if test "$PDFLATEX" = ":"; then
7529 { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7530 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7531 { (exit 1); exit 1; }; }
7534 if test "$PDFOPT" = ":"; then
7535 { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7536 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7537 { (exit 1); exit 1; }; }
7540 if test "$MAKEINDEX" = ":"; then
7541 { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7542 echo "$as_me: error: Cannot find required program makeindex." >&2;}
7543 { (exit 1); exit 1; }; }
7549 # Check whether --enable-libgc was given.
7550 if test "${enable_libgc+set}" = set; then
7551 enableval=$enable_libgc;
7555 if test "$enable_libgc" = "yes"; then
7561 cat >>confdefs.h <<_ACEOF
7562 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7567 if test $OPT_ENABLE_LIBGC = 1; then
7569 { echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7570 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6; }
7571 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_check_lib_save_LIBS=$LIBS
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7583 /* Override any GCC internal prototype to avoid an error.
7584 Use char because int might match the return type of a GCC
7585 builtin and then its argument prototype would still apply. */
7593 return GC_malloc ();
7598 rm -f conftest.$ac_objext conftest$ac_exeext
7599 if { (ac_try="$ac_link"
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_link") 2>conftest.er1
7607 grep -v '^ *+' conftest.er1 >conftest.err
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest$ac_exeext &&
7615 $as_test_x conftest$ac_exeext; then
7616 ac_cv_lib_gc_GC_malloc=yes
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 ac_cv_lib_gc_GC_malloc=no
7624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7625 conftest$ac_exeext conftest.$ac_ext
7626 LIBS=$ac_check_lib_save_LIBS
7628 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7629 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6; }
7630 if test $ac_cv_lib_gc_GC_malloc = yes; then
7631 cat >>confdefs.h <<_ACEOF
7632 #define HAVE_LIBGC 1
7639 if test $ac_cv_lib_gc_GC_malloc = no; then
7640 { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7641 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7642 { (exit 1); exit 1; }; }
7647 uniq ports.all ports
7649 uniq ports.build ports
7650 mv ports ports.build
7652 # Generating output files
7653 # ===========================================================================
7654 test $OPT_DISABLE_SDCPP = 0 && subdirs="$subdirs support/cpp"
7656 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
7658 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
7660 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
7662 ac_config_files="$ac_config_files doc/Makefile"
7665 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7668 if test $OPT_DISABLE_DS390 = 0; then
7669 ac_config_files="$ac_config_files src/ds390/Makefile"
7671 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7675 if test $OPT_DISABLE_DS400 = 0; then
7676 ac_config_files="$ac_config_files src/ds400/Makefile"
7678 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7682 if test $OPT_DISABLE_HC08 = 0; then
7683 ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7685 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7689 if test $OPT_DISABLE_MCS51 = 0; then
7690 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7692 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/mcs51/Makefile device/lib/small/Makefile device/lib/medium/Makefile device/lib/large/Makefile"
7696 if test $OPT_DISABLE_PIC = 0; then
7697 ac_config_files="$ac_config_files src/pic/Makefile"
7699 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic"
7702 if test $OPT_DISABLE_PIC16 = 0; then
7703 ac_config_files="$ac_config_files src/pic16/Makefile"
7705 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
7709 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7712 if test $OPT_DISABLE_Z80 = 0; then
7713 ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7715 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7719 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7722 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile device/include/Makefile support/librarian/Makefile support/makebin/Makefile support/regression/Makefile support/valdiag/Makefile Makefile Makefile.common:Makefile.common.in"
7724 cat >confcache <<\_ACEOF
7725 # This file is a shell script that caches the results of configure
7726 # tests run on this system so they can be shared between configure
7727 # scripts and configure runs, see configure's option --config-cache.
7728 # It is not useful on other systems. If it contains results you don't
7729 # want to keep, you may remove or edit it.
7731 # config.status only pays attention to the cache file if you give it
7732 # the --recheck option to rerun configure.
7734 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7735 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7740 # The following way of writing the cache mishandles newlines in values,
7741 # but we know of no workaround that is simple, portable, and efficient.
7742 # So, we kill variables containing newlines.
7743 # Ultrix sh set writes to stderr and can't be redirected directly,
7744 # and sets the high bit in the cache file unless we assign to the vars.
7746 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7747 eval ac_val=\$$ac_var
7751 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7752 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7755 _ | IFS | as_nl) ;; #(
7756 *) $as_unset $ac_var ;;
7762 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7763 *${as_nl}ac_space=\ *)
7764 # `set' does not quote correctly, so add quotes (double-quote
7765 # substitution turns \\\\ into \\, and sed turns \\ into \).
7768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7771 # `set' quotes correctly as required by POSIX, so do not add quotes.
7772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7786 if test -w "$cache_file"; then
7787 test "x$cache_file" != "x/dev/null" &&
7788 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7789 echo "$as_me: updating cache $cache_file" >&6;}
7790 cat confcache >$cache_file
7792 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7793 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7799 # Let make expand exec_prefix.
7800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7802 DEFS=-DHAVE_CONFIG_H
7806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7807 # 1. Remove the extension, and $U if already installed.
7808 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7809 ac_i=`echo "$ac_i" | sed "$ac_script"`
7810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7811 # will be set to the directory where LIBOBJS objects are built.
7812 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7813 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7817 LTLIBOBJS=$ac_ltlibobjs
7821 : ${CONFIG_STATUS=./config.status}
7822 ac_clean_files_save=$ac_clean_files
7823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7824 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7825 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7826 cat >$CONFIG_STATUS <<_ACEOF
7828 # Generated by $as_me.
7829 # Run this file to recreate the current configuration.
7830 # Compiler output produced by configure, useful for debugging
7831 # configure, is in config.log if it exists.
7836 SHELL=\${CONFIG_SHELL-$SHELL}
7839 cat >>$CONFIG_STATUS <<\_ACEOF
7840 ## --------------------- ##
7841 ## M4sh Initialization. ##
7842 ## --------------------- ##
7844 # Be more Bourne compatible
7845 DUALCASE=1; export DUALCASE # for MKS sh
7846 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7849 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7850 # is contrary to our usage. Disable this feature.
7851 alias -g '${1+"$@"}'='"$@"'
7852 setopt NO_GLOB_SUBST
7854 case `(set -o) 2>/dev/null` in
7855 *posix*) set -o posix ;;
7864 # Avoid depending upon Character Ranges.
7865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7868 as_cr_digits='0123456789'
7869 as_cr_alnum=$as_cr_Letters$as_cr_digits
7871 # The user is always right.
7872 if test "${PATH_SEPARATOR+set}" != set; then
7873 echo "#! /bin/sh" >conf$$.sh
7874 echo "exit 0" >>conf$$.sh
7876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7884 # Support unset when possible.
7885 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7893 # We need space, tab and new line, in precisely that order. Quoting is
7894 # there to prevent editors from complaining about space-tab.
7895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7896 # splitting by setting IFS to empty value.)
7901 # Find who we are. Look in the path if we contain no directory separator.
7903 *[\\/]* ) as_myself=$0 ;;
7904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 test -z "$as_dir" && as_dir=.
7909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7915 # We did not find ourselves, most probably we were run as `sh COMMAND'
7916 # in which case we are not to be found in the path.
7917 if test "x$as_myself" = x; then
7920 if test ! -f "$as_myself"; then
7921 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7922 { (exit 1); exit 1; }
7925 # Work around bugs in pre-3.0 UWIN ksh.
7926 for as_var in ENV MAIL MAILPATH
7927 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7935 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7936 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7937 LC_TELEPHONE LC_TIME
7939 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7940 eval $as_var=C; export $as_var
7942 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7946 # Required to use basename.
7947 if expr a : '\(a\)' >/dev/null 2>&1 &&
7948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7955 as_basename=basename
7961 # Name of the executable.
7962 as_me=`$as_basename -- "$0" ||
7963 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7964 X"$0" : 'X\(//\)$' \| \
7965 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7967 sed '/^.*\/\([^/][^/]*\)\/*$/{
7988 test "x$as_lineno_1" != "x$as_lineno_2" &&
7989 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7991 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7992 # uniformly replaced by the line number. The first 'sed' inserts a
7993 # line-number line after each line using $LINENO; the second 'sed'
7994 # does the real work. The second script uses 'N' to pair each
7995 # line-number line with the line containing $LINENO, and appends
7996 # trailing '-' during substitution so that $LINENO is not a special
7998 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7999 # scripts with optimization help from Paolo Bonzini. Blame Lee
8000 # E. McMahon (1931-1989) for sed's syntax. :-)
8012 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8016 chmod +x "$as_me.lineno" ||
8017 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8018 { (exit 1); exit 1; }; }
8020 # Don't try to exec as it changes $[0], causing all sort of problems
8021 # (the dirname of $[0] is not the place where we might find the
8022 # original and so on. Autoconf is especially sensitive to this).
8024 # Exit status is that of the last command.
8029 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8035 ECHO_C= ECHO_N= ECHO_T=
8038 case `echo 'x\c'` in
8039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8046 if expr a : '\(a\)' >/dev/null 2>&1 &&
8047 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8053 rm -f conf$$ conf$$.exe conf$$.file
8054 if test -d conf$$.dir; then
8055 rm -f conf$$.dir/conf$$.file
8061 if ln -s conf$$.file conf$$ 2>/dev/null; then
8063 # ... but there are two gotchas:
8064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8066 # In both cases, we have to default to `cp -p'.
8067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8069 elif ln conf$$.file conf$$ 2>/dev/null; then
8074 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8075 rmdir conf$$.dir 2>/dev/null
8077 if mkdir -p . 2>/dev/null; then
8080 test -d ./-p && rmdir ./-p
8084 if test -x / >/dev/null 2>&1; then
8087 if ls -dL / >/dev/null 2>&1; then
8094 if test -d "$1"; then
8100 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8101 ???[sx]*):;;*)false;;esac;fi
8105 as_executable_p=$as_test_x
8107 # Sed expression to map a string onto a valid CPP name.
8108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8110 # Sed expression to map a string onto a valid variable name.
8111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8116 # Save the log message, to keep $[0] and so on meaningful, and to
8117 # report actual input values of CONFIG_FILES etc. instead of their
8118 # values after options handling.
8120 This file was extended by $as_me, which was
8121 generated by GNU Autoconf 2.61. Invocation command line was
8123 CONFIG_FILES = $CONFIG_FILES
8124 CONFIG_HEADERS = $CONFIG_HEADERS
8125 CONFIG_LINKS = $CONFIG_LINKS
8126 CONFIG_COMMANDS = $CONFIG_COMMANDS
8129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8134 cat >>$CONFIG_STATUS <<_ACEOF
8135 # Files that config.status was made for.
8136 config_files="$ac_config_files"
8137 config_headers="$ac_config_headers"
8141 cat >>$CONFIG_STATUS <<\_ACEOF
8143 \`$as_me' instantiates files from templates according to the
8144 current configuration.
8146 Usage: $0 [OPTIONS] [FILE]...
8148 -h, --help print this help, then exit
8149 -V, --version print version number and configuration settings, then exit
8150 -q, --quiet do not print progress messages
8151 -d, --debug don't remove temporary files
8152 --recheck update $as_me by reconfiguring in the same conditions
8153 --file=FILE[:TEMPLATE]
8154 instantiate the configuration file FILE
8155 --header=FILE[:TEMPLATE]
8156 instantiate the configuration header FILE
8158 Configuration files:
8161 Configuration headers:
8164 Report bugs to <bug-autoconf@gnu.org>."
8167 cat >>$CONFIG_STATUS <<_ACEOF
8170 configured by $0, generated by GNU Autoconf 2.61,
8171 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8173 Copyright (C) 2006 Free Software Foundation, Inc.
8174 This config.status script is free software; the Free Software Foundation
8175 gives unlimited permission to copy, distribute and modify it."
8182 cat >>$CONFIG_STATUS <<\_ACEOF
8183 # If no file are specified by the user, then we need to provide default
8184 # value. By we need to know if files were specified by the user.
8190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8191 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8202 # Handling of the options.
8203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8205 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8206 echo "$ac_cs_version"; exit ;;
8207 --debug | --debu | --deb | --de | --d | -d )
8209 --file | --fil | --fi | --f )
8211 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8212 ac_need_defaults=false;;
8213 --header | --heade | --head | --hea )
8215 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8216 ac_need_defaults=false;;
8218 # Conflict between --help and --header
8219 { echo "$as_me: error: ambiguous option: $1
8220 Try \`$0 --help' for more information." >&2
8221 { (exit 1); exit 1; }; };;
8222 --help | --hel | -h )
8223 echo "$ac_cs_usage"; exit ;;
8224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8225 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8229 -*) { echo "$as_me: error: unrecognized option: $1
8230 Try \`$0 --help' for more information." >&2
8231 { (exit 1); exit 1; }; } ;;
8233 *) ac_config_targets="$ac_config_targets $1"
8234 ac_need_defaults=false ;;
8240 ac_configure_extra_args=
8242 if $ac_cs_silent; then
8244 ac_configure_extra_args="$ac_configure_extra_args --silent"
8248 cat >>$CONFIG_STATUS <<_ACEOF
8249 if \$ac_cs_recheck; then
8250 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8253 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8257 cat >>$CONFIG_STATUS <<\_ACEOF
8261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8262 ## Running $as_me. ##
8268 cat >>$CONFIG_STATUS <<_ACEOF
8271 cat >>$CONFIG_STATUS <<\_ACEOF
8273 # Handling of arguments.
8274 for ac_config_target in $ac_config_targets
8276 case $ac_config_target in
8277 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8278 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8279 "src/avr/Makefile") CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
8280 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
8281 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
8282 "src/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
8283 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
8284 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
8285 "as/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8286 "as/link/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
8287 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
8288 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
8289 "as/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8290 "as/link/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
8291 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
8292 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
8293 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
8294 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
8295 "src/pic/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
8296 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
8297 "src/xa51/Makefile") CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
8298 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
8299 "as/Makefile") CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
8300 "as/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
8301 "as/link/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
8302 "as/link/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
8303 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
8304 "device/lib/gbz80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
8305 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8306 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8307 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8308 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8309 "support/librarian/Makefile") CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
8310 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
8311 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8312 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
8313 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8314 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8316 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8317 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8318 { (exit 1); exit 1; }; };;
8323 # If the user did not use the arguments to specify the items to instantiate,
8324 # then the envvar interface is used. Set only those that are not.
8325 # We use the long form for the default assignment because of an extremely
8326 # bizarre bug on SunOS 4.1.3.
8327 if $ac_need_defaults; then
8328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8332 # Have a temporary directory for convenience. Make it in the build tree
8333 # simply because there is no reason against having it here, and in addition,
8334 # creating and moving files from /tmp can sometimes cause problems.
8335 # Hook for its removal unless debugging.
8336 # Note that there is a small window in which the directory will not be cleaned:
8337 # after its creation but before its name has been assigned to `$tmp'.
8341 trap 'exit_status=$?
8342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8344 trap '{ (exit 1); exit 1; }' 1 2 13 15
8346 # Create a (secure) tmp directory for tmp files.
8349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8350 test -n "$tmp" && test -d "$tmp"
8353 tmp=./conf$$-$RANDOM
8354 (umask 077 && mkdir "$tmp")
8357 echo "$me: cannot create a temporary directory in ." >&2
8358 { (exit 1); exit 1; }
8362 # Set up the sed scripts for CONFIG_FILES section.
8365 # No need to generate the scripts if there are no CONFIG_FILES.
8366 # This happens for instance when ./config.status config.h
8367 if test -n "$CONFIG_FILES"; then
8374 for ac_last_try in false false false false false :; do
8375 cat >conf$$subs.sed <<_ACEOF
8376 SHELL!$SHELL$ac_delim
8377 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8378 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8379 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8380 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8381 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8382 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8383 exec_prefix!$exec_prefix$ac_delim
8384 prefix!$prefix$ac_delim
8385 program_transform_name!$program_transform_name$ac_delim
8386 bindir!$bindir$ac_delim
8387 sbindir!$sbindir$ac_delim
8388 libexecdir!$libexecdir$ac_delim
8389 datarootdir!$datarootdir$ac_delim
8390 datadir!$datadir$ac_delim
8391 sysconfdir!$sysconfdir$ac_delim
8392 sharedstatedir!$sharedstatedir$ac_delim
8393 localstatedir!$localstatedir$ac_delim
8394 includedir!$includedir$ac_delim
8395 oldincludedir!$oldincludedir$ac_delim
8396 docdir!$docdir$ac_delim
8397 infodir!$infodir$ac_delim
8398 htmldir!$htmldir$ac_delim
8399 dvidir!$dvidir$ac_delim
8400 pdfdir!$pdfdir$ac_delim
8401 psdir!$psdir$ac_delim
8402 libdir!$libdir$ac_delim
8403 localedir!$localedir$ac_delim
8404 mandir!$mandir$ac_delim
8406 ECHO_C!$ECHO_C$ac_delim
8407 ECHO_N!$ECHO_N$ac_delim
8408 ECHO_T!$ECHO_T$ac_delim
8410 build_alias!$build_alias$ac_delim
8411 host_alias!$host_alias$ac_delim
8412 target_alias!$target_alias$ac_delim
8414 PACKAGE!$PACKAGE$ac_delim
8415 VERSION!$VERSION$ac_delim
8416 VERSIONHI!$VERSIONHI$ac_delim
8417 VERSIONLO!$VERSIONLO$ac_delim
8418 VERSIONP!$VERSIONP$ac_delim
8420 CFLAGS!$CFLAGS$ac_delim
8421 LDFLAGS!$LDFLAGS$ac_delim
8422 CPPFLAGS!$CPPFLAGS$ac_delim
8423 ac_ct_CC!$ac_ct_CC$ac_delim
8424 EXEEXT!$EXEEXT$ac_delim
8425 OBJEXT!$OBJEXT$ac_delim
8427 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8428 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8429 INSTALL_DATA!$INSTALL_DATA$ac_delim
8430 RANLIB!$RANLIB$ac_delim
8431 AUTOCONF!$AUTOCONF$ac_delim
8432 STRIP!$STRIP$ac_delim
8437 CCACHE!$CCACHE$ac_delim
8438 M_OR_MM!$M_OR_MM$ac_delim
8440 EGREP!$EGREP$ac_delim
8441 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
8442 include_dir_suffix!$include_dir_suffix$ac_delim
8443 lib_dir_suffix!$lib_dir_suffix$ac_delim
8444 OPT_DISABLE_MCS51!$OPT_DISABLE_MCS51$ac_delim
8445 OPT_DISABLE_GBZ80!$OPT_DISABLE_GBZ80$ac_delim
8446 OPT_DISABLE_Z80!$OPT_DISABLE_Z80$ac_delim
8447 OPT_DISABLE_AVR!$OPT_DISABLE_AVR$ac_delim
8448 OPT_DISABLE_DS390!$OPT_DISABLE_DS390$ac_delim
8449 OPT_DISABLE_DS400!$OPT_DISABLE_DS400$ac_delim
8450 OPT_DISABLE_PIC!$OPT_DISABLE_PIC$ac_delim
8451 OPT_DISABLE_PIC16!$OPT_DISABLE_PIC16$ac_delim
8452 OPT_DISABLE_XA51!$OPT_DISABLE_XA51$ac_delim
8453 OPT_DISABLE_HC08!$OPT_DISABLE_HC08$ac_delim
8454 OPT_DISABLE_UCSIM!$OPT_DISABLE_UCSIM$ac_delim
8455 OPT_DISABLE_DEVICE_LIB!$OPT_DISABLE_DEVICE_LIB$ac_delim
8456 OPT_DISABLE_PACKIHX!$OPT_DISABLE_PACKIHX$ac_delim
8457 OPT_DISABLE_SDCPP!$OPT_DISABLE_SDCPP$ac_delim
8458 OPT_DISABLE_SDCDB!$OPT_DISABLE_SDCDB$ac_delim
8459 OPT_ENABLE_DOC!$OPT_ENABLE_DOC$ac_delim
8461 LATEX2HTML!$LATEX2HTML$ac_delim
8462 PDFLATEX!$PDFLATEX$ac_delim
8463 PDFOPT!$PDFOPT$ac_delim
8464 MAKEINDEX!$MAKEINDEX$ac_delim
8465 OPT_ENABLE_LIBGC!$OPT_ENABLE_LIBGC$ac_delim
8466 subdirs!$subdirs$ac_delim
8467 LIBOBJS!$LIBOBJS$ac_delim
8468 LTLIBOBJS!$LTLIBOBJS$ac_delim
8471 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
8473 elif $ac_last_try; then
8474 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8475 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8476 { (exit 1); exit 1; }; }
8478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8482 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8483 if test -n "$ac_eof"; then
8484 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8485 ac_eof=`expr $ac_eof + 1`
8488 cat >>$CONFIG_STATUS <<_ACEOF
8489 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8490 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8493 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8494 s/^/s,@/; s/!/@,|#_!!_#|/
8497 s/'"$ac_delim"'$/,g/; t
8499 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8500 ' >>$CONFIG_STATUS <conf$$subs.sed
8501 rm -f conf$$subs.sed
8502 cat >>$CONFIG_STATUS <<_ACEOF
8509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8511 # trailing colons and then remove the whole line if VPATH becomes empty
8512 # (actually we leave an empty line to preserve line numbers).
8513 if test "x$srcdir" = x.; then
8514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8518 s/^\([^=]*=[ ]*\):*/\1/
8524 cat >>$CONFIG_STATUS <<\_ACEOF
8525 fi # test -n "$CONFIG_FILES"
8528 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
8531 :[FHLC]) ac_mode=$ac_tag; continue;;
8533 case $ac_mode$ac_tag in
8535 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8536 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8537 { (exit 1); exit 1; }; };;
8538 :[FH]-) ac_tag=-:-;;
8539 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8556 -) ac_f="$tmp/stdin";;
8557 *) # Look for the file first in the build tree, then in the source tree
8558 # (if the path is not absolute). The absolute path cannot be DOS-style,
8559 # because $ac_f cannot contain `:'.
8563 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8565 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8566 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8567 { (exit 1); exit 1; }; };;
8569 ac_file_inputs="$ac_file_inputs $ac_f"
8572 # Let's still pretend it is `configure' which instantiates (i.e., don't
8573 # use $as_me), people would be surprised to read:
8574 # /* config.h. Generated by config.status. */
8575 configure_input="Generated from "`IFS=:
8576 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8577 if test x"$ac_file" != x-; then
8578 configure_input="$ac_file. $configure_input"
8579 { echo "$as_me:$LINENO: creating $ac_file" >&5
8580 echo "$as_me: creating $ac_file" >&6;}
8584 *:-:* | *:-) cat >"$tmp/stdin";;
8589 ac_dir=`$as_dirname -- "$ac_file" ||
8590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8591 X"$ac_file" : 'X\(//\)[^/]' \| \
8592 X"$ac_file" : 'X\(//\)$' \| \
8593 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8614 -*) as_dir=./$as_dir;;
8616 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8620 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8621 *) as_qdir=$as_dir;;
8623 as_dirs="'$as_qdir' $as_dirs"
8624 as_dir=`$as_dirname -- "$as_dir" ||
8625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8626 X"$as_dir" : 'X\(//\)[^/]' \| \
8627 X"$as_dir" : 'X\(//\)$' \| \
8628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8647 test -d "$as_dir" && break
8649 test -z "$as_dirs" || eval "mkdir $as_dirs"
8650 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8651 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8652 { (exit 1); exit 1; }; }; }
8656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8658 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8659 # A ".." for each directory in $ac_dir_suffix.
8660 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8661 case $ac_top_builddir_sub in
8662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8666 ac_abs_top_builddir=$ac_pwd
8667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8668 # for backward compatibility:
8669 ac_top_builddir=$ac_top_build_prefix
8672 .) # We are building in place.
8674 ac_top_srcdir=$ac_top_builddir_sub
8675 ac_abs_top_srcdir=$ac_pwd ;;
8676 [\\/]* | ?:[\\/]* ) # Absolute name.
8677 ac_srcdir=$srcdir$ac_dir_suffix;
8678 ac_top_srcdir=$srcdir
8679 ac_abs_top_srcdir=$srcdir ;;
8681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8682 ac_top_srcdir=$ac_top_build_prefix$srcdir
8683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8700 cat >>$CONFIG_STATUS <<\_ACEOF
8701 # If the template does not know about datarootdir, expand it.
8702 # FIXME: This hack should be removed a few years after 2.60.
8703 ac_datarootdir_hack=; ac_datarootdir_seen=
8705 case `sed -n '/datarootdir/ {
8714 ' $ac_file_inputs` in
8715 *datarootdir*) ac_datarootdir_seen=yes;;
8716 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8717 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8718 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8720 cat >>$CONFIG_STATUS <<_ACEOF
8721 ac_datarootdir_hack='
8722 s&@datadir@&$datadir&g
8723 s&@docdir@&$docdir&g
8724 s&@infodir@&$infodir&g
8725 s&@localedir@&$localedir&g
8726 s&@mandir@&$mandir&g
8727 s&\\\${datarootdir}&$datarootdir&g' ;;
8731 # Neutralize VPATH when `$srcdir' = `.'.
8732 # Shell code in configure.ac might set extrasub.
8733 # FIXME: do we really want to maintain this feature?
8734 cat >>$CONFIG_STATUS <<_ACEOF
8738 cat >>$CONFIG_STATUS <<\_ACEOF
8740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8741 s&@configure_input@&$configure_input&;t t
8742 s&@top_builddir@&$ac_top_builddir_sub&;t t
8743 s&@srcdir@&$ac_srcdir&;t t
8744 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8745 s&@top_srcdir@&$ac_top_srcdir&;t t
8746 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8747 s&@builddir@&$ac_builddir&;t t
8748 s&@abs_builddir@&$ac_abs_builddir&;t t
8749 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8750 s&@INSTALL@&$ac_INSTALL&;t t
8751 $ac_datarootdir_hack
8752 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8754 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8755 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8756 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8757 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8758 which seems to be undefined. Please make sure it is defined." >&5
8759 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8760 which seems to be undefined. Please make sure it is defined." >&2;}
8764 -) cat "$tmp/out"; rm -f "$tmp/out";;
8765 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8774 # Transform confdefs.h into a sed script `conftest.defines', that
8775 # substitutes the proper values into config.h.in to produce config.h.
8776 rm -f conftest.defines conftest.tail
8777 # First, append a space to every undef/define line, to ease matching.
8778 echo 's/$/ /' >conftest.defines
8779 # Then, protect against being on the right side of a sed subst, or in
8780 # an unquoted here document, in config.status. If some macros were
8781 # called several times there might be several #defines for the same
8782 # symbol, which is useless. But do not sort them, since the last
8783 # AC_DEFINE must be honored.
8784 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8785 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8786 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8787 # PARAMS is the parameter list in the macro definition--in most cases, it's
8788 # just an empty string.
8789 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8790 ac_dB='\\)[ (].*,\\1define\\2'
8798 s/^[ ]*#[ ]*define[ ][ ]*//
8803 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8804 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8805 ' >>conftest.defines
8807 # Remove the space that was appended to ease matching.
8808 # Then replace #undef with comments. This is necessary, for
8809 # example, in the case of _POSIX_SOURCE, which is predefined and required
8810 # on some systems where configure will not decide to define it.
8811 # (The regexp can be short, since the line contains either #define or #undef.)
8813 s,^[ #]*u.*,/* & */,' >>conftest.defines
8815 # Break up conftest.defines:
8818 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8819 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8820 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8822 ac_in='$ac_file_inputs'
8823 ac_out='"$tmp/out1"'
8824 ac_nxt='"$tmp/out2"'
8828 # Write a here document:
8829 cat >>$CONFIG_STATUS <<_ACEOF
8830 # First, check the format of the line:
8831 cat >"\$tmp/defines.sed" <<\\CEOF
8832 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8833 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8837 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8839 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8840 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8841 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8842 grep . conftest.tail >/dev/null || break
8843 rm -f conftest.defines
8844 mv conftest.tail conftest.defines
8846 rm -f conftest.defines conftest.tail
8848 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8849 cat >>$CONFIG_STATUS <<\_ACEOF
8850 if test x"$ac_file" != x-; then
8851 echo "/* $configure_input */" >"$tmp/config.h"
8852 cat "$ac_result" >>"$tmp/config.h"
8853 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8854 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8855 echo "$as_me: $ac_file is unchanged" >&6;}
8858 mv "$tmp/config.h" $ac_file
8861 echo "/* $configure_input */"
8873 { (exit 0); exit 0; }
8875 chmod +x $CONFIG_STATUS
8876 ac_clean_files=$ac_clean_files_save
8879 # configure is writing to config.log, and then calls config.status.
8880 # config.status does its own redirection, appending to config.log.
8881 # Unfortunately, on DOS this fails, as config.log is still kept open
8882 # by configure, so config.status won't be able to write to it; its
8883 # output is simply discarded. So we exec the FD to /dev/null,
8884 # effectively closing config.log, so it can be properly (re)opened and
8885 # appended to by config.status. When coming back to configure, we
8886 # need to make the FD available again.
8887 if test "$no_create" != yes; then
8889 ac_config_status_args=
8890 test "$silent" = yes &&
8891 ac_config_status_args="$ac_config_status_args --quiet"
8893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8896 # would make configure fail if this is the last instruction.
8897 $ac_cs_success || { (exit 1); exit 1; }
8901 # CONFIG_SUBDIRS section.
8903 if test "$no_recursion" != yes; then
8905 # Remove --cache-file and --srcdir arguments so they do not pile up.
8906 ac_sub_configure_args=
8908 eval "set x $ac_configure_args"
8912 if test -n "$ac_prev"; then
8917 -cache-file | --cache-file | --cache-fil | --cache-fi \
8918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8919 ac_prev=cache_file ;;
8920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8924 --config-cache | -C)
8926 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8928 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8930 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8932 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8936 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8938 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8942 # Always prepend --prefix to ensure using the same prefix
8943 # in subdir configurations.
8944 ac_arg="--prefix=$prefix"
8946 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8948 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8951 if test "$silent" = yes; then
8952 ac_sub_configure_args="--silent $ac_sub_configure_args"
8956 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8958 # Do not complain, so a configure script can configure whichever
8959 # parts of a large source tree are present.
8960 test -d "$srcdir/$ac_dir" || continue
8962 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8963 echo "$as_me:$LINENO: $ac_msg" >&5
8967 -*) as_dir=./$as_dir;;
8969 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8973 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8974 *) as_qdir=$as_dir;;
8976 as_dirs="'$as_qdir' $as_dirs"
8977 as_dir=`$as_dirname -- "$as_dir" ||
8978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8979 X"$as_dir" : 'X\(//\)[^/]' \| \
8980 X"$as_dir" : 'X\(//\)$' \| \
8981 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9000 test -d "$as_dir" && break
9002 test -z "$as_dirs" || eval "mkdir $as_dirs"
9003 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9004 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9005 { (exit 1); exit 1; }; }; }
9009 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9011 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9012 # A ".." for each directory in $ac_dir_suffix.
9013 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9014 case $ac_top_builddir_sub in
9015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9019 ac_abs_top_builddir=$ac_pwd
9020 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9021 # for backward compatibility:
9022 ac_top_builddir=$ac_top_build_prefix
9025 .) # We are building in place.
9027 ac_top_srcdir=$ac_top_builddir_sub
9028 ac_abs_top_srcdir=$ac_pwd ;;
9029 [\\/]* | ?:[\\/]* ) # Absolute name.
9030 ac_srcdir=$srcdir$ac_dir_suffix;
9031 ac_top_srcdir=$srcdir
9032 ac_abs_top_srcdir=$srcdir ;;
9034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9035 ac_top_srcdir=$ac_top_build_prefix$srcdir
9036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9038 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9043 # Check for guested configure; otherwise get Cygnus style configure.
9044 if test -f "$ac_srcdir/configure.gnu"; then
9045 ac_sub_configure=$ac_srcdir/configure.gnu
9046 elif test -f "$ac_srcdir/configure"; then
9047 ac_sub_configure=$ac_srcdir/configure
9048 elif test -f "$ac_srcdir/configure.in"; then
9049 # This should be Cygnus configure.
9050 ac_sub_configure=$ac_aux_dir/configure
9052 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9053 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9057 # The recursion is here.
9058 if test -n "$ac_sub_configure"; then
9059 # Make the cache file name correct relative to the subdirectory.
9061 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9063 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9066 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9067 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9068 # The eval makes quoting arguments work.
9069 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9070 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9071 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9072 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9073 { (exit 1); exit 1; }; }
9081 # I found no better place
9084 # Prepare result message
9085 # ======================
9087 # In the C-header we need \\ as dir-separator, but in the message only \
9088 dirch=${sdccconf_h_dir_separator}
9089 test ${dirch} = '\\' && dirch='\'
9091 # calc friendly strings
9093 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
9094 case ":$binPath:" in
9096 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
9101 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9102 s,^[\\/],\\\\\\\\,'` ;;
9104 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9106 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
9109 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9110 case ":$incPath1:" in
9112 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
9117 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9118 s,^[\\/],\\\\\\\\,'` ;;
9120 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9122 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
9125 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9126 case ":$incPath2:" in
9128 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
9133 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9134 s,^[\\/],\\\\\\\\,'` ;;
9136 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9138 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
9141 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9142 case ":$incPath3:" in
9144 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
9149 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9150 s,^[\\/],\\\\\\\\,'` ;;
9152 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9154 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
9157 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9158 case ":$libPath1:" in
9160 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
9165 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9166 s,^[\\/],\\\\\\\\,'` ;;
9168 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9170 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
9173 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9174 case ":$libPath2:" in
9176 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
9181 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9182 s,^[\\/],\\\\\\\\,'` ;;
9184 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9186 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
9189 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9190 case ":$libPath3:" in
9192 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
9197 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9198 s,^[\\/],\\\\\\\\,'` ;;
9200 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9202 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
9205 { echo "$as_me:$LINENO: result:
9206 sdcc ${VERSION} is now configured for
9208 Build: ${build_alias}
9210 Source directory: ${srcdir}
9215 avr ${enable_avr_port}
9216 ds390 ${enable_ds390_port}
9217 ds400 ${enable_ds400_port}
9218 gbz80 ${enable_gbz80_port}
9219 hc08 ${enable_hc08_port}
9220 mcs51 ${enable_mcs51_port}
9221 pic ${enable_pic_port}
9222 pic16 ${enable_pic16_port}
9223 xa51 ${enable_xa51_port}
9224 z80 ${enable_z80_port}
9226 Disable packihx: ${OPT_DISABLE_PACKIHX}
9227 Disable ucsim: ${OPT_DISABLE_UCSIM}
9228 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9229 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9230 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9231 Enable documentation: ${OPT_ENABLE_DOC}
9232 Enable libgc: ${OPT_ENABLE_LIBGC}
9235 binary files: ${exec_prefix}
9236 include files: ${datadir}/${include_dir_suffix}
9237 library files: ${datadir}/${lib_dir_suffix}
9238 documentation: ${docdir}
9242 datarootdir: ${datarootdir}
9244 Search paths (incomplete, see manual for all search paths):
9245 binary files: \$SDCC_HOME${binPath}
9246 include files: ${incPath1}
9247 path(argv[0])${incPath2}
9249 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9250 path(argv[0])${libPath2}${dirch}<model>
9251 ${libPath3}${dirch}<model>
9254 sdcc ${VERSION} is now configured for
9256 Build: ${build_alias}
9258 Source directory: ${srcdir}
9263 avr ${enable_avr_port}
9264 ds390 ${enable_ds390_port}
9265 ds400 ${enable_ds400_port}
9266 gbz80 ${enable_gbz80_port}
9267 hc08 ${enable_hc08_port}
9268 mcs51 ${enable_mcs51_port}
9269 pic ${enable_pic_port}
9270 pic16 ${enable_pic16_port}
9271 xa51 ${enable_xa51_port}
9272 z80 ${enable_z80_port}
9274 Disable packihx: ${OPT_DISABLE_PACKIHX}
9275 Disable ucsim: ${OPT_DISABLE_UCSIM}
9276 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9277 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9278 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9279 Enable documentation: ${OPT_ENABLE_DOC}
9280 Enable libgc: ${OPT_ENABLE_LIBGC}
9283 binary files: ${exec_prefix}
9284 include files: ${datadir}/${include_dir_suffix}
9285 library files: ${datadir}/${lib_dir_suffix}
9286 documentation: ${docdir}
9290 datarootdir: ${datarootdir}
9292 Search paths (incomplete, see manual for all search paths):
9293 binary files: \$SDCC_HOME${binPath}
9294 include files: ${incPath1}
9295 path(argv[0])${incPath2}
9297 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9298 path(argv[0])${libPath2}${dirch}<model>
9299 ${libPath3}${dirch}<model>
9301 # End of configure/configure.in