2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file=".version"
580 ac_unique_file="Makefile.in"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
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/cpp
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}'
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 this package 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/PACKAGE]
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
1299 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1300 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1301 --disable-mcs51-port Excludes the Intel mcs51 port
1302 --disable-gbz80-port Excludes the Gameboy gbz80 port
1303 --disable-z80-port Excludes the z80 port
1304 --disable-avr-port Excludes the AVR port
1305 --disable-ds390-port Excludes the DS390 port
1306 --disable-ds400-port Excludes the DS400 port
1307 --disable-pic-port Excludes the PIC port
1308 --disable-pic16-port Excludes the PIC16 port
1309 --disable-xa51-port Excludes the XA51 port
1310 --disable-hc08-port Excludes the HC08 port
1311 --disable-ucsim Disables configuring and building of ucsim
1312 --disable-device-lib Disables building device libraries
1313 --disable-packihx Disables building packihx
1314 --disable-sdcpp Disables building sdcpp
1315 --disable-sdcdb Disables building sdcdb
1316 --enable-doc Enables building the documentation
1317 --enable-libgc Use the Bohem memory allocator. Lower runtime
1320 Some influential environment variables:
1321 CC C compiler command
1322 CFLAGS C compiler flags
1323 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1324 nonstandard directory <lib dir>
1325 LIBS libraries to pass to the linker, e.g. -l<library>
1326 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1327 you have headers in a nonstandard directory <include dir>
1329 sdccconf_h_dir_separator
1330 needed in sdccconf.h: either "/" (default) or "\\"
1332 appended to datadir to define SDCC's include directory
1334 appended to datadir to define SDCC's library root directory
1335 docdir documentation installation directory
1337 Use these variables to override the choices made by `configure' or to help
1338 it to find libraries and programs with nonstandard names/locations.
1344 if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1347 test -d "$ac_dir" || continue
1351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1361 ac_abs_top_builddir=$ac_pwd
1362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir=$ac_top_build_prefix
1367 .) # We are building in place.
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
1372 ac_srcdir=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1389 $SHELL "$ac_srcdir/configure" --help=recursive
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 cd "$ac_pwd" || { ac_status=$?; break; }
1397 test -n "$ac_init_help" && exit $ac_status
1398 if $ac_init_version; then
1401 generated by GNU Autoconf 2.61
1403 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1404 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1405 This configure script is free software; the Free Software Foundation
1406 gives unlimited permission to copy, distribute and modify it.
1410 cat >config.log <<_ACEOF
1411 This file contains any messages produced by compilers while
1412 running configure, to aid debugging if configure makes a mistake.
1414 It was created by $as_me, which was
1415 generated by GNU Autoconf 2.61. Invocation command line was
1427 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1428 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1429 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1430 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1431 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1433 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1434 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1436 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1437 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1438 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1439 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1440 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1441 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1442 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 echo "PATH: $as_dir"
1467 # Keep a trace of the command line.
1468 # Strip out --no-create and --no-recursion so they do not pile up.
1469 # Strip out --silent because we don't want to record it for future runs.
1470 # Also quote any args containing shell meta-characters.
1471 # Make two passes to allow for proper duplicate-argument suppression.
1475 ac_must_keep_next=false
1481 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483 | -silent | --silent | --silen | --sile | --sil)
1486 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1491 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1492 if test $ac_must_keep_next = true; then
1493 ac_must_keep_next=false # Got value, back to normal.
1496 *=* | --config-cache | -C | -disable-* | --disable-* \
1497 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1498 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1499 | -with-* | --with-* | -without-* | --without-* | --x)
1500 case "$ac_configure_args0 " in
1501 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1504 -* ) ac_must_keep_next=true ;;
1507 ac_configure_args="$ac_configure_args '$ac_arg'"
1512 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1513 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1515 # When interrupted or exit'd, cleanup temporary files, and complete
1516 # config.log. We remove comments because anyway the quotes in there
1517 # would cause problems or look ugly.
1518 # WARNING: Use '\'' to represent an apostrophe within the trap.
1519 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1520 trap 'exit_status=$?
1521 # Save into config.log some information that might help in debugging.
1526 ## ---------------- ##
1527 ## Cache variables. ##
1528 ## ---------------- ##
1531 # The following way of writing the cache mishandles newlines in values,
1533 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1534 eval ac_val=\$$ac_var
1538 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1539 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1542 _ | IFS | as_nl) ;; #(
1543 *) $as_unset $ac_var ;;
1548 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1549 *${as_nl}ac_space=\ *)
1551 "s/'\''/'\''\\\\'\'''\''/g;
1552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1563 ## ----------------- ##
1564 ## Output variables. ##
1565 ## ----------------- ##
1568 for ac_var in $ac_subst_vars
1570 eval ac_val=\$$ac_var
1572 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574 echo "$ac_var='\''$ac_val'\''"
1578 if test -n "$ac_subst_files"; then
1580 ## ------------------- ##
1581 ## File substitutions. ##
1582 ## ------------------- ##
1585 for ac_var in $ac_subst_files
1587 eval ac_val=\$$ac_var
1589 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1591 echo "$ac_var='\''$ac_val'\''"
1596 if test -s confdefs.h; then
1606 test "$ac_signal" != 0 &&
1607 echo "$as_me: caught signal $ac_signal"
1608 echo "$as_me: exit $exit_status"
1610 rm -f core *.core core.conftest.* &&
1611 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1614 for ac_signal in 1 2 13 15; do
1615 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1619 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1620 rm -f -r conftest* confdefs.h
1622 # Predefined preprocessor variables.
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_NAME "$PACKAGE_NAME"
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_STRING "$PACKAGE_STRING"
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1649 # Let the site file select an alternate cache file if it wants to.
1650 # Prefer explicitly selected file to automatically selected ones.
1651 if test -n "$CONFIG_SITE"; then
1652 set x "$CONFIG_SITE"
1653 elif test "x$prefix" != xNONE; then
1654 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1656 set x "$ac_default_prefix/share/config.site" \
1657 "$ac_default_prefix/etc/config.site"
1662 if test -r "$ac_site_file"; then
1663 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1664 echo "$as_me: loading site script $ac_site_file" >&6;}
1665 sed 's/^/| /' "$ac_site_file" >&5
1670 if test -r "$cache_file"; then
1671 # Some versions of bash will fail to source /dev/null (special
1672 # files actually), so we avoid doing that.
1673 if test -f "$cache_file"; then
1674 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1675 echo "$as_me: loading cache $cache_file" >&6;}
1677 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1678 *) . "./$cache_file";;
1682 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1683 echo "$as_me: creating cache $cache_file" >&6;}
1687 # Check that the precious variables saved in the cache have kept the same
1689 ac_cache_corrupted=false
1690 for ac_var in $ac_precious_vars; do
1691 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1692 eval ac_new_set=\$ac_env_${ac_var}_set
1693 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1694 eval ac_new_val=\$ac_env_${ac_var}_value
1695 case $ac_old_set,$ac_new_set in
1697 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1698 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1699 ac_cache_corrupted=: ;;
1701 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1702 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1703 ac_cache_corrupted=: ;;
1706 if test "x$ac_old_val" != "x$ac_new_val"; then
1707 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1708 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1709 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1710 echo "$as_me: former value: $ac_old_val" >&2;}
1711 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1712 echo "$as_me: current value: $ac_new_val" >&2;}
1713 ac_cache_corrupted=:
1716 # Pass precious variables to config.status.
1717 if test "$ac_new_set" = set; then
1719 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 *) ac_arg=$ac_var=$ac_new_val ;;
1722 case " $ac_configure_args " in
1723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1724 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1728 if $ac_cache_corrupted; then
1729 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1730 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1731 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1732 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1733 { (exit 1); exit 1; }; }
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1763 for ac_prog in gawk mawk nawk awk
1765 # Extract the first word of "$ac_prog", so it can be a program name with args.
1766 set dummy $ac_prog; ac_word=$2
1767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1769 if test "${ac_cv_prog_AWK+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 if test -n "$AWK"; then
1773 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1782 ac_cv_prog_AWK="$ac_prog"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 if test -n "$AWK"; then
1794 { echo "$as_me:$LINENO: result: $AWK" >&5
1795 echo "${ECHO_T}$AWK" >&6; }
1797 { echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6; }
1802 test -n "$AWK" && break
1806 { echo "$as_me:$LINENO: checking version of the package" >&5
1807 echo $ECHO_N "checking version of the package... $ECHO_C" >&6; }
1808 if test -f ${srcdir}/.version; then
1809 { read VERSION; } < ${srcdir}/.version
1810 { echo "$as_me:$LINENO: result: $VERSION" >&5
1811 echo "${ECHO_T}$VERSION" >&6; }
1812 elif test -f ../.version; then
1813 { read VERSION; } < ../.version
1814 { echo "$as_me:$LINENO: result: $VERSION" >&5
1815 echo "${ECHO_T}$VERSION" >&6; }
1818 { echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1819 echo "${ECHO_T}unknown using 0.0.0" >&6; }
1821 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1822 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1823 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1825 { echo "$as_me:$LINENO: result: ${VERSION}" >&5
1826 echo "${ECHO_T}${VERSION}" >&6; }
1833 cat >>confdefs.h <<_ACEOF
1834 #define SDCC_VERSION_LO ${VERSIONLO}
1837 cat >>confdefs.h <<_ACEOF
1838 #define SDCC_VERSION_HI ${VERSIONHI}
1841 cat >>confdefs.h <<_ACEOF
1842 #define SDCC_VERSION_P ${VERSIONP}
1845 cat >>confdefs.h <<_ACEOF
1846 #define SDCC_VERSION_STR "${VERSION}"
1849 test "$program_prefix" != NONE &&
1850 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1851 # Use a double $ so make ignores it.
1852 test "$program_suffix" != NONE &&
1853 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1854 # Double any \ or $. echo might interpret backslashes.
1855 # By default was `s,x,x', remove it if useless.
1856 cat <<\_ACEOF >conftest.sed
1857 s/[\\$]/&&/g;s/;s,x,x,$//
1859 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1862 sdcc_cv_version=$VERSION
1863 sdcc_cv_versionhi=$VERSIONHI
1864 sdcc_cv_versionlo=$VERSIONLO
1865 sdcc_cv_versionp=$VERSIONP
1869 # ===========================================================================
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 if test -n "$ac_tool_prefix"; then
1876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 { echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6; }
1908 { echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6; }
1914 if test -z "$ac_cv_prog_CC"; then
1916 # Extract the first word of "gcc", so it can be a program name with args.
1917 set dummy gcc; ac_word=$2
1918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$ac_ct_CC"; then
1924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933 ac_cv_prog_ac_ct_CC="gcc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 echo "${ECHO_T}$ac_ct_CC" >&6; }
1948 { echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6; }
1952 if test "x$ac_ct_CC" = x; then
1955 case $cross_compiling:$ac_tool_warned in
1957 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1958 whose name does not start with the host triplet. If you think this
1959 configuration is useful to you, please write to autoconf@gnu.org." >&5
1960 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1961 whose name does not start with the host triplet. If you think this
1962 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1963 ac_tool_warned=yes ;;
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1974 set dummy ${ac_tool_prefix}cc; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1990 ac_cv_prog_CC="${ac_tool_prefix}cc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 if test -n "$CC"; then
2002 { echo "$as_me:$LINENO: result: $CC" >&5
2003 echo "${ECHO_T}$CC" >&6; }
2005 { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2012 if test -z "$CC"; then
2013 # Extract the first word of "cc", so it can be a program name with args.
2014 set dummy cc; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2032 ac_prog_rejected=yes
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 if test $ac_prog_rejected = yes; then
2044 # We found a bogon in the path, so make sure we never use it.
2045 set dummy $ac_cv_prog_CC
2047 if test $# != 0; then
2048 # We chose a different compiler from the bogus one.
2049 # However, it has the same basename, so the bogon will be chosen
2050 # first if we set CC to just the basename; use the full file name.
2052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2058 if test -n "$CC"; then
2059 { echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6; }
2062 { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2068 if test -z "$CC"; then
2069 if test -n "$ac_tool_prefix"; then
2070 for ac_prog in cl.exe
2072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 if test -n "$CC"; then
2101 { echo "$as_me:$LINENO: result: $CC" >&5
2102 echo "${ECHO_T}$CC" >&6; }
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2109 test -n "$CC" && break
2112 if test -z "$CC"; then
2114 for ac_prog in cl.exe
2116 # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2133 ac_cv_prog_ac_ct_CC="$ac_prog"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 echo "${ECHO_T}$ac_ct_CC" >&6; }
2148 { echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6; }
2153 test -n "$ac_ct_CC" && break
2156 if test "x$ac_ct_CC" = x; then
2159 case $cross_compiling:$ac_tool_warned in
2161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2162 whose name does not start with the host triplet. If you think this
2163 configuration is useful to you, please write to autoconf@gnu.org." >&5
2164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2165 whose name does not start with the host triplet. If you think this
2166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2167 ac_tool_warned=yes ;;
2176 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: no acceptable C compiler found in \$PATH
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2182 # Provide some information about the compiler.
2183 echo "$as_me:$LINENO: checking for C compiler version" >&5
2184 ac_compiler=`set X $ac_compile; echo $2`
2185 { (ac_try="$ac_compiler --version >&5"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191 (eval "$ac_compiler --version >&5") 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2195 { (ac_try="$ac_compiler -v >&5"
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 (eval "$ac_compiler -v >&5") 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2205 { (ac_try="$ac_compiler -V >&5"
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211 (eval "$ac_compiler -V >&5") 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }
2216 cat >conftest.$ac_ext <<_ACEOF
2219 cat confdefs.h >>conftest.$ac_ext
2220 cat >>conftest.$ac_ext <<_ACEOF
2221 /* end confdefs.h. */
2231 ac_clean_files_save=$ac_clean_files
2232 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2233 # Try to create an executable without -o first, disregard a.out.
2234 # It will help us diagnose broken compilers, and finding out an intuition
2236 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2237 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2238 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2240 # List of possible output files, starting from the most likely.
2241 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2242 # only as a last resort. b.out is created by i960 compilers.
2243 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2245 # The IRIX 6 linker writes into existing files which may not be
2246 # executable, retaining their permissions. Remove them first so a
2247 # subsequent execution test works.
2249 for ac_file in $ac_files
2252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2258 if { (ac_try="$ac_link_default"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_link_default") 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2271 # so that the user can short-circuit this test for compilers unknown to
2273 for ac_file in $ac_files ''
2275 test -f "$ac_file" || continue
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2280 # We found the default executable, but exeext='' is most
2284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 # We set ac_cv_exeext here because the later test for it is not
2289 # safe: cross compilers may not add the suffix if given an `-o'
2290 # argument, so we may need to know it at that point already.
2291 # Even if this section looks crufty: it has the advantage of
2298 test "$ac_cv_exeext" = no && ac_cv_exeext=
2304 { echo "$as_me:$LINENO: result: $ac_file" >&5
2305 echo "${ECHO_T}$ac_file" >&6; }
2306 if test -z "$ac_file"; then
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: C compiler cannot create executables
2313 See \`config.log' for more details." >&2;}
2314 { (exit 77); exit 77; }; }
2317 ac_exeext=$ac_cv_exeext
2319 # Check that the compiler produces executables we can run. If not, either
2320 # the compiler is broken, or we cross compile.
2321 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2322 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2323 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2324 # If not cross compiling, check that we can run a simple program.
2325 if test "$cross_compiling" != yes; then
2326 if { ac_try='./$ac_file'
2327 { (case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2332 (eval "$ac_try") 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2338 if test "$cross_compiling" = maybe; then
2341 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2342 If you meant to cross compile, use \`--host'.
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot run C compiled programs.
2345 If you meant to cross compile, use \`--host'.
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2351 { echo "$as_me:$LINENO: result: yes" >&5
2352 echo "${ECHO_T}yes" >&6; }
2354 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2355 ac_clean_files=$ac_clean_files_save
2356 # Check that the compiler produces executables we can run. If not, either
2357 # the compiler is broken, or we cross compile.
2358 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2359 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2360 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2361 echo "${ECHO_T}$cross_compiling" >&6; }
2363 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2364 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2365 if { (ac_try="$ac_link"
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_link") 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2376 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2377 # work properly (i.e., refer to `conftest.exe'), while it won't with
2379 for ac_file in conftest.exe conftest conftest.*; do
2380 test -f "$ac_file" || continue
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2383 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2396 rm -f conftest$ac_cv_exeext
2397 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2398 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2400 rm -f conftest.$ac_ext
2401 EXEEXT=$ac_cv_exeext
2403 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2404 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2405 if test "${ac_cv_objext+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2423 rm -f conftest.o conftest.obj
2424 if { (ac_try="$ac_compile"
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_compile") 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; then
2434 for ac_file in conftest.o conftest.obj conftest.*; do
2435 test -f "$ac_file" || continue;
2437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2447 See \`config.log' for more details." >&5
2448 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2449 See \`config.log' for more details." >&2;}
2450 { (exit 1); exit 1; }; }
2453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2455 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2456 echo "${ECHO_T}$ac_cv_objext" >&6; }
2457 OBJEXT=$ac_cv_objext
2459 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2460 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2461 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 cat >conftest.$ac_ext <<_ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_compile") 2>conftest.er1
2491 grep -v '^ *+' conftest.er1 >conftest.err
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } && {
2496 test -z "$ac_c_werror_flag" ||
2497 test ! -s conftest.err
2498 } && test -s conftest.$ac_objext; then
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2511 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2512 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2513 GCC=`test $ac_compiler_gnu = yes && echo yes`
2514 ac_test_CFLAGS=${CFLAGS+set}
2515 ac_save_CFLAGS=$CFLAGS
2516 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2517 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_cc_g+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 ac_save_c_werror_flag=$ac_c_werror_flag
2522 ac_c_werror_flag=yes
2525 cat >conftest.$ac_ext <<_ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 rm -f conftest.$ac_objext
2541 if { (ac_try="$ac_compile"
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compile") 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } && {
2554 test -z "$ac_c_werror_flag" ||
2555 test ! -s conftest.err
2556 } && test -s conftest.$ac_objext; then
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2587 grep -v '^ *+' conftest.er1 >conftest.err
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } && {
2592 test -z "$ac_c_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest.$ac_objext; then
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2600 ac_c_werror_flag=$ac_save_c_werror_flag
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2617 rm -f conftest.$ac_objext
2618 if { (ac_try="$ac_compile"
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_compile") 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } && {
2631 test -z "$ac_c_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest.$ac_objext; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_c_werror_flag=$ac_save_c_werror_flag
2651 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2653 if test "$ac_test_CFLAGS" = set; then
2654 CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656 if test "$GCC" = yes; then
2662 if test "$GCC" = yes; then
2668 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2669 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_cc_c89+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 ac_cv_prog_cc_c89=no
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2699 s = g (p, va_arg (v,int));
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2705 function prototypes and stuff, but not '\xHH' hex character constants.
2706 These don't provoke an error unfortunately, instead are silently treated
2707 as 'x'. The following induces an error, until -std is added to get
2708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2709 array size at least. It's necessary to write '\x00'==0 to get something
2710 that's true only with -std. */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2714 inside strings and character constants. */
2716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 CC="$ac_save_CC $ac_arg"
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>conftest.er1
2745 grep -v '^ *+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } && {
2750 test -z "$ac_c_werror_flag" ||
2751 test ! -s conftest.err
2752 } && test -s conftest.$ac_objext; then
2753 ac_cv_prog_cc_c89=$ac_arg
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2761 rm -f core conftest.err conftest.$ac_objext
2762 test "x$ac_cv_prog_cc_c89" != "xno" && break
2764 rm -f conftest.$ac_ext
2769 case "x$ac_cv_prog_cc_c89" in
2771 { echo "$as_me:$LINENO: result: none needed" >&5
2772 echo "${ECHO_T}none needed" >&6; } ;;
2774 { echo "$as_me:$LINENO: result: unsupported" >&5
2775 echo "${ECHO_T}unsupported" >&6; } ;;
2777 CC="$CC $ac_cv_prog_cc_c89"
2778 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2779 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2795 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2796 # On Suns, sometimes $CPP names a directory.
2797 if test -n "$CPP" && test -d "$CPP"; then
2800 if test -z "$CPP"; then
2801 if test "${ac_cv_prog_CPP+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 # Double quotes because CPP needs to be expanded
2805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2808 for ac_c_preproc_warn_flag in '' yes
2810 # Use a header file that comes with gcc, so configuring glibc
2811 # with a fresh cross-compiler works.
2812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2813 # <limits.h> exists even on freestanding compilers.
2814 # On the NeXT, cc -E runs the code through the compiler's parser,
2815 # not just through cpp. "Syntax error" is here to catch this case.
2816 cat >conftest.$ac_ext <<_ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2823 # include <limits.h>
2825 # include <assert.h>
2829 if { (ac_try="$ac_cpp conftest.$ac_ext"
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } >/dev/null && {
2842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 # Broken: fails on valid input.
2854 rm -f conftest.err conftest.$ac_ext
2856 # OK, works on sane cases. Now check whether nonexistent headers
2857 # can be detected and how.
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 #include <ac_nonexistent.h>
2866 if { (ac_try="$ac_cpp conftest.$ac_ext"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2874 grep -v '^ *+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } >/dev/null && {
2879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2882 # Broken: success on invalid input.
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2888 # Passes both tests.
2893 rm -f conftest.err conftest.$ac_ext
2896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2897 rm -f conftest.err conftest.$ac_ext
2898 if $ac_preproc_ok; then
2910 { echo "$as_me:$LINENO: result: $CPP" >&5
2911 echo "${ECHO_T}$CPP" >&6; }
2913 for ac_c_preproc_warn_flag in '' yes
2915 # Use a header file that comes with gcc, so configuring glibc
2916 # with a fresh cross-compiler works.
2917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918 # <limits.h> exists even on freestanding compilers.
2919 # On the NeXT, cc -E runs the code through the compiler's parser,
2920 # not just through cpp. "Syntax error" is here to catch this case.
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2928 # include <limits.h>
2930 # include <assert.h>
2934 if { (ac_try="$ac_cpp conftest.$ac_ext"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev/null && {
2947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2948 test ! -s conftest.err
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 # Broken: fails on valid input.
2959 rm -f conftest.err conftest.$ac_ext
2961 # OK, works on sane cases. Now check whether nonexistent headers
2962 # can be detected and how.
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #include <ac_nonexistent.h>
2971 if { (ac_try="$ac_cpp conftest.$ac_ext"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null && {
2984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2987 # Broken: success on invalid input.
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2993 # Passes both tests.
2998 rm -f conftest.err conftest.$ac_ext
3001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3002 rm -f conftest.err conftest.$ac_ext
3003 if $ac_preproc_ok; then
3006 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3021 if test -f "$ac_dir/install-sh"; then
3023 ac_install_sh="$ac_aux_dir/install-sh -c"
3025 elif test -f "$ac_dir/install.sh"; then
3027 ac_install_sh="$ac_aux_dir/install.sh -c"
3029 elif test -f "$ac_dir/shtool"; then
3031 ac_install_sh="$ac_aux_dir/shtool install -c"
3035 if test -z "$ac_aux_dir"; then
3036 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3037 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3038 { (exit 1); exit 1; }; }
3041 # These three variables are undocumented and unsupported,
3042 # and are intended to be withdrawn in a future Autoconf release.
3043 # They can cause serious problems if a builder's source tree is in a directory
3044 # whose full name contains unusual characters.
3045 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3046 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3047 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3050 # Find a good install program. We prefer a C program (faster),
3051 # so one script is as good as another. But avoid the broken or
3052 # incompatible versions:
3053 # SysV /etc/install, /usr/sbin/install
3054 # SunOS /usr/etc/install
3055 # IRIX /sbin/install
3057 # AmigaOS /C/install, which installs bootblocks on floppy discs
3058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3061 # OS/2's system install, which has a completely different semantic
3062 # ./install, which can be erroneously created by make from ./install.sh.
3063 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3064 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3065 if test -z "$INSTALL"; then
3066 if test "${ac_cv_path_install+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir=.
3074 # Account for people who put trailing slashes in PATH elements.
3076 ./ | .// | /cC/* | \
3077 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3078 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3081 # OSF1 and SCO ODT 3.0 have their own names for install.
3082 # Don't use installbsd from OSF since it installs stuff as root
3084 for ac_prog in ginstall scoinst install; do
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3087 if test $ac_prog = install &&
3088 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3089 # AIX install. It has an incompatible calling convention.
3091 elif test $ac_prog = install &&
3092 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093 # program-specific install script used by HP pwplus--don't use.
3096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3109 if test "${ac_cv_path_install+set}" = set; then
3110 INSTALL=$ac_cv_path_install
3112 # As a last resort, use the slow shell script. Don't cache a
3113 # value for INSTALL within a source directory, because that will
3114 # break other packages using the cache if that directory is
3115 # removed, or if the value is a relative name.
3116 INSTALL=$ac_install_sh
3119 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3120 echo "${ECHO_T}$INSTALL" >&6; }
3122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3123 # It thinks the first close brace ends the variable substitution.
3124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_RANLIB+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if test -n "$RANLIB"; then
3139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 RANLIB=$ac_cv_prog_RANLIB
3159 if test -n "$RANLIB"; then
3160 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3161 echo "${ECHO_T}$RANLIB" >&6; }
3163 { echo "$as_me:$LINENO: result: no" >&5
3164 echo "${ECHO_T}no" >&6; }
3169 if test -z "$ac_cv_prog_RANLIB"; then
3170 ac_ct_RANLIB=$RANLIB
3171 # Extract the first word of "ranlib", so it can be a program name with args.
3172 set dummy ranlib; ac_word=$2
3173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$ac_ct_RANLIB"; then
3179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_ac_ct_RANLIB="ranlib"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3199 if test -n "$ac_ct_RANLIB"; then
3200 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3201 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3203 { echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6; }
3207 if test "x$ac_ct_RANLIB" = x; then
3210 case $cross_compiling:$ac_tool_warned in
3212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3213 whose name does not start with the host triplet. If you think this
3214 configuration is useful to you, please write to autoconf@gnu.org." >&5
3215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3216 whose name does not start with the host triplet. If you think this
3217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3218 ac_tool_warned=yes ;;
3220 RANLIB=$ac_ct_RANLIB
3223 RANLIB="$ac_cv_prog_RANLIB"
3226 # Extract the first word of "autoconf", so it can be a program name with args.
3227 set dummy autoconf; ac_word=$2
3228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 if test -n "$AUTOCONF"; then
3234 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_AUTOCONF="autoconf"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3254 AUTOCONF=$ac_cv_prog_AUTOCONF
3255 if test -n "$AUTOCONF"; then
3256 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3257 echo "${ECHO_T}$AUTOCONF" >&6; }
3259 { echo "$as_me:$LINENO: result: no" >&5
3260 echo "${ECHO_T}no" >&6; }
3264 # Extract the first word of "strip", so it can be a program name with args.
3265 set dummy strip; ac_word=$2
3266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3268 if test "${ac_cv_prog_STRIP+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 if test -n "$STRIP"; then
3272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_STRIP="strip"
3282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3292 STRIP=$ac_cv_prog_STRIP
3293 if test -n "$STRIP"; then
3294 { echo "$as_me:$LINENO: result: $STRIP" >&5
3295 echo "${ECHO_T}$STRIP" >&6; }
3297 { echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6; }
3302 # Extract the first word of "as", so it can be a program name with args.
3303 set dummy as; ac_word=$2
3304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3306 if test "${ac_cv_prog_AS+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 if test -n "$AS"; then
3310 ac_cv_prog_AS="$AS" # Let the user override the test.
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3331 if test -n "$AS"; then
3332 { echo "$as_me:$LINENO: result: $AS" >&5
3333 echo "${ECHO_T}$AS" >&6; }
3335 { echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6; }
3340 # Extract the first word of "cp", so it can be a program name with args.
3341 set dummy cp; ac_word=$2
3342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3344 if test "${ac_cv_prog_CP+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$CP"; then
3348 ac_cv_prog_CP="$CP" # Let the user override the test.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3369 if test -n "$CP"; then
3370 { echo "$as_me:$LINENO: result: $CP" >&5
3371 echo "${ECHO_T}$CP" >&6; }
3373 { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3379 for ac_prog in flex lex
3381 # Extract the first word of "$ac_prog", so it can be a program name with args.
3382 set dummy $ac_prog; ac_word=$2
3383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_LEX+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$LEX"; then
3389 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_LEX="$ac_prog"
3399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 if test -n "$LEX"; then
3410 { echo "$as_me:$LINENO: result: $LEX" >&5
3411 echo "${ECHO_T}$LEX" >&6; }
3413 { echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6; }
3418 test -n "$LEX" && break
3420 test -n "$LEX" || LEX=":"
3423 for ac_prog in 'bison -y' byacc yacc
3425 # Extract the first word of "$ac_prog", so it can be a program name with args.
3426 set dummy $ac_prog; ac_word=$2
3427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3429 if test "${ac_cv_prog_YACC+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 if test -n "$YACC"; then
3433 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442 ac_cv_prog_YACC="$ac_prog"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 YACC=$ac_cv_prog_YACC
3453 if test -n "$YACC"; then
3454 { echo "$as_me:$LINENO: result: $YACC" >&5
3455 echo "${ECHO_T}$YACC" >&6; }
3457 { echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6; }
3462 test -n "$YACC" && break
3464 test -n "$YACC" || YACC=":"
3469 if test "$YACC" = ":"; then
3470 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3471 echo "$as_me: error: Cannot find required program bison." >&2;}
3472 { (exit 1); exit 1; }; }
3475 if test "$LEX" = ":"; then
3476 { { echo "$as_me:$LINENO: error: Cannot find required program flex." >&5
3477 echo "$as_me: error: Cannot find required program flex." >&2;}
3478 { (exit 1); exit 1; }; }
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 # Checking for functions
3491 # ===========================================================================
3494 for ac_func in strerror
3496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3510 #define $ac_func innocuous_$ac_func
3512 /* System header to define __stub macros and hopefully few prototypes,
3513 which can conflict with char $ac_func (); below.
3514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 <limits.h> exists even on freestanding compilers. */
3518 # include <limits.h>
3520 # include <assert.h>
3525 /* Override any GCC internal prototype to avoid an error.
3526 Use char because int might match the return type of a GCC
3527 builtin and then its argument prototype would still apply. */
3532 /* The GNU C library defines this for functions which it implements
3533 to always fail with ENOSYS. Some functions are actually named
3534 something starting with __ and the normal name is an alias. */
3535 #if defined __stub_$ac_func || defined __stub___$ac_func
3547 rm -f conftest.$ac_objext conftest$ac_exeext
3548 if { (ac_try="$ac_link"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_link") 2>conftest.er1
3556 grep -v '^ *+' conftest.er1 >conftest.err
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } && {
3561 test -z "$ac_c_werror_flag" ||
3562 test ! -s conftest.err
3563 } && test -s conftest$ac_exeext &&
3564 $as_test_x conftest$ac_exeext; then
3565 eval "$as_ac_var=yes"
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 eval "$as_ac_var=no"
3573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3574 conftest$ac_exeext conftest.$ac_ext
3576 ac_res=`eval echo '${'$as_ac_var'}'`
3577 { echo "$as_me:$LINENO: result: $ac_res" >&5
3578 echo "${ECHO_T}$ac_res" >&6; }
3579 if test `eval echo '${'$as_ac_var'}'` = yes; then
3580 cat >>confdefs.h <<_ACEOF
3581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3591 for ac_func in vsnprintf snprintf vsprintf mkstemp
3593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3607 #define $ac_func innocuous_$ac_func
3609 /* System header to define __stub macros and hopefully few prototypes,
3610 which can conflict with char $ac_func (); below.
3611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3612 <limits.h> exists even on freestanding compilers. */
3615 # include <limits.h>
3617 # include <assert.h>
3622 /* Override any GCC internal prototype to avoid an error.
3623 Use char because int might match the return type of a GCC
3624 builtin and then its argument prototype would still apply. */
3629 /* The GNU C library defines this for functions which it implements
3630 to always fail with ENOSYS. Some functions are actually named
3631 something starting with __ and the normal name is an alias. */
3632 #if defined __stub_$ac_func || defined __stub___$ac_func
3644 rm -f conftest.$ac_objext conftest$ac_exeext
3645 if { (ac_try="$ac_link"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_link") 2>conftest.er1
3653 grep -v '^ *+' conftest.er1 >conftest.err
3655 cat conftest.err >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } && {
3658 test -z "$ac_c_werror_flag" ||
3659 test ! -s conftest.err
3660 } && test -s conftest$ac_exeext &&
3661 $as_test_x conftest$ac_exeext; then
3662 eval "$as_ac_var=yes"
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 eval "$as_ac_var=no"
3670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3671 conftest$ac_exeext conftest.$ac_ext
3673 ac_res=`eval echo '${'$as_ac_var'}'`
3674 { echo "$as_me:$LINENO: result: $ac_res" >&5
3675 echo "${ECHO_T}$ac_res" >&6; }
3676 if test `eval echo '${'$as_ac_var'}'` = yes; then
3677 cat >>confdefs.h <<_ACEOF
3678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3687 # ===========================================================================
3689 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3690 # supports option specified as the 2nd parameter
3691 # For example: DD_CPORT(CXX, fPIC)
3695 # This macro expands DIR and assigns it to RET.
3696 # If DIR is NONE, then it's replaced by DEFAULT.
3698 # Based on AC_DEFINE_DIR
3702 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3706 # adl_NORMALIZE_PATH
3708 # - empty paths are changed to '.'
3709 # - trailing slashes are removed
3710 # - repeated slashes are squeezed except a leading doubled slash '//'
3711 # (which might indicate a networked disk on some OS).
3714 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3715 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3716 # are turned into backslashes, otherwise they are all turned into slashes.
3718 # This makes processing of DOS filenames quite easier, because you can turn a
3719 # filename to the Unix notation, make your processing, and turn it back to
3720 # original notation.
3725 # adl_COMPUTE_RELATIVE_PATH
3727 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3728 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3729 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3730 # absolute filenames for this macro to success.
3736 ## The following helper macros are too fragile to be used out
3737 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3738 ## paths are normalized), that's why I'm keeping them in the same file.
3739 ## Still, some of them maybe worth to reuse.
3757 # Checking characteristics of compilers and other programs
3758 # ===========================================================================
3759 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3760 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
3761 if test "${sdcc_cv_MM+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 echo "#include <stdio.h>" >_test_.c
3766 $CPP -v -MM _test_.c 1>&5 2>&5
3767 if test "$?" = "0"; then
3774 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3775 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
3779 # This is the first time when CFLAGS are set/modified!!
3781 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3782 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
3783 if test "${sdcc_cv_CCggdb+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3791 if test "$?" = "0"; then
3792 sdcc_cv_CCggdb="yes"
3796 rm -f _test_.* a.out
3798 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3799 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
3801 if test "$sdcc_cv_CCggdb" = "yes"; then
3802 CFLAGS="-ggdb ${CFLAGS}"
3806 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3807 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
3808 if test "${sdcc_cv_CCpipe+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 $CC -v -pipe -c _test_.c 1>&5 2>&5
3816 if test "$?" = "0"; then
3817 sdcc_cv_CCpipe="yes"
3821 rm -f _test_.* a.out
3823 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3824 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
3826 if test "$sdcc_cv_CCpipe" = "yes"; then
3827 CFLAGS="-pipe $CFLAGS"
3831 # Checks for typedefs, structures, and compiler characteristics.
3832 # ===========================================================================
3833 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3834 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3835 if test "${ac_cv_type_signal+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <sys/types.h>
3850 return *(signal (0, 0)) (0) == 1;
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3872 ac_cv_type_signal=int
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_type_signal=void
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3883 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3885 cat >>confdefs.h <<_ACEOF
3886 #define RETSIGTYPE $ac_cv_type_signal
3892 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3893 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3894 if test "${ac_cv_path_GREP+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 # Extract the first word of "grep ggrep" to use in msg output
3898 if test -z "$GREP"; then
3899 set dummy grep ggrep; ac_prog_name=$2
3900 if test "${ac_cv_path_GREP+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 ac_path_GREP_found=false
3904 # Loop through the user's path and test for each of PROGNAME-LIST
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909 test -z "$as_dir" && as_dir=.
3910 for ac_prog in grep ggrep; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3913 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3914 # Check for GNU ac_path_GREP and select it if it is found.
3915 # Check for GNU $ac_path_GREP
3916 case `"$ac_path_GREP" --version 2>&1` in
3918 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3921 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3924 cat "conftest.in" "conftest.in" >"conftest.tmp"
3925 mv "conftest.tmp" "conftest.in"
3926 cp "conftest.in" "conftest.nl"
3927 echo 'GREP' >> "conftest.nl"
3928 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930 ac_count=`expr $ac_count + 1`
3931 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3932 # Best one so far, save it but keep looking for a better one
3933 ac_cv_path_GREP="$ac_path_GREP"
3934 ac_path_GREP_max=$ac_count
3936 # 10*(2^10) chars as input seems more than enough
3937 test $ac_count -gt 10 && break
3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943 $ac_path_GREP_found && break 3
3953 GREP="$ac_cv_path_GREP"
3954 if test -z "$GREP"; then
3955 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3956 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3957 { (exit 1); exit 1; }; }
3961 ac_cv_path_GREP=$GREP
3966 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3967 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3968 GREP="$ac_cv_path_GREP"
3971 { echo "$as_me:$LINENO: checking for egrep" >&5
3972 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3973 if test "${ac_cv_path_EGREP+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3977 then ac_cv_path_EGREP="$GREP -E"
3979 # Extract the first word of "egrep" to use in msg output
3980 if test -z "$EGREP"; then
3981 set dummy egrep; ac_prog_name=$2
3982 if test "${ac_cv_path_EGREP+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 ac_path_EGREP_found=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 test -z "$as_dir" && as_dir=.
3992 for ac_prog in egrep; do
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3995 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3996 # Check for GNU ac_path_EGREP and select it if it is found.
3997 # Check for GNU $ac_path_EGREP
3998 case `"$ac_path_EGREP" --version 2>&1` in
4000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4003 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006 cat "conftest.in" "conftest.in" >"conftest.tmp"
4007 mv "conftest.tmp" "conftest.in"
4008 cp "conftest.in" "conftest.nl"
4009 echo 'EGREP' >> "conftest.nl"
4010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012 ac_count=`expr $ac_count + 1`
4013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4014 # Best one so far, save it but keep looking for a better one
4015 ac_cv_path_EGREP="$ac_path_EGREP"
4016 ac_path_EGREP_max=$ac_count
4018 # 10*(2^10) chars as input seems more than enough
4019 test $ac_count -gt 10 && break
4021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4025 $ac_path_EGREP_found && break 3
4035 EGREP="$ac_cv_path_EGREP"
4036 if test -z "$EGREP"; then
4037 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4038 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4039 { (exit 1); exit 1; }; }
4043 ac_cv_path_EGREP=$EGREP
4049 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4050 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4051 EGREP="$ac_cv_path_EGREP"
4054 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4056 if test "${ac_cv_header_stdc+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } && {
4092 test -z "$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4094 } && test -s conftest.$ac_objext; then
4095 ac_cv_header_stdc=yes
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_cv_header_stdc=no
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 if test $ac_cv_header_stdc = yes; then
4106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 $EGREP "memchr" >/dev/null 2>&1; then
4120 ac_cv_header_stdc=no
4126 if test $ac_cv_header_stdc = yes; then
4127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138 $EGREP "free" >/dev/null 2>&1; then
4141 ac_cv_header_stdc=no
4147 if test $ac_cv_header_stdc = yes; then
4148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4149 if test "$cross_compiling" = yes; then
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4160 #if ((' ' & 0x0FF) == 0x020)
4161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4164 # define ISLOWER(c) \
4165 (('a' <= (c) && (c) <= 'i') \
4166 || ('j' <= (c) && (c) <= 'r') \
4167 || ('s' <= (c) && (c) <= 'z'))
4168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4176 for (i = 0; i < 256; i++)
4177 if (XOR (islower (i), ISLOWER (i))
4178 || toupper (i) != TOUPPER (i))
4183 rm -f conftest$ac_exeext
4184 if { (ac_try="$ac_link"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_link") 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4205 echo "$as_me: program exited with status $ac_status" >&5
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_cv_header_stdc=no
4212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4220 if test $ac_cv_header_stdc = yes; then
4222 cat >>confdefs.h <<\_ACEOF
4223 #define STDC_HEADERS 1
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239 inttypes.h stdint.h unistd.h
4241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 $ac_includes_default
4255 #include <$ac_header>
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4274 eval "$as_ac_Header=yes"
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 eval "$as_ac_Header=no"
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_res=`eval echo '${'$as_ac_Header'}'`
4285 { echo "$as_me:$LINENO: result: $ac_res" >&5
4286 echo "${ECHO_T}$ac_res" >&6; }
4287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4288 cat >>confdefs.h <<_ACEOF
4289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297 { echo "$as_me:$LINENO: checking for char" >&5
4298 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
4299 if test "${ac_cv_type_char+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 cat >conftest.$ac_ext <<_ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 $ac_includes_default
4309 typedef char ac__type_new_;
4313 if ((ac__type_new_ *) 0)
4315 if (sizeof (ac__type_new_))
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4349 echo "${ECHO_T}$ac_cv_type_char" >&6; }
4351 # The cast to long int works around a bug in the HP C Compiler
4352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4354 # This bug is HP SR number 8606223364.
4355 { echo "$as_me:$LINENO: checking size of char" >&5
4356 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
4357 if test "${ac_cv_sizeof_char+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if test "$cross_compiling" = yes; then
4361 # Depending upon the size, compute the lo and hi bounds.
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 $ac_includes_default
4369 typedef char ac__type_sizeof_;
4373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 $ac_includes_default
4406 typedef char ac__type_sizeof_;
4410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && {
4431 test -z "$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 } && test -s conftest.$ac_objext; then
4434 ac_hi=$ac_mid; break
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_lo=`expr $ac_mid + 1`
4440 if test $ac_lo -le $ac_mid; then
4444 ac_mid=`expr 2 '*' $ac_mid + 1`
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 cat >conftest.$ac_ext <<_ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459 $ac_includes_default
4460 typedef char ac__type_sizeof_;
4464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4471 rm -f conftest.$ac_objext
4472 if { (ac_try="$ac_compile"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_compile") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && {
4485 test -z "$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4487 } && test -s conftest.$ac_objext; then
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 $ac_includes_default
4497 typedef char ac__type_sizeof_;
4501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4508 rm -f conftest.$ac_objext
4509 if { (ac_try="$ac_compile"
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4515 (eval "$ac_compile") 2>conftest.er1
4517 grep -v '^ *+' conftest.er1 >conftest.err
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } && {
4522 test -z "$ac_c_werror_flag" ||
4523 test ! -s conftest.err
4524 } && test -s conftest.$ac_objext; then
4525 ac_lo=$ac_mid; break
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4530 ac_hi=`expr '(' $ac_mid ')' - 1`
4531 if test $ac_mid -le $ac_hi; then
4535 ac_mid=`expr 2 '*' $ac_mid`
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 # Binary search between lo and hi bounds.
4552 while test "x$ac_lo" != "x$ac_hi"; do
4553 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4554 cat >conftest.$ac_ext <<_ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 $ac_includes_default
4561 typedef char ac__type_sizeof_;
4565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4572 rm -f conftest.$ac_objext
4573 if { (ac_try="$ac_compile"
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_compile") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } && {
4586 test -z "$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 } && test -s conftest.$ac_objext; then
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 ac_lo=`expr '(' $ac_mid ')' + 1`
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 ?*) ac_cv_sizeof_char=$ac_lo;;
4601 '') if test "$ac_cv_type_char" = yes; then
4602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4603 See \`config.log' for more details." >&5
4604 echo "$as_me: error: cannot compute sizeof (char)
4605 See \`config.log' for more details." >&2;}
4606 { (exit 77); exit 77; }; }
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4619 typedef char ac__type_sizeof_;
4620 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4621 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4628 FILE *f = fopen ("conftest.val", "w");
4631 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4633 long int i = longval ();
4634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4636 fprintf (f, "%ld\n", i);
4640 unsigned long int i = ulongval ();
4641 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4643 fprintf (f, "%lu\n", i);
4645 return ferror (f) || fclose (f) != 0;
4651 rm -f conftest$ac_exeext
4652 if { (ac_try="$ac_link"
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_link") 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4662 { (case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_try") 2>&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_sizeof_char=`cat conftest.val`
4673 echo "$as_me: program exited with status $ac_status" >&5
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4678 if test "$ac_cv_type_char" = yes; then
4679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4680 See \`config.log' for more details." >&5
4681 echo "$as_me: error: cannot compute sizeof (char)
4682 See \`config.log' for more details." >&2;}
4683 { (exit 77); exit 77; }; }
4688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4692 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4693 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
4697 cat >>confdefs.h <<_ACEOF
4698 #define SIZEOF_CHAR $ac_cv_sizeof_char
4702 { echo "$as_me:$LINENO: checking for short" >&5
4703 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4704 if test "${ac_cv_type_short+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 $ac_includes_default
4714 typedef short ac__type_new_;
4718 if ((ac__type_new_ *) 0)
4720 if (sizeof (ac__type_new_))
4726 rm -f conftest.$ac_objext
4727 if { (ac_try="$ac_compile"
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_compile") 2>conftest.er1
4735 grep -v '^ *+' conftest.er1 >conftest.err
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && {
4740 test -z "$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 } && test -s conftest.$ac_objext; then
4743 ac_cv_type_short=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4754 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4756 # The cast to long int works around a bug in the HP C Compiler
4757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4759 # This bug is HP SR number 8606223364.
4760 { echo "$as_me:$LINENO: checking size of short" >&5
4761 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4762 if test "${ac_cv_sizeof_short+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 if test "$cross_compiling" = yes; then
4766 # Depending upon the size, compute the lo and hi bounds.
4767 cat >conftest.$ac_ext <<_ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 $ac_includes_default
4774 typedef short ac__type_sizeof_;
4778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4785 rm -f conftest.$ac_objext
4786 if { (ac_try="$ac_compile"
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_compile") 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } && {
4799 test -z "$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 } && test -s conftest.$ac_objext; then
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4811 typedef short ac__type_sizeof_;
4815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4822 rm -f conftest.$ac_objext
4823 if { (ac_try="$ac_compile"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_compile") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.$ac_objext; then
4839 ac_hi=$ac_mid; break
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 ac_lo=`expr $ac_mid + 1`
4845 if test $ac_lo -le $ac_mid; then
4849 ac_mid=`expr 2 '*' $ac_mid + 1`
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 cat >conftest.$ac_ext <<_ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 $ac_includes_default
4865 typedef short ac__type_sizeof_;
4869 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4876 rm -f conftest.$ac_objext
4877 if { (ac_try="$ac_compile"
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_compile") 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && {
4890 test -z "$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 } && test -s conftest.$ac_objext; then
4895 cat >conftest.$ac_ext <<_ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 $ac_includes_default
4902 typedef short ac__type_sizeof_;
4906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4913 rm -f conftest.$ac_objext
4914 if { (ac_try="$ac_compile"
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_compile") 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } && {
4927 test -z "$ac_c_werror_flag" ||
4928 test ! -s conftest.err
4929 } && test -s conftest.$ac_objext; then
4930 ac_lo=$ac_mid; break
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 ac_hi=`expr '(' $ac_mid ')' - 1`
4936 if test $ac_mid -le $ac_hi; then
4940 ac_mid=`expr 2 '*' $ac_mid`
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 # Binary search between lo and hi bounds.
4957 while test "x$ac_lo" != "x$ac_hi"; do
4958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4959 cat >conftest.$ac_ext <<_ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 $ac_includes_default
4966 typedef short ac__type_sizeof_;
4970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4977 rm -f conftest.$ac_objext
4978 if { (ac_try="$ac_compile"
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 ac_lo=`expr '(' $ac_mid ')' + 1`
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 ?*) ac_cv_sizeof_short=$ac_lo;;
5006 '') if test "$ac_cv_type_short" = yes; then
5007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5008 See \`config.log' for more details." >&5
5009 echo "$as_me: error: cannot compute sizeof (short)
5010 See \`config.log' for more details." >&2;}
5011 { (exit 77); exit 77; }; }
5013 ac_cv_sizeof_short=0
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 $ac_includes_default
5024 typedef short ac__type_sizeof_;
5025 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5026 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5033 FILE *f = fopen ("conftest.val", "w");
5036 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5038 long int i = longval ();
5039 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5041 fprintf (f, "%ld\n", i);
5045 unsigned long int i = ulongval ();
5046 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5048 fprintf (f, "%lu\n", i);
5050 return ferror (f) || fclose (f) != 0;
5056 rm -f conftest$ac_exeext
5057 if { (ac_try="$ac_link"
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_link") 2>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5067 { (case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072 (eval "$ac_try") 2>&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_cv_sizeof_short=`cat conftest.val`
5078 echo "$as_me: program exited with status $ac_status" >&5
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5083 if test "$ac_cv_type_short" = yes; then
5084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5085 See \`config.log' for more details." >&5
5086 echo "$as_me: error: cannot compute sizeof (short)
5087 See \`config.log' for more details." >&2;}
5088 { (exit 77); exit 77; }; }
5090 ac_cv_sizeof_short=0
5093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5097 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5098 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5102 cat >>confdefs.h <<_ACEOF
5103 #define SIZEOF_SHORT $ac_cv_sizeof_short
5107 { echo "$as_me:$LINENO: checking for int" >&5
5108 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5109 if test "${ac_cv_type_int+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 cat >conftest.$ac_ext <<_ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 $ac_includes_default
5119 typedef int ac__type_new_;
5123 if ((ac__type_new_ *) 0)
5125 if (sizeof (ac__type_new_))
5131 rm -f conftest.$ac_objext
5132 if { (ac_try="$ac_compile"
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_compile") 2>conftest.er1
5140 grep -v '^ *+' conftest.er1 >conftest.err
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } && {
5145 test -z "$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 } && test -s conftest.$ac_objext; then
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5159 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5161 # The cast to long int works around a bug in the HP C Compiler
5162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5164 # This bug is HP SR number 8606223364.
5165 { echo "$as_me:$LINENO: checking size of int" >&5
5166 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5167 if test "${ac_cv_sizeof_int+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test "$cross_compiling" = yes; then
5171 # Depending upon the size, compute the lo and hi bounds.
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 $ac_includes_default
5179 typedef int ac__type_sizeof_;
5183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5190 rm -f conftest.$ac_objext
5191 if { (ac_try="$ac_compile"
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compile") 2>conftest.er1
5199 grep -v '^ *+' conftest.er1 >conftest.err
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && {
5204 test -z "$ac_c_werror_flag" ||
5205 test ! -s conftest.err
5206 } && test -s conftest.$ac_objext; then
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 $ac_includes_default
5216 typedef int ac__type_sizeof_;
5220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5227 rm -f conftest.$ac_objext
5228 if { (ac_try="$ac_compile"
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_compile") 2>conftest.er1
5236 grep -v '^ *+' conftest.er1 >conftest.err
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && {
5241 test -z "$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest.$ac_objext; then
5244 ac_hi=$ac_mid; break
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 ac_lo=`expr $ac_mid + 1`
5250 if test $ac_lo -le $ac_mid; then
5254 ac_mid=`expr 2 '*' $ac_mid + 1`
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 cat >conftest.$ac_ext <<_ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5269 $ac_includes_default
5270 typedef int ac__type_sizeof_;
5274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5281 rm -f conftest.$ac_objext
5282 if { (ac_try="$ac_compile"
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_compile") 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && {
5295 test -z "$ac_c_werror_flag" ||
5296 test ! -s conftest.err
5297 } && test -s conftest.$ac_objext; then
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5307 typedef int ac__type_sizeof_;
5311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compile") 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
5335 ac_lo=$ac_mid; break
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_hi=`expr '(' $ac_mid ')' - 1`
5341 if test $ac_mid -le $ac_hi; then
5345 ac_mid=`expr 2 '*' $ac_mid`
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 # Binary search between lo and hi bounds.
5362 while test "x$ac_lo" != "x$ac_hi"; do
5363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 $ac_includes_default
5371 typedef int ac__type_sizeof_;
5375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_lo=`expr '(' $ac_mid ')' + 1`
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 ?*) ac_cv_sizeof_int=$ac_lo;;
5411 '') if test "$ac_cv_type_int" = yes; then
5412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5413 See \`config.log' for more details." >&5
5414 echo "$as_me: error: cannot compute sizeof (int)
5415 See \`config.log' for more details." >&2;}
5416 { (exit 77); exit 77; }; }
5422 cat >conftest.$ac_ext <<_ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 $ac_includes_default
5429 typedef int ac__type_sizeof_;
5430 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5431 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5438 FILE *f = fopen ("conftest.val", "w");
5441 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5443 long int i = longval ();
5444 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5446 fprintf (f, "%ld\n", i);
5450 unsigned long int i = ulongval ();
5451 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5453 fprintf (f, "%lu\n", i);
5455 return ferror (f) || fclose (f) != 0;
5461 rm -f conftest$ac_exeext
5462 if { (ac_try="$ac_link"
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_link") 2>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5472 { (case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_try") 2>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5481 ac_cv_sizeof_int=`cat conftest.val`
5483 echo "$as_me: program exited with status $ac_status" >&5
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5488 if test "$ac_cv_type_int" = yes; then
5489 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5490 See \`config.log' for more details." >&5
5491 echo "$as_me: error: cannot compute sizeof (int)
5492 See \`config.log' for more details." >&2;}
5493 { (exit 77); exit 77; }; }
5498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5502 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5503 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5507 cat >>confdefs.h <<_ACEOF
5508 #define SIZEOF_INT $ac_cv_sizeof_int
5512 { echo "$as_me:$LINENO: checking for long" >&5
5513 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5514 if test "${ac_cv_type_long+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5524 typedef long ac__type_new_;
5528 if ((ac__type_new_ *) 0)
5530 if (sizeof (ac__type_new_))
5536 rm -f conftest.$ac_objext
5537 if { (ac_try="$ac_compile"
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5564 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5566 # The cast to long int works around a bug in the HP C Compiler
5567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5569 # This bug is HP SR number 8606223364.
5570 { echo "$as_me:$LINENO: checking size of long" >&5
5571 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5572 if test "${ac_cv_sizeof_long+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 if test "$cross_compiling" = yes; then
5576 # Depending upon the size, compute the lo and hi bounds.
5577 cat >conftest.$ac_ext <<_ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5584 typedef long ac__type_sizeof_;
5588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5595 rm -f conftest.$ac_objext
5596 if { (ac_try="$ac_compile"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_compile") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } && {
5609 test -z "$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5611 } && test -s conftest.$ac_objext; then
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 typedef long ac__type_sizeof_;
5625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5632 rm -f conftest.$ac_objext
5633 if { (ac_try="$ac_compile"
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_compile") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest.$ac_objext; then
5649 ac_hi=$ac_mid; break
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_lo=`expr $ac_mid + 1`
5655 if test $ac_lo -le $ac_mid; then
5659 ac_mid=`expr 2 '*' $ac_mid + 1`
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 $ac_includes_default
5675 typedef long ac__type_sizeof_;
5679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5695 grep -v '^ *+' conftest.er1 >conftest.err
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_c_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.$ac_objext; then
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5712 typedef long ac__type_sizeof_;
5716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_lo=$ac_mid; break
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ac_hi=`expr '(' $ac_mid ')' - 1`
5746 if test $ac_mid -le $ac_hi; then
5750 ac_mid=`expr 2 '*' $ac_mid`
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 # Binary search between lo and hi bounds.
5767 while test "x$ac_lo" != "x$ac_hi"; do
5768 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 $ac_includes_default
5776 typedef long ac__type_sizeof_;
5780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_lo=`expr '(' $ac_mid ')' + 1`
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 ?*) ac_cv_sizeof_long=$ac_lo;;
5816 '') if test "$ac_cv_type_long" = yes; then
5817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5818 See \`config.log' for more details." >&5
5819 echo "$as_me: error: cannot compute sizeof (long)
5820 See \`config.log' for more details." >&2;}
5821 { (exit 77); exit 77; }; }
5827 cat >conftest.$ac_ext <<_ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 $ac_includes_default
5834 typedef long ac__type_sizeof_;
5835 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5836 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5843 FILE *f = fopen ("conftest.val", "w");
5846 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5848 long int i = longval ();
5849 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5851 fprintf (f, "%ld\n", i);
5855 unsigned long int i = ulongval ();
5856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5858 fprintf (f, "%lu\n", i);
5860 return ferror (f) || fclose (f) != 0;
5866 rm -f conftest$ac_exeext
5867 if { (ac_try="$ac_link"
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_link") 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5877 { (case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_try") 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_sizeof_long=`cat conftest.val`
5888 echo "$as_me: program exited with status $ac_status" >&5
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5893 if test "$ac_cv_type_long" = yes; then
5894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5895 See \`config.log' for more details." >&5
5896 echo "$as_me: error: cannot compute sizeof (long)
5897 See \`config.log' for more details." >&2;}
5898 { (exit 77); exit 77; }; }
5903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5907 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5908 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5912 cat >>confdefs.h <<_ACEOF
5913 #define SIZEOF_LONG $ac_cv_sizeof_long
5918 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5919 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
5920 if test "${ac_cv_c_char_unsigned+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 cat >conftest.$ac_ext <<_ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5933 static int test_array [1 - 2 * !(((char) -1) < 0)];
5940 rm -f conftest.$ac_objext
5941 if { (ac_try="$ac_compile"
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.$ac_objext; then
5957 ac_cv_c_char_unsigned=no
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 ac_cv_c_char_unsigned=yes
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5968 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
5969 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5970 cat >>confdefs.h <<\_ACEOF
5971 #define __CHAR_UNSIGNED__ 1
5979 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5983 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5987 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5991 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5998 { echo "$as_me:$LINENO: checking type name for byte" >&5
5999 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
6000 TYPE_CHAR=`type_name 1`
6001 if test "$ac_cv_c_char_unsigned" = "yes"; then
6002 TYPE_BYTE="signed $TYPE_CHAR"
6004 TYPE_BYTE=$TYPE_CHAR
6006 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6007 echo "${ECHO_T}$TYPE_BYTE" >&6; }
6008 { echo "$as_me:$LINENO: checking type name for word" >&5
6009 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
6010 TYPE_WORD=`type_name 2`
6011 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6012 echo "${ECHO_T}$TYPE_WORD" >&6; }
6013 { echo "$as_me:$LINENO: checking type name for dword" >&5
6014 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
6015 TYPE_DWORD=`type_name 4`
6016 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6017 echo "${ECHO_T}$TYPE_DWORD" >&6; }
6019 cat >>confdefs.h <<_ACEOF
6020 #define TYPE_BYTE $TYPE_BYTE
6023 cat >>confdefs.h <<_ACEOF
6024 #define TYPE_WORD $TYPE_WORD
6027 cat >>confdefs.h <<_ACEOF
6028 #define TYPE_DWORD $TYPE_DWORD
6032 cat >>confdefs.h <<_ACEOF
6033 #define TYPE_UBYTE unsigned $TYPE_CHAR
6036 cat >>confdefs.h <<_ACEOF
6037 #define TYPE_UWORD unsigned $TYPE_WORD
6040 cat >>confdefs.h <<_ACEOF
6041 #define TYPE_UDWORD unsigned $TYPE_DWORD
6046 # SDCC_BUILD_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
6047 # -------------------------------------------------------------------------
6048 # SDCC_BUILD_BIGENDIAN
6050 { echo "$as_me:$LINENO: checking whether host machine byte ordering is bigendian" >&5
6051 echo $ECHO_N "checking whether host machine byte ordering is bigendian... $ECHO_C" >&6; }
6052 if test "${sdcc_cv_build_bigendian+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 # See if sys/param.h defines the BYTE_ORDER macro.
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <sys/types.h>
6063 #include <sys/param.h>
6068 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6069 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest.$ac_objext; then
6094 # It does; now see whether it defined to BIG_ENDIAN or not.
6095 cat >conftest.$ac_ext <<_ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 #include <sys/types.h>
6102 #include <sys/param.h>
6107 #if BYTE_ORDER != BIG_ENDIAN
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest.$ac_objext; then
6132 sdcc_cv_build_bigendian=yes
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 sdcc_cv_build_bigendian=no
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 # It does not; compile a test program.
6146 if test "$cross_compiling" = yes; then
6147 # try to guess the endianness by grepping values into an object file
6148 sdcc_cv_build_bigendian=unknown
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6156 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6157 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6158 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6159 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6160 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6164 _ascii (); _ebcdic ();
6169 rm -f conftest.$ac_objext
6170 if { (ac_try="$ac_compile"
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_compile") 2>conftest.er1
6178 grep -v '^ *+' conftest.er1 >conftest.err
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && {
6183 test -z "$ac_c_werror_flag" ||
6184 test ! -s conftest.err
6185 } && test -s conftest.$ac_objext; then
6186 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6187 sdcc_cv_build_bigendian=yes
6189 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6190 if test "$sdcc_cv_build_bigendian" = unknown; then
6191 sdcc_cv_build_bigendian=no
6193 # finding both strings is unlikely to happen, but who knows?
6194 sdcc_cv_build_bigendian=unknown
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 $ac_includes_default
6217 /* Are we little or big endian? From Harbison&Steele. */
6221 char c[sizeof (long int)];
6224 return u.c[sizeof (long int) - 1] == 1;
6230 rm -f conftest$ac_exeext
6231 if { (ac_try="$ac_link"
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_link") 2>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6241 { (case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_try") 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 sdcc_cv_build_bigendian=no
6252 echo "$as_me: program exited with status $ac_status" >&5
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6257 sdcc_cv_build_bigendian=yes
6259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 { echo "$as_me:$LINENO: result: $sdcc_cv_build_bigendian" >&5
6268 echo "${ECHO_T}$sdcc_cv_build_bigendian" >&6; }
6269 case $sdcc_cv_build_bigendian in
6272 cat >>confdefs.h <<\_ACEOF
6273 #define BUILD_WORDS_BIGENDIAN 1
6279 { { echo "$as_me:$LINENO: error: unknown endianness
6280 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&5
6281 echo "$as_me: error: unknown endianness
6282 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&2;}
6283 { (exit 1); exit 1; }; } ;;
6287 # Set standard installation paths
6288 # ===========================================================================
6290 # In the Makefiles we need paths with '/' as directory separator, even if
6291 # crosscompiling for Win32.
6292 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6293 # The variables in the Makefiles are replaced by AC_SUBST()
6295 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6297 # The macros are expanded for the header.
6298 # The variables in the header are replaced by AC_*DEFINE*()
6299 # sdccconf_h_dir_separator contains a backslash.
6301 if test "x${sdccconf_h_dir_separator}" = "x"; then
6302 sdccconf_h_dir_separator="/"
6308 # include_dir_suffix:
6309 # *nix default: "sdcc/include"
6312 if test "${include_dir_suffix}" = ""; then
6313 include_dir_suffix="sdcc/include"
6318 # *nix default: "sdcc/lib"
6320 if test "${lib_dir_suffix}" = ""; then
6321 lib_dir_suffix="sdcc/lib"
6326 # *nix default: "${datadir}/sdcc/doc"
6328 if test "${docdir}" = ""; then
6329 docdir="\${datadir}"/sdcc/doc
6338 cat >>confdefs.h <<_ACEOF
6339 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6342 cat >>confdefs.h <<_ACEOF
6343 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6348 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6350 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6353 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6354 ac_expand=`eval echo $ac_expand`
6355 expanded_prefix=`eval echo $ac_expand`
6358 ac_ndu=$expanded_prefix
6361 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6364 case $sdccconf_h_dir_separator in
6366 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6367 s,^[\\/],\\\\\\\\,'` ;;
6369 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6371 cat >>confdefs.h <<_ACEOF
6372 #define PREFIX "${ac_ndu}"
6378 # default: "${prefix}"
6380 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6382 ac_expand=$exec_prefix
6383 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6384 ac_expand=`eval echo $ac_expand`
6385 expanded_exec_prefix=`eval echo $ac_expand`
6388 ac_ndu=$expanded_exec_prefix
6391 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6394 case $sdccconf_h_dir_separator in
6396 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6397 s,^[\\/],\\\\\\\\,'` ;;
6399 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6401 cat >>confdefs.h <<_ACEOF
6402 #define EXEC_PREFIX "${ac_ndu}"
6408 # default: "${exec_prefix}/bin"
6410 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6411 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6413 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6414 ac_expand=`eval echo $ac_expand`
6415 expanded_bindir=`eval echo $ac_expand`
6418 ac_ndu=$expanded_bindir
6421 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6424 case $sdccconf_h_dir_separator in
6426 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6427 s,^[\\/],\\\\\\\\,'` ;;
6429 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6431 cat >>confdefs.h <<_ACEOF
6432 #define BINDIR "${ac_ndu}"
6438 # default: "${prefix}/share"
6440 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6443 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6444 ac_expand=`eval echo $ac_expand`
6445 expanded_datadir=`eval echo $ac_expand`
6448 ac_ndu=$expanded_datadir
6451 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6454 case $sdccconf_h_dir_separator in
6456 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6457 s,^[\\/],\\\\\\\\,'` ;;
6459 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6461 cat >>confdefs.h <<_ACEOF
6462 #define DATADIR "${ac_ndu}"
6467 # include/lib suffix
6468 norm_inc_dir_suffix=${include_dir_suffix}
6469 case ":$norm_inc_dir_suffix:" in
6470 ::) norm_inc_dir_suffix='.' ;;
6471 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6474 case $sdccconf_h_dir_separator in
6476 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6477 s,^[\\/],\\\\\\\\,'` ;;
6479 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6481 cat >>confdefs.h <<_ACEOF
6482 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6485 norm_lib_dir_suffix=${lib_dir_suffix}
6486 case ":$norm_lib_dir_suffix:" in
6487 ::) norm_lib_dir_suffix='.' ;;
6488 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6491 case $sdccconf_h_dir_separator in
6493 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6494 s,^[\\/],\\\\\\\\,'` ;;
6496 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6498 cat >>confdefs.h <<_ACEOF
6499 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6504 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6505 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6506 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6507 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6508 _lcl_receval="$_lcl_from"
6509 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6510 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6512 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6513 _lcl_receval_old="$_lcl_receval"
6514 eval _lcl_receval="\"$_lcl_receval\""
6516 echo "$_lcl_receval")`
6517 _lcl_receval="$_lcl_to"
6518 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6519 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6521 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6522 _lcl_receval_old="$_lcl_receval"
6523 eval _lcl_receval="\"$_lcl_receval\""
6525 echo "$_lcl_receval")`
6526 _lcl_notation="$_lcl_from$_lcl_to"
6527 case ":$_lcl_from:" in
6528 ::) _lcl_from='.' ;;
6529 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6534 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6535 s,^[\\/],\\\\\\\\,'` ;;
6537 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6539 case ":$_lcl_to:" in
6541 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6546 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6547 s,^[\\/],\\\\\\\\,'` ;;
6549 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6551 _lcl_common_prefix=''
6552 _lcl_second_prefix_match=''
6553 while test "$_lcl_second_prefix_match" != 0; do
6554 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6555 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6556 if test "$_lcl_second_prefix_match" != 0; then
6557 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6558 _lcl_common_prefix="$_lcl_first_prefix"
6560 _lcl_second_prefix_match=0
6564 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6567 while test "$_lcl_tmp" != ''; do
6568 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6569 if test "$_lcl_first_suffix" != ''; then
6570 _lcl_first_suffix="$_lcl_tmp"
6571 _lcl_first_rel="../$_lcl_first_rel"
6574 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6575 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6576 case ":$_lcl_result_tmp:" in
6577 ::) _lcl_result_tmp='.' ;;
6578 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6581 case "$_lcl_notation" in
6583 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6584 s,^[\\/],\\\\\\\\,'` ;;
6586 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6588 eval $_lcl_result_var='$_lcl_result_tmp'
6590 case ":$bin2data_dir:" in
6591 ::) bin2data_dir='.' ;;
6592 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6595 case $sdccconf_h_dir_separator in
6597 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6598 s,^[\\/],\\\\\\\\,'` ;;
6600 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6602 cat >>confdefs.h <<_ACEOF
6603 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6607 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6608 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6609 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6610 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6611 _lcl_receval="$_lcl_from"
6612 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6613 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6615 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6616 _lcl_receval_old="$_lcl_receval"
6617 eval _lcl_receval="\"$_lcl_receval\""
6619 echo "$_lcl_receval")`
6620 _lcl_receval="$_lcl_to"
6621 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6622 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6624 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6625 _lcl_receval_old="$_lcl_receval"
6626 eval _lcl_receval="\"$_lcl_receval\""
6628 echo "$_lcl_receval")`
6629 _lcl_notation="$_lcl_from$_lcl_to"
6630 case ":$_lcl_from:" in
6631 ::) _lcl_from='.' ;;
6632 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6637 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6638 s,^[\\/],\\\\\\\\,'` ;;
6640 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6642 case ":$_lcl_to:" in
6644 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6649 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6650 s,^[\\/],\\\\\\\\,'` ;;
6652 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6654 _lcl_common_prefix=''
6655 _lcl_second_prefix_match=''
6656 while test "$_lcl_second_prefix_match" != 0; do
6657 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6658 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6659 if test "$_lcl_second_prefix_match" != 0; then
6660 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6661 _lcl_common_prefix="$_lcl_first_prefix"
6663 _lcl_second_prefix_match=0
6667 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6670 while test "$_lcl_tmp" != ''; do
6671 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6672 if test "$_lcl_first_suffix" != ''; then
6673 _lcl_first_suffix="$_lcl_tmp"
6674 _lcl_first_rel="../$_lcl_first_rel"
6677 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6678 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6679 case ":$_lcl_result_tmp:" in
6680 ::) _lcl_result_tmp='.' ;;
6681 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6684 case "$_lcl_notation" in
6686 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6687 s,^[\\/],\\\\\\\\,'` ;;
6689 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6691 eval $_lcl_result_var='$_lcl_result_tmp'
6693 case ":$prefix2bin_dir:" in
6694 ::) prefix2bin_dir='.' ;;
6695 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6698 case $sdccconf_h_dir_separator in
6700 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6701 s,^[\\/],\\\\\\\\,'` ;;
6703 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6705 cat >>confdefs.h <<_ACEOF
6706 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6710 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6711 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6712 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6713 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6714 _lcl_receval="$_lcl_from"
6715 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6716 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6718 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6719 _lcl_receval_old="$_lcl_receval"
6720 eval _lcl_receval="\"$_lcl_receval\""
6722 echo "$_lcl_receval")`
6723 _lcl_receval="$_lcl_to"
6724 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6725 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6727 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6728 _lcl_receval_old="$_lcl_receval"
6729 eval _lcl_receval="\"$_lcl_receval\""
6731 echo "$_lcl_receval")`
6732 _lcl_notation="$_lcl_from$_lcl_to"
6733 case ":$_lcl_from:" in
6734 ::) _lcl_from='.' ;;
6735 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6740 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6741 s,^[\\/],\\\\\\\\,'` ;;
6743 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6745 case ":$_lcl_to:" in
6747 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6752 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6753 s,^[\\/],\\\\\\\\,'` ;;
6755 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6757 _lcl_common_prefix=''
6758 _lcl_second_prefix_match=''
6759 while test "$_lcl_second_prefix_match" != 0; do
6760 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6761 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6762 if test "$_lcl_second_prefix_match" != 0; then
6763 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6764 _lcl_common_prefix="$_lcl_first_prefix"
6766 _lcl_second_prefix_match=0
6770 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6773 while test "$_lcl_tmp" != ''; do
6774 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6775 if test "$_lcl_first_suffix" != ''; then
6776 _lcl_first_suffix="$_lcl_tmp"
6777 _lcl_first_rel="../$_lcl_first_rel"
6780 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6781 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6782 case ":$_lcl_result_tmp:" in
6783 ::) _lcl_result_tmp='.' ;;
6784 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6787 case "$_lcl_notation" in
6789 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6790 s,^[\\/],\\\\\\\\,'` ;;
6792 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6794 eval $_lcl_result_var='$_lcl_result_tmp'
6796 case ":$prefix2data_dir:" in
6797 ::) prefix2data_dir='.' ;;
6798 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6801 case $sdccconf_h_dir_separator in
6803 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6804 s,^[\\/],\\\\\\\\,'` ;;
6806 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6808 if test "${prefix2data_dir}" = "."; then
6809 # small optimization for Mingw32; otherwise Borut will complain ;-)
6810 cat >>confdefs.h <<_ACEOF
6811 #define PREFIX2DATA_DIR ""
6815 cat >>confdefs.h <<_ACEOF
6816 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6822 cat >>confdefs.h <<_ACEOF
6823 #define STD_LIB "libsdcc"
6826 cat >>confdefs.h <<_ACEOF
6827 #define STD_INT_LIB "libint"
6830 cat >>confdefs.h <<_ACEOF
6831 #define STD_LONG_LIB "liblong"
6834 cat >>confdefs.h <<_ACEOF
6835 #define STD_FP_LIB "libfloat"
6838 cat >>confdefs.h <<_ACEOF
6839 #define STD_DS390_LIB "libds390"
6842 cat >>confdefs.h <<_ACEOF
6843 #define STD_DS400_LIB "libds400"
6846 cat >>confdefs.h <<_ACEOF
6847 #define STD_XA51_LIB "libxa51"
6851 # SDCC runtime environment variables
6852 sdcc_dir_name="SDCC_HOME"
6853 cat >>confdefs.h <<_ACEOF
6854 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6858 sdcc_include_name="SDCC_INCLUDE"
6859 cat >>confdefs.h <<_ACEOF
6860 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6864 sdcc_lib_name="SDCC_LIB"
6865 cat >>confdefs.h <<_ACEOF
6866 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6870 # Port selection helper
6871 # ===========================================================================
6872 # macro AC_DO_ENABLER()
6873 # $1 used to access enable_$1, e.g. enable-doc
6874 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6878 # macro AC_DO_DISABLER()
6879 # $1 used to access disable_$1, e.g. ucsim
6880 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6884 # macro AC_DO_PORT($1, $2, $3, $4)
6885 # $1 used to access enable_$2_port, e.g. gbz80
6886 # $2 port name in ports.all and ports.build, e.g. z80
6887 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6891 # Now handle the port selection
6892 # ===========================================================================
6893 rm -f ports.all ports.build
6895 # Check whether --enable-mcs51-port was given.
6896 if test "${enable_mcs51_port+set}" = set; then
6897 enableval=$enable_mcs51_port;
6901 if test "$enable_mcs51_port" = "no"; then
6904 enable_mcs51_port="yes"
6908 cat >>confdefs.h <<_ACEOF
6909 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6914 echo mcs51 >>ports.all
6915 if test $OPT_DISABLE_MCS51 = 0; then
6916 echo mcs51 >>ports.build
6920 # Check whether --enable-gbz80-port was given.
6921 if test "${enable_gbz80_port+set}" = set; then
6922 enableval=$enable_gbz80_port;
6926 if test "$enable_gbz80_port" = "no"; then
6929 enable_gbz80_port="yes"
6933 cat >>confdefs.h <<_ACEOF
6934 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6939 echo z80 >>ports.all
6940 if test $OPT_DISABLE_GBZ80 = 0; then
6941 echo z80 >>ports.build
6945 # Check whether --enable-z80-port was given.
6946 if test "${enable_z80_port+set}" = set; then
6947 enableval=$enable_z80_port;
6951 if test "$enable_z80_port" = "no"; then
6954 enable_z80_port="yes"
6958 cat >>confdefs.h <<_ACEOF
6959 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6964 echo z80 >>ports.all
6965 if test $OPT_DISABLE_Z80 = 0; then
6966 echo z80 >>ports.build
6970 # Check whether --enable-avr-port was given.
6971 if test "${enable_avr_port+set}" = set; then
6972 enableval=$enable_avr_port;
6976 if test "$enable_avr_port" = "no"; then
6979 enable_avr_port="yes"
6983 cat >>confdefs.h <<_ACEOF
6984 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
6989 echo avr >>ports.all
6990 if test $OPT_DISABLE_AVR = 0; then
6991 echo avr >>ports.build
6995 # Check whether --enable-ds390-port was given.
6996 if test "${enable_ds390_port+set}" = set; then
6997 enableval=$enable_ds390_port;
7001 if test "$enable_ds390_port" = "no"; then
7004 enable_ds390_port="yes"
7008 cat >>confdefs.h <<_ACEOF
7009 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
7014 echo ds390 >>ports.all
7015 if test $OPT_DISABLE_DS390 = 0; then
7016 echo ds390 >>ports.build
7019 cat >>confdefs.h <<_ACEOF
7020 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
7024 # Check whether --enable-ds400-port was given.
7025 if test "${enable_ds400_port+set}" = set; then
7026 enableval=$enable_ds400_port;
7030 if test "$enable_ds400_port" = "no"; then
7033 enable_ds400_port="yes"
7037 cat >>confdefs.h <<_ACEOF
7038 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
7043 echo ds400 >>ports.all
7044 if test $OPT_DISABLE_DS400 = 0; then
7045 echo ds400 >>ports.build
7049 # Check whether --enable-pic-port was given.
7050 if test "${enable_pic_port+set}" = set; then
7051 enableval=$enable_pic_port;
7055 if test "$enable_pic_port" = "no"; then
7058 enable_pic_port="yes"
7062 cat >>confdefs.h <<_ACEOF
7063 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
7068 echo pic >>ports.all
7069 if test $OPT_DISABLE_PIC = 0; then
7070 echo pic >>ports.build
7074 # Check whether --enable-pic16-port was given.
7075 if test "${enable_pic16_port+set}" = set; then
7076 enableval=$enable_pic16_port;
7080 if test "$enable_pic16_port" = "no"; then
7083 enable_pic16_port="yes"
7087 cat >>confdefs.h <<_ACEOF
7088 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
7093 echo pic16 >>ports.all
7094 if test $OPT_DISABLE_PIC16 = 0; then
7095 echo pic16 >>ports.build
7099 # Check whether --enable-xa51-port was given.
7100 if test "${enable_xa51_port+set}" = set; then
7101 enableval=$enable_xa51_port;
7105 if test "$enable_xa51_port" = "no"; then
7108 enable_xa51_port="yes"
7112 cat >>confdefs.h <<_ACEOF
7113 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
7118 echo xa51 >>ports.all
7119 if test $OPT_DISABLE_XA51 = 0; then
7120 echo xa51 >>ports.build
7124 # Check whether --enable-hc08-port was given.
7125 if test "${enable_hc08_port+set}" = set; then
7126 enableval=$enable_hc08_port;
7130 if test "$enable_hc08_port" = "no"; then
7133 enable_hc08_port="yes"
7137 cat >>confdefs.h <<_ACEOF
7138 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
7143 echo hc08 >>ports.all
7144 if test $OPT_DISABLE_HC08 = 0; then
7145 echo hc08 >>ports.build
7150 # Check whether --enable-ucsim was given.
7151 if test "${enable_ucsim+set}" = set; then
7152 enableval=$enable_ucsim;
7156 arg1=`echo ucsim | sed s/-/_/`
7158 if test "`eval echo \\$enable_$arg1`" = "no"; then
7164 cat >>confdefs.h <<_ACEOF
7165 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
7171 # Check whether --enable-device-lib was given.
7172 if test "${enable_device_lib+set}" = set; then
7173 enableval=$enable_device_lib;
7177 arg1=`echo device-lib | sed s/-/_/`
7179 if test "`eval echo \\$enable_$arg1`" = "no"; then
7180 OPT_DISABLE_DEVICE_LIB=1
7182 OPT_DISABLE_DEVICE_LIB=0
7185 cat >>confdefs.h <<_ACEOF
7186 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
7192 # Check whether --enable-packihx was given.
7193 if test "${enable_packihx+set}" = set; then
7194 enableval=$enable_packihx;
7198 arg1=`echo packihx | sed s/-/_/`
7200 if test "`eval echo \\$enable_$arg1`" = "no"; then
7201 OPT_DISABLE_PACKIHX=1
7203 OPT_DISABLE_PACKIHX=0
7206 cat >>confdefs.h <<_ACEOF
7207 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
7213 # Check whether --enable-sdcpp was given.
7214 if test "${enable_sdcpp+set}" = set; then
7215 enableval=$enable_sdcpp;
7219 arg1=`echo sdcpp | sed s/-/_/`
7221 if test "`eval echo \\$enable_$arg1`" = "no"; then
7227 cat >>confdefs.h <<_ACEOF
7228 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
7234 # Check whether --enable-sdcdb was given.
7235 if test "${enable_sdcdb+set}" = set; then
7236 enableval=$enable_sdcdb;
7240 arg1=`echo sdcdb | sed s/-/_/`
7242 if test "`eval echo \\$enable_$arg1`" = "no"; then
7248 cat >>confdefs.h <<_ACEOF
7249 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
7256 # Check whether --enable-doc was given.
7257 if test "${enable_doc+set}" = set; then
7258 enableval=$enable_doc;
7262 if test "$enable_doc" = "yes"; then
7268 cat >>confdefs.h <<_ACEOF
7269 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
7274 if test $OPT_ENABLE_DOC = 1; then
7275 # Extract the first word of "lyx", so it can be a program name with args.
7276 set dummy lyx; ac_word=$2
7277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279 if test "${ac_cv_prog_LYX+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 if test -n "$LYX"; then
7283 ac_cv_prog_LYX="$LYX" # Let the user override the test.
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_prog_LYX="lyx"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
7304 if test -n "$LYX"; then
7305 { echo "$as_me:$LINENO: result: $LYX" >&5
7306 echo "${ECHO_T}$LYX" >&6; }
7308 { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7313 # Extract the first word of "latex2html", so it can be a program name with args.
7314 set dummy latex2html; ac_word=$2
7315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 if test -n "$LATEX2HTML"; then
7321 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_LATEX2HTML="latex2html"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7341 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7342 if test -n "$LATEX2HTML"; then
7343 { echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7344 echo "${ECHO_T}$LATEX2HTML" >&6; }
7346 { echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6; }
7351 # Extract the first word of "pdflatex", so it can be a program name with args.
7352 set dummy pdflatex; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 if test -n "$PDFLATEX"; then
7359 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_PDFLATEX="pdflatex"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7379 PDFLATEX=$ac_cv_prog_PDFLATEX
7380 if test -n "$PDFLATEX"; then
7381 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7382 echo "${ECHO_T}$PDFLATEX" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7389 # Extract the first word of "pdfopt", so it can be a program name with args.
7390 set dummy pdfopt; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 if test -n "$PDFOPT"; then
7397 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_prog_PDFOPT="pdfopt"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7417 PDFOPT=$ac_cv_prog_PDFOPT
7418 if test -n "$PDFOPT"; then
7419 { echo "$as_me:$LINENO: result: $PDFOPT" >&5
7420 echo "${ECHO_T}$PDFOPT" >&6; }
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7427 # Extract the first word of "makeindex", so it can be a program name with args.
7428 set dummy makeindex; ac_word=$2
7429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7431 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 if test -n "$MAKEINDEX"; then
7435 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7444 ac_cv_prog_MAKEINDEX="makeindex"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7455 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7456 if test -n "$MAKEINDEX"; then
7457 { echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7458 echo "${ECHO_T}$MAKEINDEX" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7466 if test "$LYX" = ":"; then
7467 { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7468 echo "$as_me: error: Cannot find required program lyx." >&2;}
7469 { (exit 1); exit 1; }; }
7472 if test "$LATEX2HTML" = ":"; then
7473 { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7474 echo "$as_me: error: Cannot find required program latex2html." >&2;}
7475 { (exit 1); exit 1; }; }
7478 if test "$PDFLATEX" = ":"; then
7479 { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7480 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7481 { (exit 1); exit 1; }; }
7484 if test "$PDFOPT" = ":"; then
7485 { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7486 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7487 { (exit 1); exit 1; }; }
7490 if test "$MAKEINDEX" = ":"; then
7491 { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7492 echo "$as_me: error: Cannot find required program makeindex." >&2;}
7493 { (exit 1); exit 1; }; }
7499 # Check whether --enable-libgc was given.
7500 if test "${enable_libgc+set}" = set; then
7501 enableval=$enable_libgc;
7505 if test "$enable_libgc" = "yes"; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7517 if test $OPT_ENABLE_LIBGC = 1; then
7519 { echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7520 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6; }
7521 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 ac_check_lib_save_LIBS=$LIBS
7526 cat >conftest.$ac_ext <<_ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7533 /* Override any GCC internal prototype to avoid an error.
7534 Use char because int might match the return type of a GCC
7535 builtin and then its argument prototype would still apply. */
7543 return GC_malloc ();
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (ac_try="$ac_link"
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_link") 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest$ac_exeext &&
7565 $as_test_x conftest$ac_exeext; then
7566 ac_cv_lib_gc_GC_malloc=yes
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_lib_gc_GC_malloc=no
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575 conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS
7578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7579 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6; }
7580 if test $ac_cv_lib_gc_GC_malloc = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define HAVE_LIBGC 1
7589 if test $ac_cv_lib_gc_GC_malloc = no; then
7590 { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7591 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7592 { (exit 1); exit 1; }; }
7597 uniq ports.all ports
7599 uniq ports.build ports
7600 mv ports ports.build
7602 # Generating output files
7603 # ===========================================================================
7604 test $OPT_DISABLE_SDCPP = 0 && subdirs="$subdirs support/cpp"
7606 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
7608 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
7610 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
7612 ac_config_files="$ac_config_files doc/Makefile"
7615 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7618 if test $OPT_DISABLE_DS390 = 0; then
7619 ac_config_files="$ac_config_files src/ds390/Makefile"
7621 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7625 if test $OPT_DISABLE_DS400 = 0; then
7626 ac_config_files="$ac_config_files src/ds400/Makefile"
7628 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7632 if test $OPT_DISABLE_HC08 = 0; then
7633 ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7635 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7639 if test $OPT_DISABLE_MCS51 = 0; then
7640 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7642 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"
7646 if test $OPT_DISABLE_PIC = 0; then
7647 ac_config_files="$ac_config_files src/pic/Makefile"
7649 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic"
7652 if test $OPT_DISABLE_PIC16 = 0; then
7653 ac_config_files="$ac_config_files src/pic16/Makefile"
7655 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
7659 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7662 if test $OPT_DISABLE_Z80 = 0; then
7663 ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7665 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7669 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7672 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"
7674 cat >confcache <<\_ACEOF
7675 # This file is a shell script that caches the results of configure
7676 # tests run on this system so they can be shared between configure
7677 # scripts and configure runs, see configure's option --config-cache.
7678 # It is not useful on other systems. If it contains results you don't
7679 # want to keep, you may remove or edit it.
7681 # config.status only pays attention to the cache file if you give it
7682 # the --recheck option to rerun configure.
7684 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7685 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7690 # The following way of writing the cache mishandles newlines in values,
7691 # but we know of no workaround that is simple, portable, and efficient.
7692 # So, we kill variables containing newlines.
7693 # Ultrix sh set writes to stderr and can't be redirected directly,
7694 # and sets the high bit in the cache file unless we assign to the vars.
7696 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7697 eval ac_val=\$$ac_var
7701 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7702 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7705 _ | IFS | as_nl) ;; #(
7706 *) $as_unset $ac_var ;;
7712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7713 *${as_nl}ac_space=\ *)
7714 # `set' does not quote correctly, so add quotes (double-quote
7715 # substitution turns \\\\ into \\, and sed turns \\ into \).
7718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7721 # `set' quotes correctly as required by POSIX, so do not add quotes.
7722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7736 if test -w "$cache_file"; then
7737 test "x$cache_file" != "x/dev/null" &&
7738 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7739 echo "$as_me: updating cache $cache_file" >&6;}
7740 cat confcache >$cache_file
7742 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7743 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7749 # Let make expand exec_prefix.
7750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7752 DEFS=-DHAVE_CONFIG_H
7756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7757 # 1. Remove the extension, and $U if already installed.
7758 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7759 ac_i=`echo "$ac_i" | sed "$ac_script"`
7760 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7761 # will be set to the directory where LIBOBJS objects are built.
7762 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7763 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7767 LTLIBOBJS=$ac_ltlibobjs
7771 : ${CONFIG_STATUS=./config.status}
7772 ac_clean_files_save=$ac_clean_files
7773 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7774 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7775 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7776 cat >$CONFIG_STATUS <<_ACEOF
7778 # Generated by $as_me.
7779 # Run this file to recreate the current configuration.
7780 # Compiler output produced by configure, useful for debugging
7781 # configure, is in config.log if it exists.
7786 SHELL=\${CONFIG_SHELL-$SHELL}
7789 cat >>$CONFIG_STATUS <<\_ACEOF
7790 ## --------------------- ##
7791 ## M4sh Initialization. ##
7792 ## --------------------- ##
7794 # Be more Bourne compatible
7795 DUALCASE=1; export DUALCASE # for MKS sh
7796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7799 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7800 # is contrary to our usage. Disable this feature.
7801 alias -g '${1+"$@"}'='"$@"'
7802 setopt NO_GLOB_SUBST
7804 case `(set -o) 2>/dev/null` in
7805 *posix*) set -o posix ;;
7814 # Avoid depending upon Character Ranges.
7815 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7816 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7817 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7818 as_cr_digits='0123456789'
7819 as_cr_alnum=$as_cr_Letters$as_cr_digits
7821 # The user is always right.
7822 if test "${PATH_SEPARATOR+set}" != set; then
7823 echo "#! /bin/sh" >conf$$.sh
7824 echo "exit 0" >>conf$$.sh
7826 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7834 # Support unset when possible.
7835 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7843 # We need space, tab and new line, in precisely that order. Quoting is
7844 # there to prevent editors from complaining about space-tab.
7845 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7846 # splitting by setting IFS to empty value.)
7851 # Find who we are. Look in the path if we contain no directory separator.
7853 *[\\/]* ) as_myself=$0 ;;
7854 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir=.
7859 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7865 # We did not find ourselves, most probably we were run as `sh COMMAND'
7866 # in which case we are not to be found in the path.
7867 if test "x$as_myself" = x; then
7870 if test ! -f "$as_myself"; then
7871 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7872 { (exit 1); exit 1; }
7875 # Work around bugs in pre-3.0 UWIN ksh.
7876 for as_var in ENV MAIL MAILPATH
7877 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7885 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7886 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7887 LC_TELEPHONE LC_TIME
7889 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7890 eval $as_var=C; export $as_var
7892 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7896 # Required to use basename.
7897 if expr a : '\(a\)' >/dev/null 2>&1 &&
7898 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7904 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7905 as_basename=basename
7911 # Name of the executable.
7912 as_me=`$as_basename -- "$0" ||
7913 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7914 X"$0" : 'X\(//\)$' \| \
7915 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7917 sed '/^.*\/\([^/][^/]*\)\/*$/{
7938 test "x$as_lineno_1" != "x$as_lineno_2" &&
7939 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7941 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7942 # uniformly replaced by the line number. The first 'sed' inserts a
7943 # line-number line after each line using $LINENO; the second 'sed'
7944 # does the real work. The second script uses 'N' to pair each
7945 # line-number line with the line containing $LINENO, and appends
7946 # trailing '-' during substitution so that $LINENO is not a special
7948 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7949 # scripts with optimization help from Paolo Bonzini. Blame Lee
7950 # E. McMahon (1931-1989) for sed's syntax. :-)
7962 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7966 chmod +x "$as_me.lineno" ||
7967 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7968 { (exit 1); exit 1; }; }
7970 # Don't try to exec as it changes $[0], causing all sort of problems
7971 # (the dirname of $[0] is not the place where we might find the
7972 # original and so on. Autoconf is especially sensitive to this).
7974 # Exit status is that of the last command.
7979 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7985 ECHO_C= ECHO_N= ECHO_T=
7988 case `echo 'x\c'` in
7989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7996 if expr a : '\(a\)' >/dev/null 2>&1 &&
7997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8003 rm -f conf$$ conf$$.exe conf$$.file
8004 if test -d conf$$.dir; then
8005 rm -f conf$$.dir/conf$$.file
8011 if ln -s conf$$.file conf$$ 2>/dev/null; then
8013 # ... but there are two gotchas:
8014 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8015 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8016 # In both cases, we have to default to `cp -p'.
8017 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8019 elif ln conf$$.file conf$$ 2>/dev/null; then
8024 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8025 rmdir conf$$.dir 2>/dev/null
8027 if mkdir -p . 2>/dev/null; then
8030 test -d ./-p && rmdir ./-p
8034 if test -x / >/dev/null 2>&1; then
8037 if ls -dL / >/dev/null 2>&1; then
8044 if test -d "$1"; then
8050 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8051 ???[sx]*):;;*)false;;esac;fi
8055 as_executable_p=$as_test_x
8057 # Sed expression to map a string onto a valid CPP name.
8058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8060 # Sed expression to map a string onto a valid variable name.
8061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8066 # Save the log message, to keep $[0] and so on meaningful, and to
8067 # report actual input values of CONFIG_FILES etc. instead of their
8068 # values after options handling.
8070 This file was extended by $as_me, which was
8071 generated by GNU Autoconf 2.61. Invocation command line was
8073 CONFIG_FILES = $CONFIG_FILES
8074 CONFIG_HEADERS = $CONFIG_HEADERS
8075 CONFIG_LINKS = $CONFIG_LINKS
8076 CONFIG_COMMANDS = $CONFIG_COMMANDS
8079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8084 cat >>$CONFIG_STATUS <<_ACEOF
8085 # Files that config.status was made for.
8086 config_files="$ac_config_files"
8087 config_headers="$ac_config_headers"
8091 cat >>$CONFIG_STATUS <<\_ACEOF
8093 \`$as_me' instantiates files from templates according to the
8094 current configuration.
8096 Usage: $0 [OPTIONS] [FILE]...
8098 -h, --help print this help, then exit
8099 -V, --version print version number and configuration settings, then exit
8100 -q, --quiet do not print progress messages
8101 -d, --debug don't remove temporary files
8102 --recheck update $as_me by reconfiguring in the same conditions
8103 --file=FILE[:TEMPLATE]
8104 instantiate the configuration file FILE
8105 --header=FILE[:TEMPLATE]
8106 instantiate the configuration header FILE
8108 Configuration files:
8111 Configuration headers:
8114 Report bugs to <bug-autoconf@gnu.org>."
8117 cat >>$CONFIG_STATUS <<_ACEOF
8120 configured by $0, generated by GNU Autoconf 2.61,
8121 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8123 Copyright (C) 2006 Free Software Foundation, Inc.
8124 This config.status script is free software; the Free Software Foundation
8125 gives unlimited permission to copy, distribute and modify it."
8132 cat >>$CONFIG_STATUS <<\_ACEOF
8133 # If no file are specified by the user, then we need to provide default
8134 # value. By we need to know if files were specified by the user.
8140 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8141 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8152 # Handling of the options.
8153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8155 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8156 echo "$ac_cs_version"; exit ;;
8157 --debug | --debu | --deb | --de | --d | -d )
8159 --file | --fil | --fi | --f )
8161 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8162 ac_need_defaults=false;;
8163 --header | --heade | --head | --hea )
8165 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8166 ac_need_defaults=false;;
8168 # Conflict between --help and --header
8169 { echo "$as_me: error: ambiguous option: $1
8170 Try \`$0 --help' for more information." >&2
8171 { (exit 1); exit 1; }; };;
8172 --help | --hel | -h )
8173 echo "$ac_cs_usage"; exit ;;
8174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8175 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8179 -*) { echo "$as_me: error: unrecognized option: $1
8180 Try \`$0 --help' for more information." >&2
8181 { (exit 1); exit 1; }; } ;;
8183 *) ac_config_targets="$ac_config_targets $1"
8184 ac_need_defaults=false ;;
8190 ac_configure_extra_args=
8192 if $ac_cs_silent; then
8194 ac_configure_extra_args="$ac_configure_extra_args --silent"
8198 cat >>$CONFIG_STATUS <<_ACEOF
8199 if \$ac_cs_recheck; then
8200 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8203 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8207 cat >>$CONFIG_STATUS <<\_ACEOF
8211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8212 ## Running $as_me. ##
8218 cat >>$CONFIG_STATUS <<_ACEOF
8221 cat >>$CONFIG_STATUS <<\_ACEOF
8223 # Handling of arguments.
8224 for ac_config_target in $ac_config_targets
8226 case $ac_config_target in
8227 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8228 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8229 "src/avr/Makefile") CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
8230 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
8231 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
8232 "src/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
8233 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
8234 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
8235 "as/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8236 "as/link/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
8237 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
8238 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
8239 "as/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8240 "as/link/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
8241 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
8242 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
8243 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
8244 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
8245 "src/pic/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
8246 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
8247 "src/xa51/Makefile") CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
8248 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
8249 "as/Makefile") CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
8250 "as/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
8251 "as/link/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
8252 "as/link/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
8253 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
8254 "device/lib/gbz80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
8255 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8256 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8257 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8258 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8259 "support/librarian/Makefile") CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
8260 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
8261 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8262 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
8263 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8264 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8266 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8267 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8268 { (exit 1); exit 1; }; };;
8273 # If the user did not use the arguments to specify the items to instantiate,
8274 # then the envvar interface is used. Set only those that are not.
8275 # We use the long form for the default assignment because of an extremely
8276 # bizarre bug on SunOS 4.1.3.
8277 if $ac_need_defaults; then
8278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8282 # Have a temporary directory for convenience. Make it in the build tree
8283 # simply because there is no reason against having it here, and in addition,
8284 # creating and moving files from /tmp can sometimes cause problems.
8285 # Hook for its removal unless debugging.
8286 # Note that there is a small window in which the directory will not be cleaned:
8287 # after its creation but before its name has been assigned to `$tmp'.
8291 trap 'exit_status=$?
8292 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8294 trap '{ (exit 1); exit 1; }' 1 2 13 15
8296 # Create a (secure) tmp directory for tmp files.
8299 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8300 test -n "$tmp" && test -d "$tmp"
8303 tmp=./conf$$-$RANDOM
8304 (umask 077 && mkdir "$tmp")
8307 echo "$me: cannot create a temporary directory in ." >&2
8308 { (exit 1); exit 1; }
8312 # Set up the sed scripts for CONFIG_FILES section.
8315 # No need to generate the scripts if there are no CONFIG_FILES.
8316 # This happens for instance when ./config.status config.h
8317 if test -n "$CONFIG_FILES"; then
8324 for ac_last_try in false false false false false :; do
8325 cat >conf$$subs.sed <<_ACEOF
8326 SHELL!$SHELL$ac_delim
8327 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8328 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8329 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8330 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8331 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8332 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8333 exec_prefix!$exec_prefix$ac_delim
8334 prefix!$prefix$ac_delim
8335 program_transform_name!$program_transform_name$ac_delim
8336 bindir!$bindir$ac_delim
8337 sbindir!$sbindir$ac_delim
8338 libexecdir!$libexecdir$ac_delim
8339 datarootdir!$datarootdir$ac_delim
8340 datadir!$datadir$ac_delim
8341 sysconfdir!$sysconfdir$ac_delim
8342 sharedstatedir!$sharedstatedir$ac_delim
8343 localstatedir!$localstatedir$ac_delim
8344 includedir!$includedir$ac_delim
8345 oldincludedir!$oldincludedir$ac_delim
8346 docdir!$docdir$ac_delim
8347 infodir!$infodir$ac_delim
8348 htmldir!$htmldir$ac_delim
8349 dvidir!$dvidir$ac_delim
8350 pdfdir!$pdfdir$ac_delim
8351 psdir!$psdir$ac_delim
8352 libdir!$libdir$ac_delim
8353 localedir!$localedir$ac_delim
8354 mandir!$mandir$ac_delim
8356 ECHO_C!$ECHO_C$ac_delim
8357 ECHO_N!$ECHO_N$ac_delim
8358 ECHO_T!$ECHO_T$ac_delim
8360 build_alias!$build_alias$ac_delim
8361 host_alias!$host_alias$ac_delim
8362 target_alias!$target_alias$ac_delim
8364 PACKAGE!$PACKAGE$ac_delim
8365 VERSION!$VERSION$ac_delim
8366 VERSIONHI!$VERSIONHI$ac_delim
8367 VERSIONLO!$VERSIONLO$ac_delim
8368 VERSIONP!$VERSIONP$ac_delim
8370 CFLAGS!$CFLAGS$ac_delim
8371 LDFLAGS!$LDFLAGS$ac_delim
8372 CPPFLAGS!$CPPFLAGS$ac_delim
8373 ac_ct_CC!$ac_ct_CC$ac_delim
8374 EXEEXT!$EXEEXT$ac_delim
8375 OBJEXT!$OBJEXT$ac_delim
8377 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8378 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8379 INSTALL_DATA!$INSTALL_DATA$ac_delim
8380 RANLIB!$RANLIB$ac_delim
8381 AUTOCONF!$AUTOCONF$ac_delim
8382 STRIP!$STRIP$ac_delim
8387 M_OR_MM!$M_OR_MM$ac_delim
8389 EGREP!$EGREP$ac_delim
8390 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
8391 include_dir_suffix!$include_dir_suffix$ac_delim
8392 lib_dir_suffix!$lib_dir_suffix$ac_delim
8393 OPT_DISABLE_MCS51!$OPT_DISABLE_MCS51$ac_delim
8394 OPT_DISABLE_GBZ80!$OPT_DISABLE_GBZ80$ac_delim
8395 OPT_DISABLE_Z80!$OPT_DISABLE_Z80$ac_delim
8396 OPT_DISABLE_AVR!$OPT_DISABLE_AVR$ac_delim
8397 OPT_DISABLE_DS390!$OPT_DISABLE_DS390$ac_delim
8398 OPT_DISABLE_DS400!$OPT_DISABLE_DS400$ac_delim
8399 OPT_DISABLE_PIC!$OPT_DISABLE_PIC$ac_delim
8400 OPT_DISABLE_PIC16!$OPT_DISABLE_PIC16$ac_delim
8401 OPT_DISABLE_XA51!$OPT_DISABLE_XA51$ac_delim
8402 OPT_DISABLE_HC08!$OPT_DISABLE_HC08$ac_delim
8403 OPT_DISABLE_UCSIM!$OPT_DISABLE_UCSIM$ac_delim
8404 OPT_DISABLE_DEVICE_LIB!$OPT_DISABLE_DEVICE_LIB$ac_delim
8405 OPT_DISABLE_PACKIHX!$OPT_DISABLE_PACKIHX$ac_delim
8406 OPT_DISABLE_SDCPP!$OPT_DISABLE_SDCPP$ac_delim
8407 OPT_DISABLE_SDCDB!$OPT_DISABLE_SDCDB$ac_delim
8408 OPT_ENABLE_DOC!$OPT_ENABLE_DOC$ac_delim
8410 LATEX2HTML!$LATEX2HTML$ac_delim
8411 PDFLATEX!$PDFLATEX$ac_delim
8412 PDFOPT!$PDFOPT$ac_delim
8413 MAKEINDEX!$MAKEINDEX$ac_delim
8414 OPT_ENABLE_LIBGC!$OPT_ENABLE_LIBGC$ac_delim
8415 subdirs!$subdirs$ac_delim
8416 LIBOBJS!$LIBOBJS$ac_delim
8417 LTLIBOBJS!$LTLIBOBJS$ac_delim
8420 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
8422 elif $ac_last_try; then
8423 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8424 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8425 { (exit 1); exit 1; }; }
8427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8431 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8432 if test -n "$ac_eof"; then
8433 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8434 ac_eof=`expr $ac_eof + 1`
8437 cat >>$CONFIG_STATUS <<_ACEOF
8438 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8442 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8443 s/^/s,@/; s/!/@,|#_!!_#|/
8446 s/'"$ac_delim"'$/,g/; t
8448 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8449 ' >>$CONFIG_STATUS <conf$$subs.sed
8450 rm -f conf$$subs.sed
8451 cat >>$CONFIG_STATUS <<_ACEOF
8458 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8459 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8460 # trailing colons and then remove the whole line if VPATH becomes empty
8461 # (actually we leave an empty line to preserve line numbers).
8462 if test "x$srcdir" = x.; then
8463 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8467 s/^\([^=]*=[ ]*\):*/\1/
8473 cat >>$CONFIG_STATUS <<\_ACEOF
8474 fi # test -n "$CONFIG_FILES"
8477 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
8480 :[FHLC]) ac_mode=$ac_tag; continue;;
8482 case $ac_mode$ac_tag in
8484 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8485 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8486 { (exit 1); exit 1; }; };;
8487 :[FH]-) ac_tag=-:-;;
8488 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8505 -) ac_f="$tmp/stdin";;
8506 *) # Look for the file first in the build tree, then in the source tree
8507 # (if the path is not absolute). The absolute path cannot be DOS-style,
8508 # because $ac_f cannot contain `:'.
8512 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8514 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8515 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8516 { (exit 1); exit 1; }; };;
8518 ac_file_inputs="$ac_file_inputs $ac_f"
8521 # Let's still pretend it is `configure' which instantiates (i.e., don't
8522 # use $as_me), people would be surprised to read:
8523 # /* config.h. Generated by config.status. */
8524 configure_input="Generated from "`IFS=:
8525 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8526 if test x"$ac_file" != x-; then
8527 configure_input="$ac_file. $configure_input"
8528 { echo "$as_me:$LINENO: creating $ac_file" >&5
8529 echo "$as_me: creating $ac_file" >&6;}
8533 *:-:* | *:-) cat >"$tmp/stdin";;
8538 ac_dir=`$as_dirname -- "$ac_file" ||
8539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8540 X"$ac_file" : 'X\(//\)[^/]' \| \
8541 X"$ac_file" : 'X\(//\)$' \| \
8542 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8563 -*) as_dir=./$as_dir;;
8565 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8569 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8570 *) as_qdir=$as_dir;;
8572 as_dirs="'$as_qdir' $as_dirs"
8573 as_dir=`$as_dirname -- "$as_dir" ||
8574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8575 X"$as_dir" : 'X\(//\)[^/]' \| \
8576 X"$as_dir" : 'X\(//\)$' \| \
8577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8596 test -d "$as_dir" && break
8598 test -z "$as_dirs" || eval "mkdir $as_dirs"
8599 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8600 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8601 { (exit 1); exit 1; }; }; }
8605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8607 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8608 # A ".." for each directory in $ac_dir_suffix.
8609 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8610 case $ac_top_builddir_sub in
8611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8615 ac_abs_top_builddir=$ac_pwd
8616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8617 # for backward compatibility:
8618 ac_top_builddir=$ac_top_build_prefix
8621 .) # We are building in place.
8623 ac_top_srcdir=$ac_top_builddir_sub
8624 ac_abs_top_srcdir=$ac_pwd ;;
8625 [\\/]* | ?:[\\/]* ) # Absolute name.
8626 ac_srcdir=$srcdir$ac_dir_suffix;
8627 ac_top_srcdir=$srcdir
8628 ac_abs_top_srcdir=$srcdir ;;
8630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8631 ac_top_srcdir=$ac_top_build_prefix$srcdir
8632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8644 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8645 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8649 cat >>$CONFIG_STATUS <<\_ACEOF
8650 # If the template does not know about datarootdir, expand it.
8651 # FIXME: This hack should be removed a few years after 2.60.
8652 ac_datarootdir_hack=; ac_datarootdir_seen=
8654 case `sed -n '/datarootdir/ {
8663 ' $ac_file_inputs` in
8664 *datarootdir*) ac_datarootdir_seen=yes;;
8665 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8666 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8667 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8669 cat >>$CONFIG_STATUS <<_ACEOF
8670 ac_datarootdir_hack='
8671 s&@datadir@&$datadir&g
8672 s&@docdir@&$docdir&g
8673 s&@infodir@&$infodir&g
8674 s&@localedir@&$localedir&g
8675 s&@mandir@&$mandir&g
8676 s&\\\${datarootdir}&$datarootdir&g' ;;
8680 # Neutralize VPATH when `$srcdir' = `.'.
8681 # Shell code in configure.ac might set extrasub.
8682 # FIXME: do we really want to maintain this feature?
8683 cat >>$CONFIG_STATUS <<_ACEOF
8687 cat >>$CONFIG_STATUS <<\_ACEOF
8689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8690 s&@configure_input@&$configure_input&;t t
8691 s&@top_builddir@&$ac_top_builddir_sub&;t t
8692 s&@srcdir@&$ac_srcdir&;t t
8693 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8694 s&@top_srcdir@&$ac_top_srcdir&;t t
8695 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8696 s&@builddir@&$ac_builddir&;t t
8697 s&@abs_builddir@&$ac_abs_builddir&;t t
8698 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8699 s&@INSTALL@&$ac_INSTALL&;t t
8700 $ac_datarootdir_hack
8701 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8703 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8704 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8705 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8706 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8707 which seems to be undefined. Please make sure it is defined." >&5
8708 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8709 which seems to be undefined. Please make sure it is defined." >&2;}
8713 -) cat "$tmp/out"; rm -f "$tmp/out";;
8714 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8723 # Transform confdefs.h into a sed script `conftest.defines', that
8724 # substitutes the proper values into config.h.in to produce config.h.
8725 rm -f conftest.defines conftest.tail
8726 # First, append a space to every undef/define line, to ease matching.
8727 echo 's/$/ /' >conftest.defines
8728 # Then, protect against being on the right side of a sed subst, or in
8729 # an unquoted here document, in config.status. If some macros were
8730 # called several times there might be several #defines for the same
8731 # symbol, which is useless. But do not sort them, since the last
8732 # AC_DEFINE must be honored.
8733 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8734 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8735 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8736 # PARAMS is the parameter list in the macro definition--in most cases, it's
8737 # just an empty string.
8738 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8739 ac_dB='\\)[ (].*,\\1define\\2'
8747 s/^[ ]*#[ ]*define[ ][ ]*//
8752 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8753 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8754 ' >>conftest.defines
8756 # Remove the space that was appended to ease matching.
8757 # Then replace #undef with comments. This is necessary, for
8758 # example, in the case of _POSIX_SOURCE, which is predefined and required
8759 # on some systems where configure will not decide to define it.
8760 # (The regexp can be short, since the line contains either #define or #undef.)
8762 s,^[ #]*u.*,/* & */,' >>conftest.defines
8764 # Break up conftest.defines:
8767 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8768 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8769 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8771 ac_in='$ac_file_inputs'
8772 ac_out='"$tmp/out1"'
8773 ac_nxt='"$tmp/out2"'
8777 # Write a here document:
8778 cat >>$CONFIG_STATUS <<_ACEOF
8779 # First, check the format of the line:
8780 cat >"\$tmp/defines.sed" <<\\CEOF
8781 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8782 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8786 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8788 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8789 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8790 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8791 grep . conftest.tail >/dev/null || break
8792 rm -f conftest.defines
8793 mv conftest.tail conftest.defines
8795 rm -f conftest.defines conftest.tail
8797 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8798 cat >>$CONFIG_STATUS <<\_ACEOF
8799 if test x"$ac_file" != x-; then
8800 echo "/* $configure_input */" >"$tmp/config.h"
8801 cat "$ac_result" >>"$tmp/config.h"
8802 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8803 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8804 echo "$as_me: $ac_file is unchanged" >&6;}
8807 mv "$tmp/config.h" $ac_file
8810 echo "/* $configure_input */"
8822 { (exit 0); exit 0; }
8824 chmod +x $CONFIG_STATUS
8825 ac_clean_files=$ac_clean_files_save
8828 # configure is writing to config.log, and then calls config.status.
8829 # config.status does its own redirection, appending to config.log.
8830 # Unfortunately, on DOS this fails, as config.log is still kept open
8831 # by configure, so config.status won't be able to write to it; its
8832 # output is simply discarded. So we exec the FD to /dev/null,
8833 # effectively closing config.log, so it can be properly (re)opened and
8834 # appended to by config.status. When coming back to configure, we
8835 # need to make the FD available again.
8836 if test "$no_create" != yes; then
8838 ac_config_status_args=
8839 test "$silent" = yes &&
8840 ac_config_status_args="$ac_config_status_args --quiet"
8842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8845 # would make configure fail if this is the last instruction.
8846 $ac_cs_success || { (exit 1); exit 1; }
8850 # CONFIG_SUBDIRS section.
8852 if test "$no_recursion" != yes; then
8854 # Remove --cache-file and --srcdir arguments so they do not pile up.
8855 ac_sub_configure_args=
8857 eval "set x $ac_configure_args"
8861 if test -n "$ac_prev"; then
8866 -cache-file | --cache-file | --cache-fil | --cache-fi \
8867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8868 ac_prev=cache_file ;;
8869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8873 --config-cache | -C)
8875 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8877 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8879 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8881 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8885 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8887 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8891 # Always prepend --prefix to ensure using the same prefix
8892 # in subdir configurations.
8893 ac_arg="--prefix=$prefix"
8895 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8897 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8900 if test "$silent" = yes; then
8901 ac_sub_configure_args="--silent $ac_sub_configure_args"
8905 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8907 # Do not complain, so a configure script can configure whichever
8908 # parts of a large source tree are present.
8909 test -d "$srcdir/$ac_dir" || continue
8911 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8912 echo "$as_me:$LINENO: $ac_msg" >&5
8916 -*) as_dir=./$as_dir;;
8918 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8922 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8923 *) as_qdir=$as_dir;;
8925 as_dirs="'$as_qdir' $as_dirs"
8926 as_dir=`$as_dirname -- "$as_dir" ||
8927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8928 X"$as_dir" : 'X\(//\)[^/]' \| \
8929 X"$as_dir" : 'X\(//\)$' \| \
8930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8949 test -d "$as_dir" && break
8951 test -z "$as_dirs" || eval "mkdir $as_dirs"
8952 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8953 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8954 { (exit 1); exit 1; }; }; }
8958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8961 # A ".." for each directory in $ac_dir_suffix.
8962 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8963 case $ac_top_builddir_sub in
8964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8968 ac_abs_top_builddir=$ac_pwd
8969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8970 # for backward compatibility:
8971 ac_top_builddir=$ac_top_build_prefix
8974 .) # We are building in place.
8976 ac_top_srcdir=$ac_top_builddir_sub
8977 ac_abs_top_srcdir=$ac_pwd ;;
8978 [\\/]* | ?:[\\/]* ) # Absolute name.
8979 ac_srcdir=$srcdir$ac_dir_suffix;
8980 ac_top_srcdir=$srcdir
8981 ac_abs_top_srcdir=$srcdir ;;
8983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8984 ac_top_srcdir=$ac_top_build_prefix$srcdir
8985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8992 # Check for guested configure; otherwise get Cygnus style configure.
8993 if test -f "$ac_srcdir/configure.gnu"; then
8994 ac_sub_configure=$ac_srcdir/configure.gnu
8995 elif test -f "$ac_srcdir/configure"; then
8996 ac_sub_configure=$ac_srcdir/configure
8997 elif test -f "$ac_srcdir/configure.in"; then
8998 # This should be Cygnus configure.
8999 ac_sub_configure=$ac_aux_dir/configure
9001 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9006 # The recursion is here.
9007 if test -n "$ac_sub_configure"; then
9008 # Make the cache file name correct relative to the subdirectory.
9010 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9012 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9015 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9016 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9017 # The eval makes quoting arguments work.
9018 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9019 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9020 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9021 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9022 { (exit 1); exit 1; }; }
9030 # I found no better place
9033 # Prepare result message
9034 # ======================
9036 # In the C-header we need \\ as dir-separator, but in the message only \
9037 dirch=${sdccconf_h_dir_separator}
9038 test ${dirch} = '\\' && dirch='\'
9040 # calc friendly strings
9042 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
9043 case ":$binPath:" in
9045 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
9050 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9051 s,^[\\/],\\\\\\\\,'` ;;
9053 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9055 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
9058 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9059 case ":$incPath1:" in
9061 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
9066 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9067 s,^[\\/],\\\\\\\\,'` ;;
9069 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9071 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
9074 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9075 case ":$incPath2:" in
9077 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
9082 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9083 s,^[\\/],\\\\\\\\,'` ;;
9085 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9087 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
9090 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9091 case ":$incPath3:" in
9093 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
9098 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9099 s,^[\\/],\\\\\\\\,'` ;;
9101 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9103 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
9106 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9107 case ":$libPath1:" in
9109 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
9114 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9115 s,^[\\/],\\\\\\\\,'` ;;
9117 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9119 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
9122 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9123 case ":$libPath2:" in
9125 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
9130 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9131 s,^[\\/],\\\\\\\\,'` ;;
9133 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9135 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
9138 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9139 case ":$libPath3:" in
9141 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
9146 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9147 s,^[\\/],\\\\\\\\,'` ;;
9149 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9151 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
9154 { echo "$as_me:$LINENO: result:
9155 sdcc ${VERSION} is now configured for
9157 Build: ${build_alias}
9159 Source directory: ${srcdir}
9164 avr ${enable_avr_port}
9165 ds390 ${enable_ds390_port}
9166 ds400 ${enable_ds400_port}
9167 gbz80 ${enable_gbz80_port}
9168 hc08 ${enable_hc08_port}
9169 mcs51 ${enable_mcs51_port}
9170 pic ${enable_pic_port}
9171 pic16 ${enable_pic16_port}
9172 xa51 ${enable_xa51_port}
9173 z80 ${enable_z80_port}
9175 Disable packihx: ${OPT_DISABLE_PACKIHX}
9176 Disable ucsim: ${OPT_DISABLE_UCSIM}
9177 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9178 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9179 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9180 Enable documentation: ${OPT_ENABLE_DOC}
9181 Enable libgc: ${OPT_ENABLE_LIBGC}
9184 binary files: ${exec_prefix}
9185 include files: ${datadir}/${include_dir_suffix}
9186 library files: ${datadir}/${lib_dir_suffix}
9187 documentation: ${docdir}
9191 datarootdir: ${datarootdir}
9193 Search paths (incomplete, see manual for all search paths):
9194 binary files: \$SDCC_HOME${binPath}
9195 include files: ${incPath1}
9196 path(argv[0])${incPath2}
9198 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9199 path(argv[0])${libPath2}${dirch}<model>
9200 ${libPath3}${dirch}<model>
9203 sdcc ${VERSION} is now configured for
9205 Build: ${build_alias}
9207 Source directory: ${srcdir}
9212 avr ${enable_avr_port}
9213 ds390 ${enable_ds390_port}
9214 ds400 ${enable_ds400_port}
9215 gbz80 ${enable_gbz80_port}
9216 hc08 ${enable_hc08_port}
9217 mcs51 ${enable_mcs51_port}
9218 pic ${enable_pic_port}
9219 pic16 ${enable_pic16_port}
9220 xa51 ${enable_xa51_port}
9221 z80 ${enable_z80_port}
9223 Disable packihx: ${OPT_DISABLE_PACKIHX}
9224 Disable ucsim: ${OPT_DISABLE_UCSIM}
9225 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9226 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9227 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9228 Enable documentation: ${OPT_ENABLE_DOC}
9229 Enable libgc: ${OPT_ENABLE_LIBGC}
9232 binary files: ${exec_prefix}
9233 include files: ${datadir}/${include_dir_suffix}
9234 library files: ${datadir}/${lib_dir_suffix}
9235 documentation: ${docdir}
9239 datarootdir: ${datarootdir}
9241 Search paths (incomplete, see manual for all search paths):
9242 binary files: \$SDCC_HOME${binPath}
9243 include files: ${incPath1}
9244 path(argv[0])${incPath2}
9246 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9247 path(argv[0])${libPath2}${dirch}<model>
9248 ${libPath3}${dirch}<model>
9250 # End of configure/configure.in