2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sdcc 2.7.1.
5 # Report bugs to <sdcc-devel@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='sdcc'
577 PACKAGE_VERSION='2.7.1'
578 PACKAGE_STRING='sdcc 2.7.1'
579 PACKAGE_BUGREPORT='sdcc-devel@lists.sourceforge.net'
581 ac_unique_file="Makefile.in"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
681 sdccconf_h_dir_separator
695 OPT_DISABLE_DEVICE_LIB
710 ac_precious_vars='build_alias
719 sdccconf_h_dir_separator
723 ac_subdirs_all='support/cpp2
730 # Initialize some variables set by options.
732 ac_init_version=false
733 # The variables have the same names as the options, with
734 # dashes changed to underlines.
742 program_transform_name=s,x,x,
750 # Installation directory options.
751 # These are left unexpanded so users can "make install exec_prefix=/foo"
752 # and all the variables that are supposed to be based on exec_prefix
753 # by default will actually change.
754 # Use braces instead of parens because sh, perl, etc. also accept them.
755 # (The list follows the same order as the GNU Coding Standards.)
756 bindir='${exec_prefix}/bin'
757 sbindir='${exec_prefix}/sbin'
758 libexecdir='${exec_prefix}/libexec'
759 datarootdir='${prefix}/share'
760 datadir='${datarootdir}'
761 sysconfdir='${prefix}/etc'
762 sharedstatedir='${prefix}/com'
763 localstatedir='${prefix}/var'
764 includedir='${prefix}/include'
765 oldincludedir='/usr/include'
766 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
767 infodir='${datarootdir}/info'
772 libdir='${exec_prefix}/lib'
773 localedir='${datarootdir}/locale'
774 mandir='${datarootdir}/man'
780 # If the previous option needs an argument, assign it.
781 if test -n "$ac_prev"; then
782 eval $ac_prev=\$ac_option
788 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792 # Accept the important Cygnus configure options, so we can diagnose typos.
794 case $ac_dashdash$ac_option in
798 -bindir | --bindir | --bindi | --bind | --bin | --bi)
800 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 -build | --build | --buil | --bui | --bu)
804 ac_prev=build_alias ;;
805 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
806 build_alias=$ac_optarg ;;
808 -cache-file | --cache-file | --cache-fil | --cache-fi \
809 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
810 ac_prev=cache_file ;;
811 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
812 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
813 cache_file=$ac_optarg ;;
816 cache_file=config.cache ;;
818 -datadir | --datadir | --datadi | --datad)
820 -datadir=* | --datadir=* | --datadi=* | --datad=*)
821 datadir=$ac_optarg ;;
823 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
824 | --dataroo | --dataro | --datar)
825 ac_prev=datarootdir ;;
826 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
827 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
828 datarootdir=$ac_optarg ;;
830 -disable-* | --disable-*)
831 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
834 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
835 { (exit 1); exit 1; }; }
836 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
837 eval enable_$ac_feature=no ;;
839 -docdir | --docdir | --docdi | --doc | --do)
841 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 -enable-* | --enable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_$ac_feature=\$ac_optarg ;;
858 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860 | --exec | --exe | --ex)
861 ac_prev=exec_prefix ;;
862 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864 | --exec=* | --exe=* | --ex=*)
865 exec_prefix=$ac_optarg ;;
867 -gas | --gas | --ga | --g)
868 # Obsolete; use --with-gas.
871 -help | --help | --hel | --he | -h)
873 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874 ac_init_help=recursive ;;
875 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876 ac_init_help=short ;;
878 -host | --host | --hos | --ho)
879 ac_prev=host_alias ;;
880 -host=* | --host=* | --hos=* | --ho=*)
881 host_alias=$ac_optarg ;;
883 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887 htmldir=$ac_optarg ;;
889 -includedir | --includedir | --includedi | --included | --include \
890 | --includ | --inclu | --incl | --inc)
891 ac_prev=includedir ;;
892 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893 | --includ=* | --inclu=* | --incl=* | --inc=*)
894 includedir=$ac_optarg ;;
896 -infodir | --infodir | --infodi | --infod | --info | --inf)
898 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899 infodir=$ac_optarg ;;
901 -libdir | --libdir | --libdi | --libd)
903 -libdir=* | --libdir=* | --libdi=* | --libd=*)
906 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907 | --libexe | --libex | --libe)
908 ac_prev=libexecdir ;;
909 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910 | --libexe=* | --libex=* | --libe=*)
911 libexecdir=$ac_optarg ;;
913 -localedir | --localedir | --localedi | --localed | --locale)
915 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916 localedir=$ac_optarg ;;
918 -localstatedir | --localstatedir | --localstatedi | --localstated \
919 | --localstate | --localstat | --localsta | --localst | --locals)
920 ac_prev=localstatedir ;;
921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
922 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
923 localstatedir=$ac_optarg ;;
925 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931 # Obsolete; use --without-fp.
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c | -n)
938 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944 | --oldin | --oldi | --old | --ol | --o)
945 ac_prev=oldincludedir ;;
946 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949 oldincludedir=$ac_optarg ;;
951 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956 -program-prefix | --program-prefix | --program-prefi | --program-pref \
957 | --program-pre | --program-pr | --program-p)
958 ac_prev=program_prefix ;;
959 -program-prefix=* | --program-prefix=* | --program-prefi=* \
960 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961 program_prefix=$ac_optarg ;;
963 -program-suffix | --program-suffix | --program-suffi | --program-suff \
964 | --program-suf | --program-su | --program-s)
965 ac_prev=program_suffix ;;
966 -program-suffix=* | --program-suffix=* | --program-suffi=* \
967 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968 program_suffix=$ac_optarg ;;
970 -program-transform-name | --program-transform-name \
971 | --program-transform-nam | --program-transform-na \
972 | --program-transform-n | --program-transform- \
973 | --program-transform | --program-transfor \
974 | --program-transfo | --program-transf \
975 | --program-trans | --program-tran \
976 | --progr-tra | --program-tr | --program-t)
977 ac_prev=program_transform_name ;;
978 -program-transform-name=* | --program-transform-name=* \
979 | --program-transform-nam=* | --program-transform-na=* \
980 | --program-transform-n=* | --program-transform-=* \
981 | --program-transform=* | --program-transfor=* \
982 | --program-transfo=* | --program-transf=* \
983 | --program-trans=* | --program-tran=* \
984 | --progr-tra=* | --program-tr=* | --program-t=*)
985 program_transform_name=$ac_optarg ;;
987 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992 -psdir | --psdir | --psdi | --psd | --ps)
994 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998 | -silent | --silent | --silen | --sile | --sil)
1001 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005 sbindir=$ac_optarg ;;
1007 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009 | --sharedst | --shareds | --shared | --share | --shar \
1011 ac_prev=sharedstatedir ;;
1012 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016 sharedstatedir=$ac_optarg ;;
1018 -site | --site | --sit)
1020 -site=* | --site=* | --sit=*)
1023 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026 srcdir=$ac_optarg ;;
1028 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029 | --syscon | --sysco | --sysc | --sys | --sy)
1030 ac_prev=sysconfdir ;;
1031 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033 sysconfdir=$ac_optarg ;;
1035 -target | --target | --targe | --targ | --tar | --ta | --t)
1036 ac_prev=target_alias ;;
1037 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038 target_alias=$ac_optarg ;;
1040 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 -version | --version | --versio | --versi | --vers | -V)
1044 ac_init_version=: ;;
1047 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 { echo "$as_me: error: invalid package name: $ac_package" >&2
1051 { (exit 1); exit 1; }; }
1052 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1053 eval with_$ac_package=\$ac_optarg ;;
1055 -without-* | --without-*)
1056 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059 { echo "$as_me: error: invalid package name: $ac_package" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1062 eval with_$ac_package=no ;;
1065 # Obsolete; use --with-x.
1068 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1069 | --x-incl | --x-inc | --x-in | --x-i)
1070 ac_prev=x_includes ;;
1071 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1072 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1073 x_includes=$ac_optarg ;;
1075 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1076 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1077 ac_prev=x_libraries ;;
1078 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1079 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1080 x_libraries=$ac_optarg ;;
1082 -*) { echo "$as_me: error: unrecognized option: $ac_option
1083 Try \`$0 --help' for more information." >&2
1084 { (exit 1); exit 1; }; }
1088 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1091 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1092 { (exit 1); exit 1; }; }
1093 eval $ac_envvar=\$ac_optarg
1094 export $ac_envvar ;;
1097 # FIXME: should be removed in autoconf 3.0.
1098 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1099 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1101 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107 if test -n "$ac_prev"; then
1108 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1109 { echo "$as_me: error: missing argument to $ac_option" >&2
1110 { (exit 1); exit 1; }; }
1113 # Be sure to have absolute directory names.
1114 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1115 datadir sysconfdir sharedstatedir localstatedir includedir \
1116 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1117 libdir localedir mandir
1119 eval ac_val=\$$ac_var
1121 [\\/$]* | ?:[\\/]* ) continue;;
1122 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1125 { (exit 1); exit 1; }; }
1128 # There might be people who depend on the old broken behavior: `$host'
1129 # used to hold the argument of --host etc.
1130 # FIXME: To remove some day.
1133 target=$target_alias
1135 # FIXME: To remove some day.
1136 if test "x$host_alias" != x; then
1137 if test "x$build_alias" = x; then
1138 cross_compiling=maybe
1139 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1140 If a cross compiler is detected then cross compile mode will be used." >&2
1141 elif test "x$build_alias" != "x$host_alias"; then
1147 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149 test "$silent" = yes && exec 6>/dev/null
1152 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1153 ac_ls_di=`ls -di .` &&
1154 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1155 { echo "$as_me: error: Working directory cannot be determined" >&2
1156 { (exit 1); exit 1; }; }
1157 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158 { echo "$as_me: error: pwd does not report name of working directory" >&2
1159 { (exit 1); exit 1; }; }
1162 # Find the source files, if location was not specified.
1163 if test -z "$srcdir"; then
1164 ac_srcdir_defaulted=yes
1165 # Try the directory containing this script, then the parent directory.
1166 ac_confdir=`$as_dirname -- "$0" ||
1167 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1168 X"$0" : 'X\(//\)[^/]' \| \
1169 X"$0" : 'X\(//\)$' \| \
1170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1194 ac_srcdir_defaulted=no
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1198 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1199 { (exit 1); exit 1; }; }
1201 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1204 { (exit 1); exit 1; }; }
1206 # When building in place, set srcdir=.
1207 if test "$ac_abs_confdir" = "$ac_pwd"; then
1210 # Remove unnecessary trailing slashes from srcdir.
1211 # Double slashes in file names in object file debugging info
1212 # mess up M-x gdb in Emacs.
1214 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216 for ac_var in $ac_precious_vars; do
1217 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1218 eval ac_env_${ac_var}_value=\$${ac_var}
1219 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224 # Report the --help message.
1226 if test "$ac_init_help" = "long"; then
1227 # Omit some internal or obsolete options to make the list less imposing.
1228 # This message is too long to be a string in the A/UX 3.1 sh.
1230 \`configure' configures sdcc 2.7.1 to adapt to many kinds of systems.
1232 Usage: $0 [OPTION]... [VAR=VALUE]...
1234 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1235 VAR=VALUE. See below for descriptions of some of the useful variables.
1237 Defaults for the options are specified in brackets.
1240 -h, --help display this help and exit
1241 --help=short display options specific to this package
1242 --help=recursive display the short help of all the included packages
1243 -V, --version display version information and exit
1244 -q, --quiet, --silent do not print \`checking...' messages
1245 --cache-file=FILE cache test results in FILE [disabled]
1246 -C, --config-cache alias for \`--cache-file=config.cache'
1247 -n, --no-create do not create output files
1248 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1250 Installation directories:
1251 --prefix=PREFIX install architecture-independent files in PREFIX
1252 [$ac_default_prefix]
1253 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1256 By default, \`make install' will install all the files in
1257 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1258 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1259 for instance \`--prefix=\$HOME'.
1261 For better control, use the options below.
1263 Fine tuning of the installation directories:
1264 --bindir=DIR user executables [EPREFIX/bin]
1265 --sbindir=DIR system admin executables [EPREFIX/sbin]
1266 --libexecdir=DIR program executables [EPREFIX/libexec]
1267 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1268 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1269 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1270 --libdir=DIR object code libraries [EPREFIX/lib]
1271 --includedir=DIR C header files [PREFIX/include]
1272 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1273 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1274 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1275 --infodir=DIR info documentation [DATAROOTDIR/info]
1276 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1277 --mandir=DIR man documentation [DATAROOTDIR/man]
1278 --docdir=DIR documentation root [DATAROOTDIR/doc/sdcc]
1279 --htmldir=DIR html documentation [DOCDIR]
1280 --dvidir=DIR dvi documentation [DOCDIR]
1281 --pdfdir=DIR pdf documentation [DOCDIR]
1282 --psdir=DIR ps documentation [DOCDIR]
1288 --program-prefix=PREFIX prepend PREFIX to installed program names
1289 --program-suffix=SUFFIX append SUFFIX to installed program names
1290 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1294 if test -n "$ac_init_help"; then
1295 case $ac_init_help in
1296 short | recursive ) echo "Configuration of sdcc 2.7.1:";;
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --disable-mcs51-port Excludes the Intel mcs51 port
1304 --disable-gbz80-port Excludes the Gameboy gbz80 port
1305 --disable-z80-port Excludes the z80 port
1306 --disable-avr-port Excludes the AVR port
1307 --disable-ds390-port Excludes the DS390 port
1308 --disable-ds400-port Excludes the DS400 port
1309 --disable-pic-port Excludes the PIC port
1310 --disable-pic16-port Excludes the PIC16 port
1311 --disable-xa51-port Excludes the XA51 port
1312 --disable-hc08-port Excludes the HC08 port
1313 --disable-ucsim Disables configuring and building of ucsim
1314 --disable-device-lib Disables building device libraries
1315 --disable-packihx Disables building packihx
1316 --disable-sdcpp Disables building sdcpp
1317 --disable-sdcdb Disables building sdcdb
1318 --enable-doc Enables building the documentation
1319 --enable-libgc Use the Bohem memory allocator. Lower runtime
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
1331 sdccconf_h_dir_separator
1332 needed in sdccconf.h: either "/" (default) or "\\"
1334 appended to datadir to define SDCC's include directory
1336 appended to datadir to define SDCC's library root directory
1337 docdir documentation installation directory
1339 Use these variables to override the choices made by `configure' or to help
1340 it to find libraries and programs with nonstandard names/locations.
1342 Report bugs to <sdcc-devel@lists.sourceforge.net>.
1347 if test "$ac_init_help" = "recursive"; then
1348 # If there are subdirs, report their specific --help.
1349 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1350 test -d "$ac_dir" || continue
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1357 # A ".." for each directory in $ac_dir_suffix.
1358 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1359 case $ac_top_builddir_sub in
1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1370 .) # We are building in place.
1372 ac_top_srcdir=$ac_top_builddir_sub
1373 ac_abs_top_srcdir=$ac_pwd ;;
1374 [\\/]* | ?:[\\/]* ) # Absolute name.
1375 ac_srcdir=$srcdir$ac_dir_suffix;
1376 ac_top_srcdir=$srcdir
1377 ac_abs_top_srcdir=$srcdir ;;
1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380 ac_top_srcdir=$ac_top_build_prefix$srcdir
1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385 cd "$ac_dir" || { ac_status=$?; continue; }
1386 # Check for guested configure.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1394 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1403 sdcc configure 2.7.1
1404 generated by GNU Autoconf 2.61
1406 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1407 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1413 cat >config.log <<_ACEOF
1414 This file contains any messages produced by compilers while
1415 running configure, to aid debugging if configure makes a mistake.
1417 It was created by sdcc $as_me 2.7.1, which was
1418 generated by GNU Autoconf 2.61. Invocation command line was
1430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir=.
1454 echo "PATH: $as_dir"
1470 # Keep a trace of the command line.
1471 # Strip out --no-create and --no-recursion so they do not pile up.
1472 # Strip out --silent because we don't want to record it for future runs.
1473 # Also quote any args containing shell meta-characters.
1474 # Make two passes to allow for proper duplicate-argument suppression.
1478 ac_must_keep_next=false
1484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1486 | -silent | --silent | --silen | --sile | --sil)
1489 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1494 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1495 if test $ac_must_keep_next = true; then
1496 ac_must_keep_next=false # Got value, back to normal.
1499 *=* | --config-cache | -C | -disable-* | --disable-* \
1500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1502 | -with-* | --with-* | -without-* | --without-* | --x)
1503 case "$ac_configure_args0 " in
1504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1507 -* ) ac_must_keep_next=true ;;
1510 ac_configure_args="$ac_configure_args '$ac_arg'"
1515 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1516 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1518 # When interrupted or exit'd, cleanup temporary files, and complete
1519 # config.log. We remove comments because anyway the quotes in there
1520 # would cause problems or look ugly.
1521 # WARNING: Use '\'' to represent an apostrophe within the trap.
1522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1523 trap 'exit_status=$?
1524 # Save into config.log some information that might help in debugging.
1529 ## ---------------- ##
1530 ## Cache variables. ##
1531 ## ---------------- ##
1534 # The following way of writing the cache mishandles newlines in values,
1536 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1537 eval ac_val=\$$ac_var
1541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1542 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1545 _ | IFS | as_nl) ;; #(
1546 *) $as_unset $ac_var ;;
1551 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1552 *${as_nl}ac_space=\ *)
1554 "s/'\''/'\''\\\\'\'''\''/g;
1555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1566 ## ----------------- ##
1567 ## Output variables. ##
1568 ## ----------------- ##
1571 for ac_var in $ac_subst_vars
1573 eval ac_val=\$$ac_var
1575 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 echo "$ac_var='\''$ac_val'\''"
1581 if test -n "$ac_subst_files"; then
1583 ## ------------------- ##
1584 ## File substitutions. ##
1585 ## ------------------- ##
1588 for ac_var in $ac_subst_files
1590 eval ac_val=\$$ac_var
1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594 echo "$ac_var='\''$ac_val'\''"
1599 if test -s confdefs.h; then
1609 test "$ac_signal" != 0 &&
1610 echo "$as_me: caught signal $ac_signal"
1611 echo "$as_me: exit $exit_status"
1613 rm -f core *.core core.conftest.* &&
1614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1617 for ac_signal in 1 2 13 15; do
1618 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1623 rm -f -r conftest* confdefs.h
1625 # Predefined preprocessor variables.
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_NAME "$PACKAGE_NAME"
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1637 cat >>confdefs.h <<_ACEOF
1638 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1642 cat >>confdefs.h <<_ACEOF
1643 #define PACKAGE_STRING "$PACKAGE_STRING"
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1652 # Let the site file select an alternate cache file if it wants to.
1653 # Prefer explicitly selected file to automatically selected ones.
1654 if test -n "$CONFIG_SITE"; then
1655 set x "$CONFIG_SITE"
1656 elif test "x$prefix" != xNONE; then
1657 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1659 set x "$ac_default_prefix/share/config.site" \
1660 "$ac_default_prefix/etc/config.site"
1665 if test -r "$ac_site_file"; then
1666 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1667 echo "$as_me: loading site script $ac_site_file" >&6;}
1668 sed 's/^/| /' "$ac_site_file" >&5
1673 if test -r "$cache_file"; then
1674 # Some versions of bash will fail to source /dev/null (special
1675 # files actually), so we avoid doing that.
1676 if test -f "$cache_file"; then
1677 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1678 echo "$as_me: loading cache $cache_file" >&6;}
1680 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1681 *) . "./$cache_file";;
1685 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1686 echo "$as_me: creating cache $cache_file" >&6;}
1690 # Check that the precious variables saved in the cache have kept the same
1692 ac_cache_corrupted=false
1693 for ac_var in $ac_precious_vars; do
1694 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1695 eval ac_new_set=\$ac_env_${ac_var}_set
1696 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1697 eval ac_new_val=\$ac_env_${ac_var}_value
1698 case $ac_old_set,$ac_new_set in
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1704 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1705 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1706 ac_cache_corrupted=: ;;
1709 if test "x$ac_old_val" != "x$ac_new_val"; then
1710 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1711 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1712 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1713 echo "$as_me: former value: $ac_old_val" >&2;}
1714 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1715 echo "$as_me: current value: $ac_new_val" >&2;}
1716 ac_cache_corrupted=:
1719 # Pass precious variables to config.status.
1720 if test "$ac_new_set" = set; then
1722 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 *) ac_arg=$ac_var=$ac_new_val ;;
1725 case " $ac_configure_args " in
1726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1727 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1731 if $ac_cache_corrupted; then
1732 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1733 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1734 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1735 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1736 { (exit 1); exit 1; }; }
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1774 for ac_prog in gawk mawk nawk awk
1776 # Extract the first word of "$ac_prog", so it can be a program name with args.
1777 set dummy $ac_prog; ac_word=$2
1778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1780 if test "${ac_cv_prog_AWK+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 if test -n "$AWK"; then
1784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1793 ac_cv_prog_AWK="$ac_prog"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test -n "$AWK"; then
1805 { echo "$as_me:$LINENO: result: $AWK" >&5
1806 echo "${ECHO_T}$AWK" >&6; }
1808 { echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6; }
1813 test -n "$AWK" && break
1817 VERSION=$PACKAGE_VERSION
1818 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1819 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1820 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1822 { echo "$as_me:$LINENO: result: ${VERSION}" >&5
1823 echo "${ECHO_T}${VERSION}" >&6; }
1828 cat >>confdefs.h <<_ACEOF
1829 #define SDCC_VERSION_LO ${VERSIONLO}
1832 cat >>confdefs.h <<_ACEOF
1833 #define SDCC_VERSION_HI ${VERSIONHI}
1836 cat >>confdefs.h <<_ACEOF
1837 #define SDCC_VERSION_P ${VERSIONP}
1840 cat >>confdefs.h <<_ACEOF
1841 #define SDCC_VERSION_STR "${VERSION}"
1844 test "$program_prefix" != NONE &&
1845 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1846 # Use a double $ so make ignores it.
1847 test "$program_suffix" != NONE &&
1848 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1849 # Double any \ or $. echo might interpret backslashes.
1850 # By default was `s,x,x', remove it if useless.
1851 cat <<\_ACEOF >conftest.sed
1852 s/[\\$]/&&/g;s/;s,x,x,$//
1854 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1857 sdcc_cv_version=$VERSION
1858 sdcc_cv_versionhi=$VERSIONHI
1859 sdcc_cv_versionlo=$VERSIONLO
1860 sdcc_cv_versionp=$VERSIONP
1864 # ===========================================================================
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 { echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6; }
1903 { echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6; }
1909 if test -z "$ac_cv_prog_CC"; then
1911 # Extract the first word of "gcc", so it can be a program name with args.
1912 set dummy gcc; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928 ac_cv_prog_ac_ct_CC="gcc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6; }
1943 { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1947 if test "x$ac_ct_CC" = x; then
1950 case $cross_compiling:$ac_tool_warned in
1952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1953 whose name does not start with the host triplet. If you think this
1954 configuration is useful to you, please write to autoconf@gnu.org." >&5
1955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1956 whose name does not start with the host triplet. If you think this
1957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1958 ac_tool_warned=yes ;;
1966 if test -z "$CC"; then
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}cc; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CC="${ac_tool_prefix}cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test -n "$CC"; then
1997 { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2007 if test -z "$CC"; then
2008 # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2027 ac_prog_rejected=yes
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 if test $ac_prog_rejected = yes; then
2039 # We found a bogon in the path, so make sure we never use it.
2040 set dummy $ac_cv_prog_CC
2042 if test $# != 0; then
2043 # We chose a different compiler from the bogus one.
2044 # However, it has the same basename, so the bogon will be chosen
2045 # first if we set CC to just the basename; use the full file name.
2047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2053 if test -n "$CC"; then
2054 { echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6; }
2057 { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in cl.exe
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2109 for ac_prog in cl.exe
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2151 if test "x$ac_ct_CC" = x; then
2154 case $cross_compiling:$ac_tool_warned in
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2171 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details." >&2;}
2175 { (exit 1); exit 1; }; }
2177 # Provide some information about the compiler.
2178 echo "$as_me:$LINENO: checking for C compiler version" >&5
2179 ac_compiler=`set X $ac_compile; echo $2`
2180 { (ac_try="$ac_compiler --version >&5"
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2186 (eval "$ac_compiler --version >&5") 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2190 { (ac_try="$ac_compiler -v >&5"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196 (eval "$ac_compiler -v >&5") 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2206 (eval "$ac_compiler -V >&5") 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2211 cat >conftest.$ac_ext <<_ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2226 ac_clean_files_save=$ac_clean_files
2227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2231 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2235 # List of possible output files, starting from the most likely.
2236 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2237 # only as a last resort. b.out is created by i960 compilers.
2238 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2240 # The IRIX 6 linker writes into existing files which may not be
2241 # executable, retaining their permissions. Remove them first so a
2242 # subsequent execution test works.
2244 for ac_file in $ac_files
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2253 if { (ac_try="$ac_link_default"
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259 (eval "$ac_link_default") 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2266 # so that the user can short-circuit this test for compilers unknown to
2268 for ac_file in $ac_files ''
2270 test -f "$ac_file" || continue
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2275 # We found the default executable, but exeext='' is most
2279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283 # We set ac_cv_exeext here because the later test for it is not
2284 # safe: cross compilers may not add the suffix if given an `-o'
2285 # argument, so we may need to know it at that point already.
2286 # Even if this section looks crufty: it has the advantage of
2293 test "$ac_cv_exeext" = no && ac_cv_exeext=
2299 { echo "$as_me:$LINENO: result: $ac_file" >&5
2300 echo "${ECHO_T}$ac_file" >&6; }
2301 if test -z "$ac_file"; then
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&2;}
2309 { (exit 77); exit 77; }; }
2312 ac_exeext=$ac_cv_exeext
2314 # Check that the compiler produces executables we can run. If not, either
2315 # the compiler is broken, or we cross compile.
2316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2319 # If not cross compiling, check that we can run a simple program.
2320 if test "$cross_compiling" != yes; then
2321 if { ac_try='./$ac_file'
2322 { (case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_try") 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 if test "$cross_compiling" = maybe; then
2336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'.
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2346 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2350 ac_clean_files=$ac_clean_files_save
2351 # Check that the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2355 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2356 echo "${ECHO_T}$cross_compiling" >&6; }
2358 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2360 if { (ac_try="$ac_link"
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_link") 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2372 # work properly (i.e., refer to `conftest.exe'), while it won't with
2374 for ac_file in conftest.exe conftest conftest.*; do
2375 test -f "$ac_file" || continue
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2384 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2385 See \`config.log' for more details." >&5
2386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log' for more details." >&2;}
2388 { (exit 1); exit 1; }; }
2391 rm -f conftest$ac_cv_exeext
2392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2395 rm -f conftest.$ac_ext
2396 EXEEXT=$ac_cv_exeext
2398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2400 if test "${ac_cv_objext+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.o conftest.obj
2419 if { (ac_try="$ac_compile"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_compile") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; then
2429 for ac_file in conftest.o conftest.obj conftest.*; do
2430 test -f "$ac_file" || continue;
2432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2451 echo "${ECHO_T}$ac_cv_objext" >&6; }
2452 OBJEXT=$ac_cv_objext
2454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 cat >conftest.$ac_ext <<_ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>conftest.er1
2486 grep -v '^ *+' conftest.er1 >conftest.err
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } && {
2491 test -z "$ac_c_werror_flag" ||
2492 test ! -s conftest.err
2493 } && test -s conftest.$ac_objext; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2506 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2508 GCC=`test $ac_compiler_gnu = yes && echo yes`
2509 ac_test_CFLAGS=${CFLAGS+set}
2510 ac_save_CFLAGS=$CFLAGS
2511 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_cc_g+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 ac_save_c_werror_flag=$ac_c_werror_flag
2517 ac_c_werror_flag=yes
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.$ac_objext; then
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2558 cat >conftest.$ac_ext <<_ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2573 rm -f conftest.$ac_objext
2574 if { (ac_try="$ac_compile"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } && {
2587 test -z "$ac_c_werror_flag" ||
2588 test ! -s conftest.err
2589 } && test -s conftest.$ac_objext; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2595 ac_c_werror_flag=$ac_save_c_werror_flag
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2612 rm -f conftest.$ac_objext
2613 if { (ac_try="$ac_compile"
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_compile") 2>conftest.er1
2621 grep -v '^ *+' conftest.er1 >conftest.err
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest.$ac_objext; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_c_werror_flag=$ac_save_c_werror_flag
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2657 if test "$GCC" = yes; then
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 ac_cv_prog_cc_c89=no
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2694 s = g (p, va_arg (v,int));
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709 inside strings and character constants. */
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 CC="$ac_save_CC $ac_arg"
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2748 ac_cv_prog_cc_c89=$ac_arg
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f core conftest.err conftest.$ac_objext
2757 test "x$ac_cv_prog_cc_c89" != "xno" && break
2759 rm -f conftest.$ac_ext
2764 case "x$ac_cv_prog_cc_c89" in
2766 { echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6; } ;;
2769 { echo "$as_me:$LINENO: result: unsupported" >&5
2770 echo "${ECHO_T}unsupported" >&6; } ;;
2772 CC="$CC $ac_cv_prog_cc_c89"
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2790 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2791 # On Suns, sometimes $CPP names a directory.
2792 if test -n "$CPP" && test -d "$CPP"; then
2795 if test -z "$CPP"; then
2796 if test "${ac_cv_prog_CPP+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 # Double quotes because CPP needs to be expanded
2800 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2803 for ac_c_preproc_warn_flag in '' yes
2805 # Use a header file that comes with gcc, so configuring glibc
2806 # with a fresh cross-compiler works.
2807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2808 # <limits.h> exists even on freestanding compilers.
2809 # On the NeXT, cc -E runs the code through the compiler's parser,
2810 # not just through cpp. "Syntax error" is here to catch this case.
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2818 # include <limits.h>
2820 # include <assert.h>
2824 if { (ac_try="$ac_cpp conftest.$ac_ext"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2832 grep -v '^ *+' conftest.er1 >conftest.err
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } >/dev/null && {
2837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 # Broken: fails on valid input.
2849 rm -f conftest.err conftest.$ac_ext
2851 # OK, works on sane cases. Now check whether nonexistent headers
2852 # can be detected and how.
2853 cat >conftest.$ac_ext <<_ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2859 #include <ac_nonexistent.h>
2861 if { (ac_try="$ac_cpp conftest.$ac_ext"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2869 grep -v '^ *+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev/null && {
2874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2875 test ! -s conftest.err
2877 # Broken: success on invalid input.
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2883 # Passes both tests.
2888 rm -f conftest.err conftest.$ac_ext
2891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2892 rm -f conftest.err conftest.$ac_ext
2893 if $ac_preproc_ok; then
2905 { echo "$as_me:$LINENO: result: $CPP" >&5
2906 echo "${ECHO_T}$CPP" >&6; }
2908 for ac_c_preproc_warn_flag in '' yes
2910 # Use a header file that comes with gcc, so configuring glibc
2911 # with a fresh cross-compiler works.
2912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2913 # <limits.h> exists even on freestanding compilers.
2914 # On the NeXT, cc -E runs the code through the compiler's parser,
2915 # not just through cpp. "Syntax error" is here to catch this case.
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2923 # include <limits.h>
2925 # include <assert.h>
2929 if { (ac_try="$ac_cpp conftest.$ac_ext"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null && {
2942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 # Broken: fails on valid input.
2954 rm -f conftest.err conftest.$ac_ext
2956 # OK, works on sane cases. Now check whether nonexistent headers
2957 # can be detected and how.
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2966 if { (ac_try="$ac_cpp conftest.$ac_ext"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev/null && {
2979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2982 # Broken: success on invalid input.
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 # Passes both tests.
2993 rm -f conftest.err conftest.$ac_ext
2996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2997 rm -f conftest.err conftest.$ac_ext
2998 if $ac_preproc_ok; then
3001 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 if test -f "$ac_dir/install-sh"; then
3018 ac_install_sh="$ac_aux_dir/install-sh -c"
3020 elif test -f "$ac_dir/install.sh"; then
3022 ac_install_sh="$ac_aux_dir/install.sh -c"
3024 elif test -f "$ac_dir/shtool"; then
3026 ac_install_sh="$ac_aux_dir/shtool install -c"
3030 if test -z "$ac_aux_dir"; then
3031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3033 { (exit 1); exit 1; }; }
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3045 # Find a good install program. We prefer a C program (faster),
3046 # so one script is as good as another. But avoid the broken or
3047 # incompatible versions:
3048 # SysV /etc/install, /usr/sbin/install
3049 # SunOS /usr/etc/install
3050 # IRIX /sbin/install
3052 # AmigaOS /C/install, which installs bootblocks on floppy discs
3053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3056 # OS/2's system install, which has a completely different semantic
3057 # ./install, which can be erroneously created by make from ./install.sh.
3058 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3059 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3060 if test -z "$INSTALL"; then
3061 if test "${ac_cv_path_install+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 # Account for people who put trailing slashes in PATH elements.
3071 ./ | .// | /cC/* | \
3072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3073 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3076 # OSF1 and SCO ODT 3.0 have their own names for install.
3077 # Don't use installbsd from OSF since it installs stuff as root
3079 for ac_prog in ginstall scoinst install; do
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3082 if test $ac_prog = install &&
3083 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3084 # AIX install. It has an incompatible calling convention.
3086 elif test $ac_prog = install &&
3087 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # program-specific install script used by HP pwplus--don't use.
3091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3104 if test "${ac_cv_path_install+set}" = set; then
3105 INSTALL=$ac_cv_path_install
3107 # As a last resort, use the slow shell script. Don't cache a
3108 # value for INSTALL within a source directory, because that will
3109 # break other packages using the cache if that directory is
3110 # removed, or if the value is a relative name.
3111 INSTALL=$ac_install_sh
3114 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3115 echo "${ECHO_T}$INSTALL" >&6; }
3117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3118 # It thinks the first close brace ends the variable substitution.
3119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3130 if test "${ac_cv_prog_RANLIB+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 if test -n "$RANLIB"; then
3134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 RANLIB=$ac_cv_prog_RANLIB
3154 if test -n "$RANLIB"; then
3155 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3156 echo "${ECHO_T}$RANLIB" >&6; }
3158 { echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6; }
3164 if test -z "$ac_cv_prog_RANLIB"; then
3165 ac_ct_RANLIB=$RANLIB
3166 # Extract the first word of "ranlib", so it can be a program name with args.
3167 set dummy ranlib; ac_word=$2
3168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3170 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 if test -n "$ac_ct_RANLIB"; then
3174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_ac_ct_RANLIB="ranlib"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3194 if test -n "$ac_ct_RANLIB"; then
3195 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3196 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3198 { echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6; }
3202 if test "x$ac_ct_RANLIB" = x; then
3205 case $cross_compiling:$ac_tool_warned in
3207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3208 whose name does not start with the host triplet. If you think this
3209 configuration is useful to you, please write to autoconf@gnu.org." >&5
3210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3211 whose name does not start with the host triplet. If you think this
3212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3213 ac_tool_warned=yes ;;
3215 RANLIB=$ac_ct_RANLIB
3218 RANLIB="$ac_cv_prog_RANLIB"
3221 # Extract the first word of "autoconf", so it can be a program name with args.
3222 set dummy autoconf; ac_word=$2
3223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if test -n "$AUTOCONF"; then
3229 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_AUTOCONF="autoconf"
3239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3249 AUTOCONF=$ac_cv_prog_AUTOCONF
3250 if test -n "$AUTOCONF"; then
3251 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3252 echo "${ECHO_T}$AUTOCONF" >&6; }
3254 { echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6; }
3259 # Extract the first word of "strip", so it can be a program name with args.
3260 set dummy strip; ac_word=$2
3261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3263 if test "${ac_cv_prog_STRIP+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 if test -n "$STRIP"; then
3267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_STRIP="strip"
3277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3287 STRIP=$ac_cv_prog_STRIP
3288 if test -n "$STRIP"; then
3289 { echo "$as_me:$LINENO: result: $STRIP" >&5
3290 echo "${ECHO_T}$STRIP" >&6; }
3292 { echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6; }
3297 # Extract the first word of "as", so it can be a program name with args.
3298 set dummy as; ac_word=$2
3299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_AS+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 if test -n "$AS"; then
3305 ac_cv_prog_AS="$AS" # Let the user override the test.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3326 if test -n "$AS"; then
3327 { echo "$as_me:$LINENO: result: $AS" >&5
3328 echo "${ECHO_T}$AS" >&6; }
3330 { echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6; }
3335 # Extract the first word of "cp", so it can be a program name with args.
3336 set dummy cp; ac_word=$2
3337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3339 if test "${ac_cv_prog_CP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 if test -n "$CP"; then
3343 ac_cv_prog_CP="$CP" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3364 if test -n "$CP"; then
3365 { echo "$as_me:$LINENO: result: $CP" >&5
3366 echo "${ECHO_T}$CP" >&6; }
3368 { echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6; }
3374 for ac_prog in flex lex
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_LEX+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$LEX"; then
3384 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_LEX="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$LEX"; then
3405 { echo "$as_me:$LINENO: result: $LEX" >&5
3406 echo "${ECHO_T}$LEX" >&6; }
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3413 test -n "$LEX" && break
3415 test -n "$LEX" || LEX=":"
3418 for ac_prog in 'bison -y' byacc yacc
3420 # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_YACC+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if test -n "$YACC"; then
3428 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_YACC="$ac_prog"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 YACC=$ac_cv_prog_YACC
3448 if test -n "$YACC"; then
3449 { echo "$as_me:$LINENO: result: $YACC" >&5
3450 echo "${ECHO_T}$YACC" >&6; }
3452 { echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6; }
3457 test -n "$YACC" && break
3459 test -n "$YACC" || YACC=":"
3464 if test "$YACC" = ":"; then
3465 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3466 echo "$as_me: error: Cannot find required program bison." >&2;}
3467 { (exit 1); exit 1; }; }
3470 if test "$LEX" = ":"; then
3471 { { echo "$as_me:$LINENO: error: Cannot find required program flex." >&5
3472 echo "$as_me: error: Cannot find required program flex." >&2;}
3473 { (exit 1); exit 1; }; }
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 # Checking for functions
3486 # ===========================================================================
3489 for ac_func in strerror
3491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3505 #define $ac_func innocuous_$ac_func
3507 /* System header to define __stub macros and hopefully few prototypes,
3508 which can conflict with char $ac_func (); below.
3509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3510 <limits.h> exists even on freestanding compilers. */
3513 # include <limits.h>
3515 # include <assert.h>
3520 /* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
3527 /* The GNU C library defines this for functions which it implements
3528 to always fail with ENOSYS. Some functions are actually named
3529 something starting with __ and the normal name is an alias. */
3530 #if defined __stub_$ac_func || defined __stub___$ac_func
3542 rm -f conftest.$ac_objext conftest$ac_exeext
3543 if { (ac_try="$ac_link"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_link") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest$ac_exeext &&
3559 $as_test_x conftest$ac_exeext; then
3560 eval "$as_ac_var=yes"
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 eval "$as_ac_var=no"
3568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3569 conftest$ac_exeext conftest.$ac_ext
3571 ac_res=`eval echo '${'$as_ac_var'}'`
3572 { echo "$as_me:$LINENO: result: $ac_res" >&5
3573 echo "${ECHO_T}$ac_res" >&6; }
3574 if test `eval echo '${'$as_ac_var'}'` = yes; then
3575 cat >>confdefs.h <<_ACEOF
3576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3586 for ac_func in vsnprintf snprintf vsprintf mkstemp
3588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3602 #define $ac_func innocuous_$ac_func
3604 /* System header to define __stub macros and hopefully few prototypes,
3605 which can conflict with char $ac_func (); below.
3606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3607 <limits.h> exists even on freestanding compilers. */
3610 # include <limits.h>
3612 # include <assert.h>
3617 /* Override any GCC internal prototype to avoid an error.
3618 Use char because int might match the return type of a GCC
3619 builtin and then its argument prototype would still apply. */
3624 /* The GNU C library defines this for functions which it implements
3625 to always fail with ENOSYS. Some functions are actually named
3626 something starting with __ and the normal name is an alias. */
3627 #if defined __stub_$ac_func || defined __stub___$ac_func
3639 rm -f conftest.$ac_objext conftest$ac_exeext
3640 if { (ac_try="$ac_link"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_link") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest$ac_exeext &&
3656 $as_test_x conftest$ac_exeext; then
3657 eval "$as_ac_var=yes"
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 eval "$as_ac_var=no"
3665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3666 conftest$ac_exeext conftest.$ac_ext
3668 ac_res=`eval echo '${'$as_ac_var'}'`
3669 { echo "$as_me:$LINENO: result: $ac_res" >&5
3670 echo "${ECHO_T}$ac_res" >&6; }
3671 if test `eval echo '${'$as_ac_var'}'` = yes; then
3672 cat >>confdefs.h <<_ACEOF
3673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3682 # ===========================================================================
3684 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3685 # supports option specified as the 2nd parameter
3686 # For example: DD_CPORT(CXX, fPIC)
3690 # This macro expands DIR and assigns it to RET.
3691 # If DIR is NONE, then it's replaced by DEFAULT.
3693 # Based on AC_DEFINE_DIR
3697 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3701 # adl_NORMALIZE_PATH
3703 # - empty paths are changed to '.'
3704 # - trailing slashes are removed
3705 # - repeated slashes are squeezed except a leading doubled slash '//'
3706 # (which might indicate a networked disk on some OS).
3709 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3710 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3711 # are turned into backslashes, otherwise they are all turned into slashes.
3713 # This makes processing of DOS filenames quite easier, because you can turn a
3714 # filename to the Unix notation, make your processing, and turn it back to
3715 # original notation.
3720 # adl_COMPUTE_RELATIVE_PATH
3722 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3723 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3724 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3725 # absolute filenames for this macro to success.
3731 ## The following helper macros are too fragile to be used out
3732 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3733 ## paths are normalized), that's why I'm keeping them in the same file.
3734 ## Still, some of them maybe worth to reuse.
3752 # Checking characteristics of compilers and other programs
3753 # ===========================================================================
3754 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3755 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
3756 if test "${sdcc_cv_MM+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 echo "#include <stdio.h>" >_test_.c
3761 $CPP -v -MM _test_.c 1>&5 2>&5
3762 if test "$?" = "0"; then
3769 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3770 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
3774 # This is the first time when CFLAGS are set/modified!!
3776 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3777 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
3778 if test "${sdcc_cv_CCggdb+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3786 if test "$?" = "0"; then
3787 sdcc_cv_CCggdb="yes"
3791 rm -f _test_.* a.out
3793 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3794 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
3796 if test "$sdcc_cv_CCggdb" = "yes"; then
3797 CFLAGS="-ggdb ${CFLAGS}"
3801 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3802 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
3803 if test "${sdcc_cv_CCpipe+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 $CC -v -pipe -c _test_.c 1>&5 2>&5
3811 if test "$?" = "0"; then
3812 sdcc_cv_CCpipe="yes"
3816 rm -f _test_.* a.out
3818 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3819 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
3821 if test "$sdcc_cv_CCpipe" = "yes"; then
3822 CFLAGS="-pipe $CFLAGS"
3826 # Checks for typedefs, structures, and compiler characteristics.
3827 # ===========================================================================
3828 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3829 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3830 if test "${ac_cv_type_signal+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #include <sys/types.h>
3845 return *(signal (0, 0)) (0) == 1;
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3867 ac_cv_type_signal=int
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_type_signal=void
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3878 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3880 cat >>confdefs.h <<_ACEOF
3881 #define RETSIGTYPE $ac_cv_type_signal
3887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3889 if test "${ac_cv_path_GREP+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 # Extract the first word of "grep ggrep" to use in msg output
3893 if test -z "$GREP"; then
3894 set dummy grep ggrep; ac_prog_name=$2
3895 if test "${ac_cv_path_GREP+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_path_GREP_found=false
3899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3904 test -z "$as_dir" && as_dir=.
3905 for ac_prog in grep ggrep; do
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3909 # Check for GNU ac_path_GREP and select it if it is found.
3910 # Check for GNU $ac_path_GREP
3911 case `"$ac_path_GREP" --version 2>&1` in
3913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3919 cat "conftest.in" "conftest.in" >"conftest.tmp"
3920 mv "conftest.tmp" "conftest.in"
3921 cp "conftest.in" "conftest.nl"
3922 echo 'GREP' >> "conftest.nl"
3923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925 ac_count=`expr $ac_count + 1`
3926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3927 # Best one so far, save it but keep looking for a better one
3928 ac_cv_path_GREP="$ac_path_GREP"
3929 ac_path_GREP_max=$ac_count
3931 # 10*(2^10) chars as input seems more than enough
3932 test $ac_count -gt 10 && break
3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938 $ac_path_GREP_found && break 3
3948 GREP="$ac_cv_path_GREP"
3949 if test -z "$GREP"; then
3950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3952 { (exit 1); exit 1; }; }
3956 ac_cv_path_GREP=$GREP
3961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3963 GREP="$ac_cv_path_GREP"
3966 { echo "$as_me:$LINENO: checking for egrep" >&5
3967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972 then ac_cv_path_EGREP="$GREP -E"
3974 # Extract the first word of "egrep" to use in msg output
3975 if test -z "$EGREP"; then
3976 set dummy egrep; ac_prog_name=$2
3977 if test "${ac_cv_path_EGREP+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 ac_path_EGREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in egrep; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991 # Check for GNU ac_path_EGREP and select it if it is found.
3992 # Check for GNU $ac_path_EGREP
3993 case `"$ac_path_EGREP" --version 2>&1` in
3995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 echo 'EGREP' >> "conftest.nl"
4005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 ac_count=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_EGREP="$ac_path_EGREP"
4011 ac_path_EGREP_max=$ac_count
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 $ac_path_EGREP_found && break 3
4030 EGREP="$ac_cv_path_EGREP"
4031 if test -z "$EGREP"; then
4032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4034 { (exit 1); exit 1; }; }
4038 ac_cv_path_EGREP=$EGREP
4044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4046 EGREP="$ac_cv_path_EGREP"
4049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4051 if test "${ac_cv_header_stdc+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } && {
4087 test -z "$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 } && test -s conftest.$ac_objext; then
4090 ac_cv_header_stdc=yes
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 ac_cv_header_stdc=no
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "memchr" >/dev/null 2>&1; then
4115 ac_cv_header_stdc=no
4121 if test $ac_cv_header_stdc = yes; then
4122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then
4136 ac_cv_header_stdc=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4155 #if ((' ' & 0x0FF) == 0x020)
4156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4159 # define ISLOWER(c) \
4160 (('a' <= (c) && (c) <= 'i') \
4161 || ('j' <= (c) && (c) <= 'r') \
4162 || ('s' <= (c) && (c) <= 'z'))
4163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171 for (i = 0; i < 256; i++)
4172 if (XOR (islower (i), ISLOWER (i))
4173 || toupper (i) != TOUPPER (i))
4178 rm -f conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_link") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4189 { (case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_try") 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4200 echo "$as_me: program exited with status $ac_status" >&5
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_header_stdc=no
4207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4215 if test $ac_cv_header_stdc = yes; then
4217 cat >>confdefs.h <<\_ACEOF
4218 #define STDC_HEADERS 1
4223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4234 inttypes.h stdint.h unistd.h
4236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 $ac_includes_default
4250 #include <$ac_header>
4252 rm -f conftest.$ac_objext
4253 if { (ac_try="$ac_compile"
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_compile") 2>conftest.er1
4261 grep -v '^ *+' conftest.er1 >conftest.err
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } && {
4266 test -z "$ac_c_werror_flag" ||
4267 test ! -s conftest.err
4268 } && test -s conftest.$ac_objext; then
4269 eval "$as_ac_Header=yes"
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 eval "$as_ac_Header=no"
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 ac_res=`eval echo '${'$as_ac_Header'}'`
4280 { echo "$as_me:$LINENO: result: $ac_res" >&5
4281 echo "${ECHO_T}$ac_res" >&6; }
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283 cat >>confdefs.h <<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292 { echo "$as_me:$LINENO: checking for char" >&5
4293 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
4294 if test "${ac_cv_type_char+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4304 typedef char ac__type_new_;
4308 if ((ac__type_new_ *) 0)
4310 if (sizeof (ac__type_new_))
4316 rm -f conftest.$ac_objext
4317 if { (ac_try="$ac_compile"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_compile") 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } && {
4330 test -z "$ac_c_werror_flag" ||
4331 test ! -s conftest.err
4332 } && test -s conftest.$ac_objext; then
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4344 echo "${ECHO_T}$ac_cv_type_char" >&6; }
4346 # The cast to long int works around a bug in the HP C Compiler
4347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4349 # This bug is HP SR number 8606223364.
4350 { echo "$as_me:$LINENO: checking size of char" >&5
4351 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
4352 if test "${ac_cv_sizeof_char+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 if test "$cross_compiling" = yes; then
4356 # Depending upon the size, compute the lo and hi bounds.
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4364 typedef char ac__type_sizeof_;
4368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } && {
4389 test -z "$ac_c_werror_flag" ||
4390 test ! -s conftest.err
4391 } && test -s conftest.$ac_objext; then
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 $ac_includes_default
4401 typedef char ac__type_sizeof_;
4405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4412 rm -f conftest.$ac_objext
4413 if { (ac_try="$ac_compile"
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_compile") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest.$ac_objext; then
4429 ac_hi=$ac_mid; break
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_lo=`expr $ac_mid + 1`
4435 if test $ac_lo -le $ac_mid; then
4439 ac_mid=`expr 2 '*' $ac_mid + 1`
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4455 typedef char ac__type_sizeof_;
4459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && {
4480 test -z "$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 } && test -s conftest.$ac_objext; then
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 $ac_includes_default
4492 typedef char ac__type_sizeof_;
4496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4503 rm -f conftest.$ac_objext
4504 if { (ac_try="$ac_compile"
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_compile") 2>conftest.er1
4512 grep -v '^ *+' conftest.er1 >conftest.err
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } && {
4517 test -z "$ac_c_werror_flag" ||
4518 test ! -s conftest.err
4519 } && test -s conftest.$ac_objext; then
4520 ac_lo=$ac_mid; break
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 ac_hi=`expr '(' $ac_mid ')' - 1`
4526 if test $ac_mid -le $ac_hi; then
4530 ac_mid=`expr 2 '*' $ac_mid`
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 # Binary search between lo and hi bounds.
4547 while test "x$ac_lo" != "x$ac_hi"; do
4548 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4549 cat >conftest.$ac_ext <<_ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 $ac_includes_default
4556 typedef char ac__type_sizeof_;
4560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4567 rm -f conftest.$ac_objext
4568 if { (ac_try="$ac_compile"
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_compile") 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } && {
4581 test -z "$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4583 } && test -s conftest.$ac_objext; then
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_lo=`expr '(' $ac_mid ')' + 1`
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 ?*) ac_cv_sizeof_char=$ac_lo;;
4596 '') if test "$ac_cv_type_char" = yes; then
4597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4598 See \`config.log' for more details." >&5
4599 echo "$as_me: error: cannot compute sizeof (char)
4600 See \`config.log' for more details." >&2;}
4601 { (exit 77); exit 77; }; }
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 typedef char ac__type_sizeof_;
4615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4623 FILE *f = fopen ("conftest.val", "w");
4626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4628 long int i = longval ();
4629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4631 fprintf (f, "%ld\n", i);
4635 unsigned long int i = ulongval ();
4636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4638 fprintf (f, "%lu\n", i);
4640 return ferror (f) || fclose (f) != 0;
4646 rm -f conftest$ac_exeext
4647 if { (ac_try="$ac_link"
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_link") 2>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4657 { (case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_try") 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 ac_cv_sizeof_char=`cat conftest.val`
4668 echo "$as_me: program exited with status $ac_status" >&5
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4673 if test "$ac_cv_type_char" = yes; then
4674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4675 See \`config.log' for more details." >&5
4676 echo "$as_me: error: cannot compute sizeof (char)
4677 See \`config.log' for more details." >&2;}
4678 { (exit 77); exit 77; }; }
4683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4687 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4688 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
4692 cat >>confdefs.h <<_ACEOF
4693 #define SIZEOF_CHAR $ac_cv_sizeof_char
4697 { echo "$as_me:$LINENO: checking for short" >&5
4698 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4699 if test "${ac_cv_type_short+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_includes_default
4709 typedef short ac__type_new_;
4713 if ((ac__type_new_ *) 0)
4715 if (sizeof (ac__type_new_))
4721 rm -f conftest.$ac_objext
4722 if { (ac_try="$ac_compile"
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_compile") 2>conftest.er1
4730 grep -v '^ *+' conftest.er1 >conftest.err
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } && {
4735 test -z "$ac_c_werror_flag" ||
4736 test ! -s conftest.err
4737 } && test -s conftest.$ac_objext; then
4738 ac_cv_type_short=yes
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4749 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4751 # The cast to long int works around a bug in the HP C Compiler
4752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4754 # This bug is HP SR number 8606223364.
4755 { echo "$as_me:$LINENO: checking size of short" >&5
4756 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4757 if test "${ac_cv_sizeof_short+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 if test "$cross_compiling" = yes; then
4761 # Depending upon the size, compute the lo and hi bounds.
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4769 typedef short ac__type_sizeof_;
4773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_compile") 2>conftest.er1
4789 grep -v '^ *+' conftest.er1 >conftest.err
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } && {
4794 test -z "$ac_c_werror_flag" ||
4795 test ! -s conftest.err
4796 } && test -s conftest.$ac_objext; then
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 $ac_includes_default
4806 typedef short ac__type_sizeof_;
4810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4817 rm -f conftest.$ac_objext
4818 if { (ac_try="$ac_compile"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_compile") 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest.$ac_objext; then
4834 ac_hi=$ac_mid; break
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_lo=`expr $ac_mid + 1`
4840 if test $ac_lo -le $ac_mid; then
4844 ac_mid=`expr 2 '*' $ac_mid + 1`
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 $ac_includes_default
4860 typedef short ac__type_sizeof_;
4864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_compile") 2>conftest.er1
4880 grep -v '^ *+' conftest.er1 >conftest.err
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } && {
4885 test -z "$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 } && test -s conftest.$ac_objext; then
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 $ac_includes_default
4897 typedef short ac__type_sizeof_;
4901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4908 rm -f conftest.$ac_objext
4909 if { (ac_try="$ac_compile"
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_compile") 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } && {
4922 test -z "$ac_c_werror_flag" ||
4923 test ! -s conftest.err
4924 } && test -s conftest.$ac_objext; then
4925 ac_lo=$ac_mid; break
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4930 ac_hi=`expr '(' $ac_mid ')' - 1`
4931 if test $ac_mid -le $ac_hi; then
4935 ac_mid=`expr 2 '*' $ac_mid`
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 # Binary search between lo and hi bounds.
4952 while test "x$ac_lo" != "x$ac_hi"; do
4953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 $ac_includes_default
4961 typedef short ac__type_sizeof_;
4965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4972 rm -f conftest.$ac_objext
4973 if { (ac_try="$ac_compile"
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 ac_lo=`expr '(' $ac_mid ')' + 1`
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 ?*) ac_cv_sizeof_short=$ac_lo;;
5001 '') if test "$ac_cv_type_short" = yes; then
5002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5003 See \`config.log' for more details." >&5
5004 echo "$as_me: error: cannot compute sizeof (short)
5005 See \`config.log' for more details." >&2;}
5006 { (exit 77); exit 77; }; }
5008 ac_cv_sizeof_short=0
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5019 typedef short ac__type_sizeof_;
5020 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5021 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5028 FILE *f = fopen ("conftest.val", "w");
5031 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5033 long int i = longval ();
5034 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5036 fprintf (f, "%ld\n", i);
5040 unsigned long int i = ulongval ();
5041 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5043 fprintf (f, "%lu\n", i);
5045 return ferror (f) || fclose (f) != 0;
5051 rm -f conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062 { (case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_try") 2>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_sizeof_short=`cat conftest.val`
5073 echo "$as_me: program exited with status $ac_status" >&5
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5078 if test "$ac_cv_type_short" = yes; then
5079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot compute sizeof (short)
5082 See \`config.log' for more details." >&2;}
5083 { (exit 77); exit 77; }; }
5085 ac_cv_sizeof_short=0
5088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5092 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5093 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5097 cat >>confdefs.h <<_ACEOF
5098 #define SIZEOF_SHORT $ac_cv_sizeof_short
5102 { echo "$as_me:$LINENO: checking for int" >&5
5103 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5104 if test "${ac_cv_type_int+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5114 typedef int ac__type_new_;
5118 if ((ac__type_new_ *) 0)
5120 if (sizeof (ac__type_new_))
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5154 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5156 # The cast to long int works around a bug in the HP C Compiler
5157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5159 # This bug is HP SR number 8606223364.
5160 { echo "$as_me:$LINENO: checking size of int" >&5
5161 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5162 if test "${ac_cv_sizeof_int+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test "$cross_compiling" = yes; then
5166 # Depending upon the size, compute the lo and hi bounds.
5167 cat >conftest.$ac_ext <<_ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 $ac_includes_default
5174 typedef int ac__type_sizeof_;
5178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5185 rm -f conftest.$ac_objext
5186 if { (ac_try="$ac_compile"
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_compile") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && {
5199 test -z "$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest.$ac_objext; then
5204 cat >conftest.$ac_ext <<_ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 $ac_includes_default
5211 typedef int ac__type_sizeof_;
5215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_compile") 2>conftest.er1
5231 grep -v '^ *+' conftest.er1 >conftest.err
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest.$ac_objext; then
5239 ac_hi=$ac_mid; break
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_lo=`expr $ac_mid + 1`
5245 if test $ac_lo -le $ac_mid; then
5249 ac_mid=`expr 2 '*' $ac_mid + 1`
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 cat >conftest.$ac_ext <<_ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 $ac_includes_default
5265 typedef int ac__type_sizeof_;
5269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5276 rm -f conftest.$ac_objext
5277 if { (ac_try="$ac_compile"
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_compile") 2>conftest.er1
5285 grep -v '^ *+' conftest.er1 >conftest.err
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } && {
5290 test -z "$ac_c_werror_flag" ||
5291 test ! -s conftest.err
5292 } && test -s conftest.$ac_objext; then
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5302 typedef int ac__type_sizeof_;
5306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_compile") 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && {
5327 test -z "$ac_c_werror_flag" ||
5328 test ! -s conftest.err
5329 } && test -s conftest.$ac_objext; then
5330 ac_lo=$ac_mid; break
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_hi=`expr '(' $ac_mid ')' - 1`
5336 if test $ac_mid -le $ac_hi; then
5340 ac_mid=`expr 2 '*' $ac_mid`
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 # Binary search between lo and hi bounds.
5357 while test "x$ac_lo" != "x$ac_hi"; do
5358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5359 cat >conftest.$ac_ext <<_ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5366 typedef int ac__type_sizeof_;
5370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5377 rm -f conftest.$ac_objext
5378 if { (ac_try="$ac_compile"
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_compile") 2>conftest.er1
5386 grep -v '^ *+' conftest.er1 >conftest.err
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest.$ac_objext; then
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399 ac_lo=`expr '(' $ac_mid ')' + 1`
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ?*) ac_cv_sizeof_int=$ac_lo;;
5406 '') if test "$ac_cv_type_int" = yes; then
5407 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5408 See \`config.log' for more details." >&5
5409 echo "$as_me: error: cannot compute sizeof (int)
5410 See \`config.log' for more details." >&2;}
5411 { (exit 77); exit 77; }; }
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5424 typedef int ac__type_sizeof_;
5425 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5426 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5433 FILE *f = fopen ("conftest.val", "w");
5436 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5438 long int i = longval ();
5439 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5441 fprintf (f, "%ld\n", i);
5445 unsigned long int i = ulongval ();
5446 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5448 fprintf (f, "%lu\n", i);
5450 return ferror (f) || fclose (f) != 0;
5456 rm -f conftest$ac_exeext
5457 if { (ac_try="$ac_link"
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_link") 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5467 { (case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_try") 2>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_sizeof_int=`cat conftest.val`
5478 echo "$as_me: program exited with status $ac_status" >&5
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5483 if test "$ac_cv_type_int" = yes; then
5484 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5485 See \`config.log' for more details." >&5
5486 echo "$as_me: error: cannot compute sizeof (int)
5487 See \`config.log' for more details." >&2;}
5488 { (exit 77); exit 77; }; }
5493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5497 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5498 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5502 cat >>confdefs.h <<_ACEOF
5503 #define SIZEOF_INT $ac_cv_sizeof_int
5507 { echo "$as_me:$LINENO: checking for long" >&5
5508 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5509 if test "${ac_cv_type_long+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 $ac_includes_default
5519 typedef long ac__type_new_;
5523 if ((ac__type_new_ *) 0)
5525 if (sizeof (ac__type_new_))
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5559 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5561 # The cast to long int works around a bug in the HP C Compiler
5562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5564 # This bug is HP SR number 8606223364.
5565 { echo "$as_me:$LINENO: checking size of long" >&5
5566 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5567 if test "${ac_cv_sizeof_long+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 if test "$cross_compiling" = yes; then
5571 # Depending upon the size, compute the lo and hi bounds.
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 $ac_includes_default
5579 typedef long ac__type_sizeof_;
5583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5599 grep -v '^ *+' conftest.er1 >conftest.err
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest.$ac_objext; then
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 typedef long ac__type_sizeof_;
5620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_c_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_hi=$ac_mid; break
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_lo=`expr $ac_mid + 1`
5650 if test $ac_lo -le $ac_mid; then
5654 ac_mid=`expr 2 '*' $ac_mid + 1`
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 typedef long ac__type_sizeof_;
5674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 $ac_includes_default
5707 typedef long ac__type_sizeof_;
5711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 ac_lo=$ac_mid; break
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 ac_hi=`expr '(' $ac_mid ')' - 1`
5741 if test $ac_mid -le $ac_hi; then
5745 ac_mid=`expr 2 '*' $ac_mid`
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 # Binary search between lo and hi bounds.
5762 while test "x$ac_lo" != "x$ac_hi"; do
5763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 $ac_includes_default
5771 typedef long ac__type_sizeof_;
5775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 ac_lo=`expr '(' $ac_mid ')' + 1`
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 ?*) ac_cv_sizeof_long=$ac_lo;;
5811 '') if test "$ac_cv_type_long" = yes; then
5812 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5813 See \`config.log' for more details." >&5
5814 echo "$as_me: error: cannot compute sizeof (long)
5815 See \`config.log' for more details." >&2;}
5816 { (exit 77); exit 77; }; }
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 $ac_includes_default
5829 typedef long ac__type_sizeof_;
5830 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5831 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5838 FILE *f = fopen ("conftest.val", "w");
5841 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5843 long int i = longval ();
5844 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5846 fprintf (f, "%ld\n", i);
5850 unsigned long int i = ulongval ();
5851 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5853 fprintf (f, "%lu\n", i);
5855 return ferror (f) || fclose (f) != 0;
5861 rm -f conftest$ac_exeext
5862 if { (ac_try="$ac_link"
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_link") 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5872 { (case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_try") 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_cv_sizeof_long=`cat conftest.val`
5883 echo "$as_me: program exited with status $ac_status" >&5
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5888 if test "$ac_cv_type_long" = yes; then
5889 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5890 See \`config.log' for more details." >&5
5891 echo "$as_me: error: cannot compute sizeof (long)
5892 See \`config.log' for more details." >&2;}
5893 { (exit 77); exit 77; }; }
5898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5902 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5903 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5907 cat >>confdefs.h <<_ACEOF
5908 #define SIZEOF_LONG $ac_cv_sizeof_long
5913 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5914 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
5915 if test "${ac_cv_c_char_unsigned+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 cat >conftest.$ac_ext <<_ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 $ac_includes_default
5928 static int test_array [1 - 2 * !(((char) -1) < 0)];
5935 rm -f conftest.$ac_objext
5936 if { (ac_try="$ac_compile"
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5944 grep -v '^ *+' conftest.er1 >conftest.err
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
5952 ac_cv_c_char_unsigned=no
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_cv_c_char_unsigned=yes
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5963 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
5964 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5965 cat >>confdefs.h <<\_ACEOF
5966 #define __CHAR_UNSIGNED__ 1
5974 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5978 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5982 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5986 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5993 { echo "$as_me:$LINENO: checking type name for byte" >&5
5994 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
5995 TYPE_CHAR=`type_name 1`
5996 if test "$ac_cv_c_char_unsigned" = "yes"; then
5997 TYPE_BYTE="signed $TYPE_CHAR"
5999 TYPE_BYTE=$TYPE_CHAR
6001 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6002 echo "${ECHO_T}$TYPE_BYTE" >&6; }
6003 { echo "$as_me:$LINENO: checking type name for word" >&5
6004 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
6005 TYPE_WORD=`type_name 2`
6006 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6007 echo "${ECHO_T}$TYPE_WORD" >&6; }
6008 { echo "$as_me:$LINENO: checking type name for dword" >&5
6009 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
6010 TYPE_DWORD=`type_name 4`
6011 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6012 echo "${ECHO_T}$TYPE_DWORD" >&6; }
6014 cat >>confdefs.h <<_ACEOF
6015 #define TYPE_BYTE $TYPE_BYTE
6018 cat >>confdefs.h <<_ACEOF
6019 #define TYPE_WORD $TYPE_WORD
6022 cat >>confdefs.h <<_ACEOF
6023 #define TYPE_DWORD $TYPE_DWORD
6027 cat >>confdefs.h <<_ACEOF
6028 #define TYPE_UBYTE unsigned $TYPE_CHAR
6031 cat >>confdefs.h <<_ACEOF
6032 #define TYPE_UWORD unsigned $TYPE_WORD
6035 cat >>confdefs.h <<_ACEOF
6036 #define TYPE_UDWORD unsigned $TYPE_DWORD
6040 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6041 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6042 if test "${ac_cv_c_bigendian+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 # See if sys/param.h defines the BYTE_ORDER macro.
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <sys/types.h>
6053 #include <sys/param.h>
6058 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6059 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compile") 2>conftest.er1
6076 grep -v '^ *+' conftest.er1 >conftest.err
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.$ac_objext; then
6084 # It does; now see whether it defined to BIG_ENDIAN or not.
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <sys/types.h>
6092 #include <sys/param.h>
6097 #if BYTE_ORDER != BIG_ENDIAN
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } && {
6119 test -z "$ac_c_werror_flag" ||
6120 test ! -s conftest.err
6121 } && test -s conftest.$ac_objext; then
6122 ac_cv_c_bigendian=yes
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 ac_cv_c_bigendian=no
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 # It does not; compile a test program.
6136 if test "$cross_compiling" = yes; then
6137 # try to guess the endianness by grepping values into an object file
6138 ac_cv_c_bigendian=unknown
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6146 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6147 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6148 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6149 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6150 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6154 _ascii (); _ebcdic ();
6159 rm -f conftest.$ac_objext
6160 if { (ac_try="$ac_compile"
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_compile") 2>conftest.er1
6168 grep -v '^ *+' conftest.er1 >conftest.err
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && {
6173 test -z "$ac_c_werror_flag" ||
6174 test ! -s conftest.err
6175 } && test -s conftest.$ac_objext; then
6176 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6177 ac_cv_c_bigendian=yes
6179 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6180 if test "$ac_cv_c_bigendian" = unknown; then
6181 ac_cv_c_bigendian=no
6183 # finding both strings is unlikely to happen, but who knows?
6184 ac_cv_c_bigendian=unknown
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 cat >conftest.$ac_ext <<_ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 $ac_includes_default
6207 /* Are we little or big endian? From Harbison&Steele. */
6211 char c[sizeof (long int)];
6214 return u.c[sizeof (long int) - 1] == 1;
6220 rm -f conftest$ac_exeext
6221 if { (ac_try="$ac_link"
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_link") 2>&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6231 { (case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_try") 2>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6240 ac_cv_c_bigendian=no
6242 echo "$as_me: program exited with status $ac_status" >&5
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_cv_c_bigendian=yes
6249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6258 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6259 case $ac_cv_c_bigendian in
6262 cat >>confdefs.h <<\_ACEOF
6263 #define WORDS_BIGENDIAN 1
6269 { { echo "$as_me:$LINENO: error: unknown endianness
6270 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6271 echo "$as_me: error: unknown endianness
6272 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6273 { (exit 1); exit 1; }; } ;;
6277 # Set standard installation paths
6278 # ===========================================================================
6280 # In the Makefiles we need paths with '/' as directory separator, even if
6281 # crosscompiling for Win32.
6282 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6283 # The variables in the Makefiles are replaced by AC_SUBST()
6285 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6287 # The macros are expanded for the header.
6288 # The variables in the header are replaced by AC_*DEFINE*()
6289 # sdccconf_h_dir_separator contains a backslash.
6291 if test "x${sdccconf_h_dir_separator}" = "x"; then
6292 sdccconf_h_dir_separator="/"
6298 # include_dir_suffix:
6299 # *nix default: "sdcc/include"
6302 if test "${include_dir_suffix}" = ""; then
6303 include_dir_suffix="sdcc/include"
6308 # *nix default: "sdcc/lib"
6310 if test "${lib_dir_suffix}" = ""; then
6311 lib_dir_suffix="sdcc/lib"
6316 # *nix default: "${datadir}/sdcc/doc"
6318 if test "${docdir}" = ""; then
6319 docdir="\${datadir}"/sdcc/doc
6328 cat >>confdefs.h <<_ACEOF
6329 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6332 cat >>confdefs.h <<_ACEOF
6333 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6338 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6340 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6341 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6343 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6344 ac_expand=`eval echo $ac_expand`
6345 expanded_prefix=`eval echo $ac_expand`
6348 ac_ndu=$expanded_prefix
6351 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6354 case $sdccconf_h_dir_separator in
6356 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6357 s,^[\\/],\\\\\\\\,'` ;;
6359 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6361 cat >>confdefs.h <<_ACEOF
6362 #define PREFIX "${ac_ndu}"
6368 # default: "${prefix}"
6370 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6372 ac_expand=$exec_prefix
6373 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6374 ac_expand=`eval echo $ac_expand`
6375 expanded_exec_prefix=`eval echo $ac_expand`
6378 ac_ndu=$expanded_exec_prefix
6381 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6384 case $sdccconf_h_dir_separator in
6386 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6387 s,^[\\/],\\\\\\\\,'` ;;
6389 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6391 cat >>confdefs.h <<_ACEOF
6392 #define EXEC_PREFIX "${ac_ndu}"
6398 # default: "${exec_prefix}/bin"
6400 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6403 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6404 ac_expand=`eval echo $ac_expand`
6405 expanded_bindir=`eval echo $ac_expand`
6408 ac_ndu=$expanded_bindir
6411 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6414 case $sdccconf_h_dir_separator in
6416 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6417 s,^[\\/],\\\\\\\\,'` ;;
6419 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6421 cat >>confdefs.h <<_ACEOF
6422 #define BINDIR "${ac_ndu}"
6428 # default: "${prefix}/share"
6430 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6433 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6434 ac_expand=`eval echo $ac_expand`
6435 expanded_datadir=`eval echo $ac_expand`
6438 ac_ndu=$expanded_datadir
6441 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6444 case $sdccconf_h_dir_separator in
6446 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6447 s,^[\\/],\\\\\\\\,'` ;;
6449 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6451 cat >>confdefs.h <<_ACEOF
6452 #define DATADIR "${ac_ndu}"
6457 # include/lib suffix
6458 norm_inc_dir_suffix=${include_dir_suffix}
6459 case ":$norm_inc_dir_suffix:" in
6460 ::) norm_inc_dir_suffix='.' ;;
6461 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6464 case $sdccconf_h_dir_separator in
6466 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6467 s,^[\\/],\\\\\\\\,'` ;;
6469 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6471 cat >>confdefs.h <<_ACEOF
6472 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6475 norm_lib_dir_suffix=${lib_dir_suffix}
6476 case ":$norm_lib_dir_suffix:" in
6477 ::) norm_lib_dir_suffix='.' ;;
6478 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6481 case $sdccconf_h_dir_separator in
6483 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6484 s,^[\\/],\\\\\\\\,'` ;;
6486 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6488 cat >>confdefs.h <<_ACEOF
6489 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6494 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6495 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6496 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6497 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6498 _lcl_receval="$_lcl_from"
6499 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6500 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6502 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6503 _lcl_receval_old="$_lcl_receval"
6504 eval _lcl_receval="\"$_lcl_receval\""
6506 echo "$_lcl_receval")`
6507 _lcl_receval="$_lcl_to"
6508 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6509 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6511 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6512 _lcl_receval_old="$_lcl_receval"
6513 eval _lcl_receval="\"$_lcl_receval\""
6515 echo "$_lcl_receval")`
6516 _lcl_notation="$_lcl_from$_lcl_to"
6517 case ":$_lcl_from:" in
6518 ::) _lcl_from='.' ;;
6519 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6524 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6525 s,^[\\/],\\\\\\\\,'` ;;
6527 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6529 case ":$_lcl_to:" in
6531 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6536 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6537 s,^[\\/],\\\\\\\\,'` ;;
6539 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6541 _lcl_common_prefix=''
6542 _lcl_second_prefix_match=''
6543 while test "$_lcl_second_prefix_match" != 0; do
6544 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6545 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6546 if test "$_lcl_second_prefix_match" != 0; then
6547 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6548 _lcl_common_prefix="$_lcl_first_prefix"
6550 _lcl_second_prefix_match=0
6554 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6557 while test "$_lcl_tmp" != ''; do
6558 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6559 if test "$_lcl_first_suffix" != ''; then
6560 _lcl_first_suffix="$_lcl_tmp"
6561 _lcl_first_rel="../$_lcl_first_rel"
6564 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6565 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6566 case ":$_lcl_result_tmp:" in
6567 ::) _lcl_result_tmp='.' ;;
6568 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6571 case "$_lcl_notation" in
6573 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6574 s,^[\\/],\\\\\\\\,'` ;;
6576 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6578 eval $_lcl_result_var='$_lcl_result_tmp'
6580 case ":$bin2data_dir:" in
6581 ::) bin2data_dir='.' ;;
6582 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6585 case $sdccconf_h_dir_separator in
6587 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6588 s,^[\\/],\\\\\\\\,'` ;;
6590 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6592 cat >>confdefs.h <<_ACEOF
6593 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6597 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6598 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6599 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6600 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6601 _lcl_receval="$_lcl_from"
6602 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6603 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6605 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6606 _lcl_receval_old="$_lcl_receval"
6607 eval _lcl_receval="\"$_lcl_receval\""
6609 echo "$_lcl_receval")`
6610 _lcl_receval="$_lcl_to"
6611 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6612 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6614 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6615 _lcl_receval_old="$_lcl_receval"
6616 eval _lcl_receval="\"$_lcl_receval\""
6618 echo "$_lcl_receval")`
6619 _lcl_notation="$_lcl_from$_lcl_to"
6620 case ":$_lcl_from:" in
6621 ::) _lcl_from='.' ;;
6622 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6627 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6628 s,^[\\/],\\\\\\\\,'` ;;
6630 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6632 case ":$_lcl_to:" in
6634 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6639 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6640 s,^[\\/],\\\\\\\\,'` ;;
6642 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6644 _lcl_common_prefix=''
6645 _lcl_second_prefix_match=''
6646 while test "$_lcl_second_prefix_match" != 0; do
6647 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6648 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6649 if test "$_lcl_second_prefix_match" != 0; then
6650 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6651 _lcl_common_prefix="$_lcl_first_prefix"
6653 _lcl_second_prefix_match=0
6657 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6660 while test "$_lcl_tmp" != ''; do
6661 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6662 if test "$_lcl_first_suffix" != ''; then
6663 _lcl_first_suffix="$_lcl_tmp"
6664 _lcl_first_rel="../$_lcl_first_rel"
6667 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6668 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6669 case ":$_lcl_result_tmp:" in
6670 ::) _lcl_result_tmp='.' ;;
6671 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6674 case "$_lcl_notation" in
6676 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6677 s,^[\\/],\\\\\\\\,'` ;;
6679 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6681 eval $_lcl_result_var='$_lcl_result_tmp'
6683 case ":$prefix2bin_dir:" in
6684 ::) prefix2bin_dir='.' ;;
6685 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6688 case $sdccconf_h_dir_separator in
6690 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6691 s,^[\\/],\\\\\\\\,'` ;;
6693 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6695 cat >>confdefs.h <<_ACEOF
6696 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6700 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6701 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6702 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6703 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6704 _lcl_receval="$_lcl_from"
6705 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6706 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6708 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6709 _lcl_receval_old="$_lcl_receval"
6710 eval _lcl_receval="\"$_lcl_receval\""
6712 echo "$_lcl_receval")`
6713 _lcl_receval="$_lcl_to"
6714 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6715 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6717 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6718 _lcl_receval_old="$_lcl_receval"
6719 eval _lcl_receval="\"$_lcl_receval\""
6721 echo "$_lcl_receval")`
6722 _lcl_notation="$_lcl_from$_lcl_to"
6723 case ":$_lcl_from:" in
6724 ::) _lcl_from='.' ;;
6725 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6730 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6731 s,^[\\/],\\\\\\\\,'` ;;
6733 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6735 case ":$_lcl_to:" in
6737 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6742 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6743 s,^[\\/],\\\\\\\\,'` ;;
6745 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6747 _lcl_common_prefix=''
6748 _lcl_second_prefix_match=''
6749 while test "$_lcl_second_prefix_match" != 0; do
6750 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6751 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6752 if test "$_lcl_second_prefix_match" != 0; then
6753 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6754 _lcl_common_prefix="$_lcl_first_prefix"
6756 _lcl_second_prefix_match=0
6760 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6763 while test "$_lcl_tmp" != ''; do
6764 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6765 if test "$_lcl_first_suffix" != ''; then
6766 _lcl_first_suffix="$_lcl_tmp"
6767 _lcl_first_rel="../$_lcl_first_rel"
6770 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6771 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6772 case ":$_lcl_result_tmp:" in
6773 ::) _lcl_result_tmp='.' ;;
6774 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6777 case "$_lcl_notation" in
6779 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6780 s,^[\\/],\\\\\\\\,'` ;;
6782 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6784 eval $_lcl_result_var='$_lcl_result_tmp'
6786 case ":$prefix2data_dir:" in
6787 ::) prefix2data_dir='.' ;;
6788 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6791 case $sdccconf_h_dir_separator in
6793 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6794 s,^[\\/],\\\\\\\\,'` ;;
6796 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6798 if test "${prefix2data_dir}" = "."; then
6799 # small optimization for Mingw32; otherwise Borut will complain ;-)
6800 cat >>confdefs.h <<_ACEOF
6801 #define PREFIX2DATA_DIR ""
6805 cat >>confdefs.h <<_ACEOF
6806 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6812 cat >>confdefs.h <<_ACEOF
6813 #define STD_LIB "libsdcc"
6816 cat >>confdefs.h <<_ACEOF
6817 #define STD_INT_LIB "libint"
6820 cat >>confdefs.h <<_ACEOF
6821 #define STD_LONG_LIB "liblong"
6824 cat >>confdefs.h <<_ACEOF
6825 #define STD_FP_LIB "libfloat"
6828 cat >>confdefs.h <<_ACEOF
6829 #define STD_DS390_LIB "libds390"
6832 cat >>confdefs.h <<_ACEOF
6833 #define STD_DS400_LIB "libds400"
6836 cat >>confdefs.h <<_ACEOF
6837 #define STD_XA51_LIB "libxa51"
6841 # SDCC runtime environment variables
6842 sdcc_dir_name="SDCC_HOME"
6843 cat >>confdefs.h <<_ACEOF
6844 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6848 sdcc_include_name="SDCC_INCLUDE"
6849 cat >>confdefs.h <<_ACEOF
6850 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6854 sdcc_lib_name="SDCC_LIB"
6855 cat >>confdefs.h <<_ACEOF
6856 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6860 # Port selection helper
6861 # ===========================================================================
6862 # macro AC_DO_ENABLER()
6863 # $1 used to access enable_$1, e.g. enable-doc
6864 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6868 # macro AC_DO_DISABLER()
6869 # $1 used to access disable_$1, e.g. ucsim
6870 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6874 # macro AC_DO_PORT($1, $2, $3, $4)
6875 # $1 used to access enable_$2_port, e.g. gbz80
6876 # $2 port name in ports.all and ports.build, e.g. z80
6877 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6881 # Now handle the port selection
6882 # ===========================================================================
6883 rm -f ports.all ports.build
6885 # Check whether --enable-mcs51-port was given.
6886 if test "${enable_mcs51_port+set}" = set; then
6887 enableval=$enable_mcs51_port;
6891 if test "$enable_mcs51_port" = "no"; then
6894 enable_mcs51_port="yes"
6898 cat >>confdefs.h <<_ACEOF
6899 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6904 echo mcs51 >>ports.all
6905 if test $OPT_DISABLE_MCS51 = 0; then
6906 echo mcs51 >>ports.build
6910 # Check whether --enable-gbz80-port was given.
6911 if test "${enable_gbz80_port+set}" = set; then
6912 enableval=$enable_gbz80_port;
6916 if test "$enable_gbz80_port" = "no"; then
6919 enable_gbz80_port="yes"
6923 cat >>confdefs.h <<_ACEOF
6924 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6929 echo z80 >>ports.all
6930 if test $OPT_DISABLE_GBZ80 = 0; then
6931 echo z80 >>ports.build
6935 # Check whether --enable-z80-port was given.
6936 if test "${enable_z80_port+set}" = set; then
6937 enableval=$enable_z80_port;
6941 if test "$enable_z80_port" = "no"; then
6944 enable_z80_port="yes"
6948 cat >>confdefs.h <<_ACEOF
6949 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6954 echo z80 >>ports.all
6955 if test $OPT_DISABLE_Z80 = 0; then
6956 echo z80 >>ports.build
6960 # Check whether --enable-avr-port was given.
6961 if test "${enable_avr_port+set}" = set; then
6962 enableval=$enable_avr_port;
6966 if test "$enable_avr_port" = "no"; then
6969 enable_avr_port="yes"
6973 cat >>confdefs.h <<_ACEOF
6974 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
6979 echo avr >>ports.all
6980 if test $OPT_DISABLE_AVR = 0; then
6981 echo avr >>ports.build
6985 # Check whether --enable-ds390-port was given.
6986 if test "${enable_ds390_port+set}" = set; then
6987 enableval=$enable_ds390_port;
6991 if test "$enable_ds390_port" = "no"; then
6994 enable_ds390_port="yes"
6998 cat >>confdefs.h <<_ACEOF
6999 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
7004 echo ds390 >>ports.all
7005 if test $OPT_DISABLE_DS390 = 0; then
7006 echo ds390 >>ports.build
7009 cat >>confdefs.h <<_ACEOF
7010 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
7014 # Check whether --enable-ds400-port was given.
7015 if test "${enable_ds400_port+set}" = set; then
7016 enableval=$enable_ds400_port;
7020 if test "$enable_ds400_port" = "no"; then
7023 enable_ds400_port="yes"
7027 cat >>confdefs.h <<_ACEOF
7028 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
7033 echo ds400 >>ports.all
7034 if test $OPT_DISABLE_DS400 = 0; then
7035 echo ds400 >>ports.build
7039 # Check whether --enable-pic-port was given.
7040 if test "${enable_pic_port+set}" = set; then
7041 enableval=$enable_pic_port;
7045 if test "$enable_pic_port" = "no"; then
7048 enable_pic_port="yes"
7052 cat >>confdefs.h <<_ACEOF
7053 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
7058 echo pic >>ports.all
7059 if test $OPT_DISABLE_PIC = 0; then
7060 echo pic >>ports.build
7064 # Check whether --enable-pic16-port was given.
7065 if test "${enable_pic16_port+set}" = set; then
7066 enableval=$enable_pic16_port;
7070 if test "$enable_pic16_port" = "no"; then
7073 enable_pic16_port="yes"
7077 cat >>confdefs.h <<_ACEOF
7078 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
7083 echo pic16 >>ports.all
7084 if test $OPT_DISABLE_PIC16 = 0; then
7085 echo pic16 >>ports.build
7089 # Check whether --enable-xa51-port was given.
7090 if test "${enable_xa51_port+set}" = set; then
7091 enableval=$enable_xa51_port;
7095 if test "$enable_xa51_port" = "no"; then
7098 enable_xa51_port="yes"
7102 cat >>confdefs.h <<_ACEOF
7103 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
7108 echo xa51 >>ports.all
7109 if test $OPT_DISABLE_XA51 = 0; then
7110 echo xa51 >>ports.build
7114 # Check whether --enable-hc08-port was given.
7115 if test "${enable_hc08_port+set}" = set; then
7116 enableval=$enable_hc08_port;
7120 if test "$enable_hc08_port" = "no"; then
7123 enable_hc08_port="yes"
7127 cat >>confdefs.h <<_ACEOF
7128 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
7133 echo hc08 >>ports.all
7134 if test $OPT_DISABLE_HC08 = 0; then
7135 echo hc08 >>ports.build
7140 # Check whether --enable-ucsim was given.
7141 if test "${enable_ucsim+set}" = set; then
7142 enableval=$enable_ucsim;
7146 arg1=`echo ucsim | sed s/-/_/`
7148 if test "`eval echo \\$enable_$arg1`" = "no"; then
7154 cat >>confdefs.h <<_ACEOF
7155 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
7161 # Check whether --enable-device-lib was given.
7162 if test "${enable_device_lib+set}" = set; then
7163 enableval=$enable_device_lib;
7167 arg1=`echo device-lib | sed s/-/_/`
7169 if test "`eval echo \\$enable_$arg1`" = "no"; then
7170 OPT_DISABLE_DEVICE_LIB=1
7172 OPT_DISABLE_DEVICE_LIB=0
7175 cat >>confdefs.h <<_ACEOF
7176 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
7182 # Check whether --enable-packihx was given.
7183 if test "${enable_packihx+set}" = set; then
7184 enableval=$enable_packihx;
7188 arg1=`echo packihx | sed s/-/_/`
7190 if test "`eval echo \\$enable_$arg1`" = "no"; then
7191 OPT_DISABLE_PACKIHX=1
7193 OPT_DISABLE_PACKIHX=0
7196 cat >>confdefs.h <<_ACEOF
7197 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
7203 # Check whether --enable-sdcpp was given.
7204 if test "${enable_sdcpp+set}" = set; then
7205 enableval=$enable_sdcpp;
7209 arg1=`echo sdcpp | sed s/-/_/`
7211 if test "`eval echo \\$enable_$arg1`" = "no"; then
7217 cat >>confdefs.h <<_ACEOF
7218 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
7224 # Check whether --enable-sdcdb was given.
7225 if test "${enable_sdcdb+set}" = set; then
7226 enableval=$enable_sdcdb;
7230 arg1=`echo sdcdb | sed s/-/_/`
7232 if test "`eval echo \\$enable_$arg1`" = "no"; then
7238 cat >>confdefs.h <<_ACEOF
7239 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
7246 # Check whether --enable-doc was given.
7247 if test "${enable_doc+set}" = set; then
7248 enableval=$enable_doc;
7252 if test "$enable_doc" = "yes"; then
7258 cat >>confdefs.h <<_ACEOF
7259 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
7264 if test $OPT_ENABLE_DOC = 1; then
7265 # Extract the first word of "lyx", so it can be a program name with args.
7266 set dummy lyx; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_prog_LYX+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 if test -n "$LYX"; then
7273 ac_cv_prog_LYX="$LYX" # Let the user override the test.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_LYX="lyx"
7283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
7294 if test -n "$LYX"; then
7295 { echo "$as_me:$LINENO: result: $LYX" >&5
7296 echo "${ECHO_T}$LYX" >&6; }
7298 { echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6; }
7303 # Extract the first word of "latex2html", so it can be a program name with args.
7304 set dummy latex2html; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 if test -n "$LATEX2HTML"; then
7311 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_LATEX2HTML="latex2html"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7331 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7332 if test -n "$LATEX2HTML"; then
7333 { echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7334 echo "${ECHO_T}$LATEX2HTML" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7341 # Extract the first word of "pdflatex", so it can be a program name with args.
7342 set dummy pdflatex; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 if test -n "$PDFLATEX"; then
7349 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_PDFLATEX="pdflatex"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7369 PDFLATEX=$ac_cv_prog_PDFLATEX
7370 if test -n "$PDFLATEX"; then
7371 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7372 echo "${ECHO_T}$PDFLATEX" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7379 # Extract the first word of "pdfopt", so it can be a program name with args.
7380 set dummy pdfopt; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 if test -n "$PDFOPT"; then
7387 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_prog_PDFOPT="pdfopt"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7407 PDFOPT=$ac_cv_prog_PDFOPT
7408 if test -n "$PDFOPT"; then
7409 { echo "$as_me:$LINENO: result: $PDFOPT" >&5
7410 echo "${ECHO_T}$PDFOPT" >&6; }
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7417 # Extract the first word of "makeindex", so it can be a program name with args.
7418 set dummy makeindex; ac_word=$2
7419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7421 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 if test -n "$MAKEINDEX"; then
7425 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_prog_MAKEINDEX="makeindex"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7445 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7446 if test -n "$MAKEINDEX"; then
7447 { echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7448 echo "${ECHO_T}$MAKEINDEX" >&6; }
7450 { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7456 if test "$LYX" = ":"; then
7457 { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7458 echo "$as_me: error: Cannot find required program lyx." >&2;}
7459 { (exit 1); exit 1; }; }
7462 if test "$LATEX2HTML" = ":"; then
7463 { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7464 echo "$as_me: error: Cannot find required program latex2html." >&2;}
7465 { (exit 1); exit 1; }; }
7468 if test "$PDFLATEX" = ":"; then
7469 { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7470 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7471 { (exit 1); exit 1; }; }
7474 if test "$PDFOPT" = ":"; then
7475 { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7476 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7477 { (exit 1); exit 1; }; }
7480 if test "$MAKEINDEX" = ":"; then
7481 { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7482 echo "$as_me: error: Cannot find required program makeindex." >&2;}
7483 { (exit 1); exit 1; }; }
7489 # Check whether --enable-libgc was given.
7490 if test "${enable_libgc+set}" = set; then
7491 enableval=$enable_libgc;
7495 if test "$enable_libgc" = "yes"; then
7501 cat >>confdefs.h <<_ACEOF
7502 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7507 if test $OPT_ENABLE_LIBGC = 1; then
7509 { echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7510 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6; }
7511 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 ac_check_lib_save_LIBS=$LIBS
7516 cat >conftest.$ac_ext <<_ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7523 /* Override any GCC internal prototype to avoid an error.
7524 Use char because int might match the return type of a GCC
7525 builtin and then its argument prototype would still apply. */
7533 return GC_malloc ();
7538 rm -f conftest.$ac_objext conftest$ac_exeext
7539 if { (ac_try="$ac_link"
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 (eval "$ac_link") 2>conftest.er1
7547 grep -v '^ *+' conftest.er1 >conftest.err
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && {
7552 test -z "$ac_c_werror_flag" ||
7553 test ! -s conftest.err
7554 } && test -s conftest$ac_exeext &&
7555 $as_test_x conftest$ac_exeext; then
7556 ac_cv_lib_gc_GC_malloc=yes
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_cv_lib_gc_GC_malloc=no
7564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7565 conftest$ac_exeext conftest.$ac_ext
7566 LIBS=$ac_check_lib_save_LIBS
7568 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7569 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6; }
7570 if test $ac_cv_lib_gc_GC_malloc = yes; then
7571 cat >>confdefs.h <<_ACEOF
7572 #define HAVE_LIBGC 1
7579 if test $ac_cv_lib_gc_GC_malloc = no; then
7580 { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7581 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7582 { (exit 1); exit 1; }; }
7587 uniq ports.all ports
7589 uniq ports.build ports
7590 mv ports ports.build
7592 # Generating output files
7593 # ===========================================================================
7594 test $OPT_DISABLE_SDCPP = 0 && subdirs="$subdirs support/cpp2"
7596 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
7598 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
7600 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
7602 ac_config_files="$ac_config_files doc/Makefile"
7605 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7608 if test $OPT_DISABLE_DS390 = 0; then
7609 ac_config_files="$ac_config_files src/ds390/Makefile"
7611 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7615 if test $OPT_DISABLE_DS400 = 0; then
7616 ac_config_files="$ac_config_files src/ds400/Makefile"
7618 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7622 if test $OPT_DISABLE_HC08 = 0; then
7623 ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7625 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7629 if test $OPT_DISABLE_MCS51 = 0; then
7630 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7632 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"
7636 if test $OPT_DISABLE_PIC = 0; then
7637 ac_config_files="$ac_config_files src/pic/Makefile"
7639 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic"
7642 if test $OPT_DISABLE_PIC16 = 0; then
7643 ac_config_files="$ac_config_files src/pic16/Makefile"
7645 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
7649 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7652 if test $OPT_DISABLE_Z80 = 0; then
7653 ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7655 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7659 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7662 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"
7664 cat >confcache <<\_ACEOF
7665 # This file is a shell script that caches the results of configure
7666 # tests run on this system so they can be shared between configure
7667 # scripts and configure runs, see configure's option --config-cache.
7668 # It is not useful on other systems. If it contains results you don't
7669 # want to keep, you may remove or edit it.
7671 # config.status only pays attention to the cache file if you give it
7672 # the --recheck option to rerun configure.
7674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7680 # The following way of writing the cache mishandles newlines in values,
7681 # but we know of no workaround that is simple, portable, and efficient.
7682 # So, we kill variables containing newlines.
7683 # Ultrix sh set writes to stderr and can't be redirected directly,
7684 # and sets the high bit in the cache file unless we assign to the vars.
7686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7687 eval ac_val=\$$ac_var
7691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7695 _ | IFS | as_nl) ;; #(
7696 *) $as_unset $ac_var ;;
7702 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7703 *${as_nl}ac_space=\ *)
7704 # `set' does not quote correctly, so add quotes (double-quote
7705 # substitution turns \\\\ into \\, and sed turns \\ into \).
7708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7711 # `set' quotes correctly as required by POSIX, so do not add quotes.
7712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7723 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7725 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7726 if test -w "$cache_file"; then
7727 test "x$cache_file" != "x/dev/null" &&
7728 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7729 echo "$as_me: updating cache $cache_file" >&6;}
7730 cat confcache >$cache_file
7732 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7733 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7738 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7739 # Let make expand exec_prefix.
7740 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7742 DEFS=-DHAVE_CONFIG_H
7746 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7747 # 1. Remove the extension, and $U if already installed.
7748 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7749 ac_i=`echo "$ac_i" | sed "$ac_script"`
7750 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7751 # will be set to the directory where LIBOBJS objects are built.
7752 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7753 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7757 LTLIBOBJS=$ac_ltlibobjs
7761 : ${CONFIG_STATUS=./config.status}
7762 ac_clean_files_save=$ac_clean_files
7763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7766 cat >$CONFIG_STATUS <<_ACEOF
7768 # Generated by $as_me.
7769 # Run this file to recreate the current configuration.
7770 # Compiler output produced by configure, useful for debugging
7771 # configure, is in config.log if it exists.
7776 SHELL=\${CONFIG_SHELL-$SHELL}
7779 cat >>$CONFIG_STATUS <<\_ACEOF
7780 ## --------------------- ##
7781 ## M4sh Initialization. ##
7782 ## --------------------- ##
7784 # Be more Bourne compatible
7785 DUALCASE=1; export DUALCASE # for MKS sh
7786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7789 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7790 # is contrary to our usage. Disable this feature.
7791 alias -g '${1+"$@"}'='"$@"'
7792 setopt NO_GLOB_SUBST
7794 case `(set -o) 2>/dev/null` in
7795 *posix*) set -o posix ;;
7804 # Avoid depending upon Character Ranges.
7805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7808 as_cr_digits='0123456789'
7809 as_cr_alnum=$as_cr_Letters$as_cr_digits
7811 # The user is always right.
7812 if test "${PATH_SEPARATOR+set}" != set; then
7813 echo "#! /bin/sh" >conf$$.sh
7814 echo "exit 0" >>conf$$.sh
7816 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7824 # Support unset when possible.
7825 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7833 # We need space, tab and new line, in precisely that order. Quoting is
7834 # there to prevent editors from complaining about space-tab.
7835 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7836 # splitting by setting IFS to empty value.)
7841 # Find who we are. Look in the path if we contain no directory separator.
7843 *[\\/]* ) as_myself=$0 ;;
7844 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7855 # We did not find ourselves, most probably we were run as `sh COMMAND'
7856 # in which case we are not to be found in the path.
7857 if test "x$as_myself" = x; then
7860 if test ! -f "$as_myself"; then
7861 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7862 { (exit 1); exit 1; }
7865 # Work around bugs in pre-3.0 UWIN ksh.
7866 for as_var in ENV MAIL MAILPATH
7867 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7875 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7876 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7877 LC_TELEPHONE LC_TIME
7879 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7880 eval $as_var=C; export $as_var
7882 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7886 # Required to use basename.
7887 if expr a : '\(a\)' >/dev/null 2>&1 &&
7888 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7895 as_basename=basename
7901 # Name of the executable.
7902 as_me=`$as_basename -- "$0" ||
7903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7904 X"$0" : 'X\(//\)$' \| \
7905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7907 sed '/^.*\/\([^/][^/]*\)\/*$/{
7928 test "x$as_lineno_1" != "x$as_lineno_2" &&
7929 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7931 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7932 # uniformly replaced by the line number. The first 'sed' inserts a
7933 # line-number line after each line using $LINENO; the second 'sed'
7934 # does the real work. The second script uses 'N' to pair each
7935 # line-number line with the line containing $LINENO, and appends
7936 # trailing '-' during substitution so that $LINENO is not a special
7938 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7939 # scripts with optimization help from Paolo Bonzini. Blame Lee
7940 # E. McMahon (1931-1989) for sed's syntax. :-)
7952 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7956 chmod +x "$as_me.lineno" ||
7957 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7958 { (exit 1); exit 1; }; }
7960 # Don't try to exec as it changes $[0], causing all sort of problems
7961 # (the dirname of $[0] is not the place where we might find the
7962 # original and so on. Autoconf is especially sensitive to this).
7964 # Exit status is that of the last command.
7969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7975 ECHO_C= ECHO_N= ECHO_T=
7978 case `echo 'x\c'` in
7979 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7986 if expr a : '\(a\)' >/dev/null 2>&1 &&
7987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7993 rm -f conf$$ conf$$.exe conf$$.file
7994 if test -d conf$$.dir; then
7995 rm -f conf$$.dir/conf$$.file
8001 if ln -s conf$$.file conf$$ 2>/dev/null; then
8003 # ... but there are two gotchas:
8004 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8005 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8006 # In both cases, we have to default to `cp -p'.
8007 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8009 elif ln conf$$.file conf$$ 2>/dev/null; then
8014 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8015 rmdir conf$$.dir 2>/dev/null
8017 if mkdir -p . 2>/dev/null; then
8020 test -d ./-p && rmdir ./-p
8024 if test -x / >/dev/null 2>&1; then
8027 if ls -dL / >/dev/null 2>&1; then
8034 if test -d "$1"; then
8040 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8041 ???[sx]*):;;*)false;;esac;fi
8045 as_executable_p=$as_test_x
8047 # Sed expression to map a string onto a valid CPP name.
8048 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8050 # Sed expression to map a string onto a valid variable name.
8051 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8056 # Save the log message, to keep $[0] and so on meaningful, and to
8057 # report actual input values of CONFIG_FILES etc. instead of their
8058 # values after options handling.
8060 This file was extended by sdcc $as_me 2.7.1, which was
8061 generated by GNU Autoconf 2.61. Invocation command line was
8063 CONFIG_FILES = $CONFIG_FILES
8064 CONFIG_HEADERS = $CONFIG_HEADERS
8065 CONFIG_LINKS = $CONFIG_LINKS
8066 CONFIG_COMMANDS = $CONFIG_COMMANDS
8069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8074 cat >>$CONFIG_STATUS <<_ACEOF
8075 # Files that config.status was made for.
8076 config_files="$ac_config_files"
8077 config_headers="$ac_config_headers"
8081 cat >>$CONFIG_STATUS <<\_ACEOF
8083 \`$as_me' instantiates files from templates according to the
8084 current configuration.
8086 Usage: $0 [OPTIONS] [FILE]...
8088 -h, --help print this help, then exit
8089 -V, --version print version number and configuration settings, then exit
8090 -q, --quiet do not print progress messages
8091 -d, --debug don't remove temporary files
8092 --recheck update $as_me by reconfiguring in the same conditions
8093 --file=FILE[:TEMPLATE]
8094 instantiate the configuration file FILE
8095 --header=FILE[:TEMPLATE]
8096 instantiate the configuration header FILE
8098 Configuration files:
8101 Configuration headers:
8104 Report bugs to <bug-autoconf@gnu.org>."
8107 cat >>$CONFIG_STATUS <<_ACEOF
8109 sdcc config.status 2.7.1
8110 configured by $0, generated by GNU Autoconf 2.61,
8111 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8113 Copyright (C) 2006 Free Software Foundation, Inc.
8114 This config.status script is free software; the Free Software Foundation
8115 gives unlimited permission to copy, distribute and modify it."
8122 cat >>$CONFIG_STATUS <<\_ACEOF
8123 # If no file are specified by the user, then we need to provide default
8124 # value. By we need to know if files were specified by the user.
8130 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8131 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8142 # Handling of the options.
8143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8145 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8146 echo "$ac_cs_version"; exit ;;
8147 --debug | --debu | --deb | --de | --d | -d )
8149 --file | --fil | --fi | --f )
8151 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8152 ac_need_defaults=false;;
8153 --header | --heade | --head | --hea )
8155 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8156 ac_need_defaults=false;;
8158 # Conflict between --help and --header
8159 { echo "$as_me: error: ambiguous option: $1
8160 Try \`$0 --help' for more information." >&2
8161 { (exit 1); exit 1; }; };;
8162 --help | --hel | -h )
8163 echo "$ac_cs_usage"; exit ;;
8164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8165 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8169 -*) { echo "$as_me: error: unrecognized option: $1
8170 Try \`$0 --help' for more information." >&2
8171 { (exit 1); exit 1; }; } ;;
8173 *) ac_config_targets="$ac_config_targets $1"
8174 ac_need_defaults=false ;;
8180 ac_configure_extra_args=
8182 if $ac_cs_silent; then
8184 ac_configure_extra_args="$ac_configure_extra_args --silent"
8188 cat >>$CONFIG_STATUS <<_ACEOF
8189 if \$ac_cs_recheck; then
8190 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8193 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8197 cat >>$CONFIG_STATUS <<\_ACEOF
8201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8202 ## Running $as_me. ##
8208 cat >>$CONFIG_STATUS <<_ACEOF
8211 cat >>$CONFIG_STATUS <<\_ACEOF
8213 # Handling of arguments.
8214 for ac_config_target in $ac_config_targets
8216 case $ac_config_target in
8217 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8218 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8219 "src/avr/Makefile") CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
8220 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
8221 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
8222 "src/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
8223 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
8224 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
8225 "as/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8226 "as/link/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
8227 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
8228 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
8229 "as/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8230 "as/link/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
8231 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
8232 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
8233 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
8234 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
8235 "src/pic/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
8236 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
8237 "src/xa51/Makefile") CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
8238 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
8239 "as/Makefile") CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
8240 "as/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
8241 "as/link/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
8242 "as/link/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
8243 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
8244 "device/lib/gbz80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
8245 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8246 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8247 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8248 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8249 "support/librarian/Makefile") CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
8250 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
8251 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8252 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
8253 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8254 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8256 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8257 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8258 { (exit 1); exit 1; }; };;
8263 # If the user did not use the arguments to specify the items to instantiate,
8264 # then the envvar interface is used. Set only those that are not.
8265 # We use the long form for the default assignment because of an extremely
8266 # bizarre bug on SunOS 4.1.3.
8267 if $ac_need_defaults; then
8268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8272 # Have a temporary directory for convenience. Make it in the build tree
8273 # simply because there is no reason against having it here, and in addition,
8274 # creating and moving files from /tmp can sometimes cause problems.
8275 # Hook for its removal unless debugging.
8276 # Note that there is a small window in which the directory will not be cleaned:
8277 # after its creation but before its name has been assigned to `$tmp'.
8281 trap 'exit_status=$?
8282 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8284 trap '{ (exit 1); exit 1; }' 1 2 13 15
8286 # Create a (secure) tmp directory for tmp files.
8289 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8290 test -n "$tmp" && test -d "$tmp"
8293 tmp=./conf$$-$RANDOM
8294 (umask 077 && mkdir "$tmp")
8297 echo "$me: cannot create a temporary directory in ." >&2
8298 { (exit 1); exit 1; }
8302 # Set up the sed scripts for CONFIG_FILES section.
8305 # No need to generate the scripts if there are no CONFIG_FILES.
8306 # This happens for instance when ./config.status config.h
8307 if test -n "$CONFIG_FILES"; then
8314 for ac_last_try in false false false false false :; do
8315 cat >conf$$subs.sed <<_ACEOF
8316 SHELL!$SHELL$ac_delim
8317 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8318 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8319 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8320 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8321 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8322 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8323 exec_prefix!$exec_prefix$ac_delim
8324 prefix!$prefix$ac_delim
8325 program_transform_name!$program_transform_name$ac_delim
8326 bindir!$bindir$ac_delim
8327 sbindir!$sbindir$ac_delim
8328 libexecdir!$libexecdir$ac_delim
8329 datarootdir!$datarootdir$ac_delim
8330 datadir!$datadir$ac_delim
8331 sysconfdir!$sysconfdir$ac_delim
8332 sharedstatedir!$sharedstatedir$ac_delim
8333 localstatedir!$localstatedir$ac_delim
8334 includedir!$includedir$ac_delim
8335 oldincludedir!$oldincludedir$ac_delim
8336 docdir!$docdir$ac_delim
8337 infodir!$infodir$ac_delim
8338 htmldir!$htmldir$ac_delim
8339 dvidir!$dvidir$ac_delim
8340 pdfdir!$pdfdir$ac_delim
8341 psdir!$psdir$ac_delim
8342 libdir!$libdir$ac_delim
8343 localedir!$localedir$ac_delim
8344 mandir!$mandir$ac_delim
8346 ECHO_C!$ECHO_C$ac_delim
8347 ECHO_N!$ECHO_N$ac_delim
8348 ECHO_T!$ECHO_T$ac_delim
8350 build_alias!$build_alias$ac_delim
8351 host_alias!$host_alias$ac_delim
8352 target_alias!$target_alias$ac_delim
8354 VERSION!$VERSION$ac_delim
8355 VERSIONHI!$VERSIONHI$ac_delim
8356 VERSIONLO!$VERSIONLO$ac_delim
8357 VERSIONP!$VERSIONP$ac_delim
8359 CFLAGS!$CFLAGS$ac_delim
8360 LDFLAGS!$LDFLAGS$ac_delim
8361 CPPFLAGS!$CPPFLAGS$ac_delim
8362 ac_ct_CC!$ac_ct_CC$ac_delim
8363 EXEEXT!$EXEEXT$ac_delim
8364 OBJEXT!$OBJEXT$ac_delim
8366 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8367 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8368 INSTALL_DATA!$INSTALL_DATA$ac_delim
8369 RANLIB!$RANLIB$ac_delim
8370 AUTOCONF!$AUTOCONF$ac_delim
8371 STRIP!$STRIP$ac_delim
8376 M_OR_MM!$M_OR_MM$ac_delim
8378 EGREP!$EGREP$ac_delim
8379 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
8380 include_dir_suffix!$include_dir_suffix$ac_delim
8381 lib_dir_suffix!$lib_dir_suffix$ac_delim
8382 OPT_DISABLE_MCS51!$OPT_DISABLE_MCS51$ac_delim
8383 OPT_DISABLE_GBZ80!$OPT_DISABLE_GBZ80$ac_delim
8384 OPT_DISABLE_Z80!$OPT_DISABLE_Z80$ac_delim
8385 OPT_DISABLE_AVR!$OPT_DISABLE_AVR$ac_delim
8386 OPT_DISABLE_DS390!$OPT_DISABLE_DS390$ac_delim
8387 OPT_DISABLE_DS400!$OPT_DISABLE_DS400$ac_delim
8388 OPT_DISABLE_PIC!$OPT_DISABLE_PIC$ac_delim
8389 OPT_DISABLE_PIC16!$OPT_DISABLE_PIC16$ac_delim
8390 OPT_DISABLE_XA51!$OPT_DISABLE_XA51$ac_delim
8391 OPT_DISABLE_HC08!$OPT_DISABLE_HC08$ac_delim
8392 OPT_DISABLE_UCSIM!$OPT_DISABLE_UCSIM$ac_delim
8393 OPT_DISABLE_DEVICE_LIB!$OPT_DISABLE_DEVICE_LIB$ac_delim
8394 OPT_DISABLE_PACKIHX!$OPT_DISABLE_PACKIHX$ac_delim
8395 OPT_DISABLE_SDCPP!$OPT_DISABLE_SDCPP$ac_delim
8396 OPT_DISABLE_SDCDB!$OPT_DISABLE_SDCDB$ac_delim
8397 OPT_ENABLE_DOC!$OPT_ENABLE_DOC$ac_delim
8399 LATEX2HTML!$LATEX2HTML$ac_delim
8400 PDFLATEX!$PDFLATEX$ac_delim
8401 PDFOPT!$PDFOPT$ac_delim
8402 MAKEINDEX!$MAKEINDEX$ac_delim
8403 OPT_ENABLE_LIBGC!$OPT_ENABLE_LIBGC$ac_delim
8404 subdirs!$subdirs$ac_delim
8405 LIBOBJS!$LIBOBJS$ac_delim
8406 LTLIBOBJS!$LTLIBOBJS$ac_delim
8409 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
8411 elif $ac_last_try; then
8412 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8413 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8414 { (exit 1); exit 1; }; }
8416 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8420 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8421 if test -n "$ac_eof"; then
8422 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8423 ac_eof=`expr $ac_eof + 1`
8426 cat >>$CONFIG_STATUS <<_ACEOF
8427 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8431 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8432 s/^/s,@/; s/!/@,|#_!!_#|/
8435 s/'"$ac_delim"'$/,g/; t
8437 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8438 ' >>$CONFIG_STATUS <conf$$subs.sed
8439 rm -f conf$$subs.sed
8440 cat >>$CONFIG_STATUS <<_ACEOF
8447 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8448 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8449 # trailing colons and then remove the whole line if VPATH becomes empty
8450 # (actually we leave an empty line to preserve line numbers).
8451 if test "x$srcdir" = x.; then
8452 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8456 s/^\([^=]*=[ ]*\):*/\1/
8462 cat >>$CONFIG_STATUS <<\_ACEOF
8463 fi # test -n "$CONFIG_FILES"
8466 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
8469 :[FHLC]) ac_mode=$ac_tag; continue;;
8471 case $ac_mode$ac_tag in
8473 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8474 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8475 { (exit 1); exit 1; }; };;
8476 :[FH]-) ac_tag=-:-;;
8477 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8494 -) ac_f="$tmp/stdin";;
8495 *) # Look for the file first in the build tree, then in the source tree
8496 # (if the path is not absolute). The absolute path cannot be DOS-style,
8497 # because $ac_f cannot contain `:'.
8501 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8503 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8504 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8505 { (exit 1); exit 1; }; };;
8507 ac_file_inputs="$ac_file_inputs $ac_f"
8510 # Let's still pretend it is `configure' which instantiates (i.e., don't
8511 # use $as_me), people would be surprised to read:
8512 # /* config.h. Generated by config.status. */
8513 configure_input="Generated from "`IFS=:
8514 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8515 if test x"$ac_file" != x-; then
8516 configure_input="$ac_file. $configure_input"
8517 { echo "$as_me:$LINENO: creating $ac_file" >&5
8518 echo "$as_me: creating $ac_file" >&6;}
8522 *:-:* | *:-) cat >"$tmp/stdin";;
8527 ac_dir=`$as_dirname -- "$ac_file" ||
8528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8529 X"$ac_file" : 'X\(//\)[^/]' \| \
8530 X"$ac_file" : 'X\(//\)$' \| \
8531 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8552 -*) as_dir=./$as_dir;;
8554 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8558 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8559 *) as_qdir=$as_dir;;
8561 as_dirs="'$as_qdir' $as_dirs"
8562 as_dir=`$as_dirname -- "$as_dir" ||
8563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8564 X"$as_dir" : 'X\(//\)[^/]' \| \
8565 X"$as_dir" : 'X\(//\)$' \| \
8566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8585 test -d "$as_dir" && break
8587 test -z "$as_dirs" || eval "mkdir $as_dirs"
8588 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8589 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8590 { (exit 1); exit 1; }; }; }
8594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8597 # A ".." for each directory in $ac_dir_suffix.
8598 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8599 case $ac_top_builddir_sub in
8600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8604 ac_abs_top_builddir=$ac_pwd
8605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8606 # for backward compatibility:
8607 ac_top_builddir=$ac_top_build_prefix
8610 .) # We are building in place.
8612 ac_top_srcdir=$ac_top_builddir_sub
8613 ac_abs_top_srcdir=$ac_pwd ;;
8614 [\\/]* | ?:[\\/]* ) # Absolute name.
8615 ac_srcdir=$srcdir$ac_dir_suffix;
8616 ac_top_srcdir=$srcdir
8617 ac_abs_top_srcdir=$srcdir ;;
8619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8620 ac_top_srcdir=$ac_top_build_prefix$srcdir
8621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8633 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8634 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8638 cat >>$CONFIG_STATUS <<\_ACEOF
8639 # If the template does not know about datarootdir, expand it.
8640 # FIXME: This hack should be removed a few years after 2.60.
8641 ac_datarootdir_hack=; ac_datarootdir_seen=
8643 case `sed -n '/datarootdir/ {
8652 ' $ac_file_inputs` in
8653 *datarootdir*) ac_datarootdir_seen=yes;;
8654 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8655 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8656 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8658 cat >>$CONFIG_STATUS <<_ACEOF
8659 ac_datarootdir_hack='
8660 s&@datadir@&$datadir&g
8661 s&@docdir@&$docdir&g
8662 s&@infodir@&$infodir&g
8663 s&@localedir@&$localedir&g
8664 s&@mandir@&$mandir&g
8665 s&\\\${datarootdir}&$datarootdir&g' ;;
8669 # Neutralize VPATH when `$srcdir' = `.'.
8670 # Shell code in configure.ac might set extrasub.
8671 # FIXME: do we really want to maintain this feature?
8672 cat >>$CONFIG_STATUS <<_ACEOF
8676 cat >>$CONFIG_STATUS <<\_ACEOF
8678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8679 s&@configure_input@&$configure_input&;t t
8680 s&@top_builddir@&$ac_top_builddir_sub&;t t
8681 s&@srcdir@&$ac_srcdir&;t t
8682 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8683 s&@top_srcdir@&$ac_top_srcdir&;t t
8684 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8685 s&@builddir@&$ac_builddir&;t t
8686 s&@abs_builddir@&$ac_abs_builddir&;t t
8687 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8688 s&@INSTALL@&$ac_INSTALL&;t t
8689 $ac_datarootdir_hack
8690 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8692 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8693 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8694 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8695 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8696 which seems to be undefined. Please make sure it is defined." >&5
8697 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8698 which seems to be undefined. Please make sure it is defined." >&2;}
8702 -) cat "$tmp/out"; rm -f "$tmp/out";;
8703 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8712 # Transform confdefs.h into a sed script `conftest.defines', that
8713 # substitutes the proper values into config.h.in to produce config.h.
8714 rm -f conftest.defines conftest.tail
8715 # First, append a space to every undef/define line, to ease matching.
8716 echo 's/$/ /' >conftest.defines
8717 # Then, protect against being on the right side of a sed subst, or in
8718 # an unquoted here document, in config.status. If some macros were
8719 # called several times there might be several #defines for the same
8720 # symbol, which is useless. But do not sort them, since the last
8721 # AC_DEFINE must be honored.
8722 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8723 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8724 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8725 # PARAMS is the parameter list in the macro definition--in most cases, it's
8726 # just an empty string.
8727 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8728 ac_dB='\\)[ (].*,\\1define\\2'
8736 s/^[ ]*#[ ]*define[ ][ ]*//
8741 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8742 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8743 ' >>conftest.defines
8745 # Remove the space that was appended to ease matching.
8746 # Then replace #undef with comments. This is necessary, for
8747 # example, in the case of _POSIX_SOURCE, which is predefined and required
8748 # on some systems where configure will not decide to define it.
8749 # (The regexp can be short, since the line contains either #define or #undef.)
8751 s,^[ #]*u.*,/* & */,' >>conftest.defines
8753 # Break up conftest.defines:
8756 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8757 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8758 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8760 ac_in='$ac_file_inputs'
8761 ac_out='"$tmp/out1"'
8762 ac_nxt='"$tmp/out2"'
8766 # Write a here document:
8767 cat >>$CONFIG_STATUS <<_ACEOF
8768 # First, check the format of the line:
8769 cat >"\$tmp/defines.sed" <<\\CEOF
8770 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8771 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8775 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8777 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8778 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8779 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8780 grep . conftest.tail >/dev/null || break
8781 rm -f conftest.defines
8782 mv conftest.tail conftest.defines
8784 rm -f conftest.defines conftest.tail
8786 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8787 cat >>$CONFIG_STATUS <<\_ACEOF
8788 if test x"$ac_file" != x-; then
8789 echo "/* $configure_input */" >"$tmp/config.h"
8790 cat "$ac_result" >>"$tmp/config.h"
8791 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8792 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8793 echo "$as_me: $ac_file is unchanged" >&6;}
8796 mv "$tmp/config.h" $ac_file
8799 echo "/* $configure_input */"
8811 { (exit 0); exit 0; }
8813 chmod +x $CONFIG_STATUS
8814 ac_clean_files=$ac_clean_files_save
8817 # configure is writing to config.log, and then calls config.status.
8818 # config.status does its own redirection, appending to config.log.
8819 # Unfortunately, on DOS this fails, as config.log is still kept open
8820 # by configure, so config.status won't be able to write to it; its
8821 # output is simply discarded. So we exec the FD to /dev/null,
8822 # effectively closing config.log, so it can be properly (re)opened and
8823 # appended to by config.status. When coming back to configure, we
8824 # need to make the FD available again.
8825 if test "$no_create" != yes; then
8827 ac_config_status_args=
8828 test "$silent" = yes &&
8829 ac_config_status_args="$ac_config_status_args --quiet"
8831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8834 # would make configure fail if this is the last instruction.
8835 $ac_cs_success || { (exit 1); exit 1; }
8839 # CONFIG_SUBDIRS section.
8841 if test "$no_recursion" != yes; then
8843 # Remove --cache-file and --srcdir arguments so they do not pile up.
8844 ac_sub_configure_args=
8846 eval "set x $ac_configure_args"
8850 if test -n "$ac_prev"; then
8855 -cache-file | --cache-file | --cache-fil | --cache-fi \
8856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8857 ac_prev=cache_file ;;
8858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8862 --config-cache | -C)
8864 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8866 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8868 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8870 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8874 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8876 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8880 # Always prepend --prefix to ensure using the same prefix
8881 # in subdir configurations.
8882 ac_arg="--prefix=$prefix"
8884 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8886 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8889 if test "$silent" = yes; then
8890 ac_sub_configure_args="--silent $ac_sub_configure_args"
8894 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8896 # Do not complain, so a configure script can configure whichever
8897 # parts of a large source tree are present.
8898 test -d "$srcdir/$ac_dir" || continue
8900 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8901 echo "$as_me:$LINENO: $ac_msg" >&5
8905 -*) as_dir=./$as_dir;;
8907 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8911 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8912 *) as_qdir=$as_dir;;
8914 as_dirs="'$as_qdir' $as_dirs"
8915 as_dir=`$as_dirname -- "$as_dir" ||
8916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8917 X"$as_dir" : 'X\(//\)[^/]' \| \
8918 X"$as_dir" : 'X\(//\)$' \| \
8919 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8938 test -d "$as_dir" && break
8940 test -z "$as_dirs" || eval "mkdir $as_dirs"
8941 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8942 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8943 { (exit 1); exit 1; }; }; }
8947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8950 # A ".." for each directory in $ac_dir_suffix.
8951 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8952 case $ac_top_builddir_sub in
8953 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8954 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8957 ac_abs_top_builddir=$ac_pwd
8958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8959 # for backward compatibility:
8960 ac_top_builddir=$ac_top_build_prefix
8963 .) # We are building in place.
8965 ac_top_srcdir=$ac_top_builddir_sub
8966 ac_abs_top_srcdir=$ac_pwd ;;
8967 [\\/]* | ?:[\\/]* ) # Absolute name.
8968 ac_srcdir=$srcdir$ac_dir_suffix;
8969 ac_top_srcdir=$srcdir
8970 ac_abs_top_srcdir=$srcdir ;;
8972 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8973 ac_top_srcdir=$ac_top_build_prefix$srcdir
8974 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8981 # Check for guested configure; otherwise get Cygnus style configure.
8982 if test -f "$ac_srcdir/configure.gnu"; then
8983 ac_sub_configure=$ac_srcdir/configure.gnu
8984 elif test -f "$ac_srcdir/configure"; then
8985 ac_sub_configure=$ac_srcdir/configure
8986 elif test -f "$ac_srcdir/configure.in"; then
8987 # This should be Cygnus configure.
8988 ac_sub_configure=$ac_aux_dir/configure
8990 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8991 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8995 # The recursion is here.
8996 if test -n "$ac_sub_configure"; then
8997 # Make the cache file name correct relative to the subdirectory.
8999 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9001 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9004 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9005 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9006 # The eval makes quoting arguments work.
9007 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9008 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9009 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9010 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9011 { (exit 1); exit 1; }; }
9019 # I found no better place
9022 # Prepare result message
9023 # ======================
9025 # In the C-header we need \\ as dir-separator, but in the message only \
9026 dirch=${sdccconf_h_dir_separator}
9027 test ${dirch} = '\\' && dirch='\'
9029 # calc friendly strings
9031 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
9032 case ":$binPath:" in
9034 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
9039 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9040 s,^[\\/],\\\\\\\\,'` ;;
9042 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9044 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
9047 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9048 case ":$incPath1:" in
9050 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
9055 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9056 s,^[\\/],\\\\\\\\,'` ;;
9058 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9060 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
9063 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9064 case ":$incPath2:" in
9066 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
9071 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9072 s,^[\\/],\\\\\\\\,'` ;;
9074 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9076 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
9079 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9080 case ":$incPath3:" in
9082 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
9087 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9088 s,^[\\/],\\\\\\\\,'` ;;
9090 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9092 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
9095 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9096 case ":$libPath1:" in
9098 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
9103 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9104 s,^[\\/],\\\\\\\\,'` ;;
9106 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9108 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
9111 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9112 case ":$libPath2:" in
9114 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
9119 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9120 s,^[\\/],\\\\\\\\,'` ;;
9122 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9124 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
9127 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9128 case ":$libPath3:" in
9130 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
9135 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9136 s,^[\\/],\\\\\\\\,'` ;;
9138 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9140 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
9143 { echo "$as_me:$LINENO: result:
9144 sdcc ${VERSION} is now configured for
9146 Build: ${build_alias}
9148 Source directory: ${srcdir}
9153 avr ${enable_avr_port}
9154 ds390 ${enable_ds390_port}
9155 ds400 ${enable_ds400_port}
9156 gbz80 ${enable_gbz80_port}
9157 hc08 ${enable_hc08_port}
9158 mcs51 ${enable_mcs51_port}
9159 pic ${enable_pic_port}
9160 pic16 ${enable_pic16_port}
9161 xa51 ${enable_xa51_port}
9162 z80 ${enable_z80_port}
9164 Disable packihx: ${OPT_DISABLE_PACKIHX}
9165 Disable ucsim: ${OPT_DISABLE_UCSIM}
9166 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9167 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9168 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9169 Enable documentation: ${OPT_ENABLE_DOC}
9170 Enable libgc: ${OPT_ENABLE_LIBGC}
9173 binary files: ${exec_prefix}
9174 include files: ${datadir}/${include_dir_suffix}
9175 library files: ${datadir}/${lib_dir_suffix}
9176 documentation: ${docdir}
9180 datarootdir: ${datarootdir}
9182 Search paths (incomplete, see manual for all search paths):
9183 binary files: \$SDCC_HOME${binPath}
9184 include files: ${incPath1}
9185 path(argv[0])${incPath2}
9187 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9188 path(argv[0])${libPath2}${dirch}<model>
9189 ${libPath3}${dirch}<model>
9192 sdcc ${VERSION} is now configured for
9194 Build: ${build_alias}
9196 Source directory: ${srcdir}
9201 avr ${enable_avr_port}
9202 ds390 ${enable_ds390_port}
9203 ds400 ${enable_ds400_port}
9204 gbz80 ${enable_gbz80_port}
9205 hc08 ${enable_hc08_port}
9206 mcs51 ${enable_mcs51_port}
9207 pic ${enable_pic_port}
9208 pic16 ${enable_pic16_port}
9209 xa51 ${enable_xa51_port}
9210 z80 ${enable_z80_port}
9212 Disable packihx: ${OPT_DISABLE_PACKIHX}
9213 Disable ucsim: ${OPT_DISABLE_UCSIM}
9214 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9215 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9216 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9217 Enable documentation: ${OPT_ENABLE_DOC}
9218 Enable libgc: ${OPT_ENABLE_LIBGC}
9221 binary files: ${exec_prefix}
9222 include files: ${datadir}/${include_dir_suffix}
9223 library files: ${datadir}/${lib_dir_suffix}
9224 documentation: ${docdir}
9228 datarootdir: ${datarootdir}
9230 Search paths (incomplete, see manual for all search paths):
9231 binary files: \$SDCC_HOME${binPath}
9232 include files: ${incPath1}
9233 path(argv[0])${incPath2}
9235 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9236 path(argv[0])${libPath2}${dirch}<model>
9237 ${libPath3}${dirch}<model>
9239 # End of configure/configure.in