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
680 sdccconf_h_dir_separator
694 OPT_DISABLE_DEVICE_LIB
709 ac_precious_vars='build_alias
718 sdccconf_h_dir_separator
722 ac_subdirs_all='support/cpp2
729 # Initialize some variables set by options.
731 ac_init_version=false
732 # The variables have the same names as the options, with
733 # dashes changed to underlines.
741 program_transform_name=s,x,x,
749 # Installation directory options.
750 # These are left unexpanded so users can "make install exec_prefix=/foo"
751 # and all the variables that are supposed to be based on exec_prefix
752 # by default will actually change.
753 # Use braces instead of parens because sh, perl, etc. also accept them.
754 # (The list follows the same order as the GNU Coding Standards.)
755 bindir='${exec_prefix}/bin'
756 sbindir='${exec_prefix}/sbin'
757 libexecdir='${exec_prefix}/libexec'
758 datarootdir='${prefix}/share'
759 datadir='${datarootdir}'
760 sysconfdir='${prefix}/etc'
761 sharedstatedir='${prefix}/com'
762 localstatedir='${prefix}/var'
763 includedir='${prefix}/include'
764 oldincludedir='/usr/include'
765 docdir='${datarootdir}/doc/${PACKAGE}'
766 infodir='${datarootdir}/info'
771 libdir='${exec_prefix}/lib'
772 localedir='${datarootdir}/locale'
773 mandir='${datarootdir}/man'
779 # If the previous option needs an argument, assign it.
780 if test -n "$ac_prev"; then
781 eval $ac_prev=\$ac_option
787 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 # Accept the important Cygnus configure options, so we can diagnose typos.
793 case $ac_dashdash$ac_option in
797 -bindir | --bindir | --bindi | --bind | --bin | --bi)
799 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802 -build | --build | --buil | --bui | --bu)
803 ac_prev=build_alias ;;
804 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
805 build_alias=$ac_optarg ;;
807 -cache-file | --cache-file | --cache-fil | --cache-fi \
808 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
809 ac_prev=cache_file ;;
810 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
811 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
812 cache_file=$ac_optarg ;;
815 cache_file=config.cache ;;
817 -datadir | --datadir | --datadi | --datad)
819 -datadir=* | --datadir=* | --datadi=* | --datad=*)
820 datadir=$ac_optarg ;;
822 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
823 | --dataroo | --dataro | --datar)
824 ac_prev=datarootdir ;;
825 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
826 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
827 datarootdir=$ac_optarg ;;
829 -disable-* | --disable-*)
830 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
831 # Reject names that are not valid shell variable names.
832 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
833 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
834 { (exit 1); exit 1; }; }
835 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
836 eval enable_$ac_feature=no ;;
838 -docdir | --docdir | --docdi | --doc | --do)
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 -enable-* | --enable-*)
849 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_$ac_feature=\$ac_optarg ;;
857 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
858 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
859 | --exec | --exe | --ex)
860 ac_prev=exec_prefix ;;
861 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
862 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
863 | --exec=* | --exe=* | --ex=*)
864 exec_prefix=$ac_optarg ;;
866 -gas | --gas | --ga | --g)
867 # Obsolete; use --with-gas.
870 -help | --help | --hel | --he | -h)
872 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
873 ac_init_help=recursive ;;
874 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
875 ac_init_help=short ;;
877 -host | --host | --hos | --ho)
878 ac_prev=host_alias ;;
879 -host=* | --host=* | --hos=* | --ho=*)
880 host_alias=$ac_optarg ;;
882 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886 htmldir=$ac_optarg ;;
888 -includedir | --includedir | --includedi | --included | --include \
889 | --includ | --inclu | --incl | --inc)
890 ac_prev=includedir ;;
891 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
892 | --includ=* | --inclu=* | --incl=* | --inc=*)
893 includedir=$ac_optarg ;;
895 -infodir | --infodir | --infodi | --infod | --info | --inf)
897 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
898 infodir=$ac_optarg ;;
900 -libdir | --libdir | --libdi | --libd)
902 -libdir=* | --libdir=* | --libdi=* | --libd=*)
905 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
906 | --libexe | --libex | --libe)
907 ac_prev=libexecdir ;;
908 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
909 | --libexe=* | --libex=* | --libe=*)
910 libexecdir=$ac_optarg ;;
912 -localedir | --localedir | --localedi | --localed | --locale)
914 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
915 localedir=$ac_optarg ;;
917 -localstatedir | --localstatedir | --localstatedi | --localstated \
918 | --localstate | --localstat | --localsta | --localst | --locals)
919 ac_prev=localstatedir ;;
920 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
921 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
922 localstatedir=$ac_optarg ;;
924 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930 # Obsolete; use --without-fp.
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c | -n)
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
942 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
943 | --oldin | --oldi | --old | --ol | --o)
944 ac_prev=oldincludedir ;;
945 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
946 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
947 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
948 oldincludedir=$ac_optarg ;;
950 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955 -program-prefix | --program-prefix | --program-prefi | --program-pref \
956 | --program-pre | --program-pr | --program-p)
957 ac_prev=program_prefix ;;
958 -program-prefix=* | --program-prefix=* | --program-prefi=* \
959 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
960 program_prefix=$ac_optarg ;;
962 -program-suffix | --program-suffix | --program-suffi | --program-suff \
963 | --program-suf | --program-su | --program-s)
964 ac_prev=program_suffix ;;
965 -program-suffix=* | --program-suffix=* | --program-suffi=* \
966 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
967 program_suffix=$ac_optarg ;;
969 -program-transform-name | --program-transform-name \
970 | --program-transform-nam | --program-transform-na \
971 | --program-transform-n | --program-transform- \
972 | --program-transform | --program-transfor \
973 | --program-transfo | --program-transf \
974 | --program-trans | --program-tran \
975 | --progr-tra | --program-tr | --program-t)
976 ac_prev=program_transform_name ;;
977 -program-transform-name=* | --program-transform-name=* \
978 | --program-transform-nam=* | --program-transform-na=* \
979 | --program-transform-n=* | --program-transform-=* \
980 | --program-transform=* | --program-transfor=* \
981 | --program-transfo=* | --program-transf=* \
982 | --program-trans=* | --program-tran=* \
983 | --progr-tra=* | --program-tr=* | --program-t=*)
984 program_transform_name=$ac_optarg ;;
986 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991 -psdir | --psdir | --psdi | --psd | --ps)
993 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
1000 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004 sbindir=$ac_optarg ;;
1006 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1007 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1008 | --sharedst | --shareds | --shared | --share | --shar \
1010 ac_prev=sharedstatedir ;;
1011 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1012 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1013 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015 sharedstatedir=$ac_optarg ;;
1017 -site | --site | --sit)
1019 -site=* | --site=* | --sit=*)
1022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1025 srcdir=$ac_optarg ;;
1027 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1028 | --syscon | --sysco | --sysc | --sys | --sy)
1029 ac_prev=sysconfdir ;;
1030 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1031 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1032 sysconfdir=$ac_optarg ;;
1034 -target | --target | --targe | --targ | --tar | --ta | --t)
1035 ac_prev=target_alias ;;
1036 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1037 target_alias=$ac_optarg ;;
1039 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042 -version | --version | --versio | --versi | --vers | -V)
1043 ac_init_version=: ;;
1046 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_$ac_package=\$ac_optarg ;;
1054 -without-* | --without-*)
1055 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=no ;;
1064 # Obsolete; use --with-x.
1067 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068 | --x-incl | --x-inc | --x-in | --x-i)
1069 ac_prev=x_includes ;;
1070 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072 x_includes=$ac_optarg ;;
1074 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076 ac_prev=x_libraries ;;
1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079 x_libraries=$ac_optarg ;;
1081 -*) { echo "$as_me: error: unrecognized option: $ac_option
1082 Try \`$0 --help' for more information." >&2
1083 { (exit 1); exit 1; }; }
1087 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1090 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1091 { (exit 1); exit 1; }; }
1092 eval $ac_envvar=\$ac_optarg
1093 export $ac_envvar ;;
1096 # FIXME: should be removed in autoconf 3.0.
1097 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1106 if test -n "$ac_prev"; then
1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108 { echo "$as_me: error: missing argument to $ac_option" >&2
1109 { (exit 1); exit 1; }; }
1112 # Be sure to have absolute directory names.
1113 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1114 datadir sysconfdir sharedstatedir localstatedir includedir \
1115 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1116 libdir localedir mandir
1118 eval ac_val=\$$ac_var
1120 [\\/$]* | ?:[\\/]* ) continue;;
1121 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1124 { (exit 1); exit 1; }; }
1127 # There might be people who depend on the old broken behavior: `$host'
1128 # used to hold the argument of --host etc.
1129 # FIXME: To remove some day.
1132 target=$target_alias
1134 # FIXME: To remove some day.
1135 if test "x$host_alias" != x; then
1136 if test "x$build_alias" = x; then
1137 cross_compiling=maybe
1138 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1139 If a cross compiler is detected then cross compile mode will be used." >&2
1140 elif test "x$build_alias" != "x$host_alias"; then
1146 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1148 test "$silent" = yes && exec 6>/dev/null
1151 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152 ac_ls_di=`ls -di .` &&
1153 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154 { echo "$as_me: error: Working directory cannot be determined" >&2
1155 { (exit 1); exit 1; }; }
1156 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1157 { echo "$as_me: error: pwd does not report name of working directory" >&2
1158 { (exit 1); exit 1; }; }
1161 # Find the source files, if location was not specified.
1162 if test -z "$srcdir"; then
1163 ac_srcdir_defaulted=yes
1164 # Try the directory containing this script, then the parent directory.
1165 ac_confdir=`$as_dirname -- "$0" ||
1166 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167 X"$0" : 'X\(//\)[^/]' \| \
1168 X"$0" : 'X\(//\)$' \| \
1169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1189 if test ! -r "$srcdir/$ac_unique_file"; then
1193 ac_srcdir_defaulted=no
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1197 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1198 { (exit 1); exit 1; }; }
1200 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1202 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1203 { (exit 1); exit 1; }; }
1205 # When building in place, set srcdir=.
1206 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209 # Remove unnecessary trailing slashes from srcdir.
1210 # Double slashes in file names in object file debugging info
1211 # mess up M-x gdb in Emacs.
1213 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1215 for ac_var in $ac_precious_vars; do
1216 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1217 eval ac_env_${ac_var}_value=\$${ac_var}
1218 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223 # Report the --help message.
1225 if test "$ac_init_help" = "long"; then
1226 # Omit some internal or obsolete options to make the list less imposing.
1227 # This message is too long to be a string in the A/UX 3.1 sh.
1229 \`configure' configures this package to adapt to many kinds of systems.
1231 Usage: $0 [OPTION]... [VAR=VALUE]...
1233 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1234 VAR=VALUE. See below for descriptions of some of the useful variables.
1236 Defaults for the options are specified in brackets.
1239 -h, --help display this help and exit
1240 --help=short display options specific to this package
1241 --help=recursive display the short help of all the included packages
1242 -V, --version display version information and exit
1243 -q, --quiet, --silent do not print \`checking...' messages
1244 --cache-file=FILE cache test results in FILE [disabled]
1245 -C, --config-cache alias for \`--cache-file=config.cache'
1246 -n, --no-create do not create output files
1247 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1249 Installation directories:
1250 --prefix=PREFIX install architecture-independent files in PREFIX
1251 [$ac_default_prefix]
1252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1255 By default, \`make install' will install all the files in
1256 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1257 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1258 for instance \`--prefix=\$HOME'.
1260 For better control, use the options below.
1262 Fine tuning of the installation directories:
1263 --bindir=DIR user executables [EPREFIX/bin]
1264 --sbindir=DIR system admin executables [EPREFIX/sbin]
1265 --libexecdir=DIR program executables [EPREFIX/libexec]
1266 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1267 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1268 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1269 --libdir=DIR object code libraries [EPREFIX/lib]
1270 --includedir=DIR C header files [PREFIX/include]
1271 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1272 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1273 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1274 --infodir=DIR info documentation [DATAROOTDIR/info]
1275 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1276 --mandir=DIR man documentation [DATAROOTDIR/man]
1277 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1278 --htmldir=DIR html documentation [DOCDIR]
1279 --dvidir=DIR dvi documentation [DOCDIR]
1280 --pdfdir=DIR pdf documentation [DOCDIR]
1281 --psdir=DIR ps documentation [DOCDIR]
1287 --program-prefix=PREFIX prepend PREFIX to installed program names
1288 --program-suffix=SUFFIX append SUFFIX to installed program names
1289 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1293 if test -n "$ac_init_help"; then
1298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1300 --disable-mcs51-port Excludes the Intel mcs51 port
1301 --disable-gbz80-port Excludes the Gameboy gbz80 port
1302 --disable-z80-port Excludes the z80 port
1303 --disable-avr-port Excludes the AVR port
1304 --disable-ds390-port Excludes the DS390 port
1305 --disable-ds400-port Excludes the DS400 port
1306 --disable-pic-port Excludes the PIC port
1307 --disable-pic16-port Excludes the PIC16 port
1308 --disable-xa51-port Excludes the XA51 port
1309 --disable-hc08-port Excludes the HC08 port
1310 --disable-ucsim Disables configuring and building of ucsim
1311 --disable-device-lib Disables building device libraries
1312 --disable-packihx Disables building packihx
1313 --disable-sdcpp Disables building sdcpp
1314 --disable-sdcdb Disables building sdcdb
1315 --enable-doc Enables building the documentation
1316 --enable-libgc Use the Bohem memory allocator. Lower runtime
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir>
1328 sdccconf_h_dir_separator
1329 needed in sdccconf.h: either "/" (default) or "\\"
1331 appended to datadir to define SDCC's include directory
1333 appended to datadir to define SDCC's library root directory
1334 docdir documentation installation directory
1336 Use these variables to override the choices made by `configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" || continue
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1353 # A ".." for each directory in $ac_dir_suffix.
1354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1355 case $ac_top_builddir_sub in
1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1366 .) # We are building in place.
1368 ac_top_srcdir=$ac_top_builddir_sub
1369 ac_abs_top_srcdir=$ac_pwd ;;
1370 [\\/]* | ?:[\\/]* ) # Absolute name.
1371 ac_srcdir=$srcdir$ac_dir_suffix;
1372 ac_top_srcdir=$srcdir
1373 ac_abs_top_srcdir=$srcdir ;;
1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376 ac_top_srcdir=$ac_top_build_prefix$srcdir
1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381 cd "$ac_dir" || { ac_status=$?; continue; }
1382 # Check for guested configure.
1383 if test -f "$ac_srcdir/configure.gnu"; then
1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386 elif test -f "$ac_srcdir/configure"; then
1388 $SHELL "$ac_srcdir/configure" --help=recursive
1390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 cd "$ac_pwd" || { ac_status=$?; break; }
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1400 generated by GNU Autoconf 2.61
1402 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1403 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1409 cat >config.log <<_ACEOF
1410 This file contains any messages produced by compilers while
1411 running configure, to aid debugging if configure makes a mistake.
1413 It was created by $as_me, which was
1414 generated by GNU Autoconf 2.61. Invocation command line was
1426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1433 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1435 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1436 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1438 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1439 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1440 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1441 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 echo "PATH: $as_dir"
1466 # Keep a trace of the command line.
1467 # Strip out --no-create and --no-recursion so they do not pile up.
1468 # Strip out --silent because we don't want to record it for future runs.
1469 # Also quote any args containing shell meta-characters.
1470 # Make two passes to allow for proper duplicate-argument suppression.
1474 ac_must_keep_next=false
1480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1488 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1490 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1491 if test $ac_must_keep_next = true; then
1492 ac_must_keep_next=false # Got value, back to normal.
1495 *=* | --config-cache | -C | -disable-* | --disable-* \
1496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1498 | -with-* | --with-* | -without-* | --without-* | --x)
1499 case "$ac_configure_args0 " in
1500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503 -* ) ac_must_keep_next=true ;;
1506 ac_configure_args="$ac_configure_args '$ac_arg'"
1511 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1512 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1514 # When interrupted or exit'd, cleanup temporary files, and complete
1515 # config.log. We remove comments because anyway the quotes in there
1516 # would cause problems or look ugly.
1517 # WARNING: Use '\'' to represent an apostrophe within the trap.
1518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1519 trap 'exit_status=$?
1520 # Save into config.log some information that might help in debugging.
1525 ## ---------------- ##
1526 ## Cache variables. ##
1527 ## ---------------- ##
1530 # The following way of writing the cache mishandles newlines in values,
1532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1533 eval ac_val=\$$ac_var
1537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541 _ | IFS | as_nl) ;; #(
1542 *) $as_unset $ac_var ;;
1547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1548 *${as_nl}ac_space=\ *)
1550 "s/'\''/'\''\\\\'\'''\''/g;
1551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1562 ## ----------------- ##
1563 ## Output variables. ##
1564 ## ----------------- ##
1567 for ac_var in $ac_subst_vars
1569 eval ac_val=\$$ac_var
1571 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1573 echo "$ac_var='\''$ac_val'\''"
1577 if test -n "$ac_subst_files"; then
1579 ## ------------------- ##
1580 ## File substitutions. ##
1581 ## ------------------- ##
1584 for ac_var in $ac_subst_files
1586 eval ac_val=\$$ac_var
1588 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 echo "$ac_var='\''$ac_val'\''"
1595 if test -s confdefs.h; then
1605 test "$ac_signal" != 0 &&
1606 echo "$as_me: caught signal $ac_signal"
1607 echo "$as_me: exit $exit_status"
1609 rm -f core *.core core.conftest.* &&
1610 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613 for ac_signal in 1 2 13 15; do
1614 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1619 rm -f -r conftest* confdefs.h
1621 # Predefined preprocessor variables.
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_NAME "$PACKAGE_NAME"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_STRING "$PACKAGE_STRING"
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1648 # Let the site file select an alternate cache file if it wants to.
1649 # Prefer explicitly selected file to automatically selected ones.
1650 if test -n "$CONFIG_SITE"; then
1651 set x "$CONFIG_SITE"
1652 elif test "x$prefix" != xNONE; then
1653 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1655 set x "$ac_default_prefix/share/config.site" \
1656 "$ac_default_prefix/etc/config.site"
1661 if test -r "$ac_site_file"; then
1662 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1663 echo "$as_me: loading site script $ac_site_file" >&6;}
1664 sed 's/^/| /' "$ac_site_file" >&5
1669 if test -r "$cache_file"; then
1670 # Some versions of bash will fail to source /dev/null (special
1671 # files actually), so we avoid doing that.
1672 if test -f "$cache_file"; then
1673 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1674 echo "$as_me: loading cache $cache_file" >&6;}
1676 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1677 *) . "./$cache_file";;
1681 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1682 echo "$as_me: creating cache $cache_file" >&6;}
1686 # Check that the precious variables saved in the cache have kept the same
1688 ac_cache_corrupted=false
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1691 eval ac_new_set=\$ac_env_${ac_var}_set
1692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1693 eval ac_new_val=\$ac_env_${ac_var}_value
1694 case $ac_old_set,$ac_new_set in
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1697 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1705 if test "x$ac_old_val" != "x$ac_new_val"; then
1706 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1707 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1708 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1709 echo "$as_me: former value: $ac_old_val" >&2;}
1710 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1711 echo "$as_me: current value: $ac_new_val" >&2;}
1712 ac_cache_corrupted=:
1715 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then
1718 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;;
1721 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1727 if $ac_cache_corrupted; then
1728 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1729 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1730 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1731 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1732 { (exit 1); exit 1; }; }
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1759 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1762 for ac_prog in gawk mawk nawk awk
1764 # Extract the first word of "$ac_prog", so it can be a program name with args.
1765 set dummy $ac_prog; ac_word=$2
1766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1768 if test "${ac_cv_prog_AWK+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 if test -n "$AWK"; then
1772 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1781 ac_cv_prog_AWK="$ac_prog"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 if test -n "$AWK"; then
1793 { echo "$as_me:$LINENO: result: $AWK" >&5
1794 echo "${ECHO_T}$AWK" >&6; }
1796 { echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6; }
1801 test -n "$AWK" && break
1805 { echo "$as_me:$LINENO: checking version of the package" >&5
1806 echo $ECHO_N "checking version of the package... $ECHO_C" >&6; }
1807 if test -f ${srcdir}/.version; then
1808 { read VERSION; } < ${srcdir}/.version
1809 { echo "$as_me:$LINENO: result: $VERSION" >&5
1810 echo "${ECHO_T}$VERSION" >&6; }
1811 elif test -f ../.version; then
1812 { read VERSION; } < ../.version
1813 { echo "$as_me:$LINENO: result: $VERSION" >&5
1814 echo "${ECHO_T}$VERSION" >&6; }
1817 { echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1818 echo "${ECHO_T}unknown using 0.0.0" >&6; }
1820 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1821 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1822 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1824 { echo "$as_me:$LINENO: result: ${VERSION}" >&5
1825 echo "${ECHO_T}${VERSION}" >&6; }
1830 cat >>confdefs.h <<_ACEOF
1831 #define SDCC_VERSION_LO ${VERSIONLO}
1834 cat >>confdefs.h <<_ACEOF
1835 #define SDCC_VERSION_HI ${VERSIONHI}
1838 cat >>confdefs.h <<_ACEOF
1839 #define SDCC_VERSION_P ${VERSIONP}
1842 cat >>confdefs.h <<_ACEOF
1843 #define SDCC_VERSION_STR "${VERSION}"
1846 test "$program_prefix" != NONE &&
1847 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1848 # Use a double $ so make ignores it.
1849 test "$program_suffix" != NONE &&
1850 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1851 # Double any \ or $. echo might interpret backslashes.
1852 # By default was `s,x,x', remove it if useless.
1853 cat <<\_ACEOF >conftest.sed
1854 s/[\\$]/&&/g;s/;s,x,x,$//
1856 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1859 sdcc_cv_version=$VERSION
1860 sdcc_cv_versionhi=$VERSIONHI
1861 sdcc_cv_versionlo=$VERSIONLO
1862 sdcc_cv_versionp=$VERSIONP
1866 # ===========================================================================
1868 ac_cpp='$CPP $CPPFLAGS'
1869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 if test -n "$CC"; then
1902 { echo "$as_me:$LINENO: result: $CC" >&5
1903 echo "${ECHO_T}$CC" >&6; }
1905 { echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6; }
1911 if test -z "$ac_cv_prog_CC"; then
1913 # Extract the first word of "gcc", so it can be a program name with args.
1914 set dummy gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$ac_ct_CC"; then
1921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_ac_ct_CC="gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6; }
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1949 if test "x$ac_ct_CC" = x; then
1952 case $cross_compiling:$ac_tool_warned in
1954 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1955 whose name does not start with the host triplet. If you think this
1956 configuration is useful to you, please write to autoconf@gnu.org." >&5
1957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1958 whose name does not start with the host triplet. If you think this
1959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1960 ac_tool_warned=yes ;;
1968 if test -z "$CC"; then
1969 if test -n "$ac_tool_prefix"; then
1970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}cc; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 ac_cv_prog_CC="${ac_tool_prefix}cc"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test -n "$CC"; then
1999 { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2002 { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2009 if test -z "$CC"; then
2010 # Extract the first word of "cc", so it can be a program name with args.
2011 set dummy cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2029 ac_prog_rejected=yes
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test $ac_prog_rejected = yes; then
2041 # We found a bogon in the path, so make sure we never use it.
2042 set dummy $ac_cv_prog_CC
2044 if test $# != 0; then
2045 # We chose a different compiler from the bogus one.
2046 # However, it has the same basename, so the bogon will be chosen
2047 # first if we set CC to just the basename; use the full file name.
2049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2055 if test -n "$CC"; then
2056 { echo "$as_me:$LINENO: result: $CC" >&5
2057 echo "${ECHO_T}$CC" >&6; }
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2065 if test -z "$CC"; then
2066 if test -n "$ac_tool_prefix"; then
2067 for ac_prog in cl.exe
2069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 if test -n "$CC"; then
2077 ac_cv_prog_CC="$CC" # Let the user override the test.
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 if test -n "$CC"; then
2098 { echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6; }
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2106 test -n "$CC" && break
2109 if test -z "$CC"; then
2111 for ac_prog in cl.exe
2113 # Extract the first word of "$ac_prog", so it can be a program name with args.
2114 set dummy $ac_prog; ac_word=$2
2115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 if test -n "$ac_ct_CC"; then
2121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 ac_cv_prog_ac_ct_CC="$ac_prog"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6; }
2145 { echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6; }
2150 test -n "$ac_ct_CC" && break
2153 if test "x$ac_ct_CC" = x; then
2156 case $cross_compiling:$ac_tool_warned in
2158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2159 whose name does not start with the host triplet. If you think this
2160 configuration is useful to you, please write to autoconf@gnu.org." >&5
2161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2162 whose name does not start with the host triplet. If you think this
2163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2164 ac_tool_warned=yes ;;
2173 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2179 # Provide some information about the compiler.
2180 echo "$as_me:$LINENO: checking for C compiler version" >&5
2181 ac_compiler=`set X $ac_compile; echo $2`
2182 { (ac_try="$ac_compiler --version >&5"
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2188 (eval "$ac_compiler --version >&5") 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }
2192 { (ac_try="$ac_compiler -v >&5"
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2198 (eval "$ac_compiler -v >&5") 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }
2202 { (ac_try="$ac_compiler -V >&5"
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_compiler -V >&5") 2>&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }
2213 cat >conftest.$ac_ext <<_ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2228 ac_clean_files_save=$ac_clean_files
2229 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2230 # Try to create an executable without -o first, disregard a.out.
2231 # It will help us diagnose broken compilers, and finding out an intuition
2233 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2234 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2235 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237 # List of possible output files, starting from the most likely.
2238 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2239 # only as a last resort. b.out is created by i960 compilers.
2240 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2242 # The IRIX 6 linker writes into existing files which may not be
2243 # executable, retaining their permissions. Remove them first so a
2244 # subsequent execution test works.
2246 for ac_file in $ac_files
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2250 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2255 if { (ac_try="$ac_link_default"
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261 (eval "$ac_link_default") 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2266 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2267 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2268 # so that the user can short-circuit this test for compilers unknown to
2270 for ac_file in $ac_files ''
2272 test -f "$ac_file" || continue
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2277 # We found the default executable, but exeext='' is most
2281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 # We set ac_cv_exeext here because the later test for it is not
2286 # safe: cross compilers may not add the suffix if given an `-o'
2287 # argument, so we may need to know it at that point already.
2288 # Even if this section looks crufty: it has the advantage of
2295 test "$ac_cv_exeext" = no && ac_cv_exeext=
2301 { echo "$as_me:$LINENO: result: $ac_file" >&5
2302 echo "${ECHO_T}$ac_file" >&6; }
2303 if test -z "$ac_file"; then
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: C compiler cannot create executables
2310 See \`config.log' for more details." >&2;}
2311 { (exit 77); exit 77; }; }
2314 ac_exeext=$ac_cv_exeext
2316 # Check that the compiler produces executables we can run. If not, either
2317 # the compiler is broken, or we cross compile.
2318 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2319 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2320 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2321 # If not cross compiling, check that we can run a simple program.
2322 if test "$cross_compiling" != yes; then
2323 if { ac_try='./$ac_file'
2324 { (case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_try") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 if test "$cross_compiling" = maybe; then
2338 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot run C compiled programs.
2342 If you meant to cross compile, use \`--host'.
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
2348 { echo "$as_me:$LINENO: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2351 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2352 ac_clean_files=$ac_clean_files_save
2353 # Check that the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2356 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2357 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2358 echo "${ECHO_T}$cross_compiling" >&6; }
2360 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2361 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2362 if { (ac_try="$ac_link"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_link") 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; then
2372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2373 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2374 # work properly (i.e., refer to `conftest.exe'), while it won't with
2376 for ac_file in conftest.exe conftest conftest.*; do
2377 test -f "$ac_file" || continue
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2386 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2389 See \`config.log' for more details." >&2;}
2390 { (exit 1); exit 1; }; }
2393 rm -f conftest$ac_cv_exeext
2394 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2395 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2397 rm -f conftest.$ac_ext
2398 EXEEXT=$ac_cv_exeext
2400 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2401 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2402 if test "${ac_cv_objext+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 cat >conftest.$ac_ext <<_ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2420 rm -f conftest.o conftest.obj
2421 if { (ac_try="$ac_compile"
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_compile") 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; then
2431 for ac_file in conftest.o conftest.obj conftest.*; do
2432 test -f "$ac_file" || continue;
2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2443 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2452 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2453 echo "${ECHO_T}$ac_cv_objext" >&6; }
2454 OBJEXT=$ac_cv_objext
2456 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2457 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 cat >conftest.$ac_ext <<_ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2479 rm -f conftest.$ac_objext
2480 if { (ac_try="$ac_compile"
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_compile") 2>conftest.er1
2488 grep -v '^ *+' conftest.er1 >conftest.err
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } && {
2493 test -z "$ac_c_werror_flag" ||
2494 test ! -s conftest.err
2495 } && test -s conftest.$ac_objext; then
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2508 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2509 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2510 GCC=`test $ac_compiler_gnu = yes && echo yes`
2511 ac_test_CFLAGS=${CFLAGS+set}
2512 ac_save_CFLAGS=$CFLAGS
2513 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2514 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_cc_g+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 ac_save_c_werror_flag=$ac_c_werror_flag
2519 ac_c_werror_flag=yes
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } && {
2551 test -z "$ac_c_werror_flag" ||
2552 test ! -s conftest.err
2553 } && test -s conftest.$ac_objext; then
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2560 cat >conftest.$ac_ext <<_ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2575 rm -f conftest.$ac_objext
2576 if { (ac_try="$ac_compile"
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_compile") 2>conftest.er1
2584 grep -v '^ *+' conftest.er1 >conftest.err
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest.$ac_objext; then
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2599 cat >conftest.$ac_ext <<_ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2614 rm -f conftest.$ac_objext
2615 if { (ac_try="$ac_compile"
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compile") 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } && {
2628 test -z "$ac_c_werror_flag" ||
2629 test ! -s conftest.err
2630 } && test -s conftest.$ac_objext; then
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_c_werror_flag=$ac_save_c_werror_flag
2648 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2650 if test "$ac_test_CFLAGS" = set; then
2651 CFLAGS=$ac_save_CFLAGS
2652 elif test $ac_cv_prog_cc_g = yes; then
2653 if test "$GCC" = yes; then
2659 if test "$GCC" = yes; then
2665 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2666 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_cc_c89+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 ac_cv_prog_cc_c89=no
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2680 #include <sys/types.h>
2681 #include <sys/stat.h>
2682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2683 struct buf { int x; };
2684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685 static char *e (p, i)
2691 static char *f (char * (*g) (char **, int), char **p, ...)
2696 s = g (p, va_arg (v,int));
2701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2702 function prototypes and stuff, but not '\xHH' hex character constants.
2703 These don't provoke an error unfortunately, instead are silently treated
2704 as 'x'. The following induces an error, until -std is added to get
2705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2706 array size at least. It's necessary to write '\x00'==0 to get something
2707 that's true only with -std. */
2708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2711 inside strings and character constants. */
2713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2715 int test (int i, double x);
2716 struct s1 {int (*f) (int a);};
2717 struct s2 {int (*f) (double a);};
2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 CC="$ac_save_CC $ac_arg"
2733 rm -f conftest.$ac_objext
2734 if { (ac_try="$ac_compile"
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compile") 2>conftest.er1
2742 grep -v '^ *+' conftest.er1 >conftest.err
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } && {
2747 test -z "$ac_c_werror_flag" ||
2748 test ! -s conftest.err
2749 } && test -s conftest.$ac_objext; then
2750 ac_cv_prog_cc_c89=$ac_arg
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f core conftest.err conftest.$ac_objext
2759 test "x$ac_cv_prog_cc_c89" != "xno" && break
2761 rm -f conftest.$ac_ext
2766 case "x$ac_cv_prog_cc_c89" in
2768 { echo "$as_me:$LINENO: result: none needed" >&5
2769 echo "${ECHO_T}none needed" >&6; } ;;
2771 { echo "$as_me:$LINENO: result: unsupported" >&5
2772 echo "${ECHO_T}unsupported" >&6; } ;;
2774 CC="$CC $ac_cv_prog_cc_c89"
2775 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2792 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2793 # On Suns, sometimes $CPP names a directory.
2794 if test -n "$CPP" && test -d "$CPP"; then
2797 if test -z "$CPP"; then
2798 if test "${ac_cv_prog_CPP+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 # Double quotes because CPP needs to be expanded
2802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2805 for ac_c_preproc_warn_flag in '' yes
2807 # Use a header file that comes with gcc, so configuring glibc
2808 # with a fresh cross-compiler works.
2809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2810 # <limits.h> exists even on freestanding compilers.
2811 # On the NeXT, cc -E runs the code through the compiler's parser,
2812 # not just through cpp. "Syntax error" is here to catch this case.
2813 cat >conftest.$ac_ext <<_ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2820 # include <limits.h>
2822 # include <assert.h>
2826 if { (ac_try="$ac_cpp conftest.$ac_ext"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } >/dev/null && {
2839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2840 test ! -s conftest.err
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 # Broken: fails on valid input.
2851 rm -f conftest.err conftest.$ac_ext
2853 # OK, works on sane cases. Now check whether nonexistent headers
2854 # can be detected and how.
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2861 #include <ac_nonexistent.h>
2863 if { (ac_try="$ac_cpp conftest.$ac_ext"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } >/dev/null && {
2876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2879 # Broken: success on invalid input.
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 # Passes both tests.
2890 rm -f conftest.err conftest.$ac_ext
2893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2894 rm -f conftest.err conftest.$ac_ext
2895 if $ac_preproc_ok; then
2907 { echo "$as_me:$LINENO: result: $CPP" >&5
2908 echo "${ECHO_T}$CPP" >&6; }
2910 for ac_c_preproc_warn_flag in '' yes
2912 # Use a header file that comes with gcc, so configuring glibc
2913 # with a fresh cross-compiler works.
2914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2915 # <limits.h> exists even on freestanding compilers.
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp. "Syntax error" is here to catch this case.
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2925 # include <limits.h>
2927 # include <assert.h>
2931 if { (ac_try="$ac_cpp conftest.$ac_ext"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null && {
2944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 # Broken: fails on valid input.
2956 rm -f conftest.err conftest.$ac_ext
2958 # OK, works on sane cases. Now check whether nonexistent headers
2959 # can be detected and how.
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #include <ac_nonexistent.h>
2968 if { (ac_try="$ac_cpp conftest.$ac_ext"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null && {
2981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2982 test ! -s conftest.err
2984 # Broken: success on invalid input.
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 # Passes both tests.
2995 rm -f conftest.err conftest.$ac_ext
2998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2999 rm -f conftest.err conftest.$ac_ext
3000 if $ac_preproc_ok; then
3003 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3011 ac_cpp='$CPP $CPPFLAGS'
3012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 if test -f "$ac_dir/install-sh"; then
3020 ac_install_sh="$ac_aux_dir/install-sh -c"
3022 elif test -f "$ac_dir/install.sh"; then
3024 ac_install_sh="$ac_aux_dir/install.sh -c"
3026 elif test -f "$ac_dir/shtool"; then
3028 ac_install_sh="$ac_aux_dir/shtool install -c"
3032 if test -z "$ac_aux_dir"; then
3033 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3034 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3035 { (exit 1); exit 1; }; }
3038 # These three variables are undocumented and unsupported,
3039 # and are intended to be withdrawn in a future Autoconf release.
3040 # They can cause serious problems if a builder's source tree is in a directory
3041 # whose full name contains unusual characters.
3042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3047 # Find a good install program. We prefer a C program (faster),
3048 # so one script is as good as another. But avoid the broken or
3049 # incompatible versions:
3050 # SysV /etc/install, /usr/sbin/install
3051 # SunOS /usr/etc/install
3052 # IRIX /sbin/install
3054 # AmigaOS /C/install, which installs bootblocks on floppy discs
3055 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3056 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3057 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3058 # OS/2's system install, which has a completely different semantic
3059 # ./install, which can be erroneously created by make from ./install.sh.
3060 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3061 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3062 if test -z "$INSTALL"; then
3063 if test "${ac_cv_path_install+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 # Account for people who put trailing slashes in PATH elements.
3073 ./ | .// | /cC/* | \
3074 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3075 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3078 # OSF1 and SCO ODT 3.0 have their own names for install.
3079 # Don't use installbsd from OSF since it installs stuff as root
3081 for ac_prog in ginstall scoinst install; do
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3084 if test $ac_prog = install &&
3085 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3086 # AIX install. It has an incompatible calling convention.
3088 elif test $ac_prog = install &&
3089 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3090 # program-specific install script used by HP pwplus--don't use.
3093 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3106 if test "${ac_cv_path_install+set}" = set; then
3107 INSTALL=$ac_cv_path_install
3109 # As a last resort, use the slow shell script. Don't cache a
3110 # value for INSTALL within a source directory, because that will
3111 # break other packages using the cache if that directory is
3112 # removed, or if the value is a relative name.
3113 INSTALL=$ac_install_sh
3116 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3117 echo "${ECHO_T}$INSTALL" >&6; }
3119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3120 # It thinks the first close brace ends the variable substitution.
3121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3123 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3125 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3132 if test "${ac_cv_prog_RANLIB+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 if test -n "$RANLIB"; then
3136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 RANLIB=$ac_cv_prog_RANLIB
3156 if test -n "$RANLIB"; then
3157 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3158 echo "${ECHO_T}$RANLIB" >&6; }
3160 { echo "$as_me:$LINENO: result: no" >&5
3161 echo "${ECHO_T}no" >&6; }
3166 if test -z "$ac_cv_prog_RANLIB"; then
3167 ac_ct_RANLIB=$RANLIB
3168 # Extract the first word of "ranlib", so it can be a program name with args.
3169 set dummy ranlib; ac_word=$2
3170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 if test -n "$ac_ct_RANLIB"; then
3176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_ac_ct_RANLIB="ranlib"
3186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3196 if test -n "$ac_ct_RANLIB"; then
3197 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3198 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3200 { echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6; }
3204 if test "x$ac_ct_RANLIB" = x; then
3207 case $cross_compiling:$ac_tool_warned in
3209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3210 whose name does not start with the host triplet. If you think this
3211 configuration is useful to you, please write to autoconf@gnu.org." >&5
3212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3213 whose name does not start with the host triplet. If you think this
3214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3215 ac_tool_warned=yes ;;
3217 RANLIB=$ac_ct_RANLIB
3220 RANLIB="$ac_cv_prog_RANLIB"
3223 # Extract the first word of "autoconf", so it can be a program name with args.
3224 set dummy autoconf; ac_word=$2
3225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3227 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if test -n "$AUTOCONF"; then
3231 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_AUTOCONF="autoconf"
3241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3251 AUTOCONF=$ac_cv_prog_AUTOCONF
3252 if test -n "$AUTOCONF"; then
3253 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3254 echo "${ECHO_T}$AUTOCONF" >&6; }
3256 { echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6; }
3261 # Extract the first word of "strip", so it can be a program name with args.
3262 set dummy strip; ac_word=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_STRIP+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if test -n "$STRIP"; then
3269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_STRIP="strip"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3289 STRIP=$ac_cv_prog_STRIP
3290 if test -n "$STRIP"; then
3291 { echo "$as_me:$LINENO: result: $STRIP" >&5
3292 echo "${ECHO_T}$STRIP" >&6; }
3294 { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3299 # Extract the first word of "as", so it can be a program name with args.
3300 set dummy as; ac_word=$2
3301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3303 if test "${ac_cv_prog_AS+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 if test -n "$AS"; then
3307 ac_cv_prog_AS="$AS" # Let the user override the test.
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3328 if test -n "$AS"; then
3329 { echo "$as_me:$LINENO: result: $AS" >&5
3330 echo "${ECHO_T}$AS" >&6; }
3332 { echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6; }
3337 # Extract the first word of "cp", so it can be a program name with args.
3338 set dummy cp; ac_word=$2
3339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3341 if test "${ac_cv_prog_CP+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 if test -n "$CP"; then
3345 ac_cv_prog_CP="$CP" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3366 if test -n "$CP"; then
3367 { echo "$as_me:$LINENO: result: $CP" >&5
3368 echo "${ECHO_T}$CP" >&6; }
3370 { echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6; }
3376 for ac_prog in flex lex
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_LEX+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 if test -n "$LEX"; then
3386 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_LEX="$ac_prog"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 if test -n "$LEX"; then
3407 { echo "$as_me:$LINENO: result: $LEX" >&5
3408 echo "${ECHO_T}$LEX" >&6; }
3410 { echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6; }
3415 test -n "$LEX" && break
3417 test -n "$LEX" || LEX=":"
3420 for ac_prog in 'bison -y' byacc yacc
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3426 if test "${ac_cv_prog_YACC+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -n "$YACC"; then
3430 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_YACC="$ac_prog"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 YACC=$ac_cv_prog_YACC
3450 if test -n "$YACC"; then
3451 { echo "$as_me:$LINENO: result: $YACC" >&5
3452 echo "${ECHO_T}$YACC" >&6; }
3454 { echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6; }
3459 test -n "$YACC" && break
3461 test -n "$YACC" || YACC=":"
3466 if test "$YACC" = ":"; then
3467 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3468 echo "$as_me: error: Cannot find required program bison." >&2;}
3469 { (exit 1); exit 1; }; }
3472 if test "$LEX" = ":"; then
3473 { { echo "$as_me:$LINENO: error: Cannot find required program flex." >&5
3474 echo "$as_me: error: Cannot find required program flex." >&2;}
3475 { (exit 1); exit 1; }; }
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 # Checking for functions
3488 # ===========================================================================
3491 for ac_func in strerror
3493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3507 #define $ac_func innocuous_$ac_func
3509 /* System header to define __stub macros and hopefully few prototypes,
3510 which can conflict with char $ac_func (); below.
3511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 <limits.h> exists even on freestanding compilers. */
3515 # include <limits.h>
3517 # include <assert.h>
3522 /* Override any GCC internal prototype to avoid an error.
3523 Use char because int might match the return type of a GCC
3524 builtin and then its argument prototype would still apply. */
3529 /* The GNU C library defines this for functions which it implements
3530 to always fail with ENOSYS. Some functions are actually named
3531 something starting with __ and the normal name is an alias. */
3532 #if defined __stub_$ac_func || defined __stub___$ac_func
3544 rm -f conftest.$ac_objext conftest$ac_exeext
3545 if { (ac_try="$ac_link"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_link") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest$ac_exeext &&
3561 $as_test_x conftest$ac_exeext; then
3562 eval "$as_ac_var=yes"
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 eval "$as_ac_var=no"
3570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3571 conftest$ac_exeext conftest.$ac_ext
3573 ac_res=`eval echo '${'$as_ac_var'}'`
3574 { echo "$as_me:$LINENO: result: $ac_res" >&5
3575 echo "${ECHO_T}$ac_res" >&6; }
3576 if test `eval echo '${'$as_ac_var'}'` = yes; then
3577 cat >>confdefs.h <<_ACEOF
3578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3588 for ac_func in vsnprintf snprintf vsprintf mkstemp
3590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3604 #define $ac_func innocuous_$ac_func
3606 /* System header to define __stub macros and hopefully few prototypes,
3607 which can conflict with char $ac_func (); below.
3608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609 <limits.h> exists even on freestanding compilers. */
3612 # include <limits.h>
3614 # include <assert.h>
3619 /* Override any GCC internal prototype to avoid an error.
3620 Use char because int might match the return type of a GCC
3621 builtin and then its argument prototype would still apply. */
3626 /* The GNU C library defines this for functions which it implements
3627 to always fail with ENOSYS. Some functions are actually named
3628 something starting with __ and the normal name is an alias. */
3629 #if defined __stub_$ac_func || defined __stub___$ac_func
3641 rm -f conftest.$ac_objext conftest$ac_exeext
3642 if { (ac_try="$ac_link"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_link") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } && {
3655 test -z "$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3657 } && test -s conftest$ac_exeext &&
3658 $as_test_x conftest$ac_exeext; then
3659 eval "$as_ac_var=yes"
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 eval "$as_ac_var=no"
3667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3668 conftest$ac_exeext conftest.$ac_ext
3670 ac_res=`eval echo '${'$as_ac_var'}'`
3671 { echo "$as_me:$LINENO: result: $ac_res" >&5
3672 echo "${ECHO_T}$ac_res" >&6; }
3673 if test `eval echo '${'$as_ac_var'}'` = yes; then
3674 cat >>confdefs.h <<_ACEOF
3675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3684 # ===========================================================================
3686 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3687 # supports option specified as the 2nd parameter
3688 # For example: DD_CPORT(CXX, fPIC)
3692 # This macro expands DIR and assigns it to RET.
3693 # If DIR is NONE, then it's replaced by DEFAULT.
3695 # Based on AC_DEFINE_DIR
3699 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3703 # adl_NORMALIZE_PATH
3705 # - empty paths are changed to '.'
3706 # - trailing slashes are removed
3707 # - repeated slashes are squeezed except a leading doubled slash '//'
3708 # (which might indicate a networked disk on some OS).
3711 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3712 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3713 # are turned into backslashes, otherwise they are all turned into slashes.
3715 # This makes processing of DOS filenames quite easier, because you can turn a
3716 # filename to the Unix notation, make your processing, and turn it back to
3717 # original notation.
3722 # adl_COMPUTE_RELATIVE_PATH
3724 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3725 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3726 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3727 # absolute filenames for this macro to success.
3733 ## The following helper macros are too fragile to be used out
3734 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3735 ## paths are normalized), that's why I'm keeping them in the same file.
3736 ## Still, some of them maybe worth to reuse.
3754 # Checking characteristics of compilers and other programs
3755 # ===========================================================================
3756 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3757 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
3758 if test "${sdcc_cv_MM+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 echo "#include <stdio.h>" >_test_.c
3763 $CPP -v -MM _test_.c 1>&5 2>&5
3764 if test "$?" = "0"; then
3771 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3772 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
3776 # This is the first time when CFLAGS are set/modified!!
3778 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3779 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
3780 if test "${sdcc_cv_CCggdb+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3788 if test "$?" = "0"; then
3789 sdcc_cv_CCggdb="yes"
3793 rm -f _test_.* a.out
3795 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3796 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
3798 if test "$sdcc_cv_CCggdb" = "yes"; then
3799 CFLAGS="-ggdb ${CFLAGS}"
3803 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3804 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
3805 if test "${sdcc_cv_CCpipe+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 $CC -v -pipe -c _test_.c 1>&5 2>&5
3813 if test "$?" = "0"; then
3814 sdcc_cv_CCpipe="yes"
3818 rm -f _test_.* a.out
3820 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3821 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
3823 if test "$sdcc_cv_CCpipe" = "yes"; then
3824 CFLAGS="-pipe $CFLAGS"
3828 # Checks for typedefs, structures, and compiler characteristics.
3829 # ===========================================================================
3830 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3831 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3832 if test "${ac_cv_type_signal+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #include <sys/types.h>
3847 return *(signal (0, 0)) (0) == 1;
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && {
3866 test -z "$ac_c_werror_flag" ||
3867 test ! -s conftest.err
3868 } && test -s conftest.$ac_objext; then
3869 ac_cv_type_signal=int
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 ac_cv_type_signal=void
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3880 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3882 cat >>confdefs.h <<_ACEOF
3883 #define RETSIGTYPE $ac_cv_type_signal
3889 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3890 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3891 if test "${ac_cv_path_GREP+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 # Extract the first word of "grep ggrep" to use in msg output
3895 if test -z "$GREP"; then
3896 set dummy grep ggrep; ac_prog_name=$2
3897 if test "${ac_cv_path_GREP+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 ac_path_GREP_found=false
3901 # Loop through the user's path and test for each of PROGNAME-LIST
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in grep ggrep; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3910 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3911 # Check for GNU ac_path_GREP and select it if it is found.
3912 # Check for GNU $ac_path_GREP
3913 case `"$ac_path_GREP" --version 2>&1` in
3915 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3918 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 echo 'GREP' >> "conftest.nl"
3925 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 ac_count=`expr $ac_count + 1`
3928 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_GREP="$ac_path_GREP"
3931 ac_path_GREP_max=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940 $ac_path_GREP_found && break 3
3950 GREP="$ac_cv_path_GREP"
3951 if test -z "$GREP"; then
3952 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3953 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3954 { (exit 1); exit 1; }; }
3958 ac_cv_path_GREP=$GREP
3963 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3964 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3965 GREP="$ac_cv_path_GREP"
3968 { echo "$as_me:$LINENO: checking for egrep" >&5
3969 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_EGREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3974 then ac_cv_path_EGREP="$GREP -E"
3976 # Extract the first word of "egrep" to use in msg output
3977 if test -z "$EGREP"; then
3978 set dummy egrep; ac_prog_name=$2
3979 if test "${ac_cv_path_EGREP+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 ac_path_EGREP_found=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 test -z "$as_dir" && as_dir=.
3989 for ac_prog in egrep; do
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3993 # Check for GNU ac_path_EGREP and select it if it is found.
3994 # Check for GNU $ac_path_EGREP
3995 case `"$ac_path_EGREP" --version 2>&1` in
3997 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4000 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 echo 'EGREP' >> "conftest.nl"
4007 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009 ac_count=`expr $ac_count + 1`
4010 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_EGREP="$ac_path_EGREP"
4013 ac_path_EGREP_max=$ac_count
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 $ac_path_EGREP_found && break 3
4032 EGREP="$ac_cv_path_EGREP"
4033 if test -z "$EGREP"; then
4034 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4035 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4036 { (exit 1); exit 1; }; }
4040 ac_cv_path_EGREP=$EGREP
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4048 EGREP="$ac_cv_path_EGREP"
4051 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4053 if test "${ac_cv_header_stdc+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4075 rm -f conftest.$ac_objext
4076 if { (ac_try="$ac_compile"
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_compile") 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } && {
4089 test -z "$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 } && test -s conftest.$ac_objext; then
4092 ac_cv_header_stdc=yes
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 ac_cv_header_stdc=no
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4117 ac_cv_header_stdc=no
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4138 ac_cv_header_stdc=no
4144 if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4180 rm -f conftest$ac_exeext
4181 if { (ac_try="$ac_link"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_link") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4202 echo "$as_me: program exited with status $ac_status" >&5
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_header_stdc=no
4209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4217 if test $ac_cv_header_stdc = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 #include <$ac_header>
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 eval "$as_ac_Header=yes"
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 eval "$as_ac_Header=no"
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 ac_res=`eval echo '${'$as_ac_Header'}'`
4282 { echo "$as_me:$LINENO: result: $ac_res" >&5
4283 echo "${ECHO_T}$ac_res" >&6; }
4284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 { echo "$as_me:$LINENO: checking for char" >&5
4295 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
4296 if test "${ac_cv_type_char+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4306 typedef char ac__type_new_;
4310 if ((ac__type_new_ *) 0)
4312 if (sizeof (ac__type_new_))
4318 rm -f conftest.$ac_objext
4319 if { (ac_try="$ac_compile"
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_compile") 2>conftest.er1
4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && {
4332 test -z "$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 } && test -s conftest.$ac_objext; then
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4346 echo "${ECHO_T}$ac_cv_type_char" >&6; }
4348 # The cast to long int works around a bug in the HP C Compiler
4349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4351 # This bug is HP SR number 8606223364.
4352 { echo "$as_me:$LINENO: checking size of char" >&5
4353 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
4354 if test "${ac_cv_sizeof_char+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 if test "$cross_compiling" = yes; then
4358 # Depending upon the size, compute the lo and hi bounds.
4359 cat >conftest.$ac_ext <<_ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 $ac_includes_default
4366 typedef char ac__type_sizeof_;
4370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest.$ac_objext; then
4396 cat >conftest.$ac_ext <<_ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 $ac_includes_default
4403 typedef char ac__type_sizeof_;
4407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4414 rm -f conftest.$ac_objext
4415 if { (ac_try="$ac_compile"
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_compile") 2>conftest.er1
4423 grep -v '^ *+' conftest.er1 >conftest.err
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } && {
4428 test -z "$ac_c_werror_flag" ||
4429 test ! -s conftest.err
4430 } && test -s conftest.$ac_objext; then
4431 ac_hi=$ac_mid; break
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_lo=`expr $ac_mid + 1`
4437 if test $ac_lo -le $ac_mid; then
4441 ac_mid=`expr 2 '*' $ac_mid + 1`
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 $ac_includes_default
4457 typedef char ac__type_sizeof_;
4461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4494 typedef char ac__type_sizeof_;
4498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4505 rm -f conftest.$ac_objext
4506 if { (ac_try="$ac_compile"
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_compile") 2>conftest.er1
4514 grep -v '^ *+' conftest.er1 >conftest.err
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } && {
4519 test -z "$ac_c_werror_flag" ||
4520 test ! -s conftest.err
4521 } && test -s conftest.$ac_objext; then
4522 ac_lo=$ac_mid; break
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4527 ac_hi=`expr '(' $ac_mid ')' - 1`
4528 if test $ac_mid -le $ac_hi; then
4532 ac_mid=`expr 2 '*' $ac_mid`
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 # Binary search between lo and hi bounds.
4549 while test "x$ac_lo" != "x$ac_hi"; do
4550 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 $ac_includes_default
4558 typedef char ac__type_sizeof_;
4562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } && {
4583 test -z "$ac_c_werror_flag" ||
4584 test ! -s conftest.err
4585 } && test -s conftest.$ac_objext; then
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 ac_lo=`expr '(' $ac_mid ')' + 1`
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 ?*) ac_cv_sizeof_char=$ac_lo;;
4598 '') if test "$ac_cv_type_char" = yes; then
4599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot compute sizeof (char)
4602 See \`config.log' for more details." >&2;}
4603 { (exit 77); exit 77; }; }
4609 cat >conftest.$ac_ext <<_ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4615 $ac_includes_default
4616 typedef char ac__type_sizeof_;
4617 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4618 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4625 FILE *f = fopen ("conftest.val", "w");
4628 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4630 long int i = longval ();
4631 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4633 fprintf (f, "%ld\n", i);
4637 unsigned long int i = ulongval ();
4638 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4640 fprintf (f, "%lu\n", i);
4642 return ferror (f) || fclose (f) != 0;
4648 rm -f conftest$ac_exeext
4649 if { (ac_try="$ac_link"
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_link") 2>&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4659 { (case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_try") 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_cv_sizeof_char=`cat conftest.val`
4670 echo "$as_me: program exited with status $ac_status" >&5
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4675 if test "$ac_cv_type_char" = yes; then
4676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4677 See \`config.log' for more details." >&5
4678 echo "$as_me: error: cannot compute sizeof (char)
4679 See \`config.log' for more details." >&2;}
4680 { (exit 77); exit 77; }; }
4685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4689 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4690 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
4694 cat >>confdefs.h <<_ACEOF
4695 #define SIZEOF_CHAR $ac_cv_sizeof_char
4699 { echo "$as_me:$LINENO: checking for short" >&5
4700 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4701 if test "${ac_cv_type_short+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 $ac_includes_default
4711 typedef short ac__type_new_;
4715 if ((ac__type_new_ *) 0)
4717 if (sizeof (ac__type_new_))
4723 rm -f conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1 >conftest.err
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.$ac_objext; then
4740 ac_cv_type_short=yes
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4751 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4753 # The cast to long int works around a bug in the HP C Compiler
4754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4756 # This bug is HP SR number 8606223364.
4757 { echo "$as_me:$LINENO: checking size of short" >&5
4758 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4759 if test "${ac_cv_sizeof_short+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 if test "$cross_compiling" = yes; then
4763 # Depending upon the size, compute the lo and hi bounds.
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_includes_default
4771 typedef short ac__type_sizeof_;
4775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4782 rm -f conftest.$ac_objext
4783 if { (ac_try="$ac_compile"
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_compile") 2>conftest.er1
4791 grep -v '^ *+' conftest.er1 >conftest.err
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && {
4796 test -z "$ac_c_werror_flag" ||
4797 test ! -s conftest.err
4798 } && test -s conftest.$ac_objext; then
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4808 typedef short ac__type_sizeof_;
4812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_compile") 2>conftest.er1
4828 grep -v '^ *+' conftest.er1 >conftest.err
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } && {
4833 test -z "$ac_c_werror_flag" ||
4834 test ! -s conftest.err
4835 } && test -s conftest.$ac_objext; then
4836 ac_hi=$ac_mid; break
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 ac_lo=`expr $ac_mid + 1`
4842 if test $ac_lo -le $ac_mid; then
4846 ac_mid=`expr 2 '*' $ac_mid + 1`
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 cat >conftest.$ac_ext <<_ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861 $ac_includes_default
4862 typedef short ac__type_sizeof_;
4866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 typedef short ac__type_sizeof_;
4903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4910 rm -f conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_compile") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } && {
4924 test -z "$ac_c_werror_flag" ||
4925 test ! -s conftest.err
4926 } && test -s conftest.$ac_objext; then
4927 ac_lo=$ac_mid; break
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 ac_hi=`expr '(' $ac_mid ')' - 1`
4933 if test $ac_mid -le $ac_hi; then
4937 ac_mid=`expr 2 '*' $ac_mid`
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 # Binary search between lo and hi bounds.
4954 while test "x$ac_lo" != "x$ac_hi"; do
4955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4963 typedef short ac__type_sizeof_;
4967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4974 rm -f conftest.$ac_objext
4975 if { (ac_try="$ac_compile"
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_compile") 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest.$ac_objext; then
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 ac_lo=`expr '(' $ac_mid ')' + 1`
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 ?*) ac_cv_sizeof_short=$ac_lo;;
5003 '') if test "$ac_cv_type_short" = yes; then
5004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5005 See \`config.log' for more details." >&5
5006 echo "$as_me: error: cannot compute sizeof (short)
5007 See \`config.log' for more details." >&2;}
5008 { (exit 77); exit 77; }; }
5010 ac_cv_sizeof_short=0
5014 cat >conftest.$ac_ext <<_ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 $ac_includes_default
5021 typedef short ac__type_sizeof_;
5022 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5023 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5030 FILE *f = fopen ("conftest.val", "w");
5033 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5035 long int i = longval ();
5036 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5038 fprintf (f, "%ld\n", i);
5042 unsigned long int i = ulongval ();
5043 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5045 fprintf (f, "%lu\n", i);
5047 return ferror (f) || fclose (f) != 0;
5053 rm -f conftest$ac_exeext
5054 if { (ac_try="$ac_link"
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_link") 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5064 { (case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_try") 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_sizeof_short=`cat conftest.val`
5075 echo "$as_me: program exited with status $ac_status" >&5
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5080 if test "$ac_cv_type_short" = yes; then
5081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5082 See \`config.log' for more details." >&5
5083 echo "$as_me: error: cannot compute sizeof (short)
5084 See \`config.log' for more details." >&2;}
5085 { (exit 77); exit 77; }; }
5087 ac_cv_sizeof_short=0
5090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5094 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5095 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5099 cat >>confdefs.h <<_ACEOF
5100 #define SIZEOF_SHORT $ac_cv_sizeof_short
5104 { echo "$as_me:$LINENO: checking for int" >&5
5105 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5106 if test "${ac_cv_type_int+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5115 $ac_includes_default
5116 typedef int ac__type_new_;
5120 if ((ac__type_new_ *) 0)
5122 if (sizeof (ac__type_new_))
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5156 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5158 # The cast to long int works around a bug in the HP C Compiler
5159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5161 # This bug is HP SR number 8606223364.
5162 { echo "$as_me:$LINENO: checking size of int" >&5
5163 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5164 if test "${ac_cv_sizeof_int+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 if test "$cross_compiling" = yes; then
5168 # Depending upon the size, compute the lo and hi bounds.
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 $ac_includes_default
5176 typedef int ac__type_sizeof_;
5180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5187 rm -f conftest.$ac_objext
5188 if { (ac_try="$ac_compile"
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
5196 grep -v '^ *+' conftest.er1 >conftest.err
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 $ac_includes_default
5213 typedef int ac__type_sizeof_;
5217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
5241 ac_hi=$ac_mid; break
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_lo=`expr $ac_mid + 1`
5247 if test $ac_lo -le $ac_mid; then
5251 ac_mid=`expr 2 '*' $ac_mid + 1`
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 $ac_includes_default
5267 typedef int ac__type_sizeof_;
5271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5278 rm -f conftest.$ac_objext
5279 if { (ac_try="$ac_compile"
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_compile") 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 $ac_includes_default
5304 typedef int ac__type_sizeof_;
5308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_compile") 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } && {
5329 test -z "$ac_c_werror_flag" ||
5330 test ! -s conftest.err
5331 } && test -s conftest.$ac_objext; then
5332 ac_lo=$ac_mid; break
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 ac_hi=`expr '(' $ac_mid ')' - 1`
5338 if test $ac_mid -le $ac_hi; then
5342 ac_mid=`expr 2 '*' $ac_mid`
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 # Binary search between lo and hi bounds.
5359 while test "x$ac_lo" != "x$ac_hi"; do
5360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5368 typedef int ac__type_sizeof_;
5372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } && {
5393 test -z "$ac_c_werror_flag" ||
5394 test ! -s conftest.err
5395 } && test -s conftest.$ac_objext; then
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ac_lo=`expr '(' $ac_mid ')' + 1`
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ?*) ac_cv_sizeof_int=$ac_lo;;
5408 '') if test "$ac_cv_type_int" = yes; then
5409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5410 See \`config.log' for more details." >&5
5411 echo "$as_me: error: cannot compute sizeof (int)
5412 See \`config.log' for more details." >&2;}
5413 { (exit 77); exit 77; }; }
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5426 typedef int ac__type_sizeof_;
5427 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5428 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5435 FILE *f = fopen ("conftest.val", "w");
5438 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5440 long int i = longval ();
5441 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5443 fprintf (f, "%ld\n", i);
5447 unsigned long int i = ulongval ();
5448 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5450 fprintf (f, "%lu\n", i);
5452 return ferror (f) || fclose (f) != 0;
5458 rm -f conftest$ac_exeext
5459 if { (ac_try="$ac_link"
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_link") 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5469 { (case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_try") 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_sizeof_int=`cat conftest.val`
5480 echo "$as_me: program exited with status $ac_status" >&5
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5485 if test "$ac_cv_type_int" = yes; then
5486 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot compute sizeof (int)
5489 See \`config.log' for more details." >&2;}
5490 { (exit 77); exit 77; }; }
5495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5499 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5500 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5504 cat >>confdefs.h <<_ACEOF
5505 #define SIZEOF_INT $ac_cv_sizeof_int
5509 { echo "$as_me:$LINENO: checking for long" >&5
5510 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5511 if test "${ac_cv_type_long+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5521 typedef long ac__type_new_;
5525 if ((ac__type_new_ *) 0)
5527 if (sizeof (ac__type_new_))
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5542 grep -v '^ *+' conftest.er1 >conftest.err
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5561 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5563 # The cast to long int works around a bug in the HP C Compiler
5564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5566 # This bug is HP SR number 8606223364.
5567 { echo "$as_me:$LINENO: checking size of long" >&5
5568 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5569 if test "${ac_cv_sizeof_long+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 if test "$cross_compiling" = yes; then
5573 # Depending upon the size, compute the lo and hi bounds.
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 $ac_includes_default
5581 typedef long ac__type_sizeof_;
5585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 $ac_includes_default
5618 typedef long ac__type_sizeof_;
5622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5646 ac_hi=$ac_mid; break
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 ac_lo=`expr $ac_mid + 1`
5652 if test $ac_lo -le $ac_mid; then
5656 ac_mid=`expr 2 '*' $ac_mid + 1`
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 cat >conftest.$ac_ext <<_ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 $ac_includes_default
5672 typedef long ac__type_sizeof_;
5676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 $ac_includes_default
5709 typedef long ac__type_sizeof_;
5713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1 >conftest.err
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5737 ac_lo=$ac_mid; break
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_hi=`expr '(' $ac_mid ')' - 1`
5743 if test $ac_mid -le $ac_hi; then
5747 ac_mid=`expr 2 '*' $ac_mid`
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 # Binary search between lo and hi bounds.
5764 while test "x$ac_lo" != "x$ac_hi"; do
5765 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 $ac_includes_default
5773 typedef long ac__type_sizeof_;
5777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5784 rm -f conftest.$ac_objext
5785 if { (ac_try="$ac_compile"
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5793 grep -v '^ *+' conftest.er1 >conftest.err
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest.$ac_objext; then
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 ac_lo=`expr '(' $ac_mid ')' + 1`
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 ?*) ac_cv_sizeof_long=$ac_lo;;
5813 '') if test "$ac_cv_type_long" = yes; then
5814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5815 See \`config.log' for more details." >&5
5816 echo "$as_me: error: cannot compute sizeof (long)
5817 See \`config.log' for more details." >&2;}
5818 { (exit 77); exit 77; }; }
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 $ac_includes_default
5831 typedef long ac__type_sizeof_;
5832 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5833 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5840 FILE *f = fopen ("conftest.val", "w");
5843 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5845 long int i = longval ();
5846 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5848 fprintf (f, "%ld\n", i);
5852 unsigned long int i = ulongval ();
5853 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5855 fprintf (f, "%lu\n", i);
5857 return ferror (f) || fclose (f) != 0;
5863 rm -f conftest$ac_exeext
5864 if { (ac_try="$ac_link"
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_link") 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_cv_sizeof_long=`cat conftest.val`
5885 echo "$as_me: program exited with status $ac_status" >&5
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5890 if test "$ac_cv_type_long" = yes; then
5891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5892 See \`config.log' for more details." >&5
5893 echo "$as_me: error: cannot compute sizeof (long)
5894 See \`config.log' for more details." >&2;}
5895 { (exit 77); exit 77; }; }
5900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5904 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5905 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5909 cat >>confdefs.h <<_ACEOF
5910 #define SIZEOF_LONG $ac_cv_sizeof_long
5915 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5916 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
5917 if test "${ac_cv_c_char_unsigned+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 cat >conftest.$ac_ext <<_ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5930 static int test_array [1 - 2 * !(((char) -1) < 0)];
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5946 grep -v '^ *+' conftest.er1 >conftest.err
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest.$ac_objext; then
5954 ac_cv_c_char_unsigned=no
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_cv_c_char_unsigned=yes
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5965 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
5966 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5967 cat >>confdefs.h <<\_ACEOF
5968 #define __CHAR_UNSIGNED__ 1
5976 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5980 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5984 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5988 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5995 { echo "$as_me:$LINENO: checking type name for byte" >&5
5996 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
5997 TYPE_CHAR=`type_name 1`
5998 if test "$ac_cv_c_char_unsigned" = "yes"; then
5999 TYPE_BYTE="signed $TYPE_CHAR"
6001 TYPE_BYTE=$TYPE_CHAR
6003 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6004 echo "${ECHO_T}$TYPE_BYTE" >&6; }
6005 { echo "$as_me:$LINENO: checking type name for word" >&5
6006 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
6007 TYPE_WORD=`type_name 2`
6008 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6009 echo "${ECHO_T}$TYPE_WORD" >&6; }
6010 { echo "$as_me:$LINENO: checking type name for dword" >&5
6011 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
6012 TYPE_DWORD=`type_name 4`
6013 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6014 echo "${ECHO_T}$TYPE_DWORD" >&6; }
6016 cat >>confdefs.h <<_ACEOF
6017 #define TYPE_BYTE $TYPE_BYTE
6020 cat >>confdefs.h <<_ACEOF
6021 #define TYPE_WORD $TYPE_WORD
6024 cat >>confdefs.h <<_ACEOF
6025 #define TYPE_DWORD $TYPE_DWORD
6029 cat >>confdefs.h <<_ACEOF
6030 #define TYPE_UBYTE unsigned $TYPE_CHAR
6033 cat >>confdefs.h <<_ACEOF
6034 #define TYPE_UWORD unsigned $TYPE_WORD
6037 cat >>confdefs.h <<_ACEOF
6038 #define TYPE_UDWORD unsigned $TYPE_DWORD
6043 # SDCC_BUILD_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
6044 # -------------------------------------------------------------------------
6045 # SDCC_BUILD_BIGENDIAN
6047 { echo "$as_me:$LINENO: checking whether host machine byte ordering is bigendian" >&5
6048 echo $ECHO_N "checking whether host machine byte ordering is bigendian... $ECHO_C" >&6; }
6049 if test "${sdcc_cv_build_bigendian+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 # See if sys/param.h defines the BYTE_ORDER macro.
6053 cat >conftest.$ac_ext <<_ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <sys/types.h>
6060 #include <sys/param.h>
6065 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6066 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6074 rm -f conftest.$ac_objext
6075 if { (ac_try="$ac_compile"
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest.$ac_objext; then
6091 # It does; now see whether it defined to BIG_ENDIAN or not.
6092 cat >conftest.$ac_ext <<_ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 #include <sys/types.h>
6099 #include <sys/param.h>
6104 #if BYTE_ORDER != BIG_ENDIAN
6112 rm -f conftest.$ac_objext
6113 if { (ac_try="$ac_compile"
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.$ac_objext; then
6129 sdcc_cv_build_bigendian=yes
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 sdcc_cv_build_bigendian=no
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 # It does not; compile a test program.
6143 if test "$cross_compiling" = yes; then
6144 # try to guess the endianness by grepping values into an object file
6145 sdcc_cv_build_bigendian=unknown
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6153 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6154 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6155 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6156 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6157 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6161 _ascii (); _ebcdic ();
6166 rm -f conftest.$ac_objext
6167 if { (ac_try="$ac_compile"
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_compile") 2>conftest.er1
6175 grep -v '^ *+' conftest.er1 >conftest.err
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && {
6180 test -z "$ac_c_werror_flag" ||
6181 test ! -s conftest.err
6182 } && test -s conftest.$ac_objext; then
6183 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6184 sdcc_cv_build_bigendian=yes
6186 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6187 if test "$sdcc_cv_build_bigendian" = unknown; then
6188 sdcc_cv_build_bigendian=no
6190 # finding both strings is unlikely to happen, but who knows?
6191 sdcc_cv_build_bigendian=unknown
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 $ac_includes_default
6214 /* Are we little or big endian? From Harbison&Steele. */
6218 char c[sizeof (long int)];
6221 return u.c[sizeof (long int) - 1] == 1;
6227 rm -f conftest$ac_exeext
6228 if { (ac_try="$ac_link"
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_link") 2>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 sdcc_cv_build_bigendian=no
6249 echo "$as_me: program exited with status $ac_status" >&5
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6254 sdcc_cv_build_bigendian=yes
6256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 { echo "$as_me:$LINENO: result: $sdcc_cv_build_bigendian" >&5
6265 echo "${ECHO_T}$sdcc_cv_build_bigendian" >&6; }
6266 case $sdcc_cv_build_bigendian in
6269 cat >>confdefs.h <<\_ACEOF
6270 #define BUILD_WORDS_BIGENDIAN 1
6276 { { echo "$as_me:$LINENO: error: unknown endianness
6277 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&5
6278 echo "$as_me: error: unknown endianness
6279 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&2;}
6280 { (exit 1); exit 1; }; } ;;
6284 # Set standard installation paths
6285 # ===========================================================================
6287 # In the Makefiles we need paths with '/' as directory separator, even if
6288 # crosscompiling for Win32.
6289 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6290 # The variables in the Makefiles are replaced by AC_SUBST()
6292 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6294 # The macros are expanded for the header.
6295 # The variables in the header are replaced by AC_*DEFINE*()
6296 # sdccconf_h_dir_separator contains a backslash.
6298 if test "x${sdccconf_h_dir_separator}" = "x"; then
6299 sdccconf_h_dir_separator="/"
6305 # include_dir_suffix:
6306 # *nix default: "sdcc/include"
6309 if test "${include_dir_suffix}" = ""; then
6310 include_dir_suffix="sdcc/include"
6315 # *nix default: "sdcc/lib"
6317 if test "${lib_dir_suffix}" = ""; then
6318 lib_dir_suffix="sdcc/lib"
6323 # *nix default: "${datadir}/sdcc/doc"
6325 if test "${docdir}" = ""; then
6326 docdir="\${datadir}"/sdcc/doc
6335 cat >>confdefs.h <<_ACEOF
6336 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6339 cat >>confdefs.h <<_ACEOF
6340 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6345 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6347 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6350 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6351 ac_expand=`eval echo $ac_expand`
6352 expanded_prefix=`eval echo $ac_expand`
6355 ac_ndu=$expanded_prefix
6358 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6361 case $sdccconf_h_dir_separator in
6363 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6364 s,^[\\/],\\\\\\\\,'` ;;
6366 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6368 cat >>confdefs.h <<_ACEOF
6369 #define PREFIX "${ac_ndu}"
6375 # default: "${prefix}"
6377 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6379 ac_expand=$exec_prefix
6380 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6381 ac_expand=`eval echo $ac_expand`
6382 expanded_exec_prefix=`eval echo $ac_expand`
6385 ac_ndu=$expanded_exec_prefix
6388 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6391 case $sdccconf_h_dir_separator in
6393 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6394 s,^[\\/],\\\\\\\\,'` ;;
6396 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6398 cat >>confdefs.h <<_ACEOF
6399 #define EXEC_PREFIX "${ac_ndu}"
6405 # default: "${exec_prefix}/bin"
6407 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6410 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6411 ac_expand=`eval echo $ac_expand`
6412 expanded_bindir=`eval echo $ac_expand`
6415 ac_ndu=$expanded_bindir
6418 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6421 case $sdccconf_h_dir_separator in
6423 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6424 s,^[\\/],\\\\\\\\,'` ;;
6426 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6428 cat >>confdefs.h <<_ACEOF
6429 #define BINDIR "${ac_ndu}"
6435 # default: "${prefix}/share"
6437 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6440 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6441 ac_expand=`eval echo $ac_expand`
6442 expanded_datadir=`eval echo $ac_expand`
6445 ac_ndu=$expanded_datadir
6448 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6451 case $sdccconf_h_dir_separator in
6453 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6454 s,^[\\/],\\\\\\\\,'` ;;
6456 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6458 cat >>confdefs.h <<_ACEOF
6459 #define DATADIR "${ac_ndu}"
6464 # include/lib suffix
6465 norm_inc_dir_suffix=${include_dir_suffix}
6466 case ":$norm_inc_dir_suffix:" in
6467 ::) norm_inc_dir_suffix='.' ;;
6468 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6471 case $sdccconf_h_dir_separator in
6473 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6474 s,^[\\/],\\\\\\\\,'` ;;
6476 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6478 cat >>confdefs.h <<_ACEOF
6479 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6482 norm_lib_dir_suffix=${lib_dir_suffix}
6483 case ":$norm_lib_dir_suffix:" in
6484 ::) norm_lib_dir_suffix='.' ;;
6485 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6488 case $sdccconf_h_dir_separator in
6490 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6491 s,^[\\/],\\\\\\\\,'` ;;
6493 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6495 cat >>confdefs.h <<_ACEOF
6496 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6501 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6502 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6503 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6504 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6505 _lcl_receval="$_lcl_from"
6506 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6507 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6509 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6510 _lcl_receval_old="$_lcl_receval"
6511 eval _lcl_receval="\"$_lcl_receval\""
6513 echo "$_lcl_receval")`
6514 _lcl_receval="$_lcl_to"
6515 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6516 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6518 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6519 _lcl_receval_old="$_lcl_receval"
6520 eval _lcl_receval="\"$_lcl_receval\""
6522 echo "$_lcl_receval")`
6523 _lcl_notation="$_lcl_from$_lcl_to"
6524 case ":$_lcl_from:" in
6525 ::) _lcl_from='.' ;;
6526 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6531 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6532 s,^[\\/],\\\\\\\\,'` ;;
6534 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6536 case ":$_lcl_to:" in
6538 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6543 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6544 s,^[\\/],\\\\\\\\,'` ;;
6546 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6548 _lcl_common_prefix=''
6549 _lcl_second_prefix_match=''
6550 while test "$_lcl_second_prefix_match" != 0; do
6551 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6552 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6553 if test "$_lcl_second_prefix_match" != 0; then
6554 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6555 _lcl_common_prefix="$_lcl_first_prefix"
6557 _lcl_second_prefix_match=0
6561 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6564 while test "$_lcl_tmp" != ''; do
6565 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6566 if test "$_lcl_first_suffix" != ''; then
6567 _lcl_first_suffix="$_lcl_tmp"
6568 _lcl_first_rel="../$_lcl_first_rel"
6571 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6572 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6573 case ":$_lcl_result_tmp:" in
6574 ::) _lcl_result_tmp='.' ;;
6575 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6578 case "$_lcl_notation" in
6580 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6581 s,^[\\/],\\\\\\\\,'` ;;
6583 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6585 eval $_lcl_result_var='$_lcl_result_tmp'
6587 case ":$bin2data_dir:" in
6588 ::) bin2data_dir='.' ;;
6589 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6592 case $sdccconf_h_dir_separator in
6594 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6595 s,^[\\/],\\\\\\\\,'` ;;
6597 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6599 cat >>confdefs.h <<_ACEOF
6600 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6604 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6605 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6606 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6607 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6608 _lcl_receval="$_lcl_from"
6609 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6610 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6612 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6613 _lcl_receval_old="$_lcl_receval"
6614 eval _lcl_receval="\"$_lcl_receval\""
6616 echo "$_lcl_receval")`
6617 _lcl_receval="$_lcl_to"
6618 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6619 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6621 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6622 _lcl_receval_old="$_lcl_receval"
6623 eval _lcl_receval="\"$_lcl_receval\""
6625 echo "$_lcl_receval")`
6626 _lcl_notation="$_lcl_from$_lcl_to"
6627 case ":$_lcl_from:" in
6628 ::) _lcl_from='.' ;;
6629 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6634 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6635 s,^[\\/],\\\\\\\\,'` ;;
6637 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6639 case ":$_lcl_to:" in
6641 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6646 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6647 s,^[\\/],\\\\\\\\,'` ;;
6649 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6651 _lcl_common_prefix=''
6652 _lcl_second_prefix_match=''
6653 while test "$_lcl_second_prefix_match" != 0; do
6654 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6655 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6656 if test "$_lcl_second_prefix_match" != 0; then
6657 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6658 _lcl_common_prefix="$_lcl_first_prefix"
6660 _lcl_second_prefix_match=0
6664 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6667 while test "$_lcl_tmp" != ''; do
6668 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6669 if test "$_lcl_first_suffix" != ''; then
6670 _lcl_first_suffix="$_lcl_tmp"
6671 _lcl_first_rel="../$_lcl_first_rel"
6674 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6675 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6676 case ":$_lcl_result_tmp:" in
6677 ::) _lcl_result_tmp='.' ;;
6678 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6681 case "$_lcl_notation" in
6683 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6684 s,^[\\/],\\\\\\\\,'` ;;
6686 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6688 eval $_lcl_result_var='$_lcl_result_tmp'
6690 case ":$prefix2bin_dir:" in
6691 ::) prefix2bin_dir='.' ;;
6692 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6695 case $sdccconf_h_dir_separator in
6697 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6698 s,^[\\/],\\\\\\\\,'` ;;
6700 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6702 cat >>confdefs.h <<_ACEOF
6703 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6707 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6708 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6709 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6710 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6711 _lcl_receval="$_lcl_from"
6712 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6713 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6715 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6716 _lcl_receval_old="$_lcl_receval"
6717 eval _lcl_receval="\"$_lcl_receval\""
6719 echo "$_lcl_receval")`
6720 _lcl_receval="$_lcl_to"
6721 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6722 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6724 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6725 _lcl_receval_old="$_lcl_receval"
6726 eval _lcl_receval="\"$_lcl_receval\""
6728 echo "$_lcl_receval")`
6729 _lcl_notation="$_lcl_from$_lcl_to"
6730 case ":$_lcl_from:" in
6731 ::) _lcl_from='.' ;;
6732 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6737 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6738 s,^[\\/],\\\\\\\\,'` ;;
6740 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6742 case ":$_lcl_to:" in
6744 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6749 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6750 s,^[\\/],\\\\\\\\,'` ;;
6752 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6754 _lcl_common_prefix=''
6755 _lcl_second_prefix_match=''
6756 while test "$_lcl_second_prefix_match" != 0; do
6757 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6758 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6759 if test "$_lcl_second_prefix_match" != 0; then
6760 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6761 _lcl_common_prefix="$_lcl_first_prefix"
6763 _lcl_second_prefix_match=0
6767 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6770 while test "$_lcl_tmp" != ''; do
6771 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6772 if test "$_lcl_first_suffix" != ''; then
6773 _lcl_first_suffix="$_lcl_tmp"
6774 _lcl_first_rel="../$_lcl_first_rel"
6777 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6778 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6779 case ":$_lcl_result_tmp:" in
6780 ::) _lcl_result_tmp='.' ;;
6781 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6784 case "$_lcl_notation" in
6786 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6787 s,^[\\/],\\\\\\\\,'` ;;
6789 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6791 eval $_lcl_result_var='$_lcl_result_tmp'
6793 case ":$prefix2data_dir:" in
6794 ::) prefix2data_dir='.' ;;
6795 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6798 case $sdccconf_h_dir_separator in
6800 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6801 s,^[\\/],\\\\\\\\,'` ;;
6803 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6805 if test "${prefix2data_dir}" = "."; then
6806 # small optimization for Mingw32; otherwise Borut will complain ;-)
6807 cat >>confdefs.h <<_ACEOF
6808 #define PREFIX2DATA_DIR ""
6812 cat >>confdefs.h <<_ACEOF
6813 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6819 cat >>confdefs.h <<_ACEOF
6820 #define STD_LIB "libsdcc"
6823 cat >>confdefs.h <<_ACEOF
6824 #define STD_INT_LIB "libint"
6827 cat >>confdefs.h <<_ACEOF
6828 #define STD_LONG_LIB "liblong"
6831 cat >>confdefs.h <<_ACEOF
6832 #define STD_FP_LIB "libfloat"
6835 cat >>confdefs.h <<_ACEOF
6836 #define STD_DS390_LIB "libds390"
6839 cat >>confdefs.h <<_ACEOF
6840 #define STD_DS400_LIB "libds400"
6843 cat >>confdefs.h <<_ACEOF
6844 #define STD_XA51_LIB "libxa51"
6848 # SDCC runtime environment variables
6849 sdcc_dir_name="SDCC_HOME"
6850 cat >>confdefs.h <<_ACEOF
6851 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6855 sdcc_include_name="SDCC_INCLUDE"
6856 cat >>confdefs.h <<_ACEOF
6857 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6861 sdcc_lib_name="SDCC_LIB"
6862 cat >>confdefs.h <<_ACEOF
6863 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6867 # Port selection helper
6868 # ===========================================================================
6869 # macro AC_DO_ENABLER()
6870 # $1 used to access enable_$1, e.g. enable-doc
6871 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6875 # macro AC_DO_DISABLER()
6876 # $1 used to access disable_$1, e.g. ucsim
6877 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6881 # macro AC_DO_PORT($1, $2, $3, $4)
6882 # $1 used to access enable_$2_port, e.g. gbz80
6883 # $2 port name in ports.all and ports.build, e.g. z80
6884 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6888 # Now handle the port selection
6889 # ===========================================================================
6890 rm -f ports.all ports.build
6892 # Check whether --enable-mcs51-port was given.
6893 if test "${enable_mcs51_port+set}" = set; then
6894 enableval=$enable_mcs51_port;
6898 if test "$enable_mcs51_port" = "no"; then
6901 enable_mcs51_port="yes"
6905 cat >>confdefs.h <<_ACEOF
6906 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6911 echo mcs51 >>ports.all
6912 if test $OPT_DISABLE_MCS51 = 0; then
6913 echo mcs51 >>ports.build
6917 # Check whether --enable-gbz80-port was given.
6918 if test "${enable_gbz80_port+set}" = set; then
6919 enableval=$enable_gbz80_port;
6923 if test "$enable_gbz80_port" = "no"; then
6926 enable_gbz80_port="yes"
6930 cat >>confdefs.h <<_ACEOF
6931 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6936 echo z80 >>ports.all
6937 if test $OPT_DISABLE_GBZ80 = 0; then
6938 echo z80 >>ports.build
6942 # Check whether --enable-z80-port was given.
6943 if test "${enable_z80_port+set}" = set; then
6944 enableval=$enable_z80_port;
6948 if test "$enable_z80_port" = "no"; then
6951 enable_z80_port="yes"
6955 cat >>confdefs.h <<_ACEOF
6956 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6961 echo z80 >>ports.all
6962 if test $OPT_DISABLE_Z80 = 0; then
6963 echo z80 >>ports.build
6967 # Check whether --enable-avr-port was given.
6968 if test "${enable_avr_port+set}" = set; then
6969 enableval=$enable_avr_port;
6973 if test "$enable_avr_port" = "no"; then
6976 enable_avr_port="yes"
6980 cat >>confdefs.h <<_ACEOF
6981 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
6986 echo avr >>ports.all
6987 if test $OPT_DISABLE_AVR = 0; then
6988 echo avr >>ports.build
6992 # Check whether --enable-ds390-port was given.
6993 if test "${enable_ds390_port+set}" = set; then
6994 enableval=$enable_ds390_port;
6998 if test "$enable_ds390_port" = "no"; then
7001 enable_ds390_port="yes"
7005 cat >>confdefs.h <<_ACEOF
7006 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
7011 echo ds390 >>ports.all
7012 if test $OPT_DISABLE_DS390 = 0; then
7013 echo ds390 >>ports.build
7016 cat >>confdefs.h <<_ACEOF
7017 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
7021 # Check whether --enable-ds400-port was given.
7022 if test "${enable_ds400_port+set}" = set; then
7023 enableval=$enable_ds400_port;
7027 if test "$enable_ds400_port" = "no"; then
7030 enable_ds400_port="yes"
7034 cat >>confdefs.h <<_ACEOF
7035 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
7040 echo ds400 >>ports.all
7041 if test $OPT_DISABLE_DS400 = 0; then
7042 echo ds400 >>ports.build
7046 # Check whether --enable-pic-port was given.
7047 if test "${enable_pic_port+set}" = set; then
7048 enableval=$enable_pic_port;
7052 if test "$enable_pic_port" = "no"; then
7055 enable_pic_port="yes"
7059 cat >>confdefs.h <<_ACEOF
7060 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
7065 echo pic >>ports.all
7066 if test $OPT_DISABLE_PIC = 0; then
7067 echo pic >>ports.build
7071 # Check whether --enable-pic16-port was given.
7072 if test "${enable_pic16_port+set}" = set; then
7073 enableval=$enable_pic16_port;
7077 if test "$enable_pic16_port" = "no"; then
7080 enable_pic16_port="yes"
7084 cat >>confdefs.h <<_ACEOF
7085 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
7090 echo pic16 >>ports.all
7091 if test $OPT_DISABLE_PIC16 = 0; then
7092 echo pic16 >>ports.build
7096 # Check whether --enable-xa51-port was given.
7097 if test "${enable_xa51_port+set}" = set; then
7098 enableval=$enable_xa51_port;
7102 if test "$enable_xa51_port" = "no"; then
7105 enable_xa51_port="yes"
7109 cat >>confdefs.h <<_ACEOF
7110 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
7115 echo xa51 >>ports.all
7116 if test $OPT_DISABLE_XA51 = 0; then
7117 echo xa51 >>ports.build
7121 # Check whether --enable-hc08-port was given.
7122 if test "${enable_hc08_port+set}" = set; then
7123 enableval=$enable_hc08_port;
7127 if test "$enable_hc08_port" = "no"; then
7130 enable_hc08_port="yes"
7134 cat >>confdefs.h <<_ACEOF
7135 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
7140 echo hc08 >>ports.all
7141 if test $OPT_DISABLE_HC08 = 0; then
7142 echo hc08 >>ports.build
7147 # Check whether --enable-ucsim was given.
7148 if test "${enable_ucsim+set}" = set; then
7149 enableval=$enable_ucsim;
7153 arg1=`echo ucsim | sed s/-/_/`
7155 if test "`eval echo \\$enable_$arg1`" = "no"; then
7161 cat >>confdefs.h <<_ACEOF
7162 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
7168 # Check whether --enable-device-lib was given.
7169 if test "${enable_device_lib+set}" = set; then
7170 enableval=$enable_device_lib;
7174 arg1=`echo device-lib | sed s/-/_/`
7176 if test "`eval echo \\$enable_$arg1`" = "no"; then
7177 OPT_DISABLE_DEVICE_LIB=1
7179 OPT_DISABLE_DEVICE_LIB=0
7182 cat >>confdefs.h <<_ACEOF
7183 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
7189 # Check whether --enable-packihx was given.
7190 if test "${enable_packihx+set}" = set; then
7191 enableval=$enable_packihx;
7195 arg1=`echo packihx | sed s/-/_/`
7197 if test "`eval echo \\$enable_$arg1`" = "no"; then
7198 OPT_DISABLE_PACKIHX=1
7200 OPT_DISABLE_PACKIHX=0
7203 cat >>confdefs.h <<_ACEOF
7204 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
7210 # Check whether --enable-sdcpp was given.
7211 if test "${enable_sdcpp+set}" = set; then
7212 enableval=$enable_sdcpp;
7216 arg1=`echo sdcpp | sed s/-/_/`
7218 if test "`eval echo \\$enable_$arg1`" = "no"; then
7224 cat >>confdefs.h <<_ACEOF
7225 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
7231 # Check whether --enable-sdcdb was given.
7232 if test "${enable_sdcdb+set}" = set; then
7233 enableval=$enable_sdcdb;
7237 arg1=`echo sdcdb | sed s/-/_/`
7239 if test "`eval echo \\$enable_$arg1`" = "no"; then
7245 cat >>confdefs.h <<_ACEOF
7246 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
7253 # Check whether --enable-doc was given.
7254 if test "${enable_doc+set}" = set; then
7255 enableval=$enable_doc;
7259 if test "$enable_doc" = "yes"; then
7265 cat >>confdefs.h <<_ACEOF
7266 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
7271 if test $OPT_ENABLE_DOC = 1; then
7272 # Extract the first word of "lyx", so it can be a program name with args.
7273 set dummy lyx; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_prog_LYX+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 if test -n "$LYX"; then
7280 ac_cv_prog_LYX="$LYX" # Let the user override the test.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_prog_LYX="lyx"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
7301 if test -n "$LYX"; then
7302 { echo "$as_me:$LINENO: result: $LYX" >&5
7303 echo "${ECHO_T}$LYX" >&6; }
7305 { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7310 # Extract the first word of "latex2html", so it can be a program name with args.
7311 set dummy latex2html; ac_word=$2
7312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 if test -n "$LATEX2HTML"; then
7318 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_LATEX2HTML="latex2html"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7338 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7339 if test -n "$LATEX2HTML"; then
7340 { echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7341 echo "${ECHO_T}$LATEX2HTML" >&6; }
7343 { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7348 # Extract the first word of "pdflatex", so it can be a program name with args.
7349 set dummy pdflatex; ac_word=$2
7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 if test -n "$PDFLATEX"; then
7356 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365 ac_cv_prog_PDFLATEX="pdflatex"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7376 PDFLATEX=$ac_cv_prog_PDFLATEX
7377 if test -n "$PDFLATEX"; then
7378 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7379 echo "${ECHO_T}$PDFLATEX" >&6; }
7381 { echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6; }
7386 # Extract the first word of "pdfopt", so it can be a program name with args.
7387 set dummy pdfopt; ac_word=$2
7388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7390 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 if test -n "$PDFOPT"; then
7394 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_prog_PDFOPT="pdfopt"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7414 PDFOPT=$ac_cv_prog_PDFOPT
7415 if test -n "$PDFOPT"; then
7416 { echo "$as_me:$LINENO: result: $PDFOPT" >&5
7417 echo "${ECHO_T}$PDFOPT" >&6; }
7419 { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7424 # Extract the first word of "makeindex", so it can be a program name with args.
7425 set dummy makeindex; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 if test -n "$MAKEINDEX"; then
7432 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_prog_MAKEINDEX="makeindex"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7452 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7453 if test -n "$MAKEINDEX"; then
7454 { echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7455 echo "${ECHO_T}$MAKEINDEX" >&6; }
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7463 if test "$LYX" = ":"; then
7464 { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7465 echo "$as_me: error: Cannot find required program lyx." >&2;}
7466 { (exit 1); exit 1; }; }
7469 if test "$LATEX2HTML" = ":"; then
7470 { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7471 echo "$as_me: error: Cannot find required program latex2html." >&2;}
7472 { (exit 1); exit 1; }; }
7475 if test "$PDFLATEX" = ":"; then
7476 { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7477 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7478 { (exit 1); exit 1; }; }
7481 if test "$PDFOPT" = ":"; then
7482 { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7483 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7484 { (exit 1); exit 1; }; }
7487 if test "$MAKEINDEX" = ":"; then
7488 { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7489 echo "$as_me: error: Cannot find required program makeindex." >&2;}
7490 { (exit 1); exit 1; }; }
7496 # Check whether --enable-libgc was given.
7497 if test "${enable_libgc+set}" = set; then
7498 enableval=$enable_libgc;
7502 if test "$enable_libgc" = "yes"; then
7508 cat >>confdefs.h <<_ACEOF
7509 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7514 if test $OPT_ENABLE_LIBGC = 1; then
7516 { echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7517 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6; }
7518 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_check_lib_save_LIBS=$LIBS
7523 cat >conftest.$ac_ext <<_ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7530 /* Override any GCC internal prototype to avoid an error.
7531 Use char because int might match the return type of a GCC
7532 builtin and then its argument prototype would still apply. */
7540 return GC_malloc ();
7545 rm -f conftest.$ac_objext conftest$ac_exeext
7546 if { (ac_try="$ac_link"
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7552 (eval "$ac_link") 2>conftest.er1
7554 grep -v '^ *+' conftest.er1 >conftest.err
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && {
7559 test -z "$ac_c_werror_flag" ||
7560 test ! -s conftest.err
7561 } && test -s conftest$ac_exeext &&
7562 $as_test_x conftest$ac_exeext; then
7563 ac_cv_lib_gc_GC_malloc=yes
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 ac_cv_lib_gc_GC_malloc=no
7571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7572 conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7575 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7576 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6; }
7577 if test $ac_cv_lib_gc_GC_malloc = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define HAVE_LIBGC 1
7586 if test $ac_cv_lib_gc_GC_malloc = no; then
7587 { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7588 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7589 { (exit 1); exit 1; }; }
7594 uniq ports.all ports
7596 uniq ports.build ports
7597 mv ports ports.build
7599 # Generating output files
7600 # ===========================================================================
7601 test $OPT_DISABLE_SDCPP = 0 && subdirs="$subdirs support/cpp2"
7603 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
7605 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
7607 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
7609 ac_config_files="$ac_config_files doc/Makefile"
7612 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7615 if test $OPT_DISABLE_DS390 = 0; then
7616 ac_config_files="$ac_config_files src/ds390/Makefile"
7618 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7622 if test $OPT_DISABLE_DS400 = 0; then
7623 ac_config_files="$ac_config_files src/ds400/Makefile"
7625 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7629 if test $OPT_DISABLE_HC08 = 0; then
7630 ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7632 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7636 if test $OPT_DISABLE_MCS51 = 0; then
7637 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7639 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"
7643 if test $OPT_DISABLE_PIC = 0; then
7644 ac_config_files="$ac_config_files src/pic/Makefile"
7646 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic"
7649 if test $OPT_DISABLE_PIC16 = 0; then
7650 ac_config_files="$ac_config_files src/pic16/Makefile"
7652 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
7656 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7659 if test $OPT_DISABLE_Z80 = 0; then
7660 ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7662 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7666 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7669 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"
7671 cat >confcache <<\_ACEOF
7672 # This file is a shell script that caches the results of configure
7673 # tests run on this system so they can be shared between configure
7674 # scripts and configure runs, see configure's option --config-cache.
7675 # It is not useful on other systems. If it contains results you don't
7676 # want to keep, you may remove or edit it.
7678 # config.status only pays attention to the cache file if you give it
7679 # the --recheck option to rerun configure.
7681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7687 # The following way of writing the cache mishandles newlines in values,
7688 # but we know of no workaround that is simple, portable, and efficient.
7689 # So, we kill variables containing newlines.
7690 # Ultrix sh set writes to stderr and can't be redirected directly,
7691 # and sets the high bit in the cache file unless we assign to the vars.
7693 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7694 eval ac_val=\$$ac_var
7698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7702 _ | IFS | as_nl) ;; #(
7703 *) $as_unset $ac_var ;;
7709 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7710 *${as_nl}ac_space=\ *)
7711 # `set' does not quote correctly, so add quotes (double-quote
7712 # substitution turns \\\\ into \\, and sed turns \\ into \).
7715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7718 # `set' quotes correctly as required by POSIX, so do not add quotes.
7719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7733 if test -w "$cache_file"; then
7734 test "x$cache_file" != "x/dev/null" &&
7735 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7736 echo "$as_me: updating cache $cache_file" >&6;}
7737 cat confcache >$cache_file
7739 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7740 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7746 # Let make expand exec_prefix.
7747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7749 DEFS=-DHAVE_CONFIG_H
7753 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7754 # 1. Remove the extension, and $U if already installed.
7755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7756 ac_i=`echo "$ac_i" | sed "$ac_script"`
7757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7758 # will be set to the directory where LIBOBJS objects are built.
7759 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7760 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7764 LTLIBOBJS=$ac_ltlibobjs
7768 : ${CONFIG_STATUS=./config.status}
7769 ac_clean_files_save=$ac_clean_files
7770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7773 cat >$CONFIG_STATUS <<_ACEOF
7775 # Generated by $as_me.
7776 # Run this file to recreate the current configuration.
7777 # Compiler output produced by configure, useful for debugging
7778 # configure, is in config.log if it exists.
7783 SHELL=\${CONFIG_SHELL-$SHELL}
7786 cat >>$CONFIG_STATUS <<\_ACEOF
7787 ## --------------------- ##
7788 ## M4sh Initialization. ##
7789 ## --------------------- ##
7791 # Be more Bourne compatible
7792 DUALCASE=1; export DUALCASE # for MKS sh
7793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7796 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7797 # is contrary to our usage. Disable this feature.
7798 alias -g '${1+"$@"}'='"$@"'
7799 setopt NO_GLOB_SUBST
7801 case `(set -o) 2>/dev/null` in
7802 *posix*) set -o posix ;;
7811 # Avoid depending upon Character Ranges.
7812 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7813 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7814 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7815 as_cr_digits='0123456789'
7816 as_cr_alnum=$as_cr_Letters$as_cr_digits
7818 # The user is always right.
7819 if test "${PATH_SEPARATOR+set}" != set; then
7820 echo "#! /bin/sh" >conf$$.sh
7821 echo "exit 0" >>conf$$.sh
7823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7831 # Support unset when possible.
7832 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7840 # We need space, tab and new line, in precisely that order. Quoting is
7841 # there to prevent editors from complaining about space-tab.
7842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7843 # splitting by setting IFS to empty value.)
7848 # Find who we are. Look in the path if we contain no directory separator.
7850 *[\\/]* ) as_myself=$0 ;;
7851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7862 # We did not find ourselves, most probably we were run as `sh COMMAND'
7863 # in which case we are not to be found in the path.
7864 if test "x$as_myself" = x; then
7867 if test ! -f "$as_myself"; then
7868 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7869 { (exit 1); exit 1; }
7872 # Work around bugs in pre-3.0 UWIN ksh.
7873 for as_var in ENV MAIL MAILPATH
7874 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7882 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7883 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7884 LC_TELEPHONE LC_TIME
7886 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7887 eval $as_var=C; export $as_var
7889 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7893 # Required to use basename.
7894 if expr a : '\(a\)' >/dev/null 2>&1 &&
7895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7902 as_basename=basename
7908 # Name of the executable.
7909 as_me=`$as_basename -- "$0" ||
7910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7911 X"$0" : 'X\(//\)$' \| \
7912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7914 sed '/^.*\/\([^/][^/]*\)\/*$/{
7935 test "x$as_lineno_1" != "x$as_lineno_2" &&
7936 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7938 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7939 # uniformly replaced by the line number. The first 'sed' inserts a
7940 # line-number line after each line using $LINENO; the second 'sed'
7941 # does the real work. The second script uses 'N' to pair each
7942 # line-number line with the line containing $LINENO, and appends
7943 # trailing '-' during substitution so that $LINENO is not a special
7945 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7946 # scripts with optimization help from Paolo Bonzini. Blame Lee
7947 # E. McMahon (1931-1989) for sed's syntax. :-)
7959 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7963 chmod +x "$as_me.lineno" ||
7964 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7965 { (exit 1); exit 1; }; }
7967 # Don't try to exec as it changes $[0], causing all sort of problems
7968 # (the dirname of $[0] is not the place where we might find the
7969 # original and so on. Autoconf is especially sensitive to this).
7971 # Exit status is that of the last command.
7976 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7982 ECHO_C= ECHO_N= ECHO_T=
7985 case `echo 'x\c'` in
7986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7993 if expr a : '\(a\)' >/dev/null 2>&1 &&
7994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8000 rm -f conf$$ conf$$.exe conf$$.file
8001 if test -d conf$$.dir; then
8002 rm -f conf$$.dir/conf$$.file
8008 if ln -s conf$$.file conf$$ 2>/dev/null; then
8010 # ... but there are two gotchas:
8011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8013 # In both cases, we have to default to `cp -p'.
8014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8016 elif ln conf$$.file conf$$ 2>/dev/null; then
8021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8022 rmdir conf$$.dir 2>/dev/null
8024 if mkdir -p . 2>/dev/null; then
8027 test -d ./-p && rmdir ./-p
8031 if test -x / >/dev/null 2>&1; then
8034 if ls -dL / >/dev/null 2>&1; then
8041 if test -d "$1"; then
8047 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8048 ???[sx]*):;;*)false;;esac;fi
8052 as_executable_p=$as_test_x
8054 # Sed expression to map a string onto a valid CPP name.
8055 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8057 # Sed expression to map a string onto a valid variable name.
8058 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8063 # Save the log message, to keep $[0] and so on meaningful, and to
8064 # report actual input values of CONFIG_FILES etc. instead of their
8065 # values after options handling.
8067 This file was extended by $as_me, which was
8068 generated by GNU Autoconf 2.61. Invocation command line was
8070 CONFIG_FILES = $CONFIG_FILES
8071 CONFIG_HEADERS = $CONFIG_HEADERS
8072 CONFIG_LINKS = $CONFIG_LINKS
8073 CONFIG_COMMANDS = $CONFIG_COMMANDS
8076 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8081 cat >>$CONFIG_STATUS <<_ACEOF
8082 # Files that config.status was made for.
8083 config_files="$ac_config_files"
8084 config_headers="$ac_config_headers"
8088 cat >>$CONFIG_STATUS <<\_ACEOF
8090 \`$as_me' instantiates files from templates according to the
8091 current configuration.
8093 Usage: $0 [OPTIONS] [FILE]...
8095 -h, --help print this help, then exit
8096 -V, --version print version number and configuration settings, then exit
8097 -q, --quiet do not print progress messages
8098 -d, --debug don't remove temporary files
8099 --recheck update $as_me by reconfiguring in the same conditions
8100 --file=FILE[:TEMPLATE]
8101 instantiate the configuration file FILE
8102 --header=FILE[:TEMPLATE]
8103 instantiate the configuration header FILE
8105 Configuration files:
8108 Configuration headers:
8111 Report bugs to <bug-autoconf@gnu.org>."
8114 cat >>$CONFIG_STATUS <<_ACEOF
8117 configured by $0, generated by GNU Autoconf 2.61,
8118 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8120 Copyright (C) 2006 Free Software Foundation, Inc.
8121 This config.status script is free software; the Free Software Foundation
8122 gives unlimited permission to copy, distribute and modify it."
8129 cat >>$CONFIG_STATUS <<\_ACEOF
8130 # If no file are specified by the user, then we need to provide default
8131 # value. By we need to know if files were specified by the user.
8137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8149 # Handling of the options.
8150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8152 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8153 echo "$ac_cs_version"; exit ;;
8154 --debug | --debu | --deb | --de | --d | -d )
8156 --file | --fil | --fi | --f )
8158 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8159 ac_need_defaults=false;;
8160 --header | --heade | --head | --hea )
8162 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8163 ac_need_defaults=false;;
8165 # Conflict between --help and --header
8166 { echo "$as_me: error: ambiguous option: $1
8167 Try \`$0 --help' for more information." >&2
8168 { (exit 1); exit 1; }; };;
8169 --help | --hel | -h )
8170 echo "$ac_cs_usage"; exit ;;
8171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8176 -*) { echo "$as_me: error: unrecognized option: $1
8177 Try \`$0 --help' for more information." >&2
8178 { (exit 1); exit 1; }; } ;;
8180 *) ac_config_targets="$ac_config_targets $1"
8181 ac_need_defaults=false ;;
8187 ac_configure_extra_args=
8189 if $ac_cs_silent; then
8191 ac_configure_extra_args="$ac_configure_extra_args --silent"
8195 cat >>$CONFIG_STATUS <<_ACEOF
8196 if \$ac_cs_recheck; then
8197 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8200 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8204 cat >>$CONFIG_STATUS <<\_ACEOF
8208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8209 ## Running $as_me. ##
8215 cat >>$CONFIG_STATUS <<_ACEOF
8218 cat >>$CONFIG_STATUS <<\_ACEOF
8220 # Handling of arguments.
8221 for ac_config_target in $ac_config_targets
8223 case $ac_config_target in
8224 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8225 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8226 "src/avr/Makefile") CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
8227 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
8228 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
8229 "src/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
8230 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
8231 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
8232 "as/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8233 "as/link/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
8234 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
8235 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
8236 "as/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8237 "as/link/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
8238 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
8239 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
8240 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
8241 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
8242 "src/pic/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
8243 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
8244 "src/xa51/Makefile") CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
8245 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
8246 "as/Makefile") CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
8247 "as/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
8248 "as/link/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
8249 "as/link/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
8250 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
8251 "device/lib/gbz80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
8252 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8253 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8254 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8255 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8256 "support/librarian/Makefile") CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
8257 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
8258 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8259 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
8260 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8261 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8263 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8264 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8265 { (exit 1); exit 1; }; };;
8270 # If the user did not use the arguments to specify the items to instantiate,
8271 # then the envvar interface is used. Set only those that are not.
8272 # We use the long form for the default assignment because of an extremely
8273 # bizarre bug on SunOS 4.1.3.
8274 if $ac_need_defaults; then
8275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8279 # Have a temporary directory for convenience. Make it in the build tree
8280 # simply because there is no reason against having it here, and in addition,
8281 # creating and moving files from /tmp can sometimes cause problems.
8282 # Hook for its removal unless debugging.
8283 # Note that there is a small window in which the directory will not be cleaned:
8284 # after its creation but before its name has been assigned to `$tmp'.
8288 trap 'exit_status=$?
8289 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8291 trap '{ (exit 1); exit 1; }' 1 2 13 15
8293 # Create a (secure) tmp directory for tmp files.
8296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8297 test -n "$tmp" && test -d "$tmp"
8300 tmp=./conf$$-$RANDOM
8301 (umask 077 && mkdir "$tmp")
8304 echo "$me: cannot create a temporary directory in ." >&2
8305 { (exit 1); exit 1; }
8309 # Set up the sed scripts for CONFIG_FILES section.
8312 # No need to generate the scripts if there are no CONFIG_FILES.
8313 # This happens for instance when ./config.status config.h
8314 if test -n "$CONFIG_FILES"; then
8321 for ac_last_try in false false false false false :; do
8322 cat >conf$$subs.sed <<_ACEOF
8323 SHELL!$SHELL$ac_delim
8324 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8325 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8326 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8327 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8328 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8329 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8330 exec_prefix!$exec_prefix$ac_delim
8331 prefix!$prefix$ac_delim
8332 program_transform_name!$program_transform_name$ac_delim
8333 bindir!$bindir$ac_delim
8334 sbindir!$sbindir$ac_delim
8335 libexecdir!$libexecdir$ac_delim
8336 datarootdir!$datarootdir$ac_delim
8337 datadir!$datadir$ac_delim
8338 sysconfdir!$sysconfdir$ac_delim
8339 sharedstatedir!$sharedstatedir$ac_delim
8340 localstatedir!$localstatedir$ac_delim
8341 includedir!$includedir$ac_delim
8342 oldincludedir!$oldincludedir$ac_delim
8343 docdir!$docdir$ac_delim
8344 infodir!$infodir$ac_delim
8345 htmldir!$htmldir$ac_delim
8346 dvidir!$dvidir$ac_delim
8347 pdfdir!$pdfdir$ac_delim
8348 psdir!$psdir$ac_delim
8349 libdir!$libdir$ac_delim
8350 localedir!$localedir$ac_delim
8351 mandir!$mandir$ac_delim
8353 ECHO_C!$ECHO_C$ac_delim
8354 ECHO_N!$ECHO_N$ac_delim
8355 ECHO_T!$ECHO_T$ac_delim
8357 build_alias!$build_alias$ac_delim
8358 host_alias!$host_alias$ac_delim
8359 target_alias!$target_alias$ac_delim
8361 VERSION!$VERSION$ac_delim
8362 VERSIONHI!$VERSIONHI$ac_delim
8363 VERSIONLO!$VERSIONLO$ac_delim
8364 VERSIONP!$VERSIONP$ac_delim
8366 CFLAGS!$CFLAGS$ac_delim
8367 LDFLAGS!$LDFLAGS$ac_delim
8368 CPPFLAGS!$CPPFLAGS$ac_delim
8369 ac_ct_CC!$ac_ct_CC$ac_delim
8370 EXEEXT!$EXEEXT$ac_delim
8371 OBJEXT!$OBJEXT$ac_delim
8373 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8374 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8375 INSTALL_DATA!$INSTALL_DATA$ac_delim
8376 RANLIB!$RANLIB$ac_delim
8377 AUTOCONF!$AUTOCONF$ac_delim
8378 STRIP!$STRIP$ac_delim
8383 M_OR_MM!$M_OR_MM$ac_delim
8385 EGREP!$EGREP$ac_delim
8386 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
8387 include_dir_suffix!$include_dir_suffix$ac_delim
8388 lib_dir_suffix!$lib_dir_suffix$ac_delim
8389 OPT_DISABLE_MCS51!$OPT_DISABLE_MCS51$ac_delim
8390 OPT_DISABLE_GBZ80!$OPT_DISABLE_GBZ80$ac_delim
8391 OPT_DISABLE_Z80!$OPT_DISABLE_Z80$ac_delim
8392 OPT_DISABLE_AVR!$OPT_DISABLE_AVR$ac_delim
8393 OPT_DISABLE_DS390!$OPT_DISABLE_DS390$ac_delim
8394 OPT_DISABLE_DS400!$OPT_DISABLE_DS400$ac_delim
8395 OPT_DISABLE_PIC!$OPT_DISABLE_PIC$ac_delim
8396 OPT_DISABLE_PIC16!$OPT_DISABLE_PIC16$ac_delim
8397 OPT_DISABLE_XA51!$OPT_DISABLE_XA51$ac_delim
8398 OPT_DISABLE_HC08!$OPT_DISABLE_HC08$ac_delim
8399 OPT_DISABLE_UCSIM!$OPT_DISABLE_UCSIM$ac_delim
8400 OPT_DISABLE_DEVICE_LIB!$OPT_DISABLE_DEVICE_LIB$ac_delim
8401 OPT_DISABLE_PACKIHX!$OPT_DISABLE_PACKIHX$ac_delim
8402 OPT_DISABLE_SDCPP!$OPT_DISABLE_SDCPP$ac_delim
8403 OPT_DISABLE_SDCDB!$OPT_DISABLE_SDCDB$ac_delim
8404 OPT_ENABLE_DOC!$OPT_ENABLE_DOC$ac_delim
8406 LATEX2HTML!$LATEX2HTML$ac_delim
8407 PDFLATEX!$PDFLATEX$ac_delim
8408 PDFOPT!$PDFOPT$ac_delim
8409 MAKEINDEX!$MAKEINDEX$ac_delim
8410 OPT_ENABLE_LIBGC!$OPT_ENABLE_LIBGC$ac_delim
8411 subdirs!$subdirs$ac_delim
8412 LIBOBJS!$LIBOBJS$ac_delim
8413 LTLIBOBJS!$LTLIBOBJS$ac_delim
8416 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
8418 elif $ac_last_try; then
8419 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8420 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8421 { (exit 1); exit 1; }; }
8423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8427 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8428 if test -n "$ac_eof"; then
8429 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8430 ac_eof=`expr $ac_eof + 1`
8433 cat >>$CONFIG_STATUS <<_ACEOF
8434 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8438 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8439 s/^/s,@/; s/!/@,|#_!!_#|/
8442 s/'"$ac_delim"'$/,g/; t
8444 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8445 ' >>$CONFIG_STATUS <conf$$subs.sed
8446 rm -f conf$$subs.sed
8447 cat >>$CONFIG_STATUS <<_ACEOF
8454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8456 # trailing colons and then remove the whole line if VPATH becomes empty
8457 # (actually we leave an empty line to preserve line numbers).
8458 if test "x$srcdir" = x.; then
8459 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8463 s/^\([^=]*=[ ]*\):*/\1/
8469 cat >>$CONFIG_STATUS <<\_ACEOF
8470 fi # test -n "$CONFIG_FILES"
8473 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
8476 :[FHLC]) ac_mode=$ac_tag; continue;;
8478 case $ac_mode$ac_tag in
8480 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8481 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8482 { (exit 1); exit 1; }; };;
8483 :[FH]-) ac_tag=-:-;;
8484 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8501 -) ac_f="$tmp/stdin";;
8502 *) # Look for the file first in the build tree, then in the source tree
8503 # (if the path is not absolute). The absolute path cannot be DOS-style,
8504 # because $ac_f cannot contain `:'.
8508 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8510 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8511 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8512 { (exit 1); exit 1; }; };;
8514 ac_file_inputs="$ac_file_inputs $ac_f"
8517 # Let's still pretend it is `configure' which instantiates (i.e., don't
8518 # use $as_me), people would be surprised to read:
8519 # /* config.h. Generated by config.status. */
8520 configure_input="Generated from "`IFS=:
8521 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8522 if test x"$ac_file" != x-; then
8523 configure_input="$ac_file. $configure_input"
8524 { echo "$as_me:$LINENO: creating $ac_file" >&5
8525 echo "$as_me: creating $ac_file" >&6;}
8529 *:-:* | *:-) cat >"$tmp/stdin";;
8534 ac_dir=`$as_dirname -- "$ac_file" ||
8535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8536 X"$ac_file" : 'X\(//\)[^/]' \| \
8537 X"$ac_file" : 'X\(//\)$' \| \
8538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8559 -*) as_dir=./$as_dir;;
8561 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8565 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8566 *) as_qdir=$as_dir;;
8568 as_dirs="'$as_qdir' $as_dirs"
8569 as_dir=`$as_dirname -- "$as_dir" ||
8570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8571 X"$as_dir" : 'X\(//\)[^/]' \| \
8572 X"$as_dir" : 'X\(//\)$' \| \
8573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8592 test -d "$as_dir" && break
8594 test -z "$as_dirs" || eval "mkdir $as_dirs"
8595 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8596 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8597 { (exit 1); exit 1; }; }; }
8601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8604 # A ".." for each directory in $ac_dir_suffix.
8605 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8606 case $ac_top_builddir_sub in
8607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8611 ac_abs_top_builddir=$ac_pwd
8612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8613 # for backward compatibility:
8614 ac_top_builddir=$ac_top_build_prefix
8617 .) # We are building in place.
8619 ac_top_srcdir=$ac_top_builddir_sub
8620 ac_abs_top_srcdir=$ac_pwd ;;
8621 [\\/]* | ?:[\\/]* ) # Absolute name.
8622 ac_srcdir=$srcdir$ac_dir_suffix;
8623 ac_top_srcdir=$srcdir
8624 ac_abs_top_srcdir=$srcdir ;;
8626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8627 ac_top_srcdir=$ac_top_build_prefix$srcdir
8628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8645 cat >>$CONFIG_STATUS <<\_ACEOF
8646 # If the template does not know about datarootdir, expand it.
8647 # FIXME: This hack should be removed a few years after 2.60.
8648 ac_datarootdir_hack=; ac_datarootdir_seen=
8650 case `sed -n '/datarootdir/ {
8659 ' $ac_file_inputs` in
8660 *datarootdir*) ac_datarootdir_seen=yes;;
8661 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8662 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8663 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8665 cat >>$CONFIG_STATUS <<_ACEOF
8666 ac_datarootdir_hack='
8667 s&@datadir@&$datadir&g
8668 s&@docdir@&$docdir&g
8669 s&@infodir@&$infodir&g
8670 s&@localedir@&$localedir&g
8671 s&@mandir@&$mandir&g
8672 s&\\\${datarootdir}&$datarootdir&g' ;;
8676 # Neutralize VPATH when `$srcdir' = `.'.
8677 # Shell code in configure.ac might set extrasub.
8678 # FIXME: do we really want to maintain this feature?
8679 cat >>$CONFIG_STATUS <<_ACEOF
8683 cat >>$CONFIG_STATUS <<\_ACEOF
8685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8686 s&@configure_input@&$configure_input&;t t
8687 s&@top_builddir@&$ac_top_builddir_sub&;t t
8688 s&@srcdir@&$ac_srcdir&;t t
8689 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8690 s&@top_srcdir@&$ac_top_srcdir&;t t
8691 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8692 s&@builddir@&$ac_builddir&;t t
8693 s&@abs_builddir@&$ac_abs_builddir&;t t
8694 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8695 s&@INSTALL@&$ac_INSTALL&;t t
8696 $ac_datarootdir_hack
8697 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8700 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8702 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8703 which seems to be undefined. Please make sure it is defined." >&5
8704 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8705 which seems to be undefined. Please make sure it is defined." >&2;}
8709 -) cat "$tmp/out"; rm -f "$tmp/out";;
8710 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8719 # Transform confdefs.h into a sed script `conftest.defines', that
8720 # substitutes the proper values into config.h.in to produce config.h.
8721 rm -f conftest.defines conftest.tail
8722 # First, append a space to every undef/define line, to ease matching.
8723 echo 's/$/ /' >conftest.defines
8724 # Then, protect against being on the right side of a sed subst, or in
8725 # an unquoted here document, in config.status. If some macros were
8726 # called several times there might be several #defines for the same
8727 # symbol, which is useless. But do not sort them, since the last
8728 # AC_DEFINE must be honored.
8729 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8730 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8731 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8732 # PARAMS is the parameter list in the macro definition--in most cases, it's
8733 # just an empty string.
8734 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8735 ac_dB='\\)[ (].*,\\1define\\2'
8743 s/^[ ]*#[ ]*define[ ][ ]*//
8748 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8749 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8750 ' >>conftest.defines
8752 # Remove the space that was appended to ease matching.
8753 # Then replace #undef with comments. This is necessary, for
8754 # example, in the case of _POSIX_SOURCE, which is predefined and required
8755 # on some systems where configure will not decide to define it.
8756 # (The regexp can be short, since the line contains either #define or #undef.)
8758 s,^[ #]*u.*,/* & */,' >>conftest.defines
8760 # Break up conftest.defines:
8763 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8764 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8765 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8767 ac_in='$ac_file_inputs'
8768 ac_out='"$tmp/out1"'
8769 ac_nxt='"$tmp/out2"'
8773 # Write a here document:
8774 cat >>$CONFIG_STATUS <<_ACEOF
8775 # First, check the format of the line:
8776 cat >"\$tmp/defines.sed" <<\\CEOF
8777 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8778 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8782 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8784 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8785 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8786 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8787 grep . conftest.tail >/dev/null || break
8788 rm -f conftest.defines
8789 mv conftest.tail conftest.defines
8791 rm -f conftest.defines conftest.tail
8793 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8794 cat >>$CONFIG_STATUS <<\_ACEOF
8795 if test x"$ac_file" != x-; then
8796 echo "/* $configure_input */" >"$tmp/config.h"
8797 cat "$ac_result" >>"$tmp/config.h"
8798 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8799 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8800 echo "$as_me: $ac_file is unchanged" >&6;}
8803 mv "$tmp/config.h" $ac_file
8806 echo "/* $configure_input */"
8818 { (exit 0); exit 0; }
8820 chmod +x $CONFIG_STATUS
8821 ac_clean_files=$ac_clean_files_save
8824 # configure is writing to config.log, and then calls config.status.
8825 # config.status does its own redirection, appending to config.log.
8826 # Unfortunately, on DOS this fails, as config.log is still kept open
8827 # by configure, so config.status won't be able to write to it; its
8828 # output is simply discarded. So we exec the FD to /dev/null,
8829 # effectively closing config.log, so it can be properly (re)opened and
8830 # appended to by config.status. When coming back to configure, we
8831 # need to make the FD available again.
8832 if test "$no_create" != yes; then
8834 ac_config_status_args=
8835 test "$silent" = yes &&
8836 ac_config_status_args="$ac_config_status_args --quiet"
8838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8841 # would make configure fail if this is the last instruction.
8842 $ac_cs_success || { (exit 1); exit 1; }
8846 # CONFIG_SUBDIRS section.
8848 if test "$no_recursion" != yes; then
8850 # Remove --cache-file and --srcdir arguments so they do not pile up.
8851 ac_sub_configure_args=
8853 eval "set x $ac_configure_args"
8857 if test -n "$ac_prev"; then
8862 -cache-file | --cache-file | --cache-fil | --cache-fi \
8863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8864 ac_prev=cache_file ;;
8865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8869 --config-cache | -C)
8871 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8873 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8875 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8877 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8881 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8883 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8887 # Always prepend --prefix to ensure using the same prefix
8888 # in subdir configurations.
8889 ac_arg="--prefix=$prefix"
8891 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8893 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8896 if test "$silent" = yes; then
8897 ac_sub_configure_args="--silent $ac_sub_configure_args"
8901 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8903 # Do not complain, so a configure script can configure whichever
8904 # parts of a large source tree are present.
8905 test -d "$srcdir/$ac_dir" || continue
8907 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8908 echo "$as_me:$LINENO: $ac_msg" >&5
8912 -*) as_dir=./$as_dir;;
8914 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8918 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8919 *) as_qdir=$as_dir;;
8921 as_dirs="'$as_qdir' $as_dirs"
8922 as_dir=`$as_dirname -- "$as_dir" ||
8923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8924 X"$as_dir" : 'X\(//\)[^/]' \| \
8925 X"$as_dir" : 'X\(//\)$' \| \
8926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8945 test -d "$as_dir" && break
8947 test -z "$as_dirs" || eval "mkdir $as_dirs"
8948 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8949 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8950 { (exit 1); exit 1; }; }; }
8954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8957 # A ".." for each directory in $ac_dir_suffix.
8958 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8959 case $ac_top_builddir_sub in
8960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8964 ac_abs_top_builddir=$ac_pwd
8965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8966 # for backward compatibility:
8967 ac_top_builddir=$ac_top_build_prefix
8970 .) # We are building in place.
8972 ac_top_srcdir=$ac_top_builddir_sub
8973 ac_abs_top_srcdir=$ac_pwd ;;
8974 [\\/]* | ?:[\\/]* ) # Absolute name.
8975 ac_srcdir=$srcdir$ac_dir_suffix;
8976 ac_top_srcdir=$srcdir
8977 ac_abs_top_srcdir=$srcdir ;;
8979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8980 ac_top_srcdir=$ac_top_build_prefix$srcdir
8981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8988 # Check for guested configure; otherwise get Cygnus style configure.
8989 if test -f "$ac_srcdir/configure.gnu"; then
8990 ac_sub_configure=$ac_srcdir/configure.gnu
8991 elif test -f "$ac_srcdir/configure"; then
8992 ac_sub_configure=$ac_srcdir/configure
8993 elif test -f "$ac_srcdir/configure.in"; then
8994 # This should be Cygnus configure.
8995 ac_sub_configure=$ac_aux_dir/configure
8997 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8998 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9002 # The recursion is here.
9003 if test -n "$ac_sub_configure"; then
9004 # Make the cache file name correct relative to the subdirectory.
9006 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9008 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9011 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9012 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9013 # The eval makes quoting arguments work.
9014 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9015 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9016 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9017 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9018 { (exit 1); exit 1; }; }
9026 # I found no better place
9029 # Prepare result message
9030 # ======================
9032 # In the C-header we need \\ as dir-separator, but in the message only \
9033 dirch=${sdccconf_h_dir_separator}
9034 test ${dirch} = '\\' && dirch='\'
9036 # calc friendly strings
9038 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
9039 case ":$binPath:" in
9041 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
9046 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9047 s,^[\\/],\\\\\\\\,'` ;;
9049 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9051 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
9054 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9055 case ":$incPath1:" in
9057 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
9062 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9063 s,^[\\/],\\\\\\\\,'` ;;
9065 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9067 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
9070 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9071 case ":$incPath2:" in
9073 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
9078 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9079 s,^[\\/],\\\\\\\\,'` ;;
9081 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9083 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
9086 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9087 case ":$incPath3:" in
9089 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
9094 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9095 s,^[\\/],\\\\\\\\,'` ;;
9097 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9099 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
9102 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9103 case ":$libPath1:" in
9105 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
9110 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9111 s,^[\\/],\\\\\\\\,'` ;;
9113 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9115 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
9118 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9119 case ":$libPath2:" in
9121 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
9126 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9127 s,^[\\/],\\\\\\\\,'` ;;
9129 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9131 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
9134 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9135 case ":$libPath3:" in
9137 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
9142 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9143 s,^[\\/],\\\\\\\\,'` ;;
9145 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9147 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
9150 { echo "$as_me:$LINENO: result:
9151 sdcc ${VERSION} is now configured for
9153 Build: ${build_alias}
9155 Source directory: ${srcdir}
9160 avr ${enable_avr_port}
9161 ds390 ${enable_ds390_port}
9162 ds400 ${enable_ds400_port}
9163 gbz80 ${enable_gbz80_port}
9164 hc08 ${enable_hc08_port}
9165 mcs51 ${enable_mcs51_port}
9166 pic ${enable_pic_port}
9167 pic16 ${enable_pic16_port}
9168 xa51 ${enable_xa51_port}
9169 z80 ${enable_z80_port}
9171 Disable packihx: ${OPT_DISABLE_PACKIHX}
9172 Disable ucsim: ${OPT_DISABLE_UCSIM}
9173 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9174 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9175 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9176 Enable documentation: ${OPT_ENABLE_DOC}
9177 Enable libgc: ${OPT_ENABLE_LIBGC}
9180 binary files: ${exec_prefix}
9181 include files: ${datadir}/${include_dir_suffix}
9182 library files: ${datadir}/${lib_dir_suffix}
9183 documentation: ${docdir}
9187 datarootdir: ${datarootdir}
9189 Search paths (incomplete, see manual for all search paths):
9190 binary files: \$SDCC_HOME${binPath}
9191 include files: ${incPath1}
9192 path(argv[0])${incPath2}
9194 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9195 path(argv[0])${libPath2}${dirch}<model>
9196 ${libPath3}${dirch}<model>
9199 sdcc ${VERSION} is now configured for
9201 Build: ${build_alias}
9203 Source directory: ${srcdir}
9208 avr ${enable_avr_port}
9209 ds390 ${enable_ds390_port}
9210 ds400 ${enable_ds400_port}
9211 gbz80 ${enable_gbz80_port}
9212 hc08 ${enable_hc08_port}
9213 mcs51 ${enable_mcs51_port}
9214 pic ${enable_pic_port}
9215 pic16 ${enable_pic16_port}
9216 xa51 ${enable_xa51_port}
9217 z80 ${enable_z80_port}
9219 Disable packihx: ${OPT_DISABLE_PACKIHX}
9220 Disable ucsim: ${OPT_DISABLE_UCSIM}
9221 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9222 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9223 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9224 Enable documentation: ${OPT_ENABLE_DOC}
9225 Enable libgc: ${OPT_ENABLE_LIBGC}
9228 binary files: ${exec_prefix}
9229 include files: ${datadir}/${include_dir_suffix}
9230 library files: ${datadir}/${lib_dir_suffix}
9231 documentation: ${docdir}
9235 datarootdir: ${datarootdir}
9237 Search paths (incomplete, see manual for all search paths):
9238 binary files: \$SDCC_HOME${binPath}
9239 include files: ${incPath1}
9240 path(argv[0])${incPath2}
9242 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9243 path(argv[0])${libPath2}${dirch}<model>
9244 ${libPath3}${dirch}<model>
9246 # End of configure/configure.in