2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file=".version"
602 ac_unique_file="Makefile.in"
603 # Factoring default headers for most tests.
604 ac_includes_default="\
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
616 # ifdef HAVE_STDLIB_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
639 enable_option_checking=no
640 ac_subst_vars='LTLIBOBJS
653 OPT_DISABLE_DEVICE_LIB
668 sdccconf_h_dir_separator
724 program_transform_name
736 enable_option_checking
756 ac_precious_vars='build_alias
765 sdccconf_h_dir_separator
770 ac_subdirs_all='support/cpp
777 # Initialize some variables set by options.
779 ac_init_version=false
780 ac_unrecognized_opts=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
791 program_transform_name=s,x,x,
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE}'
816 infodir='${datarootdir}/info'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
837 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 # Accept the important Cygnus configure options, so we can diagnose typos.
843 case $ac_dashdash$ac_option in
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
865 cache_file=config.cache ;;
867 -datadir | --datadir | --datadi | --datad)
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
884 { (exit 1); exit 1; }; }
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
894 eval enable_$ac_useropt=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
911 { (exit 1); exit 1; }; }
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1126 eval with_$ac_useropt=\$ac_optarg ;;
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=no ;;
1146 # Obsolete; use --with-x.
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1163 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1164 Try \`$0 --help' for more information." >&2
1165 { (exit 1); exit 1; }; }
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1172 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1173 { (exit 1); exit 1; }; }
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1191 { (exit 1); exit 1; }; }
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1197 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1198 { (exit 1); exit 1; }; } ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1216 # Be sure to have absolute directory names.
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222 { (exit 1); exit 1; }; }
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used." >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246 test "$silent" = yes && exec 6>/dev/null
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1253 { (exit 1); exit 1; }; }
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1256 { (exit 1); exit 1; }; }
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296 { (exit 1); exit 1; }; }
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1301 { (exit 1); exit 1; }; }
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures this package to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 if test -n "$ac_init_help"; then
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --disable-mcs51-port Excludes the Intel mcs51 port
1400 --disable-gbz80-port Excludes the Gameboy gbz80 port
1401 --disable-z80-port Excludes the z80 port
1402 --disable-avr-port Excludes the AVR port
1403 --disable-ds390-port Excludes the DS390 port
1404 --disable-ds400-port Excludes the DS400 port
1405 --disable-pic-port Excludes the PIC port
1406 --disable-pic16-port Excludes the PIC16 port
1407 --disable-xa51-port Excludes the XA51 port
1408 --disable-hc08-port Excludes the HC08 port
1409 --disable-ucsim Disables configuring and building of ucsim
1410 --disable-device-lib Disables building device libraries
1411 --disable-packihx Disables building packihx
1412 --disable-sdcpp Disables building sdcpp
1413 --disable-sdcdb Disables building sdcdb
1414 --enable-doc Enables building the documentation
1415 --enable-libgc Use the Bohem memory allocator. Lower runtime
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --without-ccache do not use ccache even if available
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1432 sdccconf_h_dir_separator
1433 needed in sdccconf.h: either "/" (default) or "\\"
1434 LIB_TYPE library type: LIB, SDCCLIB, AR or RANLIB (default)
1436 appended to datadir to define SDCC's include directory
1438 appended to datadir to define SDCC's library root directory
1439 docdir documentation installation directory
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1448 if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451 test -d "$ac_dir" ||
1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1460 # A ".." for each directory in $ac_dir_suffix.
1461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1462 case $ac_top_builddir_sub in
1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 ac_abs_top_builddir=$ac_pwd
1468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469 # for backward compatibility:
1470 ac_top_builddir=$ac_top_build_prefix
1473 .) # We are building in place.
1475 ac_top_srcdir=$ac_top_builddir_sub
1476 ac_abs_top_srcdir=$ac_pwd ;;
1477 [\\/]* | ?:[\\/]* ) # Absolute name.
1478 ac_srcdir=$srcdir$ac_dir_suffix;
1479 ac_top_srcdir=$srcdir
1480 ac_abs_top_srcdir=$srcdir ;;
1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483 ac_top_srcdir=$ac_top_build_prefix$srcdir
1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488 cd "$ac_dir" || { ac_status=$?; continue; }
1489 # Check for guested configure.
1490 if test -f "$ac_srcdir/configure.gnu"; then
1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493 elif test -f "$ac_srcdir/configure"; then
1495 $SHELL "$ac_srcdir/configure" --help=recursive
1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 cd "$ac_pwd" || { ac_status=$?; break; }
1503 test -n "$ac_init_help" && exit $ac_status
1504 if $ac_init_version; then
1507 generated by GNU Autoconf 2.63
1509 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1510 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1516 cat >config.log <<_ACEOF
1517 This file contains any messages produced by compilers while
1518 running configure, to aid debugging if configure makes a mistake.
1520 It was created by $as_me, which was
1521 generated by GNU Autoconf 2.63. Invocation command line was
1533 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1534 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1535 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1536 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1537 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1539 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1540 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1542 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1543 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1544 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1545 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1546 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1547 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1548 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 test -z "$as_dir" && as_dir=.
1557 $as_echo "PATH: $as_dir"
1573 # Keep a trace of the command line.
1574 # Strip out --no-create and --no-recursion so they do not pile up.
1575 # Strip out --silent because we don't want to record it for future runs.
1576 # Also quote any args containing shell meta-characters.
1577 # Make two passes to allow for proper duplicate-argument suppression.
1581 ac_must_keep_next=false
1587 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1589 | -silent | --silent | --silen | --sile | --sil)
1592 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1595 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1597 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1598 if test $ac_must_keep_next = true; then
1599 ac_must_keep_next=false # Got value, back to normal.
1602 *=* | --config-cache | -C | -disable-* | --disable-* \
1603 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1604 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1605 | -with-* | --with-* | -without-* | --without-* | --x)
1606 case "$ac_configure_args0 " in
1607 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1610 -* ) ac_must_keep_next=true ;;
1613 ac_configure_args="$ac_configure_args '$ac_arg'"
1618 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1619 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1621 # When interrupted or exit'd, cleanup temporary files, and complete
1622 # config.log. We remove comments because anyway the quotes in there
1623 # would cause problems or look ugly.
1624 # WARNING: Use '\'' to represent an apostrophe within the trap.
1625 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1626 trap 'exit_status=$?
1627 # Save into config.log some information that might help in debugging.
1632 ## ---------------- ##
1633 ## Cache variables. ##
1634 ## ---------------- ##
1637 # The following way of writing the cache mishandles newlines in values,
1639 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1640 eval ac_val=\$$ac_var
1644 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1645 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1648 _ | IFS | as_nl) ;; #(
1649 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1650 *) $as_unset $ac_var ;;
1655 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1656 *${as_nl}ac_space=\ *)
1658 "s/'\''/'\''\\\\'\'''\''/g;
1659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1670 ## ----------------- ##
1671 ## Output variables. ##
1672 ## ----------------- ##
1675 for ac_var in $ac_subst_vars
1677 eval ac_val=\$$ac_var
1679 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1681 $as_echo "$ac_var='\''$ac_val'\''"
1685 if test -n "$ac_subst_files"; then
1687 ## ------------------- ##
1688 ## File substitutions. ##
1689 ## ------------------- ##
1692 for ac_var in $ac_subst_files
1694 eval ac_val=\$$ac_var
1696 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1698 $as_echo "$ac_var='\''$ac_val'\''"
1703 if test -s confdefs.h; then
1713 test "$ac_signal" != 0 &&
1714 $as_echo "$as_me: caught signal $ac_signal"
1715 $as_echo "$as_me: exit $exit_status"
1717 rm -f core *.core core.conftest.* &&
1718 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1721 for ac_signal in 1 2 13 15; do
1722 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1726 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1727 rm -f -r conftest* confdefs.h
1729 # Predefined preprocessor variables.
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_NAME "$PACKAGE_NAME"
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_STRING "$PACKAGE_STRING"
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1756 # Let the site file select an alternate cache file if it wants to.
1757 # Prefer an explicitly selected file to automatically selected ones.
1760 if test -n "$CONFIG_SITE"; then
1761 ac_site_file1=$CONFIG_SITE
1762 elif test "x$prefix" != xNONE; then
1763 ac_site_file1=$prefix/share/config.site
1764 ac_site_file2=$prefix/etc/config.site
1766 ac_site_file1=$ac_default_prefix/share/config.site
1767 ac_site_file2=$ac_default_prefix/etc/config.site
1769 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1771 test "x$ac_site_file" = xNONE && continue
1772 if test -r "$ac_site_file"; then
1773 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1774 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1775 sed 's/^/| /' "$ac_site_file" >&5
1780 if test -r "$cache_file"; then
1781 # Some versions of bash will fail to source /dev/null (special
1782 # files actually), so we avoid doing that.
1783 if test -f "$cache_file"; then
1784 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1785 $as_echo "$as_me: loading cache $cache_file" >&6;}
1787 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1788 *) . "./$cache_file";;
1792 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1793 $as_echo "$as_me: creating cache $cache_file" >&6;}
1797 # Check that the precious variables saved in the cache have kept the same
1799 ac_cache_corrupted=false
1800 for ac_var in $ac_precious_vars; do
1801 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1802 eval ac_new_set=\$ac_env_${ac_var}_set
1803 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1804 eval ac_new_val=\$ac_env_${ac_var}_value
1805 case $ac_old_set,$ac_new_set in
1807 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1808 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1811 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1812 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1813 ac_cache_corrupted=: ;;
1816 if test "x$ac_old_val" != "x$ac_new_val"; then
1817 # differences in whitespace do not lead to failure.
1818 ac_old_val_w=`echo x $ac_old_val`
1819 ac_new_val_w=`echo x $ac_new_val`
1820 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1821 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1822 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1823 ac_cache_corrupted=:
1825 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1826 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1827 eval $ac_var=\$ac_old_val
1829 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1830 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1831 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1832 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1835 # Pass precious variables to config.status.
1836 if test "$ac_new_set" = set; then
1838 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1839 *) ac_arg=$ac_var=$ac_new_val ;;
1841 case " $ac_configure_args " in
1842 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1843 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1847 if $ac_cache_corrupted; then
1848 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1850 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1851 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1852 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1853 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1854 { (exit 1); exit 1; }; }
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h as/link/asxxxx_config.h"
1884 for ac_prog in gawk mawk nawk awk
1886 # Extract the first word of "$ac_prog", so it can be a program name with args.
1887 set dummy $ac_prog; ac_word=$2
1888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 $as_echo_n "checking for $ac_word... " >&6; }
1890 if test "${ac_cv_prog_AWK+set}" = set; then
1891 $as_echo_n "(cached) " >&6
1893 if test -n "$AWK"; then
1894 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903 ac_cv_prog_AWK="$ac_prog"
1904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 if test -n "$AWK"; then
1915 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
1916 $as_echo "$AWK" >&6; }
1918 { $as_echo "$as_me:$LINENO: result: no" >&5
1919 $as_echo "no" >&6; }
1923 test -n "$AWK" && break
1927 { $as_echo "$as_me:$LINENO: checking version of the package" >&5
1928 $as_echo_n "checking version of the package... " >&6; }
1929 if test -f ${srcdir}/.version; then
1930 { read VERSION; } < ${srcdir}/.version
1931 { $as_echo "$as_me:$LINENO: result: $VERSION" >&5
1932 $as_echo "$VERSION" >&6; }
1933 elif test -f ../.version; then
1934 { read VERSION; } < ../.version
1935 { $as_echo "$as_me:$LINENO: result: $VERSION" >&5
1936 $as_echo "$VERSION" >&6; }
1939 { $as_echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1940 $as_echo "unknown using 0.0.0" >&6; }
1942 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1943 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1944 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1952 cat >>confdefs.h <<_ACEOF
1953 #define SDCC_VERSION_LO ${VERSIONLO}
1956 cat >>confdefs.h <<_ACEOF
1957 #define SDCC_VERSION_HI ${VERSIONHI}
1960 cat >>confdefs.h <<_ACEOF
1961 #define SDCC_VERSION_P ${VERSIONP}
1964 cat >>confdefs.h <<_ACEOF
1965 #define SDCC_VERSION_STR "${VERSION}"
1968 test "$program_prefix" != NONE &&
1969 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1970 # Use a double $ so make ignores it.
1971 test "$program_suffix" != NONE &&
1972 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1973 # Double any \ or $.
1974 # By default was `s,x,x', remove it if useless.
1975 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1976 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1978 sdcc_cv_version=$VERSION
1979 sdcc_cv_versionhi=$VERSIONHI
1980 sdcc_cv_versionlo=$VERSIONLO
1981 sdcc_cv_versionp=$VERSIONP
1985 # ===========================================================================
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991 if test -n "$ac_tool_prefix"; then
1992 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1993 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 $as_echo_n "checking for $ac_word... " >&6; }
1996 if test "${ac_cv_prog_CC+set}" = set; then
1997 $as_echo_n "(cached) " >&6
1999 if test -n "$CC"; then
2000 ac_cv_prog_CC="$CC" # Let the user override the test.
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2009 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 if test -n "$CC"; then
2021 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2022 $as_echo "$CC" >&6; }
2024 { $as_echo "$as_me:$LINENO: result: no" >&5
2025 $as_echo "no" >&6; }
2030 if test -z "$ac_cv_prog_CC"; then
2032 # Extract the first word of "gcc", so it can be a program name with args.
2033 set dummy gcc; ac_word=$2
2034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 $as_echo_n "checking for $ac_word... " >&6; }
2036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2037 $as_echo_n "(cached) " >&6
2039 if test -n "$ac_ct_CC"; then
2040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_prog_ac_ct_CC="gcc"
2050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2060 if test -n "$ac_ct_CC"; then
2061 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2062 $as_echo "$ac_ct_CC" >&6; }
2064 { $as_echo "$as_me:$LINENO: result: no" >&5
2065 $as_echo "no" >&6; }
2068 if test "x$ac_ct_CC" = x; then
2071 case $cross_compiling:$ac_tool_warned in
2073 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2075 ac_tool_warned=yes ;;
2083 if test -z "$CC"; then
2084 if test -n "$ac_tool_prefix"; then
2085 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2086 set dummy ${ac_tool_prefix}cc; ac_word=$2
2087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 $as_echo_n "checking for $ac_word... " >&6; }
2089 if test "${ac_cv_prog_CC+set}" = set; then
2090 $as_echo_n "(cached) " >&6
2092 if test -n "$CC"; then
2093 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2102 ac_cv_prog_CC="${ac_tool_prefix}cc"
2103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 if test -n "$CC"; then
2114 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2115 $as_echo "$CC" >&6; }
2117 { $as_echo "$as_me:$LINENO: result: no" >&5
2118 $as_echo "no" >&6; }
2124 if test -z "$CC"; then
2125 # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 $as_echo_n "checking for $ac_word... " >&6; }
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130 $as_echo_n "(cached) " >&6
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144 ac_prog_rejected=yes
2148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 if test $ac_prog_rejected = yes; then
2156 # We found a bogon in the path, so make sure we never use it.
2157 set dummy $ac_cv_prog_CC
2159 if test $# != 0; then
2160 # We chose a different compiler from the bogus one.
2161 # However, it has the same basename, so the bogon will be chosen
2162 # first if we set CC to just the basename; use the full file name.
2164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2170 if test -n "$CC"; then
2171 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2172 $as_echo "$CC" >&6; }
2174 { $as_echo "$as_me:$LINENO: result: no" >&5
2175 $as_echo "no" >&6; }
2180 if test -z "$CC"; then
2181 if test -n "$ac_tool_prefix"; then
2182 for ac_prog in cl.exe
2184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if test "${ac_cv_prog_CC+set}" = set; then
2189 $as_echo_n "(cached) " >&6
2191 if test -n "$CC"; then
2192 ac_cv_prog_CC="$CC" # Let the user override the test.
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 if test -n "$CC"; then
2213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2214 $as_echo "$CC" >&6; }
2216 { $as_echo "$as_me:$LINENO: result: no" >&5
2217 $as_echo "no" >&6; }
2221 test -n "$CC" && break
2224 if test -z "$CC"; then
2226 for ac_prog in cl.exe
2228 # Extract the first word of "$ac_prog", so it can be a program name with args.
2229 set dummy $ac_prog; ac_word=$2
2230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 $as_echo_n "checking for $ac_word... " >&6; }
2232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2233 $as_echo_n "(cached) " >&6
2235 if test -n "$ac_ct_CC"; then
2236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_ac_ct_CC="$ac_prog"
2246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2256 if test -n "$ac_ct_CC"; then
2257 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2258 $as_echo "$ac_ct_CC" >&6; }
2260 { $as_echo "$as_me:$LINENO: result: no" >&5
2261 $as_echo "no" >&6; }
2265 test -n "$ac_ct_CC" && break
2268 if test "x$ac_ct_CC" = x; then
2271 case $cross_compiling:$ac_tool_warned in
2273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2275 ac_tool_warned=yes ;;
2284 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2287 See \`config.log' for more details." >&5
2288 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }; }
2292 # Provide some information about the compiler.
2293 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2296 { (ac_try="$ac_compiler --version >&5"
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2302 $as_echo "$ac_try_echo") >&5
2303 (eval "$ac_compiler --version >&5") 2>&5
2305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }
2307 { (ac_try="$ac_compiler -v >&5"
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2313 $as_echo "$ac_try_echo") >&5
2314 (eval "$ac_compiler -v >&5") 2>&5
2316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }
2318 { (ac_try="$ac_compiler -V >&5"
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2324 $as_echo "$ac_try_echo") >&5
2325 (eval "$ac_compiler -V >&5") 2>&5
2327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2330 cat >conftest.$ac_ext <<_ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2345 ac_clean_files_save=$ac_clean_files
2346 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2347 # Try to create an executable without -o first, disregard a.out.
2348 # It will help us diagnose broken compilers, and finding out an intuition
2350 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2351 $as_echo_n "checking for C compiler default output file name... " >&6; }
2352 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2354 # The possible output files:
2355 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2358 for ac_file in $ac_files
2361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2362 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2367 if { (ac_try="$ac_link_default"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2373 $as_echo "$ac_try_echo") >&5
2374 (eval "$ac_link_default") 2>&5
2376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2379 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2380 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2381 # so that the user can short-circuit this test for compilers unknown to
2383 for ac_file in $ac_files ''
2385 test -f "$ac_file" || continue
2387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2390 # We found the default executable, but exeext='' is most
2394 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2396 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2398 # We set ac_cv_exeext here because the later test for it is not
2399 # safe: cross compilers may not add the suffix if given an `-o'
2400 # argument, so we may need to know it at that point already.
2401 # Even if this section looks crufty: it has the advantage of
2408 test "$ac_cv_exeext" = no && ac_cv_exeext=
2414 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2415 $as_echo "$ac_file" >&6; }
2416 if test -z "$ac_file"; then
2417 $as_echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2420 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2423 See \`config.log' for more details." >&5
2424 $as_echo "$as_me: error: C compiler cannot create executables
2425 See \`config.log' for more details." >&2;}
2426 { (exit 77); exit 77; }; }; }
2429 ac_exeext=$ac_cv_exeext
2431 # Check that the compiler produces executables we can run. If not, either
2432 # the compiler is broken, or we cross compile.
2433 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2434 $as_echo_n "checking whether the C compiler works... " >&6; }
2435 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2436 # If not cross compiling, check that we can run a simple program.
2437 if test "$cross_compiling" != yes; then
2438 if { ac_try='./$ac_file'
2439 { (case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2444 $as_echo "$ac_try_echo") >&5
2445 (eval "$ac_try") 2>&5
2447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 if test "$cross_compiling" = maybe; then
2454 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2457 If you meant to cross compile, use \`--host'.
2458 See \`config.log' for more details." >&5
2459 $as_echo "$as_me: error: cannot run C compiled programs.
2460 If you meant to cross compile, use \`--host'.
2461 See \`config.log' for more details." >&2;}
2462 { (exit 1); exit 1; }; }; }
2466 { $as_echo "$as_me:$LINENO: result: yes" >&5
2467 $as_echo "yes" >&6; }
2469 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2470 ac_clean_files=$ac_clean_files_save
2471 # Check that the compiler produces executables we can run. If not, either
2472 # the compiler is broken, or we cross compile.
2473 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2474 $as_echo_n "checking whether we are cross compiling... " >&6; }
2475 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2476 $as_echo "$cross_compiling" >&6; }
2478 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2479 $as_echo_n "checking for suffix of executables... " >&6; }
2480 if { (ac_try="$ac_link"
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2486 $as_echo "$ac_try_echo") >&5
2487 (eval "$ac_link") 2>&5
2489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; then
2491 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2492 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2493 # work properly (i.e., refer to `conftest.exe'), while it won't with
2495 for ac_file in conftest.exe conftest conftest.*; do
2496 test -f "$ac_file" || continue
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2505 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&5
2509 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }; }
2514 rm -f conftest$ac_cv_exeext
2515 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2516 $as_echo "$ac_cv_exeext" >&6; }
2518 rm -f conftest.$ac_ext
2519 EXEEXT=$ac_cv_exeext
2521 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2522 $as_echo_n "checking for suffix of object files... " >&6; }
2523 if test "${ac_cv_objext+set}" = set; then
2524 $as_echo_n "(cached) " >&6
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2541 rm -f conftest.o conftest.obj
2542 if { (ac_try="$ac_compile"
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2548 $as_echo "$ac_try_echo") >&5
2549 (eval "$ac_compile") 2>&5
2551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 for ac_file in conftest.o conftest.obj conftest.*; do
2554 test -f "$ac_file" || continue;
2556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2562 $as_echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2568 See \`config.log' for more details." >&5
2569 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }; }
2574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2576 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2577 $as_echo "$ac_cv_objext" >&6; }
2578 OBJEXT=$ac_cv_objext
2580 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2581 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2582 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2583 $as_echo_n "(cached) " >&6
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2603 rm -f conftest.$ac_objext
2604 if { (ac_try="$ac_compile"
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2610 $as_echo "$ac_try_echo") >&5
2611 (eval "$ac_compile") 2>conftest.er1
2613 grep -v '^ *+' conftest.er1 >conftest.err
2615 cat conftest.err >&5
2616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } && {
2618 test -z "$ac_c_werror_flag" ||
2619 test ! -s conftest.err
2620 } && test -s conftest.$ac_objext; then
2623 $as_echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2633 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2634 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2635 if test $ac_compiler_gnu = yes; then
2640 ac_test_CFLAGS=${CFLAGS+set}
2641 ac_save_CFLAGS=$CFLAGS
2642 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2643 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2644 if test "${ac_cv_prog_cc_g+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2647 ac_save_c_werror_flag=$ac_c_werror_flag
2648 ac_c_werror_flag=yes
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (ac_try="$ac_compile"
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2673 $as_echo "$ac_try_echo") >&5
2674 (eval "$ac_compile") 2>conftest.er1
2676 grep -v '^ *+' conftest.er1 >conftest.err
2678 cat conftest.err >&5
2679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } && {
2681 test -z "$ac_c_werror_flag" ||
2682 test ! -s conftest.err
2683 } && test -s conftest.$ac_objext; then
2686 $as_echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2705 rm -f conftest.$ac_objext
2706 if { (ac_try="$ac_compile"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2712 $as_echo "$ac_try_echo") >&5
2713 (eval "$ac_compile") 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } && {
2720 test -z "$ac_c_werror_flag" ||
2721 test ! -s conftest.err
2722 } && test -s conftest.$ac_objext; then
2725 $as_echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 ac_c_werror_flag=$ac_save_c_werror_flag
2730 cat >conftest.$ac_ext <<_ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2745 rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2752 $as_echo "$ac_try_echo") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2755 grep -v '^ *+' conftest.er1 >conftest.err
2757 cat conftest.err >&5
2758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
2765 $as_echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 ac_c_werror_flag=$ac_save_c_werror_flag
2780 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2781 $as_echo "$ac_cv_prog_cc_g" >&6; }
2782 if test "$ac_test_CFLAGS" = set; then
2783 CFLAGS=$ac_save_CFLAGS
2784 elif test $ac_cv_prog_cc_g = yes; then
2785 if test "$GCC" = yes; then
2791 if test "$GCC" = yes; then
2797 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2798 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2799 if test "${ac_cv_prog_cc_c89+set}" = set; then
2800 $as_echo_n "(cached) " >&6
2802 ac_cv_prog_cc_c89=no
2804 cat >conftest.$ac_ext <<_ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2812 #include <sys/types.h>
2813 #include <sys/stat.h>
2814 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2815 struct buf { int x; };
2816 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2817 static char *e (p, i)
2823 static char *f (char * (*g) (char **, int), char **p, ...)
2828 s = g (p, va_arg (v,int));
2833 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2834 function prototypes and stuff, but not '\xHH' hex character constants.
2835 These don't provoke an error unfortunately, instead are silently treated
2836 as 'x'. The following induces an error, until -std is added to get
2837 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2838 array size at least. It's necessary to write '\x00'==0 to get something
2839 that's true only with -std. */
2840 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2842 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2843 inside strings and character constants. */
2845 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2847 int test (int i, double x);
2848 struct s1 {int (*f) (int a);};
2849 struct s2 {int (*f) (double a);};
2850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2861 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2862 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2864 CC="$ac_save_CC $ac_arg"
2865 rm -f conftest.$ac_objext
2866 if { (ac_try="$ac_compile"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compile") 2>conftest.er1
2875 grep -v '^ *+' conftest.er1 >conftest.err
2877 cat conftest.err >&5
2878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } && {
2880 test -z "$ac_c_werror_flag" ||
2881 test ! -s conftest.err
2882 } && test -s conftest.$ac_objext; then
2883 ac_cv_prog_cc_c89=$ac_arg
2885 $as_echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2891 rm -f core conftest.err conftest.$ac_objext
2892 test "x$ac_cv_prog_cc_c89" != "xno" && break
2894 rm -f conftest.$ac_ext
2899 case "x$ac_cv_prog_cc_c89" in
2901 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2902 $as_echo "none needed" >&6; } ;;
2904 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2905 $as_echo "unsupported" >&6; } ;;
2907 CC="$CC $ac_cv_prog_cc_c89"
2908 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2925 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2926 # On Suns, sometimes $CPP names a directory.
2927 if test -n "$CPP" && test -d "$CPP"; then
2930 if test -z "$CPP"; then
2931 if test "${ac_cv_prog_CPP+set}" = set; then
2932 $as_echo_n "(cached) " >&6
2934 # Double quotes because CPP needs to be expanded
2935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2938 for ac_c_preproc_warn_flag in '' yes
2940 # Use a header file that comes with gcc, so configuring glibc
2941 # with a fresh cross-compiler works.
2942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2943 # <limits.h> exists even on freestanding compilers.
2944 # On the NeXT, cc -E runs the code through the compiler's parser,
2945 # not just through cpp. "Syntax error" is here to catch this case.
2946 cat >conftest.$ac_ext <<_ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2953 # include <limits.h>
2955 # include <assert.h>
2959 if { (ac_try="$ac_cpp conftest.$ac_ext"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965 $as_echo "$ac_try_echo") >&5
2966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } >/dev/null && {
2973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2974 test ! -s conftest.err
2978 $as_echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2981 # Broken: fails on valid input.
2985 rm -f conftest.err conftest.$ac_ext
2987 # OK, works on sane cases. Now check whether nonexistent headers
2988 # can be detected and how.
2989 cat >conftest.$ac_ext <<_ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2995 #include <ac_nonexistent.h>
2997 if { (ac_try="$ac_cpp conftest.$ac_ext"
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3003 $as_echo "$ac_try_echo") >&5
3004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev/null && {
3011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3014 # Broken: success on invalid input.
3017 $as_echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 # Passes both tests.
3025 rm -f conftest.err conftest.$ac_ext
3028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3029 rm -f conftest.err conftest.$ac_ext
3030 if $ac_preproc_ok; then
3042 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3043 $as_echo "$CPP" >&6; }
3045 for ac_c_preproc_warn_flag in '' yes
3047 # Use a header file that comes with gcc, so configuring glibc
3048 # with a fresh cross-compiler works.
3049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3050 # <limits.h> exists even on freestanding compilers.
3051 # On the NeXT, cc -E runs the code through the compiler's parser,
3052 # not just through cpp. "Syntax error" is here to catch this case.
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3060 # include <limits.h>
3062 # include <assert.h>
3066 if { (ac_try="$ac_cpp conftest.$ac_ext"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3072 $as_echo "$ac_try_echo") >&5
3073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null && {
3080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3085 $as_echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 # Broken: fails on valid input.
3092 rm -f conftest.err conftest.$ac_ext
3094 # OK, works on sane cases. Now check whether nonexistent headers
3095 # can be detected and how.
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <ac_nonexistent.h>
3104 if { (ac_try="$ac_cpp conftest.$ac_ext"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3110 $as_echo "$ac_try_echo") >&5
3111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null && {
3118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3119 test ! -s conftest.err
3121 # Broken: success on invalid input.
3124 $as_echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3127 # Passes both tests.
3132 rm -f conftest.err conftest.$ac_ext
3135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136 rm -f conftest.err conftest.$ac_ext
3137 if $ac_preproc_ok; then
3140 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3143 See \`config.log' for more details." >&5
3144 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3145 See \`config.log' for more details." >&2;}
3146 { (exit 1); exit 1; }; }; }
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3157 if test -f "$ac_dir/install-sh"; then
3159 ac_install_sh="$ac_aux_dir/install-sh -c"
3161 elif test -f "$ac_dir/install.sh"; then
3163 ac_install_sh="$ac_aux_dir/install.sh -c"
3165 elif test -f "$ac_dir/shtool"; then
3167 ac_install_sh="$ac_aux_dir/shtool install -c"
3171 if test -z "$ac_aux_dir"; then
3172 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3173 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3174 { (exit 1); exit 1; }; }
3177 # These three variables are undocumented and unsupported,
3178 # and are intended to be withdrawn in a future Autoconf release.
3179 # They can cause serious problems if a builder's source tree is in a directory
3180 # whose full name contains unusual characters.
3181 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3182 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3183 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3186 # Find a good install program. We prefer a C program (faster),
3187 # so one script is as good as another. But avoid the broken or
3188 # incompatible versions:
3189 # SysV /etc/install, /usr/sbin/install
3190 # SunOS /usr/etc/install
3191 # IRIX /sbin/install
3193 # AmigaOS /C/install, which installs bootblocks on floppy discs
3194 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3197 # OS/2's system install, which has a completely different semantic
3198 # ./install, which can be erroneously created by make from ./install.sh.
3199 # Reject install programs that cannot install multiple files.
3200 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3201 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3202 if test -z "$INSTALL"; then
3203 if test "${ac_cv_path_install+set}" = set; then
3204 $as_echo_n "(cached) " >&6
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 # Account for people who put trailing slashes in PATH elements.
3213 ./ | .// | /cC/* | \
3214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3215 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3218 # OSF1 and SCO ODT 3.0 have their own names for install.
3219 # Don't use installbsd from OSF since it installs stuff as root
3221 for ac_prog in ginstall scoinst install; do
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3224 if test $ac_prog = install &&
3225 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3226 # AIX install. It has an incompatible calling convention.
3228 elif test $ac_prog = install &&
3229 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3230 # program-specific install script used by HP pwplus--don't use.
3233 rm -rf conftest.one conftest.two conftest.dir
3234 echo one > conftest.one
3235 echo two > conftest.two
3237 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3238 test -s conftest.one && test -s conftest.two &&
3239 test -s conftest.dir/conftest.one &&
3240 test -s conftest.dir/conftest.two
3242 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3255 rm -rf conftest.one conftest.two conftest.dir
3258 if test "${ac_cv_path_install+set}" = set; then
3259 INSTALL=$ac_cv_path_install
3261 # As a last resort, use the slow shell script. Don't cache a
3262 # value for INSTALL within a source directory, because that will
3263 # break other packages using the cache if that directory is
3264 # removed, or if the value is a relative name.
3265 INSTALL=$ac_install_sh
3268 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3269 $as_echo "$INSTALL" >&6; }
3271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3272 # It thinks the first close brace ends the variable substitution.
3273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3279 if test -n "$ac_tool_prefix"; then
3280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_RANLIB+set}" = set; then
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$RANLIB"; then
3288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 RANLIB=$ac_cv_prog_RANLIB
3308 if test -n "$RANLIB"; then
3309 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3310 $as_echo "$RANLIB" >&6; }
3312 { $as_echo "$as_me:$LINENO: result: no" >&5
3313 $as_echo "no" >&6; }
3318 if test -z "$ac_cv_prog_RANLIB"; then
3319 ac_ct_RANLIB=$RANLIB
3320 # Extract the first word of "ranlib", so it can be a program name with args.
3321 set dummy ranlib; ac_word=$2
3322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3325 $as_echo_n "(cached) " >&6
3327 if test -n "$ac_ct_RANLIB"; then
3328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_ac_ct_RANLIB="ranlib"
3338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3348 if test -n "$ac_ct_RANLIB"; then
3349 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3350 $as_echo "$ac_ct_RANLIB" >&6; }
3352 { $as_echo "$as_me:$LINENO: result: no" >&5
3353 $as_echo "no" >&6; }
3356 if test "x$ac_ct_RANLIB" = x; then
3359 case $cross_compiling:$ac_tool_warned in
3361 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363 ac_tool_warned=yes ;;
3365 RANLIB=$ac_ct_RANLIB
3368 RANLIB="$ac_cv_prog_RANLIB"
3371 # Extract the first word of "autoconf", so it can be a program name with args.
3372 set dummy autoconf; ac_word=$2
3373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3376 $as_echo_n "(cached) " >&6
3378 if test -n "$AUTOCONF"; then
3379 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_AUTOCONF="autoconf"
3389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3399 AUTOCONF=$ac_cv_prog_AUTOCONF
3400 if test -n "$AUTOCONF"; then
3401 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3402 $as_echo "$AUTOCONF" >&6; }
3404 { $as_echo "$as_me:$LINENO: result: no" >&5
3405 $as_echo "no" >&6; }
3409 # Extract the first word of "strip", so it can be a program name with args.
3410 set dummy strip; ac_word=$2
3411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if test "${ac_cv_prog_STRIP+set}" = set; then
3414 $as_echo_n "(cached) " >&6
3416 if test -n "$STRIP"; then
3417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_STRIP="strip"
3427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3437 STRIP=$ac_cv_prog_STRIP
3438 if test -n "$STRIP"; then
3439 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3440 $as_echo "$STRIP" >&6; }
3442 { $as_echo "$as_me:$LINENO: result: no" >&5
3443 $as_echo "no" >&6; }
3447 # Extract the first word of "as", so it can be a program name with args.
3448 set dummy as; ac_word=$2
3449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if test "${ac_cv_prog_AS+set}" = set; then
3452 $as_echo_n "(cached) " >&6
3454 if test -n "$AS"; then
3455 ac_cv_prog_AS="$AS" # Let the user override the test.
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3476 if test -n "$AS"; then
3477 { $as_echo "$as_me:$LINENO: result: $AS" >&5
3478 $as_echo "$AS" >&6; }
3480 { $as_echo "$as_me:$LINENO: result: no" >&5
3481 $as_echo "no" >&6; }
3485 # Extract the first word of "cp", so it can be a program name with args.
3486 set dummy cp; ac_word=$2
3487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if test "${ac_cv_prog_CP+set}" = set; then
3490 $as_echo_n "(cached) " >&6
3492 if test -n "$CP"; then
3493 ac_cv_prog_CP="$CP" # Let the user override the test.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3514 if test -n "$CP"; then
3515 { $as_echo "$as_me:$LINENO: result: $CP" >&5
3516 $as_echo "$CP" >&6; }
3518 { $as_echo "$as_me:$LINENO: result: no" >&5
3519 $as_echo "no" >&6; }
3524 for ac_prog in flex lex
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if test "${ac_cv_prog_LEX+set}" = set; then
3531 $as_echo_n "(cached) " >&6
3533 if test -n "$LEX"; then
3534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_LEX="$ac_prog"
3544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 if test -n "$LEX"; then
3555 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3556 $as_echo "$LEX" >&6; }
3558 { $as_echo "$as_me:$LINENO: result: no" >&5
3559 $as_echo "no" >&6; }
3563 test -n "$LEX" && break
3565 test -n "$LEX" || LEX=":"
3568 for ac_prog in 'bison -y' byacc yacc
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if test "${ac_cv_prog_YACC+set}" = set; then
3575 $as_echo_n "(cached) " >&6
3577 if test -n "$YACC"; then
3578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 ac_cv_prog_YACC="$ac_prog"
3588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 YACC=$ac_cv_prog_YACC
3598 if test -n "$YACC"; then
3599 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
3600 $as_echo "$YACC" >&6; }
3602 { $as_echo "$as_me:$LINENO: result: no" >&5
3603 $as_echo "no" >&6; }
3607 test -n "$YACC" && break
3609 test -n "$YACC" || YACC=":"
3614 if test "$YACC" = ":"; then
3615 { { $as_echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3616 $as_echo "$as_me: error: Cannot find required program bison." >&2;}
3617 { (exit 1); exit 1; }; }
3620 if test "$LEX" = ":"; then
3621 { { $as_echo "$as_me:$LINENO: error: Cannot find required program flex." >&5
3622 $as_echo "$as_me: error: Cannot find required program flex." >&2;}
3623 { (exit 1); exit 1; }; }
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635 # Check whether --with-ccache was given.
3636 if test "${with_ccache+set}" = set; then
3637 withval=$with_ccache;
3640 case x${with_ccache-yes} in
3641 xyes) # Extract the first word of "ccache", so it can be a program name with args.
3642 set dummy ccache; ac_word=$2
3643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_CCACHE+set}" = set; then
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CCACHE"; then
3649 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658 ac_cv_prog_CCACHE="ccache"
3659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 CCACHE=$ac_cv_prog_CCACHE
3669 if test -n "$CCACHE"; then
3670 { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
3671 $as_echo "$CCACHE" >&6; }
3673 { $as_echo "$as_me:$LINENO: result: no" >&5
3674 $as_echo "no" >&6; }
3679 *) CCACHE=$with_ccache
3684 # Checking for functions
3685 # ===========================================================================
3688 for ac_func in strerror
3690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
3692 $as_echo_n "checking for $ac_func... " >&6; }
3693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3694 $as_echo_n "(cached) " >&6
3696 cat >conftest.$ac_ext <<_ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3704 #define $ac_func innocuous_$ac_func
3706 /* System header to define __stub macros and hopefully few prototypes,
3707 which can conflict with char $ac_func (); below.
3708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3709 <limits.h> exists even on freestanding compilers. */
3712 # include <limits.h>
3714 # include <assert.h>
3719 /* Override any GCC internal prototype to avoid an error.
3720 Use char because int might match the return type of a GCC
3721 builtin and then its argument prototype would still apply. */
3726 /* The GNU C library defines this for functions which it implements
3727 to always fail with ENOSYS. Some functions are actually named
3728 something starting with __ and the normal name is an alias. */
3729 #if defined __stub_$ac_func || defined __stub___$ac_func
3741 rm -f conftest.$ac_objext conftest$ac_exeext
3742 if { (ac_try="$ac_link"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_link") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest$ac_exeext && {
3759 test "$cross_compiling" = yes ||
3760 $as_test_x conftest$ac_exeext
3762 eval "$as_ac_var=yes"
3764 $as_echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 eval "$as_ac_var=no"
3770 rm -rf conftest.dSYM
3771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3772 conftest$ac_exeext conftest.$ac_ext
3774 ac_res=`eval 'as_val=${'$as_ac_var'}
3775 $as_echo "$as_val"'`
3776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3777 $as_echo "$ac_res" >&6; }
3778 as_val=`eval 'as_val=${'$as_ac_var'}
3779 $as_echo "$as_val"'`
3780 if test "x$as_val" = x""yes; then
3781 cat >>confdefs.h <<_ACEOF
3782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3792 for ac_func in vsnprintf snprintf vsprintf mkstemp
3794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
3796 $as_echo_n "checking for $ac_func... " >&6; }
3797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3798 $as_echo_n "(cached) " >&6
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3808 #define $ac_func innocuous_$ac_func
3810 /* System header to define __stub macros and hopefully few prototypes,
3811 which can conflict with char $ac_func (); below.
3812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 <limits.h> exists even on freestanding compilers. */
3816 # include <limits.h>
3818 # include <assert.h>
3823 /* Override any GCC internal prototype to avoid an error.
3824 Use char because int might match the return type of a GCC
3825 builtin and then its argument prototype would still apply. */
3830 /* The GNU C library defines this for functions which it implements
3831 to always fail with ENOSYS. Some functions are actually named
3832 something starting with __ and the normal name is an alias. */
3833 #if defined __stub_$ac_func || defined __stub___$ac_func
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (ac_try="$ac_link"
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3852 $as_echo "$ac_try_echo") >&5
3853 (eval "$ac_link") 2>conftest.er1
3855 grep -v '^ *+' conftest.er1 >conftest.err
3857 cat conftest.err >&5
3858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } && {
3860 test -z "$ac_c_werror_flag" ||
3861 test ! -s conftest.err
3862 } && test -s conftest$ac_exeext && {
3863 test "$cross_compiling" = yes ||
3864 $as_test_x conftest$ac_exeext
3866 eval "$as_ac_var=yes"
3868 $as_echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 eval "$as_ac_var=no"
3874 rm -rf conftest.dSYM
3875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3876 conftest$ac_exeext conftest.$ac_ext
3878 ac_res=`eval 'as_val=${'$as_ac_var'}
3879 $as_echo "$as_val"'`
3880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3881 $as_echo "$ac_res" >&6; }
3882 as_val=`eval 'as_val=${'$as_ac_var'}
3883 $as_echo "$as_val"'`
3884 if test "x$as_val" = x""yes; then
3885 cat >>confdefs.h <<_ACEOF
3886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3895 # ===========================================================================
3897 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3898 # supports option specified as the 2nd parameter
3899 # For example: DD_CPORT(CXX, fPIC)
3903 # This macro expands DIR and assigns it to RET.
3904 # If DIR is NONE, then it's replaced by DEFAULT.
3906 # Based on AC_DEFINE_DIR
3910 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3914 # adl_NORMALIZE_PATH
3916 # - empty paths are changed to '.'
3917 # - trailing slashes are removed
3918 # - repeated slashes are squeezed except a leading doubled slash '//'
3919 # (which might indicate a networked disk on some OS).
3922 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3923 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3924 # are turned into backslashes, otherwise they are all turned into slashes.
3926 # This makes processing of DOS filenames quite easier, because you can turn a
3927 # filename to the Unix notation, make your processing, and turn it back to
3928 # original notation.
3933 # adl_COMPUTE_RELATIVE_PATH
3935 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3936 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3937 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3938 # absolute filenames for this macro to success.
3944 ## The following helper macros are too fragile to be used out
3945 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3946 ## paths are normalized), that's why I'm keeping them in the same file.
3947 ## Still, some of them maybe worth to reuse.
3965 # Checking characteristics of compilers and other programs
3966 # ===========================================================================
3967 { $as_echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3968 $as_echo_n "checking whether preprocessor accepts -MM or -M... " >&6; }
3969 if test "${sdcc_cv_MM+set}" = set; then
3970 $as_echo_n "(cached) " >&6
3972 echo "#include <stdio.h>" >_test_.c
3974 $CPP -v -MM _test_.c 1>&5 2>&5
3975 if test "$?" = "0"; then
3982 { $as_echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3983 $as_echo "$sdcc_cv_MM" >&6; }
3987 # This is the first time when CFLAGS are set/modified!!
3989 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3990 $as_echo_n "checking whether $CC accepts -ggdb... " >&6; }
3991 if test "${sdcc_cv_CCggdb+set}" = set; then
3992 $as_echo_n "(cached) " >&6
3998 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3999 if test "$?" = "0"; then
4000 sdcc_cv_CCggdb="yes"
4004 rm -f _test_.* a.out
4006 { $as_echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4007 $as_echo "$sdcc_cv_CCggdb" >&6; }
4009 if test "$sdcc_cv_CCggdb" = "yes"; then
4010 CFLAGS="-ggdb ${CFLAGS}"
4014 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4015 $as_echo_n "checking whether $CC accepts -pipe... " >&6; }
4016 if test "${sdcc_cv_CCpipe+set}" = set; then
4017 $as_echo_n "(cached) " >&6
4023 $CC -v -pipe -c _test_.c 1>&5 2>&5
4024 if test "$?" = "0"; then
4025 sdcc_cv_CCpipe="yes"
4029 rm -f _test_.* a.out
4031 { $as_echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4032 $as_echo "$sdcc_cv_CCpipe" >&6; }
4034 if test "$sdcc_cv_CCpipe" = "yes"; then
4035 CFLAGS="-pipe $CFLAGS"
4039 # Checks for typedefs, structures, and compiler characteristics.
4040 # ===========================================================================
4041 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4042 $as_echo_n "checking return type of signal handlers... " >&6; }
4043 if test "${ac_cv_type_signal+set}" = set; then
4044 $as_echo_n "(cached) " >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #include <sys/types.h>
4058 return *(signal (0, 0)) (0) == 1;
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4070 $as_echo "$ac_try_echo") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4073 grep -v '^ *+' conftest.er1 >conftest.err
4075 cat conftest.err >&5
4076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest.$ac_objext; then
4081 ac_cv_type_signal=int
4083 $as_echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_cv_type_signal=void
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4092 $as_echo "$ac_cv_type_signal" >&6; }
4094 cat >>confdefs.h <<_ACEOF
4095 #define RETSIGTYPE $ac_cv_type_signal
4101 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4103 if test "${ac_cv_path_GREP+set}" = set; then
4104 $as_echo_n "(cached) " >&6
4106 if test -z "$GREP"; then
4107 ac_path_GREP_found=false
4108 # Loop through the user's path and test for each of PROGNAME-LIST
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113 test -z "$as_dir" && as_dir=.
4114 for ac_prog in grep ggrep; do
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4117 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4118 # Check for GNU ac_path_GREP and select it if it is found.
4119 # Check for GNU $ac_path_GREP
4120 case `"$ac_path_GREP" --version 2>&1` in
4122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4125 $as_echo_n 0123456789 >"conftest.in"
4128 cat "conftest.in" "conftest.in" >"conftest.tmp"
4129 mv "conftest.tmp" "conftest.in"
4130 cp "conftest.in" "conftest.nl"
4131 $as_echo 'GREP' >> "conftest.nl"
4132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4134 ac_count=`expr $ac_count + 1`
4135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4136 # Best one so far, save it but keep looking for a better one
4137 ac_cv_path_GREP="$ac_path_GREP"
4138 ac_path_GREP_max=$ac_count
4140 # 10*(2^10) chars as input seems more than enough
4141 test $ac_count -gt 10 && break
4143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146 $ac_path_GREP_found && break 3
4151 if test -z "$ac_cv_path_GREP"; then
4152 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4153 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4154 { (exit 1); exit 1; }; }
4157 ac_cv_path_GREP=$GREP
4161 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4162 $as_echo "$ac_cv_path_GREP" >&6; }
4163 GREP="$ac_cv_path_GREP"
4166 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4167 $as_echo_n "checking for egrep... " >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169 $as_echo_n "(cached) " >&6
4171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172 then ac_cv_path_EGREP="$GREP -E"
4174 if test -z "$EGREP"; then
4175 ac_path_EGREP_found=false
4176 # Loop through the user's path and test for each of PROGNAME-LIST
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4181 test -z "$as_dir" && as_dir=.
4182 for ac_prog in egrep; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4185 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4186 # Check for GNU ac_path_EGREP and select it if it is found.
4187 # Check for GNU $ac_path_EGREP
4188 case `"$ac_path_EGREP" --version 2>&1` in
4190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4193 $as_echo_n 0123456789 >"conftest.in"
4196 cat "conftest.in" "conftest.in" >"conftest.tmp"
4197 mv "conftest.tmp" "conftest.in"
4198 cp "conftest.in" "conftest.nl"
4199 $as_echo 'EGREP' >> "conftest.nl"
4200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4202 ac_count=`expr $ac_count + 1`
4203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4204 # Best one so far, save it but keep looking for a better one
4205 ac_cv_path_EGREP="$ac_path_EGREP"
4206 ac_path_EGREP_max=$ac_count
4208 # 10*(2^10) chars as input seems more than enough
4209 test $ac_count -gt 10 && break
4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214 $ac_path_EGREP_found && break 3
4219 if test -z "$ac_cv_path_EGREP"; then
4220 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4221 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4222 { (exit 1); exit 1; }; }
4225 ac_cv_path_EGREP=$EGREP
4230 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4231 $as_echo "$ac_cv_path_EGREP" >&6; }
4232 EGREP="$ac_cv_path_EGREP"
4235 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4236 $as_echo_n "checking for ANSI C header files... " >&6; }
4237 if test "${ac_cv_header_stdc+set}" = set; then
4238 $as_echo_n "(cached) " >&6
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266 $as_echo "$ac_try_echo") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && {
4274 test -z "$ac_c_werror_flag" ||
4275 test ! -s conftest.err
4276 } && test -s conftest.$ac_objext; then
4277 ac_cv_header_stdc=yes
4279 $as_echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 ac_cv_header_stdc=no
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 if test $ac_cv_header_stdc = yes; then
4288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4299 $EGREP "memchr" >/dev/null 2>&1; then
4302 ac_cv_header_stdc=no
4308 if test $ac_cv_header_stdc = yes; then
4309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 $EGREP "free" >/dev/null 2>&1; then
4323 ac_cv_header_stdc=no
4329 if test $ac_cv_header_stdc = yes; then
4330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4331 if test "$cross_compiling" = yes; then
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4342 #if ((' ' & 0x0FF) == 0x020)
4343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346 # define ISLOWER(c) \
4347 (('a' <= (c) && (c) <= 'i') \
4348 || ('j' <= (c) && (c) <= 'r') \
4349 || ('s' <= (c) && (c) <= 'z'))
4350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358 for (i = 0; i < 256; i++)
4359 if (XOR (islower (i), ISLOWER (i))
4360 || toupper (i) != TOUPPER (i))
4365 rm -f conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4372 $as_echo "$ac_try_echo") >&5
4373 (eval "$ac_link") 2>&5
4375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4377 { (case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4382 $as_echo "$ac_try_echo") >&5
4383 (eval "$ac_try") 2>&5
4385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4389 $as_echo "$as_me: program exited with status $ac_status" >&5
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_cv_header_stdc=no
4396 rm -rf conftest.dSYM
4397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4404 $as_echo "$ac_cv_header_stdc" >&6; }
4405 if test $ac_cv_header_stdc = yes; then
4407 cat >>confdefs.h <<\_ACEOF
4408 #define STDC_HEADERS 1
4413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4424 inttypes.h stdint.h unistd.h
4426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4428 $as_echo_n "checking for $ac_header... " >&6; }
4429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4430 $as_echo_n "(cached) " >&6
4432 cat >conftest.$ac_ext <<_ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4440 #include <$ac_header>
4442 rm -f conftest.$ac_objext
4443 if { (ac_try="$ac_compile"
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4449 $as_echo "$ac_try_echo") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && {
4457 test -z "$ac_c_werror_flag" ||
4458 test ! -s conftest.err
4459 } && test -s conftest.$ac_objext; then
4460 eval "$as_ac_Header=yes"
4462 $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 eval "$as_ac_Header=no"
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 ac_res=`eval 'as_val=${'$as_ac_Header'}
4471 $as_echo "$as_val"'`
4472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4473 $as_echo "$ac_res" >&6; }
4474 as_val=`eval 'as_val=${'$as_ac_Header'}
4475 $as_echo "$as_val"'`
4476 if test "x$as_val" = x""yes; then
4477 cat >>confdefs.h <<_ACEOF
4478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 # The cast to long int works around a bug in the HP C Compiler
4487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4489 # This bug is HP SR number 8606223364.
4490 { $as_echo "$as_me:$LINENO: checking size of char" >&5
4491 $as_echo_n "checking size of char... " >&6; }
4492 if test "${ac_cv_sizeof_char+set}" = set; then
4493 $as_echo_n "(cached) " >&6
4495 if test "$cross_compiling" = yes; then
4496 # Depending upon the size, compute the lo and hi bounds.
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 $ac_includes_default
4507 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
4514 rm -f conftest.$ac_objext
4515 if { (ac_try="$ac_compile"
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4521 $as_echo "$ac_try_echo") >&5
4522 (eval "$ac_compile") 2>conftest.er1
4524 grep -v '^ *+' conftest.er1 >conftest.err
4526 cat conftest.err >&5
4527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } && {
4529 test -z "$ac_c_werror_flag" ||
4530 test ! -s conftest.err
4531 } && test -s conftest.$ac_objext; then
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 $ac_includes_default
4544 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4558 $as_echo "$ac_try_echo") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4561 grep -v '^ *+' conftest.er1 >conftest.err
4563 cat conftest.err >&5
4564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && {
4566 test -z "$ac_c_werror_flag" ||
4567 test ! -s conftest.err
4568 } && test -s conftest.$ac_objext; then
4569 ac_hi=$ac_mid; break
4571 $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_lo=`expr $ac_mid + 1`
4575 if test $ac_lo -le $ac_mid; then
4579 ac_mid=`expr 2 '*' $ac_mid + 1`
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 $ac_includes_default
4598 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612 $as_echo "$ac_try_echo") >&5
4613 (eval "$ac_compile") 2>conftest.er1
4615 grep -v '^ *+' conftest.er1 >conftest.err
4617 cat conftest.err >&5
4618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } && {
4620 test -z "$ac_c_werror_flag" ||
4621 test ! -s conftest.err
4622 } && test -s conftest.$ac_objext; then
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 $ac_includes_default
4635 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
4642 rm -f conftest.$ac_objext
4643 if { (ac_try="$ac_compile"
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4649 $as_echo "$ac_try_echo") >&5
4650 (eval "$ac_compile") 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && {
4657 test -z "$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4659 } && test -s conftest.$ac_objext; then
4660 ac_lo=$ac_mid; break
4662 $as_echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_hi=`expr '(' $ac_mid ')' - 1`
4666 if test $ac_mid -le $ac_hi; then
4670 ac_mid=`expr 2 '*' $ac_mid`
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 # Binary search between lo and hi bounds.
4687 while test "x$ac_lo" != "x$ac_hi"; do
4688 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 $ac_includes_default
4699 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
4706 rm -f conftest.$ac_objext
4707 if { (ac_try="$ac_compile"
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_compile") 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && {
4721 test -z "$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 } && test -s conftest.$ac_objext; then
4726 $as_echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_lo=`expr '(' $ac_mid ')' + 1`
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ?*) ac_cv_sizeof_char=$ac_lo;;
4736 '') if test "$ac_cv_type_char" = yes; then
4737 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4739 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4740 See \`config.log' for more details." >&5
4741 $as_echo "$as_me: error: cannot compute sizeof (char)
4742 See \`config.log' for more details." >&2;}
4743 { (exit 77); exit 77; }; }; }
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 $ac_includes_default
4756 static long int longval () { return (long int) (sizeof (char)); }
4757 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
4764 FILE *f = fopen ("conftest.val", "w");
4767 if (((long int) (sizeof (char))) < 0)
4769 long int i = longval ();
4770 if (i != ((long int) (sizeof (char))))
4772 fprintf (f, "%ld", i);
4776 unsigned long int i = ulongval ();
4777 if (i != ((long int) (sizeof (char))))
4779 fprintf (f, "%lu", i);
4781 /* Do not output a trailing newline, as this causes \r\n confusion
4782 on some platforms. */
4783 return ferror (f) || fclose (f) != 0;
4789 rm -f conftest$ac_exeext
4790 if { (ac_try="$ac_link"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_link") 2>&5
4799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4801 { (case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4806 $as_echo "$ac_try_echo") >&5
4807 (eval "$ac_try") 2>&5
4809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4811 ac_cv_sizeof_char=`cat conftest.val`
4813 $as_echo "$as_me: program exited with status $ac_status" >&5
4814 $as_echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4818 if test "$ac_cv_type_char" = yes; then
4819 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4821 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4822 See \`config.log' for more details." >&5
4823 $as_echo "$as_me: error: cannot compute sizeof (char)
4824 See \`config.log' for more details." >&2;}
4825 { (exit 77); exit 77; }; }; }
4830 rm -rf conftest.dSYM
4831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4835 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4836 $as_echo "$ac_cv_sizeof_char" >&6; }
4840 cat >>confdefs.h <<_ACEOF
4841 #define SIZEOF_CHAR $ac_cv_sizeof_char
4845 # The cast to long int works around a bug in the HP C Compiler
4846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4848 # This bug is HP SR number 8606223364.
4849 { $as_echo "$as_me:$LINENO: checking size of short" >&5
4850 $as_echo_n "checking size of short... " >&6; }
4851 if test "${ac_cv_sizeof_short+set}" = set; then
4852 $as_echo_n "(cached) " >&6
4854 if test "$cross_compiling" = yes; then
4855 # Depending upon the size, compute the lo and hi bounds.
4856 cat >conftest.$ac_ext <<_ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 $ac_includes_default
4866 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4880 $as_echo "$ac_try_echo") >&5
4881 (eval "$ac_compile") 2>conftest.er1
4883 grep -v '^ *+' conftest.er1 >conftest.err
4885 cat conftest.err >&5
4886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } && {
4888 test -z "$ac_c_werror_flag" ||
4889 test ! -s conftest.err
4890 } && test -s conftest.$ac_objext; then
4893 cat >conftest.$ac_ext <<_ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 $ac_includes_default
4903 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4910 rm -f conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4917 $as_echo "$ac_try_echo") >&5
4918 (eval "$ac_compile") 2>conftest.er1
4920 grep -v '^ *+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } && {
4925 test -z "$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4927 } && test -s conftest.$ac_objext; then
4928 ac_hi=$ac_mid; break
4930 $as_echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 ac_lo=`expr $ac_mid + 1`
4934 if test $ac_lo -le $ac_mid; then
4938 ac_mid=`expr 2 '*' $ac_mid + 1`
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 $as_echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 $ac_includes_default
4957 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_compile") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && {
4979 test -z "$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 } && test -s conftest.$ac_objext; then
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 $ac_includes_default
4994 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
5001 rm -f conftest.$ac_objext
5002 if { (ac_try="$ac_compile"
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5008 $as_echo "$ac_try_echo") >&5
5009 (eval "$ac_compile") 2>conftest.er1
5011 grep -v '^ *+' conftest.er1 >conftest.err
5013 cat conftest.err >&5
5014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && {
5016 test -z "$ac_c_werror_flag" ||
5017 test ! -s conftest.err
5018 } && test -s conftest.$ac_objext; then
5019 ac_lo=$ac_mid; break
5021 $as_echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5024 ac_hi=`expr '(' $ac_mid ')' - 1`
5025 if test $ac_mid -le $ac_hi; then
5029 ac_mid=`expr 2 '*' $ac_mid`
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 $as_echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 # Binary search between lo and hi bounds.
5046 while test "x$ac_lo" != "x$ac_hi"; do
5047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5048 cat >conftest.$ac_ext <<_ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5058 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
5065 rm -f conftest.$ac_objext
5066 if { (ac_try="$ac_compile"
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5072 $as_echo "$ac_try_echo") >&5
5073 (eval "$ac_compile") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } && {
5080 test -z "$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 } && test -s conftest.$ac_objext; then
5085 $as_echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5088 ac_lo=`expr '(' $ac_mid ')' + 1`
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ?*) ac_cv_sizeof_short=$ac_lo;;
5095 '') if test "$ac_cv_type_short" = yes; then
5096 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5098 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5099 See \`config.log' for more details." >&5
5100 $as_echo "$as_me: error: cannot compute sizeof (short)
5101 See \`config.log' for more details." >&2;}
5102 { (exit 77); exit 77; }; }; }
5104 ac_cv_sizeof_short=0
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 $ac_includes_default
5115 static long int longval () { return (long int) (sizeof (short)); }
5116 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
5123 FILE *f = fopen ("conftest.val", "w");
5126 if (((long int) (sizeof (short))) < 0)
5128 long int i = longval ();
5129 if (i != ((long int) (sizeof (short))))
5131 fprintf (f, "%ld", i);
5135 unsigned long int i = ulongval ();
5136 if (i != ((long int) (sizeof (short))))
5138 fprintf (f, "%lu", i);
5140 /* Do not output a trailing newline, as this causes \r\n confusion
5141 on some platforms. */
5142 return ferror (f) || fclose (f) != 0;
5148 rm -f conftest$ac_exeext
5149 if { (ac_try="$ac_link"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155 $as_echo "$ac_try_echo") >&5
5156 (eval "$ac_link") 2>&5
5158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5160 { (case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5165 $as_echo "$ac_try_echo") >&5
5166 (eval "$ac_try") 2>&5
5168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 ac_cv_sizeof_short=`cat conftest.val`
5172 $as_echo "$as_me: program exited with status $ac_status" >&5
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5177 if test "$ac_cv_type_short" = yes; then
5178 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5180 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5181 See \`config.log' for more details." >&5
5182 $as_echo "$as_me: error: cannot compute sizeof (short)
5183 See \`config.log' for more details." >&2;}
5184 { (exit 77); exit 77; }; }; }
5186 ac_cv_sizeof_short=0
5189 rm -rf conftest.dSYM
5190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5194 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5195 $as_echo "$ac_cv_sizeof_short" >&6; }
5199 cat >>confdefs.h <<_ACEOF
5200 #define SIZEOF_SHORT $ac_cv_sizeof_short
5204 # The cast to long int works around a bug in the HP C Compiler
5205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5207 # This bug is HP SR number 8606223364.
5208 { $as_echo "$as_me:$LINENO: checking size of int" >&5
5209 $as_echo_n "checking size of int... " >&6; }
5210 if test "${ac_cv_sizeof_int+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5213 if test "$cross_compiling" = yes; then
5214 # Depending upon the size, compute the lo and hi bounds.
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 $ac_includes_default
5225 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
5232 rm -f conftest.$ac_objext
5233 if { (ac_try="$ac_compile"
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5239 $as_echo "$ac_try_echo") >&5
5240 (eval "$ac_compile") 2>conftest.er1
5242 grep -v '^ *+' conftest.er1 >conftest.err
5244 cat conftest.err >&5
5245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } && {
5247 test -z "$ac_c_werror_flag" ||
5248 test ! -s conftest.err
5249 } && test -s conftest.$ac_objext; then
5252 cat >conftest.$ac_ext <<_ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 $ac_includes_default
5262 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5269 rm -f conftest.$ac_objext
5270 if { (ac_try="$ac_compile"
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5276 $as_echo "$ac_try_echo") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5279 grep -v '^ *+' conftest.er1 >conftest.err
5281 cat conftest.err >&5
5282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && {
5284 test -z "$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.$ac_objext; then
5287 ac_hi=$ac_mid; break
5289 $as_echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 ac_lo=`expr $ac_mid + 1`
5293 if test $ac_lo -le $ac_mid; then
5297 ac_mid=`expr 2 '*' $ac_mid + 1`
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 $as_echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 cat >conftest.$ac_ext <<_ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 $ac_includes_default
5316 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5330 $as_echo "$ac_try_echo") >&5
5331 (eval "$ac_compile") 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest.$ac_objext; then
5343 cat >conftest.$ac_ext <<_ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 $ac_includes_default
5353 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
5360 rm -f conftest.$ac_objext
5361 if { (ac_try="$ac_compile"
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5367 $as_echo "$ac_try_echo") >&5
5368 (eval "$ac_compile") 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } && {
5375 test -z "$ac_c_werror_flag" ||
5376 test ! -s conftest.err
5377 } && test -s conftest.$ac_objext; then
5378 ac_lo=$ac_mid; break
5380 $as_echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_hi=`expr '(' $ac_mid ')' - 1`
5384 if test $ac_mid -le $ac_hi; then
5388 ac_mid=`expr 2 '*' $ac_mid`
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 $as_echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 # Binary search between lo and hi bounds.
5405 while test "x$ac_lo" != "x$ac_hi"; do
5406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 $ac_includes_default
5417 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5431 $as_echo "$ac_try_echo") >&5
5432 (eval "$ac_compile") 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && {
5439 test -z "$ac_c_werror_flag" ||
5440 test ! -s conftest.err
5441 } && test -s conftest.$ac_objext; then
5444 $as_echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_lo=`expr '(' $ac_mid ')' + 1`
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 ?*) ac_cv_sizeof_int=$ac_lo;;
5454 '') if test "$ac_cv_type_int" = yes; then
5455 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5457 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5458 See \`config.log' for more details." >&5
5459 $as_echo "$as_me: error: cannot compute sizeof (int)
5460 See \`config.log' for more details." >&2;}
5461 { (exit 77); exit 77; }; }; }
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 $ac_includes_default
5474 static long int longval () { return (long int) (sizeof (int)); }
5475 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
5482 FILE *f = fopen ("conftest.val", "w");
5485 if (((long int) (sizeof (int))) < 0)
5487 long int i = longval ();
5488 if (i != ((long int) (sizeof (int))))
5490 fprintf (f, "%ld", i);
5494 unsigned long int i = ulongval ();
5495 if (i != ((long int) (sizeof (int))))
5497 fprintf (f, "%lu", i);
5499 /* Do not output a trailing newline, as this causes \r\n confusion
5500 on some platforms. */
5501 return ferror (f) || fclose (f) != 0;
5507 rm -f conftest$ac_exeext
5508 if { (ac_try="$ac_link"
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5514 $as_echo "$ac_try_echo") >&5
5515 (eval "$ac_link") 2>&5
5517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5519 { (case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5524 $as_echo "$ac_try_echo") >&5
5525 (eval "$ac_try") 2>&5
5527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 ac_cv_sizeof_int=`cat conftest.val`
5531 $as_echo "$as_me: program exited with status $ac_status" >&5
5532 $as_echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5536 if test "$ac_cv_type_int" = yes; then
5537 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5539 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5540 See \`config.log' for more details." >&5
5541 $as_echo "$as_me: error: cannot compute sizeof (int)
5542 See \`config.log' for more details." >&2;}
5543 { (exit 77); exit 77; }; }; }
5548 rm -rf conftest.dSYM
5549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5553 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5554 $as_echo "$ac_cv_sizeof_int" >&6; }
5558 cat >>confdefs.h <<_ACEOF
5559 #define SIZEOF_INT $ac_cv_sizeof_int
5563 # The cast to long int works around a bug in the HP C Compiler
5564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5566 # This bug is HP SR number 8606223364.
5567 { $as_echo "$as_me:$LINENO: checking size of long" >&5
5568 $as_echo_n "checking size of long... " >&6; }
5569 if test "${ac_cv_sizeof_long+set}" = set; then
5570 $as_echo_n "(cached) " >&6
5572 if test "$cross_compiling" = yes; then
5573 # Depending upon the size, compute the lo and hi bounds.
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 $ac_includes_default
5584 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5598 $as_echo "$ac_try_echo") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 $ac_includes_default
5621 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5628 rm -f conftest.$ac_objext
5629 if { (ac_try="$ac_compile"
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5635 $as_echo "$ac_try_echo") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5646 ac_hi=$ac_mid; break
5648 $as_echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 ac_lo=`expr $ac_mid + 1`
5652 if test $ac_lo -le $ac_mid; then
5656 ac_mid=`expr 2 '*' $ac_mid + 1`
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 cat >conftest.$ac_ext <<_ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 $ac_includes_default
5675 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5689 $as_echo "$ac_try_echo") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 $ac_includes_default
5712 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5726 $as_echo "$ac_try_echo") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1 >conftest.err
5731 cat conftest.err >&5
5732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5737 ac_lo=$ac_mid; break
5739 $as_echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_hi=`expr '(' $ac_mid ')' - 1`
5743 if test $ac_mid -le $ac_hi; then
5747 ac_mid=`expr 2 '*' $ac_mid`
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 $as_echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 # Binary search between lo and hi bounds.
5764 while test "x$ac_lo" != "x$ac_hi"; do
5765 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 $ac_includes_default
5776 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5790 $as_echo "$ac_try_echo") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5793 grep -v '^ *+' conftest.er1 >conftest.err
5795 cat conftest.err >&5
5796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest.$ac_objext; then
5803 $as_echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 ac_lo=`expr '(' $ac_mid ')' + 1`
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 ?*) ac_cv_sizeof_long=$ac_lo;;
5813 '') if test "$ac_cv_type_long" = yes; then
5814 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5816 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5817 See \`config.log' for more details." >&5
5818 $as_echo "$as_me: error: cannot compute sizeof (long)
5819 See \`config.log' for more details." >&2;}
5820 { (exit 77); exit 77; }; }; }
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 $ac_includes_default
5833 static long int longval () { return (long int) (sizeof (long)); }
5834 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
5841 FILE *f = fopen ("conftest.val", "w");
5844 if (((long int) (sizeof (long))) < 0)
5846 long int i = longval ();
5847 if (i != ((long int) (sizeof (long))))
5849 fprintf (f, "%ld", i);
5853 unsigned long int i = ulongval ();
5854 if (i != ((long int) (sizeof (long))))
5856 fprintf (f, "%lu", i);
5858 /* Do not output a trailing newline, as this causes \r\n confusion
5859 on some platforms. */
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5873 $as_echo "$ac_try_echo") >&5
5874 (eval "$ac_link") 2>&5
5876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5883 $as_echo "$ac_try_echo") >&5
5884 (eval "$ac_try") 2>&5
5886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_sizeof_long=`cat conftest.val`
5890 $as_echo "$as_me: program exited with status $ac_status" >&5
5891 $as_echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5895 if test "$ac_cv_type_long" = yes; then
5896 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5898 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5899 See \`config.log' for more details." >&5
5900 $as_echo "$as_me: error: cannot compute sizeof (long)
5901 See \`config.log' for more details." >&2;}
5902 { (exit 77); exit 77; }; }; }
5907 rm -rf conftest.dSYM
5908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5912 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5913 $as_echo "$ac_cv_sizeof_long" >&6; }
5917 cat >>confdefs.h <<_ACEOF
5918 #define SIZEOF_LONG $ac_cv_sizeof_long
5923 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5924 $as_echo_n "checking whether char is unsigned... " >&6; }
5925 if test "${ac_cv_c_char_unsigned+set}" = set; then
5926 $as_echo_n "(cached) " >&6
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5938 static int test_array [1 - 2 * !(((char) -1) < 0)];
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5952 $as_echo "$ac_try_echo") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_cv_c_char_unsigned=no
5965 $as_echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_cv_c_char_unsigned=yes
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5974 $as_echo "$ac_cv_c_char_unsigned" >&6; }
5975 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5976 cat >>confdefs.h <<\_ACEOF
5977 #define __CHAR_UNSIGNED__ 1
5985 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5989 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5993 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5997 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
6004 { $as_echo "$as_me:$LINENO: checking type name for byte" >&5
6005 $as_echo_n "checking type name for byte... " >&6; }
6006 TYPE_CHAR=`type_name 1`
6007 if test "$ac_cv_c_char_unsigned" = "yes"; then
6008 TYPE_BYTE="signed $TYPE_CHAR"
6010 TYPE_BYTE=$TYPE_CHAR
6012 { $as_echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6013 $as_echo "$TYPE_BYTE" >&6; }
6014 { $as_echo "$as_me:$LINENO: checking type name for word" >&5
6015 $as_echo_n "checking type name for word... " >&6; }
6016 TYPE_WORD=`type_name 2`
6017 { $as_echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6018 $as_echo "$TYPE_WORD" >&6; }
6019 { $as_echo "$as_me:$LINENO: checking type name for dword" >&5
6020 $as_echo_n "checking type name for dword... " >&6; }
6021 TYPE_DWORD=`type_name 4`
6022 { $as_echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6023 $as_echo "$TYPE_DWORD" >&6; }
6025 cat >>confdefs.h <<_ACEOF
6026 #define TYPE_BYTE $TYPE_BYTE
6029 cat >>confdefs.h <<_ACEOF
6030 #define TYPE_WORD $TYPE_WORD
6033 cat >>confdefs.h <<_ACEOF
6034 #define TYPE_DWORD $TYPE_DWORD
6038 cat >>confdefs.h <<_ACEOF
6039 #define TYPE_UBYTE unsigned $TYPE_CHAR
6042 cat >>confdefs.h <<_ACEOF
6043 #define TYPE_UWORD unsigned $TYPE_WORD
6046 cat >>confdefs.h <<_ACEOF
6047 #define TYPE_UDWORD unsigned $TYPE_DWORD
6052 # SDCC_BUILD_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
6053 # -------------------------------------------------------------------------
6054 # SDCC_BUILD_BIGENDIAN
6056 { $as_echo "$as_me:$LINENO: checking whether host machine byte ordering is bigendian" >&5
6057 $as_echo_n "checking whether host machine byte ordering is bigendian... " >&6; }
6058 if test "${sdcc_cv_build_bigendian+set}" = set; then
6059 $as_echo_n "(cached) " >&6
6061 # See if sys/param.h defines the BYTE_ORDER macro.
6062 cat >conftest.$ac_ext <<_ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <sys/types.h>
6069 #include <sys/param.h>
6074 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6075 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6090 $as_echo "$ac_try_echo") >&5
6091 (eval "$ac_compile") 2>conftest.er1
6093 grep -v '^ *+' conftest.er1 >conftest.err
6095 cat conftest.err >&5
6096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } && {
6098 test -z "$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6100 } && test -s conftest.$ac_objext; then
6101 # It does; now see whether it defined to BIG_ENDIAN or not.
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <sys/types.h>
6109 #include <sys/param.h>
6114 #if BYTE_ORDER != BIG_ENDIAN
6122 rm -f conftest.$ac_objext
6123 if { (ac_try="$ac_compile"
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6129 $as_echo "$ac_try_echo") >&5
6130 (eval "$ac_compile") 2>conftest.er1
6132 grep -v '^ *+' conftest.er1 >conftest.err
6134 cat conftest.err >&5
6135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && {
6137 test -z "$ac_c_werror_flag" ||
6138 test ! -s conftest.err
6139 } && test -s conftest.$ac_objext; then
6140 sdcc_cv_build_bigendian=yes
6142 $as_echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 sdcc_cv_build_bigendian=no
6148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 # It does not; compile a test program.
6154 if test "$cross_compiling" = yes; then
6155 # try to guess the endianness by grepping values into an object file
6156 sdcc_cv_build_bigendian=unknown
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6164 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6165 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6166 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6167 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6168 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6172 _ascii (); _ebcdic ();
6177 rm -f conftest.$ac_objext
6178 if { (ac_try="$ac_compile"
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6184 $as_echo "$ac_try_echo") >&5
6185 (eval "$ac_compile") 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } && {
6192 test -z "$ac_c_werror_flag" ||
6193 test ! -s conftest.err
6194 } && test -s conftest.$ac_objext; then
6195 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6196 sdcc_cv_build_bigendian=yes
6198 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6199 if test "$sdcc_cv_build_bigendian" = unknown; then
6200 sdcc_cv_build_bigendian=no
6202 # finding both strings is unlikely to happen, but who knows?
6203 sdcc_cv_build_bigendian=unknown
6207 $as_echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 cat >conftest.$ac_ext <<_ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 $ac_includes_default
6226 /* Are we little or big endian? From Harbison&Steele. */
6230 char c[sizeof (long int)];
6233 return u.c[sizeof (long int) - 1] == 1;
6239 rm -f conftest$ac_exeext
6240 if { (ac_try="$ac_link"
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6246 $as_echo "$ac_try_echo") >&5
6247 (eval "$ac_link") 2>&5
6249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6251 { (case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_try") 2>&5
6259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 sdcc_cv_build_bigendian=no
6263 $as_echo "$as_me: program exited with status $ac_status" >&5
6264 $as_echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6268 sdcc_cv_build_bigendian=yes
6270 rm -rf conftest.dSYM
6271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 { $as_echo "$as_me:$LINENO: result: $sdcc_cv_build_bigendian" >&5
6280 $as_echo "$sdcc_cv_build_bigendian" >&6; }
6281 case $sdcc_cv_build_bigendian in
6284 cat >>confdefs.h <<\_ACEOF
6285 #define BUILD_WORDS_BIGENDIAN 1
6291 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6292 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&5
6293 $as_echo "$as_me: error: unknown endianness
6294 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&2;}
6295 { (exit 1); exit 1; }; } ;;
6299 # Set standard installation paths
6300 # ===========================================================================
6302 # In the Makefiles we need paths with '/' as directory separator, even if
6303 # crosscompiling for Win32.
6304 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6305 # The variables in the Makefiles are replaced by AC_SUBST()
6307 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6309 # The macros are expanded for the header.
6310 # The variables in the header are replaced by AC_*DEFINE*()
6311 # sdccconf_h_dir_separator contains a backslash.
6313 if test "x${sdccconf_h_dir_separator}" = "x"; then
6314 sdccconf_h_dir_separator="/"
6321 # *nix default: "RANLIB"
6324 if test "${LIB_TYPE}" = ""; then
6328 # include_dir_suffix:
6329 # *nix default: "sdcc/include"
6332 if test "${include_dir_suffix}" = ""; then
6333 include_dir_suffix="sdcc/include"
6337 # *nix default: "sdcc/lib"
6339 if test "${lib_dir_suffix}" = ""; then
6340 lib_dir_suffix="sdcc/lib"
6344 # *nix default: "${datadir}/sdcc/doc"
6346 if test "${docdir}" = ""; then
6347 docdir="\${datadir}"/sdcc/doc
6355 cat >>confdefs.h <<_ACEOF
6356 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6359 cat >>confdefs.h <<_ACEOF
6360 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6365 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6367 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6370 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6371 ac_expand=`eval echo $ac_expand`
6372 expanded_prefix=`eval echo $ac_expand`
6375 ac_ndu=$expanded_prefix
6378 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6381 case $sdccconf_h_dir_separator in
6383 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6384 s,^[\\/],\\\\\\\\,'` ;;
6386 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6388 cat >>confdefs.h <<_ACEOF
6389 #define PREFIX "${ac_ndu}"
6395 # default: "${prefix}"
6397 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6399 ac_expand=$exec_prefix
6400 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6401 ac_expand=`eval echo $ac_expand`
6402 expanded_exec_prefix=`eval echo $ac_expand`
6405 ac_ndu=$expanded_exec_prefix
6408 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6411 case $sdccconf_h_dir_separator in
6413 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6414 s,^[\\/],\\\\\\\\,'` ;;
6416 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6418 cat >>confdefs.h <<_ACEOF
6419 #define EXEC_PREFIX "${ac_ndu}"
6425 # default: "${exec_prefix}/bin"
6427 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6430 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6431 ac_expand=`eval echo $ac_expand`
6432 expanded_bindir=`eval echo $ac_expand`
6435 ac_ndu=$expanded_bindir
6438 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6441 case $sdccconf_h_dir_separator in
6443 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6444 s,^[\\/],\\\\\\\\,'` ;;
6446 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6448 cat >>confdefs.h <<_ACEOF
6449 #define BINDIR "${ac_ndu}"
6455 # default: "${prefix}/share"
6457 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6460 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6461 ac_expand=`eval echo $ac_expand`
6462 expanded_datadir=`eval echo $ac_expand`
6465 ac_ndu=$expanded_datadir
6468 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6471 case $sdccconf_h_dir_separator in
6473 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6474 s,^[\\/],\\\\\\\\,'` ;;
6476 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6478 cat >>confdefs.h <<_ACEOF
6479 #define DATADIR "${ac_ndu}"
6484 # include/lib suffix
6485 norm_inc_dir_suffix=${include_dir_suffix}
6486 case ":$norm_inc_dir_suffix:" in
6487 ::) norm_inc_dir_suffix='.' ;;
6488 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6491 case $sdccconf_h_dir_separator in
6493 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6494 s,^[\\/],\\\\\\\\,'` ;;
6496 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6498 cat >>confdefs.h <<_ACEOF
6499 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6502 norm_lib_dir_suffix=${lib_dir_suffix}
6503 case ":$norm_lib_dir_suffix:" in
6504 ::) norm_lib_dir_suffix='.' ;;
6505 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6508 case $sdccconf_h_dir_separator in
6510 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6511 s,^[\\/],\\\\\\\\,'` ;;
6513 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6515 cat >>confdefs.h <<_ACEOF
6516 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6521 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6522 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6523 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6524 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6525 _lcl_receval="$_lcl_from"
6526 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6527 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6529 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6530 _lcl_receval_old="$_lcl_receval"
6531 eval _lcl_receval="\"$_lcl_receval\""
6533 echo "$_lcl_receval")`
6534 _lcl_receval="$_lcl_to"
6535 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6536 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6538 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6539 _lcl_receval_old="$_lcl_receval"
6540 eval _lcl_receval="\"$_lcl_receval\""
6542 echo "$_lcl_receval")`
6543 _lcl_notation="$_lcl_from$_lcl_to"
6544 case ":$_lcl_from:" in
6545 ::) _lcl_from='.' ;;
6546 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6551 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6552 s,^[\\/],\\\\\\\\,'` ;;
6554 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6556 case ":$_lcl_to:" in
6558 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6563 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6564 s,^[\\/],\\\\\\\\,'` ;;
6566 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6568 _lcl_common_prefix=''
6569 _lcl_second_prefix_match=''
6570 while test "$_lcl_second_prefix_match" != 0; do
6571 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6572 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6573 if test "$_lcl_second_prefix_match" != 0; then
6574 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6575 _lcl_common_prefix="$_lcl_first_prefix"
6577 _lcl_second_prefix_match=0
6581 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6584 while test "$_lcl_tmp" != ''; do
6585 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6586 if test "$_lcl_first_suffix" != ''; then
6587 _lcl_first_suffix="$_lcl_tmp"
6588 _lcl_first_rel="../$_lcl_first_rel"
6591 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6592 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6593 case ":$_lcl_result_tmp:" in
6594 ::) _lcl_result_tmp='.' ;;
6595 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6598 case "$_lcl_notation" in
6600 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6601 s,^[\\/],\\\\\\\\,'` ;;
6603 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6605 eval $_lcl_result_var='$_lcl_result_tmp'
6607 case ":$bin2data_dir:" in
6608 ::) bin2data_dir='.' ;;
6609 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6612 case $sdccconf_h_dir_separator in
6614 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6615 s,^[\\/],\\\\\\\\,'` ;;
6617 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6619 cat >>confdefs.h <<_ACEOF
6620 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6624 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6625 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6626 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6627 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6628 _lcl_receval="$_lcl_from"
6629 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6630 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6632 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6633 _lcl_receval_old="$_lcl_receval"
6634 eval _lcl_receval="\"$_lcl_receval\""
6636 echo "$_lcl_receval")`
6637 _lcl_receval="$_lcl_to"
6638 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6639 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6641 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6642 _lcl_receval_old="$_lcl_receval"
6643 eval _lcl_receval="\"$_lcl_receval\""
6645 echo "$_lcl_receval")`
6646 _lcl_notation="$_lcl_from$_lcl_to"
6647 case ":$_lcl_from:" in
6648 ::) _lcl_from='.' ;;
6649 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6654 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6655 s,^[\\/],\\\\\\\\,'` ;;
6657 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6659 case ":$_lcl_to:" in
6661 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6666 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6667 s,^[\\/],\\\\\\\\,'` ;;
6669 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6671 _lcl_common_prefix=''
6672 _lcl_second_prefix_match=''
6673 while test "$_lcl_second_prefix_match" != 0; do
6674 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6675 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6676 if test "$_lcl_second_prefix_match" != 0; then
6677 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6678 _lcl_common_prefix="$_lcl_first_prefix"
6680 _lcl_second_prefix_match=0
6684 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6687 while test "$_lcl_tmp" != ''; do
6688 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6689 if test "$_lcl_first_suffix" != ''; then
6690 _lcl_first_suffix="$_lcl_tmp"
6691 _lcl_first_rel="../$_lcl_first_rel"
6694 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6695 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6696 case ":$_lcl_result_tmp:" in
6697 ::) _lcl_result_tmp='.' ;;
6698 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6701 case "$_lcl_notation" in
6703 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6704 s,^[\\/],\\\\\\\\,'` ;;
6706 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6708 eval $_lcl_result_var='$_lcl_result_tmp'
6710 case ":$prefix2bin_dir:" in
6711 ::) prefix2bin_dir='.' ;;
6712 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6715 case $sdccconf_h_dir_separator in
6717 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6718 s,^[\\/],\\\\\\\\,'` ;;
6720 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6722 cat >>confdefs.h <<_ACEOF
6723 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6727 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6728 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6729 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6730 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6731 _lcl_receval="$_lcl_from"
6732 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6733 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6735 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6736 _lcl_receval_old="$_lcl_receval"
6737 eval _lcl_receval="\"$_lcl_receval\""
6739 echo "$_lcl_receval")`
6740 _lcl_receval="$_lcl_to"
6741 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6742 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6744 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6745 _lcl_receval_old="$_lcl_receval"
6746 eval _lcl_receval="\"$_lcl_receval\""
6748 echo "$_lcl_receval")`
6749 _lcl_notation="$_lcl_from$_lcl_to"
6750 case ":$_lcl_from:" in
6751 ::) _lcl_from='.' ;;
6752 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6757 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6758 s,^[\\/],\\\\\\\\,'` ;;
6760 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6762 case ":$_lcl_to:" in
6764 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6769 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6770 s,^[\\/],\\\\\\\\,'` ;;
6772 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6774 _lcl_common_prefix=''
6775 _lcl_second_prefix_match=''
6776 while test "$_lcl_second_prefix_match" != 0; do
6777 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6778 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6779 if test "$_lcl_second_prefix_match" != 0; then
6780 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6781 _lcl_common_prefix="$_lcl_first_prefix"
6783 _lcl_second_prefix_match=0
6787 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6790 while test "$_lcl_tmp" != ''; do
6791 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6792 if test "$_lcl_first_suffix" != ''; then
6793 _lcl_first_suffix="$_lcl_tmp"
6794 _lcl_first_rel="../$_lcl_first_rel"
6797 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6798 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6799 case ":$_lcl_result_tmp:" in
6800 ::) _lcl_result_tmp='.' ;;
6801 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6804 case "$_lcl_notation" in
6806 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6807 s,^[\\/],\\\\\\\\,'` ;;
6809 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6811 eval $_lcl_result_var='$_lcl_result_tmp'
6813 case ":$prefix2data_dir:" in
6814 ::) prefix2data_dir='.' ;;
6815 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6818 case $sdccconf_h_dir_separator in
6820 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6821 s,^[\\/],\\\\\\\\,'` ;;
6823 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6825 if test "${prefix2data_dir}" = "."; then
6826 # small optimization for Mingw32; otherwise Borut will complain ;-)
6827 cat >>confdefs.h <<_ACEOF
6828 #define PREFIX2DATA_DIR ""
6832 cat >>confdefs.h <<_ACEOF
6833 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6839 cat >>confdefs.h <<_ACEOF
6840 #define STD_LIB "libsdcc"
6843 cat >>confdefs.h <<_ACEOF
6844 #define STD_INT_LIB "libint"
6847 cat >>confdefs.h <<_ACEOF
6848 #define STD_LONG_LIB "liblong"
6851 cat >>confdefs.h <<_ACEOF
6852 #define STD_FP_LIB "libfloat"
6855 cat >>confdefs.h <<_ACEOF
6856 #define STD_DS390_LIB "libds390"
6859 cat >>confdefs.h <<_ACEOF
6860 #define STD_DS400_LIB "libds400"
6863 cat >>confdefs.h <<_ACEOF
6864 #define STD_XA51_LIB "libxa51"
6868 # SDCC runtime environment variables
6869 sdcc_dir_name="SDCC_HOME"
6870 cat >>confdefs.h <<_ACEOF
6871 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6875 sdcc_include_name="SDCC_INCLUDE"
6876 cat >>confdefs.h <<_ACEOF
6877 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6881 sdcc_lib_name="SDCC_LIB"
6882 cat >>confdefs.h <<_ACEOF
6883 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6887 # Port selection helper
6888 # ===========================================================================
6889 # macro AC_DO_ENABLER()
6890 # $1 used to access enable_$1, e.g. enable_doc
6891 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6895 # macro AC_DO_DISABLER()
6896 # $1 used to access disable_$1, e.g. ucsim
6897 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6901 # macro AC_DO_PORT($1, $2, $3, $4)
6902 # $1 used to access enable_$2_port, e.g. gbz80
6903 # $2 port name in ports.all and ports.build, e.g. z80
6904 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6908 # Now handle the port selection
6909 # ===========================================================================
6910 rm -f ports.all ports.build
6912 # Check whether --enable-mcs51-port was given.
6913 if test "${enable_mcs51_port+set}" = set; then
6914 enableval=$enable_mcs51_port;
6918 if test "$enable_mcs51_port" = "no"; then
6921 enable_mcs51_port="yes"
6925 cat >>confdefs.h <<_ACEOF
6926 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6931 echo mcs51 >>ports.all
6932 if test $OPT_DISABLE_MCS51 = 0; then
6933 echo mcs51 >>ports.build
6937 # Check whether --enable-gbz80-port was given.
6938 if test "${enable_gbz80_port+set}" = set; then
6939 enableval=$enable_gbz80_port;
6943 if test "$enable_gbz80_port" = "no"; then
6946 enable_gbz80_port="yes"
6950 cat >>confdefs.h <<_ACEOF
6951 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6956 echo z80 >>ports.all
6957 if test $OPT_DISABLE_GBZ80 = 0; then
6958 echo z80 >>ports.build
6962 # Check whether --enable-z80-port was given.
6963 if test "${enable_z80_port+set}" = set; then
6964 enableval=$enable_z80_port;
6968 if test "$enable_z80_port" = "no"; then
6971 enable_z80_port="yes"
6975 cat >>confdefs.h <<_ACEOF
6976 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6981 echo z80 >>ports.all
6982 if test $OPT_DISABLE_Z80 = 0; then
6983 echo z80 >>ports.build
6987 # Check whether --enable-avr-port was given.
6988 if test "${enable_avr_port+set}" = set; then
6989 enableval=$enable_avr_port;
6993 if test "$enable_avr_port" = "no"; then
6996 enable_avr_port="yes"
7000 cat >>confdefs.h <<_ACEOF
7001 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
7006 echo avr >>ports.all
7007 if test $OPT_DISABLE_AVR = 0; then
7008 echo avr >>ports.build
7012 # Check whether --enable-ds390-port was given.
7013 if test "${enable_ds390_port+set}" = set; then
7014 enableval=$enable_ds390_port;
7018 if test "$enable_ds390_port" = "no"; then
7021 enable_ds390_port="yes"
7025 cat >>confdefs.h <<_ACEOF
7026 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
7031 echo ds390 >>ports.all
7032 if test $OPT_DISABLE_DS390 = 0; then
7033 echo ds390 >>ports.build
7036 cat >>confdefs.h <<_ACEOF
7037 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
7041 # Check whether --enable-ds400-port was given.
7042 if test "${enable_ds400_port+set}" = set; then
7043 enableval=$enable_ds400_port;
7047 if test "$enable_ds400_port" = "no"; then
7050 enable_ds400_port="yes"
7054 cat >>confdefs.h <<_ACEOF
7055 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
7060 echo ds400 >>ports.all
7061 if test $OPT_DISABLE_DS400 = 0; then
7062 echo ds400 >>ports.build
7066 # Check whether --enable-pic-port was given.
7067 if test "${enable_pic_port+set}" = set; then
7068 enableval=$enable_pic_port;
7072 if test "$enable_pic_port" = "no"; then
7075 enable_pic_port="yes"
7079 cat >>confdefs.h <<_ACEOF
7080 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
7085 echo pic >>ports.all
7086 if test $OPT_DISABLE_PIC = 0; then
7087 echo pic >>ports.build
7091 # Check whether --enable-pic16-port was given.
7092 if test "${enable_pic16_port+set}" = set; then
7093 enableval=$enable_pic16_port;
7097 if test "$enable_pic16_port" = "no"; then
7100 enable_pic16_port="yes"
7104 cat >>confdefs.h <<_ACEOF
7105 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
7110 echo pic16 >>ports.all
7111 if test $OPT_DISABLE_PIC16 = 0; then
7112 echo pic16 >>ports.build
7116 # Check whether --enable-xa51-port was given.
7117 if test "${enable_xa51_port+set}" = set; then
7118 enableval=$enable_xa51_port;
7122 if test "$enable_xa51_port" = "no"; then
7125 enable_xa51_port="yes"
7129 cat >>confdefs.h <<_ACEOF
7130 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
7135 echo xa51 >>ports.all
7136 if test $OPT_DISABLE_XA51 = 0; then
7137 echo xa51 >>ports.build
7141 # Check whether --enable-hc08-port was given.
7142 if test "${enable_hc08_port+set}" = set; then
7143 enableval=$enable_hc08_port;
7147 if test "$enable_hc08_port" = "no"; then
7150 enable_hc08_port="yes"
7154 cat >>confdefs.h <<_ACEOF
7155 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
7160 echo hc08 >>ports.all
7161 if test $OPT_DISABLE_HC08 = 0; then
7162 echo hc08 >>ports.build
7167 # Check whether --enable-ucsim was given.
7168 if test "${enable_ucsim+set}" = set; then
7169 enableval=$enable_ucsim;
7173 arg1=`echo ucsim | sed s/-/_/`
7175 if test "`eval echo \\$enable_$arg1`" = "no"; then
7181 cat >>confdefs.h <<_ACEOF
7182 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
7188 # Check whether --enable-device-lib was given.
7189 if test "${enable_device_lib+set}" = set; then
7190 enableval=$enable_device_lib;
7194 arg1=`echo device-lib | sed s/-/_/`
7196 if test "`eval echo \\$enable_$arg1`" = "no"; then
7197 OPT_DISABLE_DEVICE_LIB=1
7199 OPT_DISABLE_DEVICE_LIB=0
7202 cat >>confdefs.h <<_ACEOF
7203 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
7209 # Check whether --enable-packihx was given.
7210 if test "${enable_packihx+set}" = set; then
7211 enableval=$enable_packihx;
7215 arg1=`echo packihx | sed s/-/_/`
7217 if test "`eval echo \\$enable_$arg1`" = "no"; then
7218 OPT_DISABLE_PACKIHX=1
7220 OPT_DISABLE_PACKIHX=0
7223 cat >>confdefs.h <<_ACEOF
7224 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
7230 # Check whether --enable-sdcpp was given.
7231 if test "${enable_sdcpp+set}" = set; then
7232 enableval=$enable_sdcpp;
7236 arg1=`echo sdcpp | sed s/-/_/`
7238 if test "`eval echo \\$enable_$arg1`" = "no"; then
7244 cat >>confdefs.h <<_ACEOF
7245 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
7251 # Check whether --enable-sdcdb was given.
7252 if test "${enable_sdcdb+set}" = set; then
7253 enableval=$enable_sdcdb;
7257 arg1=`echo sdcdb | sed s/-/_/`
7259 if test "`eval echo \\$enable_$arg1`" = "no"; then
7265 cat >>confdefs.h <<_ACEOF
7266 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
7273 # Check whether --enable-doc was given.
7274 if test "${enable_doc+set}" = set; then
7275 enableval=$enable_doc;
7279 if test "$enable_doc" = "yes"; then
7285 cat >>confdefs.h <<_ACEOF
7286 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
7291 # Extract the first word of "lyx", so it can be a program name with args.
7292 set dummy lyx; ac_word=$2
7293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if test "${ac_cv_prog_LYX+set}" = set; then
7296 $as_echo_n "(cached) " >&6
7298 if test -n "$LYX"; then
7299 ac_cv_prog_LYX="$LYX" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_prog_LYX="lyx"
7309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
7320 if test -n "$LYX"; then
7321 { $as_echo "$as_me:$LINENO: result: $LYX" >&5
7322 $as_echo "$LYX" >&6; }
7324 { $as_echo "$as_me:$LINENO: result: no" >&5
7325 $as_echo "no" >&6; }
7329 # Extract the first word of "latex2html", so it can be a program name with args.
7330 set dummy latex2html; ac_word=$2
7331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7334 $as_echo_n "(cached) " >&6
7336 if test -n "$LATEX2HTML"; then
7337 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346 ac_cv_prog_LATEX2HTML="latex2html"
7347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7357 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7358 if test -n "$LATEX2HTML"; then
7359 { $as_echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7360 $as_echo "$LATEX2HTML" >&6; }
7362 { $as_echo "$as_me:$LINENO: result: no" >&5
7363 $as_echo "no" >&6; }
7367 # Extract the first word of "pdflatex", so it can be a program name with args.
7368 set dummy pdflatex; ac_word=$2
7369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7372 $as_echo_n "(cached) " >&6
7374 if test -n "$PDFLATEX"; then
7375 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_PDFLATEX="pdflatex"
7385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7395 PDFLATEX=$ac_cv_prog_PDFLATEX
7396 if test -n "$PDFLATEX"; then
7397 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7398 $as_echo "$PDFLATEX" >&6; }
7400 { $as_echo "$as_me:$LINENO: result: no" >&5
7401 $as_echo "no" >&6; }
7405 # Extract the first word of "pdfopt", so it can be a program name with args.
7406 set dummy pdfopt; ac_word=$2
7407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7410 $as_echo_n "(cached) " >&6
7412 if test -n "$PDFOPT"; then
7413 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_prog_PDFOPT="pdfopt"
7423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7433 PDFOPT=$ac_cv_prog_PDFOPT
7434 if test -n "$PDFOPT"; then
7435 { $as_echo "$as_me:$LINENO: result: $PDFOPT" >&5
7436 $as_echo "$PDFOPT" >&6; }
7438 { $as_echo "$as_me:$LINENO: result: no" >&5
7439 $as_echo "no" >&6; }
7443 # Extract the first word of "makeindex", so it can be a program name with args.
7444 set dummy makeindex; ac_word=$2
7445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7448 $as_echo_n "(cached) " >&6
7450 if test -n "$MAKEINDEX"; then
7451 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_MAKEINDEX="makeindex"
7461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7471 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7472 if test -n "$MAKEINDEX"; then
7473 { $as_echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7474 $as_echo "$MAKEINDEX" >&6; }
7476 { $as_echo "$as_me:$LINENO: result: no" >&5
7477 $as_echo "no" >&6; }
7482 if test $OPT_ENABLE_DOC = 1; then
7483 if test "$LYX" = ":"; then
7484 { { $as_echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7485 $as_echo "$as_me: error: Cannot find required program lyx." >&2;}
7486 { (exit 1); exit 1; }; }
7489 if test "$LATEX2HTML" = ":"; then
7490 { { $as_echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7491 $as_echo "$as_me: error: Cannot find required program latex2html." >&2;}
7492 { (exit 1); exit 1; }; }
7495 if test "$PDFLATEX" = ":"; then
7496 { { $as_echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7497 $as_echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7498 { (exit 1); exit 1; }; }
7501 if test "$PDFOPT" = ":"; then
7502 { { $as_echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7503 $as_echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7504 { (exit 1); exit 1; }; }
7507 if test "$MAKEINDEX" = ":"; then
7508 { { $as_echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7509 $as_echo "$as_me: error: Cannot find required program makeindex." >&2;}
7510 { (exit 1); exit 1; }; }
7516 # Check whether --enable-libgc was given.
7517 if test "${enable_libgc+set}" = set; then
7518 enableval=$enable_libgc;
7522 if test "$enable_libgc" = "yes"; then
7528 cat >>confdefs.h <<_ACEOF
7529 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7534 if test $OPT_ENABLE_LIBGC = 1; then
7536 { $as_echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7537 $as_echo_n "checking for GC_malloc in -lgc... " >&6; }
7538 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7539 $as_echo_n "(cached) " >&6
7541 ac_check_lib_save_LIBS=$LIBS
7543 cat >conftest.$ac_ext <<_ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7550 /* Override any GCC internal prototype to avoid an error.
7551 Use char because int might match the return type of a GCC
7552 builtin and then its argument prototype would still apply. */
7560 return GC_malloc ();
7565 rm -f conftest.$ac_objext conftest$ac_exeext
7566 if { (ac_try="$ac_link"
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7572 $as_echo "$ac_try_echo") >&5
7573 (eval "$ac_link") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest$ac_exeext && {
7583 test "$cross_compiling" = yes ||
7584 $as_test_x conftest$ac_exeext
7586 ac_cv_lib_gc_GC_malloc=yes
7588 $as_echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_cv_lib_gc_GC_malloc=no
7594 rm -rf conftest.dSYM
7595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7596 conftest$ac_exeext conftest.$ac_ext
7597 LIBS=$ac_check_lib_save_LIBS
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7600 $as_echo "$ac_cv_lib_gc_GC_malloc" >&6; }
7601 if test "x$ac_cv_lib_gc_GC_malloc" = x""yes; then
7602 cat >>confdefs.h <<_ACEOF
7603 #define HAVE_LIBGC 1
7610 if test $ac_cv_lib_gc_GC_malloc = no; then
7611 { { $as_echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7612 $as_echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7613 { (exit 1); exit 1; }; }
7618 uniq ports.all ports
7620 uniq ports.build ports
7621 mv ports ports.build
7623 # Generating output files
7624 # ===========================================================================
7625 test $OPT_DISABLE_SDCPP = 0 &&
7627 subdirs="$subdirs support/cpp"
7629 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
7631 test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim"
7633 test $OPT_DISABLE_SDCDB = 0 && subdirs="$subdirs debugger/mcs51"
7635 ac_config_files="$ac_config_files doc/Makefile"
7638 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7641 if test $OPT_DISABLE_DS390 = 0; then
7642 ac_config_files="$ac_config_files src/ds390/Makefile"
7644 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7648 if test $OPT_DISABLE_DS400 = 0; then
7649 ac_config_files="$ac_config_files src/ds400/Makefile"
7651 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7655 if test $OPT_DISABLE_HC08 = 0; then
7656 ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7658 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7662 if test $OPT_DISABLE_MCS51 = 0; then
7663 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7665 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"
7669 if test $OPT_DISABLE_PIC = 0; then
7670 ac_config_files="$ac_config_files src/pic/Makefile"
7672 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic"
7675 if test $OPT_DISABLE_PIC16 = 0; then
7676 ac_config_files="$ac_config_files src/pic16/Makefile"
7678 test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
7682 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7685 if test $OPT_DISABLE_Z80 = 0; then
7686 ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7688 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7692 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7695 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile device/include/Makefile as/asranlib/Makefile support/librarian/Makefile support/makebin/Makefile support/regression/Makefile support/valdiag/Makefile Makefile Makefile.common:Makefile.common.in"
7697 cat >confcache <<\_ACEOF
7698 # This file is a shell script that caches the results of configure
7699 # tests run on this system so they can be shared between configure
7700 # scripts and configure runs, see configure's option --config-cache.
7701 # It is not useful on other systems. If it contains results you don't
7702 # want to keep, you may remove or edit it.
7704 # config.status only pays attention to the cache file if you give it
7705 # the --recheck option to rerun configure.
7707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7713 # The following way of writing the cache mishandles newlines in values,
7714 # but we know of no workaround that is simple, portable, and efficient.
7715 # So, we kill variables containing newlines.
7716 # Ultrix sh set writes to stderr and can't be redirected directly,
7717 # and sets the high bit in the cache file unless we assign to the vars.
7719 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7720 eval ac_val=\$$ac_var
7724 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
7725 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7728 _ | IFS | as_nl) ;; #(
7729 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7730 *) $as_unset $ac_var ;;
7736 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7737 *${as_nl}ac_space=\ *)
7738 # `set' does not quote correctly, so add quotes (double-quote
7739 # substitution turns \\\\ into \\, and sed turns \\ into \).
7742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7745 # `set' quotes correctly as required by POSIX, so do not add quotes.
7746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7759 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7760 if test -w "$cache_file"; then
7761 test "x$cache_file" != "x/dev/null" &&
7762 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7763 $as_echo "$as_me: updating cache $cache_file" >&6;}
7764 cat confcache >$cache_file
7766 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7773 # Let make expand exec_prefix.
7774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7776 DEFS=-DHAVE_CONFIG_H
7780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7781 # 1. Remove the extension, and $U if already installed.
7782 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7783 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7785 # will be set to the directory where LIBOBJS objects are built.
7786 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7787 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7791 LTLIBOBJS=$ac_ltlibobjs
7795 : ${CONFIG_STATUS=./config.status}
7797 ac_clean_files_save=$ac_clean_files
7798 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7799 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7800 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7801 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7803 # Generated by $as_me.
7804 # Run this file to recreate the current configuration.
7805 # Compiler output produced by configure, useful for debugging
7806 # configure, is in config.log if it exists.
7811 SHELL=\${CONFIG_SHELL-$SHELL}
7814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7815 ## --------------------- ##
7816 ## M4sh Initialization. ##
7817 ## --------------------- ##
7819 # Be more Bourne compatible
7820 DUALCASE=1; export DUALCASE # for MKS sh
7821 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7824 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7825 # is contrary to our usage. Disable this feature.
7826 alias -g '${1+"$@"}'='"$@"'
7827 setopt NO_GLOB_SUBST
7829 case `(set -o) 2>/dev/null` in
7830 *posix*) set -o posix ;;
7839 # Avoid depending upon Character Ranges.
7840 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7841 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7842 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7843 as_cr_digits='0123456789'
7844 as_cr_alnum=$as_cr_Letters$as_cr_digits
7849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7850 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7853 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7854 as_echo='printf %s\n'
7855 as_echo_n='printf %s'
7857 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7858 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7859 as_echo_n='/usr/ucb/echo -n'
7861 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7862 as_echo_n_body='eval
7866 expr "X$arg" : "X\\(.*\\)$as_nl";
7867 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7869 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7871 export as_echo_n_body
7872 as_echo_n='sh -c $as_echo_n_body as_echo'
7875 as_echo='sh -c $as_echo_body as_echo'
7878 # The user is always right.
7879 if test "${PATH_SEPARATOR+set}" != set; then
7881 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7882 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7887 # Support unset when possible.
7888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7896 # We need space, tab and new line, in precisely that order. Quoting is
7897 # there to prevent editors from complaining about space-tab.
7898 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7899 # splitting by setting IFS to empty value.)
7902 # Find who we are. Look in the path if we contain no directory separator.
7904 *[\\/]* ) as_myself=$0 ;;
7905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 test -z "$as_dir" && as_dir=.
7910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7916 # We did not find ourselves, most probably we were run as `sh COMMAND'
7917 # in which case we are not to be found in the path.
7918 if test "x$as_myself" = x; then
7921 if test ! -f "$as_myself"; then
7922 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7923 { (exit 1); exit 1; }
7926 # Work around bugs in pre-3.0 UWIN ksh.
7927 for as_var in ENV MAIL MAILPATH
7928 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7940 # Required to use basename.
7941 if expr a : '\(a\)' >/dev/null 2>&1 &&
7942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7948 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7949 as_basename=basename
7955 # Name of the executable.
7956 as_me=`$as_basename -- "$0" ||
7957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7958 X"$0" : 'X\(//\)$' \| \
7959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7961 sed '/^.*\/\([^/][^/]*\)\/*$/{
7982 test "x$as_lineno_1" != "x$as_lineno_2" &&
7983 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7985 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7986 # uniformly replaced by the line number. The first 'sed' inserts a
7987 # line-number line after each line using $LINENO; the second 'sed'
7988 # does the real work. The second script uses 'N' to pair each
7989 # line-number line with the line containing $LINENO, and appends
7990 # trailing '-' during substitution so that $LINENO is not a special
7992 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7993 # scripts with optimization help from Paolo Bonzini. Blame Lee
7994 # E. McMahon (1931-1989) for sed's syntax. :-)
8006 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8010 chmod +x "$as_me.lineno" ||
8011 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8012 { (exit 1); exit 1; }; }
8014 # Don't try to exec as it changes $[0], causing all sort of problems
8015 # (the dirname of $[0] is not the place where we might find the
8016 # original and so on. Autoconf is especially sensitive to this).
8018 # Exit status is that of the last command.
8023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8029 ECHO_C= ECHO_N= ECHO_T=
8032 case `echo 'x\c'` in
8033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8039 if expr a : '\(a\)' >/dev/null 2>&1 &&
8040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8046 rm -f conf$$ conf$$.exe conf$$.file
8047 if test -d conf$$.dir; then
8048 rm -f conf$$.dir/conf$$.file
8051 mkdir conf$$.dir 2>/dev/null
8053 if (echo >conf$$.file) 2>/dev/null; then
8054 if ln -s conf$$.file conf$$ 2>/dev/null; then
8056 # ... but there are two gotchas:
8057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8059 # In both cases, we have to default to `cp -p'.
8060 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8062 elif ln conf$$.file conf$$ 2>/dev/null; then
8070 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8071 rmdir conf$$.dir 2>/dev/null
8073 if mkdir -p . 2>/dev/null; then
8076 test -d ./-p && rmdir ./-p
8080 if test -x / >/dev/null 2>&1; then
8083 if ls -dL / >/dev/null 2>&1; then
8090 if test -d "$1"; then
8096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8097 ???[sx]*):;;*)false;;esac;fi
8101 as_executable_p=$as_test_x
8103 # Sed expression to map a string onto a valid CPP name.
8104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8106 # Sed expression to map a string onto a valid variable name.
8107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8112 # Save the log message, to keep $[0] and so on meaningful, and to
8113 # report actual input values of CONFIG_FILES etc. instead of their
8114 # values after options handling.
8116 This file was extended by $as_me, which was
8117 generated by GNU Autoconf 2.63. Invocation command line was
8119 CONFIG_FILES = $CONFIG_FILES
8120 CONFIG_HEADERS = $CONFIG_HEADERS
8121 CONFIG_LINKS = $CONFIG_LINKS
8122 CONFIG_COMMANDS = $CONFIG_COMMANDS
8125 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8130 case $ac_config_files in *"
8131 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8134 case $ac_config_headers in *"
8135 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8140 # Files that config.status was made for.
8141 config_files="$ac_config_files"
8142 config_headers="$ac_config_headers"
8146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8148 \`$as_me' instantiates files from templates according to the
8149 current configuration.
8151 Usage: $0 [OPTION]... [FILE]...
8153 -h, --help print this help, then exit
8154 -V, --version print version number and configuration settings, then exit
8155 -q, --quiet, --silent
8156 do not print progress messages
8157 -d, --debug don't remove temporary files
8158 --recheck update $as_me by reconfiguring in the same conditions
8159 --file=FILE[:TEMPLATE]
8160 instantiate the configuration file FILE
8161 --header=FILE[:TEMPLATE]
8162 instantiate the configuration header FILE
8164 Configuration files:
8167 Configuration headers:
8170 Report bugs to <bug-autoconf@gnu.org>."
8173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8176 configured by $0, generated by GNU Autoconf 2.63,
8177 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8179 Copyright (C) 2008 Free Software Foundation, Inc.
8180 This config.status script is free software; the Free Software Foundation
8181 gives unlimited permission to copy, distribute and modify it."
8187 test -n "\$AWK" || AWK=awk
8190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8191 # The default lists apply if the user does not specify any file.
8197 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8198 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8209 # Handling of the options.
8210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8212 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8213 $as_echo "$ac_cs_version"; exit ;;
8214 --debug | --debu | --deb | --de | --d | -d )
8216 --file | --fil | --fi | --f )
8219 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8221 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
8222 ac_need_defaults=false;;
8223 --header | --heade | --head | --hea )
8226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8228 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
8229 ac_need_defaults=false;;
8231 # Conflict between --help and --header
8232 { $as_echo "$as_me: error: ambiguous option: $1
8233 Try \`$0 --help' for more information." >&2
8234 { (exit 1); exit 1; }; };;
8235 --help | --hel | -h )
8236 $as_echo "$ac_cs_usage"; exit ;;
8237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8238 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8242 -*) { $as_echo "$as_me: error: unrecognized option: $1
8243 Try \`$0 --help' for more information." >&2
8244 { (exit 1); exit 1; }; } ;;
8246 *) ac_config_targets="$ac_config_targets $1"
8247 ac_need_defaults=false ;;
8253 ac_configure_extra_args=
8255 if $ac_cs_silent; then
8257 ac_configure_extra_args="$ac_configure_extra_args --silent"
8261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8262 if \$ac_cs_recheck; then
8263 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8265 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8266 CONFIG_SHELL='$SHELL'
8272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8277 ## Running $as_me. ##
8283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8288 # Handling of arguments.
8289 for ac_config_target in $ac_config_targets
8291 case $ac_config_target in
8292 "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8293 "as/link/asxxxx_config.h") CONFIG_HEADERS="$CONFIG_HEADERS as/link/asxxxx_config.h" ;;
8294 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8295 "src/avr/Makefile") CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
8296 "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
8297 "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
8298 "src/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
8299 "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
8300 "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
8301 "as/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8302 "as/link/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
8303 "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
8304 "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
8305 "as/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8306 "as/link/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
8307 "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
8308 "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
8309 "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
8310 "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
8311 "src/pic/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
8312 "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
8313 "src/xa51/Makefile") CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
8314 "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
8315 "as/Makefile") CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
8316 "as/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
8317 "as/link/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
8318 "as/link/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
8319 "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
8320 "device/lib/gbz80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
8321 "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8322 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8323 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8324 "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8325 "as/asranlib/Makefile") CONFIG_FILES="$CONFIG_FILES as/asranlib/Makefile" ;;
8326 "support/librarian/Makefile") CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
8327 "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
8328 "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8329 "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
8330 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8331 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8333 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8334 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8335 { (exit 1); exit 1; }; };;
8340 # If the user did not use the arguments to specify the items to instantiate,
8341 # then the envvar interface is used. Set only those that are not.
8342 # We use the long form for the default assignment because of an extremely
8343 # bizarre bug on SunOS 4.1.3.
8344 if $ac_need_defaults; then
8345 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8346 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8349 # Have a temporary directory for convenience. Make it in the build tree
8350 # simply because there is no reason against having it here, and in addition,
8351 # creating and moving files from /tmp can sometimes cause problems.
8352 # Hook for its removal unless debugging.
8353 # Note that there is a small window in which the directory will not be cleaned:
8354 # after its creation but before its name has been assigned to `$tmp'.
8358 trap 'exit_status=$?
8359 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8361 trap '{ (exit 1); exit 1; }' 1 2 13 15
8363 # Create a (secure) tmp directory for tmp files.
8366 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8367 test -n "$tmp" && test -d "$tmp"
8370 tmp=./conf$$-$RANDOM
8371 (umask 077 && mkdir "$tmp")
8374 $as_echo "$as_me: cannot create a temporary directory in ." >&2
8375 { (exit 1); exit 1; }
8378 # Set up the scripts for CONFIG_FILES section.
8379 # No need to generate them if there are no CONFIG_FILES.
8380 # This happens for instance with `./config.status config.h'.
8381 if test -n "$CONFIG_FILES"; then
8386 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8387 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8393 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8398 echo "cat >conf$$subs.awk <<_ACEOF" &&
8399 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8402 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8403 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8404 { (exit 1); exit 1; }; }
8405 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8407 for ac_last_try in false false false false false :; do
8408 . ./conf$$subs.sh ||
8409 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8410 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8411 { (exit 1); exit 1; }; }
8413 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8414 if test $ac_delim_n = $ac_delim_num; then
8416 elif $ac_last_try; then
8417 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8418 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8419 { (exit 1); exit 1; }; }
8421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8427 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8431 s/^/S["/; s/!.*/"]=/
8441 s/\(.\{148\}\).*/\1/
8443 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8455 s/\(.\{148\}\).*/\1/
8457 s/["\\]/\\&/g; s/^/"/; s/$/"/
8461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8466 ' <conf$$subs.awk | sed '
8471 ' >>$CONFIG_STATUS || ac_write_fail=1
8472 rm -f conf$$subs.awk
8473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8475 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8476 for (key in S) S_is_set[key] = 1
8482 nfields = split(line, field, "@")
8484 len = length(field[1])
8485 for (i = 2; i < nfields; i++) {
8487 keylen = length(key)
8488 if (S_is_set[key]) {
8490 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8491 len += length(value) + length(field[++i])
8502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8503 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8504 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8507 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8508 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
8509 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
8510 { (exit 1); exit 1; }; }
8513 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8514 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8515 # trailing colons and then remove the whole line if VPATH becomes empty
8516 # (actually we leave an empty line to preserve line numbers).
8517 if test "x$srcdir" = x.; then
8518 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8522 s/^\([^=]*=[ ]*\):*/\1/
8528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8529 fi # test -n "$CONFIG_FILES"
8531 # Set up the scripts for CONFIG_HEADERS section.
8532 # No need to generate them if there are no CONFIG_HEADERS.
8533 # This happens for instance with `./config.status Makefile'.
8534 if test -n "$CONFIG_HEADERS"; then
8535 cat >"$tmp/defines.awk" <<\_ACAWK ||
8539 # Transform confdefs.h into an awk script `defines.awk', embedded as
8540 # here-document in config.status, that substitutes the proper values into
8541 # config.h.in to produce config.h.
8543 # Create a delimiter string that does not exist in confdefs.h, to ease
8544 # handling of long lines.
8546 for ac_last_try in false false :; do
8547 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8548 if test -z "$ac_t"; then
8550 elif $ac_last_try; then
8551 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
8552 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
8553 { (exit 1); exit 1; }; }
8555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8559 # For the awk script, D is an array of macro values keyed by name,
8560 # likewise P contains macro parameters if any. Preserve backslash
8561 # newline sequences.
8563 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8565 s/.\{148\}/&'"$ac_delim"'/g
8568 s/^[ ]*#[ ]*define[ ][ ]*/ /
8575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8577 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8581 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8582 D["\1"]=" \3\\\\\\n"\\/p
8584 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8589 s/.\{148\}/&'"$ac_delim"'/g
8594 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8597 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8599 ' <confdefs.h | sed '
8600 s/'"$ac_delim"'/"\\\
8601 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8604 for (key in D) D_is_set[key] = 1
8607 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8609 split(line, arg, " ")
8610 if (arg[1] == "#") {
8614 defundef = substr(arg[1], 2)
8617 split(mac1, mac2, "(") #)
8619 prefix = substr(line, 1, index(line, defundef) - 1)
8620 if (D_is_set[macro]) {
8621 # Preserve the white space surrounding the "#".
8622 print prefix "define", macro P[macro] D[macro]
8625 # Replace #undef with comments. This is necessary, for example,
8626 # in the case of _POSIX_SOURCE, which is predefined and required
8627 # on some systems where configure will not decide to define it.
8628 if (defundef == "undef") {
8629 print "/*", prefix defundef, macro, "*/"
8637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8638 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
8639 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
8640 { (exit 1); exit 1; }; }
8641 fi # test -n "$CONFIG_HEADERS"
8644 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8649 :[FHLC]) ac_mode=$ac_tag; continue;;
8651 case $ac_mode$ac_tag in
8653 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
8654 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
8655 { (exit 1); exit 1; }; };;
8656 :[FH]-) ac_tag=-:-;;
8657 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8674 -) ac_f="$tmp/stdin";;
8675 *) # Look for the file first in the build tree, then in the source tree
8676 # (if the path is not absolute). The absolute path cannot be DOS-style,
8677 # because $ac_f cannot contain `:'.
8681 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8683 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8684 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8685 { (exit 1); exit 1; }; };;
8687 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8688 ac_file_inputs="$ac_file_inputs '$ac_f'"
8691 # Let's still pretend it is `configure' which instantiates (i.e., don't
8692 # use $as_me), people would be surprised to read:
8693 # /* config.h. Generated by config.status. */
8694 configure_input='Generated from '`
8695 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8697 if test x"$ac_file" != x-; then
8698 configure_input="$ac_file. $configure_input"
8699 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
8700 $as_echo "$as_me: creating $ac_file" >&6;}
8702 # Neutralize special characters interpreted by sed in replacement strings.
8703 case $configure_input in #(
8704 *\&* | *\|* | *\\* )
8705 ac_sed_conf_input=`$as_echo "$configure_input" |
8706 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8707 *) ac_sed_conf_input=$configure_input;;
8711 *:-:* | *:-) cat >"$tmp/stdin" \
8712 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8713 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8714 { (exit 1); exit 1; }; } ;;
8719 ac_dir=`$as_dirname -- "$ac_file" ||
8720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8721 X"$ac_file" : 'X\(//\)[^/]' \| \
8722 X"$ac_file" : 'X\(//\)$' \| \
8723 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8724 $as_echo X"$ac_file" |
8725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8744 -*) as_dir=./$as_dir;;
8746 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8750 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8751 *) as_qdir=$as_dir;;
8753 as_dirs="'$as_qdir' $as_dirs"
8754 as_dir=`$as_dirname -- "$as_dir" ||
8755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8756 X"$as_dir" : 'X\(//\)[^/]' \| \
8757 X"$as_dir" : 'X\(//\)$' \| \
8758 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8759 $as_echo X"$as_dir" |
8760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8777 test -d "$as_dir" && break
8779 test -z "$as_dirs" || eval "mkdir $as_dirs"
8780 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8781 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8782 { (exit 1); exit 1; }; }; }
8786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8788 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8789 # A ".." for each directory in $ac_dir_suffix.
8790 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8791 case $ac_top_builddir_sub in
8792 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8793 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8796 ac_abs_top_builddir=$ac_pwd
8797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8798 # for backward compatibility:
8799 ac_top_builddir=$ac_top_build_prefix
8802 .) # We are building in place.
8804 ac_top_srcdir=$ac_top_builddir_sub
8805 ac_abs_top_srcdir=$ac_pwd ;;
8806 [\\/]* | ?:[\\/]* ) # Absolute name.
8807 ac_srcdir=$srcdir$ac_dir_suffix;
8808 ac_top_srcdir=$srcdir
8809 ac_abs_top_srcdir=$srcdir ;;
8811 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8812 ac_top_srcdir=$ac_top_build_prefix$srcdir
8813 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8825 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8826 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8831 # If the template does not know about datarootdir, expand it.
8832 # FIXME: This hack should be removed a few years after 2.60.
8833 ac_datarootdir_hack=; ac_datarootdir_seen=
8846 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8847 *datarootdir*) ac_datarootdir_seen=yes;;
8848 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8849 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8850 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8853 ac_datarootdir_hack='
8854 s&@datadir@&$datadir&g
8855 s&@docdir@&$docdir&g
8856 s&@infodir@&$infodir&g
8857 s&@localedir@&$localedir&g
8858 s&@mandir@&$mandir&g
8859 s&\\\${datarootdir}&$datarootdir&g' ;;
8863 # Neutralize VPATH when `$srcdir' = `.'.
8864 # Shell code in configure.ac might set extrasub.
8865 # FIXME: do we really want to maintain this feature?
8866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8867 ac_sed_extra="$ac_vpsub
8870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8873 s|@configure_input@|$ac_sed_conf_input|;t t
8874 s&@top_builddir@&$ac_top_builddir_sub&;t t
8875 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8876 s&@srcdir@&$ac_srcdir&;t t
8877 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8878 s&@top_srcdir@&$ac_top_srcdir&;t t
8879 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8880 s&@builddir@&$ac_builddir&;t t
8881 s&@abs_builddir@&$ac_abs_builddir&;t t
8882 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8883 s&@INSTALL@&$ac_INSTALL&;t t
8884 $ac_datarootdir_hack
8886 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8889 { (exit 1); exit 1; }; }
8891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8892 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8894 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8895 which seems to be undefined. Please make sure it is defined." >&5
8896 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8897 which seems to be undefined. Please make sure it is defined." >&2;}
8901 -) cat "$tmp/out" && rm -f "$tmp/out";;
8902 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8904 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8905 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8906 { (exit 1); exit 1; }; }
8912 if test x"$ac_file" != x-; then
8914 $as_echo "/* $configure_input */" \
8915 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8916 } >"$tmp/config.h" \
8917 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8918 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8919 { (exit 1); exit 1; }; }
8920 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8921 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8922 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8925 mv "$tmp/config.h" "$ac_file" \
8926 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8927 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8928 { (exit 1); exit 1; }; }
8931 $as_echo "/* $configure_input */" \
8932 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8933 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
8934 $as_echo "$as_me: error: could not create -" >&2;}
8935 { (exit 1); exit 1; }; }
8945 { (exit 0); exit 0; }
8947 chmod +x $CONFIG_STATUS
8948 ac_clean_files=$ac_clean_files_save
8950 test $ac_write_fail = 0 ||
8951 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
8952 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
8953 { (exit 1); exit 1; }; }
8956 # configure is writing to config.log, and then calls config.status.
8957 # config.status does its own redirection, appending to config.log.
8958 # Unfortunately, on DOS this fails, as config.log is still kept open
8959 # by configure, so config.status won't be able to write to it; its
8960 # output is simply discarded. So we exec the FD to /dev/null,
8961 # effectively closing config.log, so it can be properly (re)opened and
8962 # appended to by config.status. When coming back to configure, we
8963 # need to make the FD available again.
8964 if test "$no_create" != yes; then
8966 ac_config_status_args=
8967 test "$silent" = yes &&
8968 ac_config_status_args="$ac_config_status_args --quiet"
8970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8973 # would make configure fail if this is the last instruction.
8974 $ac_cs_success || { (exit 1); exit 1; }
8978 # CONFIG_SUBDIRS section.
8980 if test "$no_recursion" != yes; then
8982 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8983 # so they do not pile up.
8984 ac_sub_configure_args=
8986 eval "set x $ac_configure_args"
8990 if test -n "$ac_prev"; then
8995 -cache-file | --cache-file | --cache-fil | --cache-fi \
8996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8997 ac_prev=cache_file ;;
8998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9002 --config-cache | -C)
9004 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9006 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9012 --disable-option-checking)
9016 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9018 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9022 # Always prepend --prefix to ensure using the same prefix
9023 # in subdir configurations.
9024 ac_arg="--prefix=$prefix"
9026 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9028 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9031 if test "$silent" = yes; then
9032 ac_sub_configure_args="--silent $ac_sub_configure_args"
9035 # Always prepend --disable-option-checking to silence warnings, since
9036 # different subdirs can have different --enable and --with options.
9037 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9040 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9042 # Do not complain, so a configure script can configure whichever
9043 # parts of a large source tree are present.
9044 test -d "$srcdir/$ac_dir" || continue
9046 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9047 $as_echo "$as_me:$LINENO: $ac_msg" >&5
9048 $as_echo "$ac_msg" >&6
9051 -*) as_dir=./$as_dir;;
9053 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9057 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9058 *) as_qdir=$as_dir;;
9060 as_dirs="'$as_qdir' $as_dirs"
9061 as_dir=`$as_dirname -- "$as_dir" ||
9062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9063 X"$as_dir" : 'X\(//\)[^/]' \| \
9064 X"$as_dir" : 'X\(//\)$' \| \
9065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9066 $as_echo X"$as_dir" |
9067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9084 test -d "$as_dir" && break
9086 test -z "$as_dirs" || eval "mkdir $as_dirs"
9087 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9088 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9089 { (exit 1); exit 1; }; }; }
9093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9096 # A ".." for each directory in $ac_dir_suffix.
9097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9098 case $ac_top_builddir_sub in
9099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9103 ac_abs_top_builddir=$ac_pwd
9104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9105 # for backward compatibility:
9106 ac_top_builddir=$ac_top_build_prefix
9109 .) # We are building in place.
9111 ac_top_srcdir=$ac_top_builddir_sub
9112 ac_abs_top_srcdir=$ac_pwd ;;
9113 [\\/]* | ?:[\\/]* ) # Absolute name.
9114 ac_srcdir=$srcdir$ac_dir_suffix;
9115 ac_top_srcdir=$srcdir
9116 ac_abs_top_srcdir=$srcdir ;;
9118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9119 ac_top_srcdir=$ac_top_build_prefix$srcdir
9120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9127 # Check for guested configure; otherwise get Cygnus style configure.
9128 if test -f "$ac_srcdir/configure.gnu"; then
9129 ac_sub_configure=$ac_srcdir/configure.gnu
9130 elif test -f "$ac_srcdir/configure"; then
9131 ac_sub_configure=$ac_srcdir/configure
9132 elif test -f "$ac_srcdir/configure.in"; then
9133 # This should be Cygnus configure.
9134 ac_sub_configure=$ac_aux_dir/configure
9136 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9137 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9141 # The recursion is here.
9142 if test -n "$ac_sub_configure"; then
9143 # Make the cache file name correct relative to the subdirectory.
9145 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9147 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9150 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9151 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9152 # The eval makes quoting arguments work.
9153 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9154 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9155 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9156 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9157 { (exit 1); exit 1; }; }
9163 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9164 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9165 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9169 # I found no better place
9172 # Prepare result message
9173 # ======================
9175 # In the C-header we need \\ as dir-separator, but in the message only \
9176 dirch=${sdccconf_h_dir_separator}
9177 test ${dirch} = '\\' && dirch='\'
9179 # calc friendly strings
9181 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
9182 case ":$binPath:" in
9184 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
9189 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9190 s,^[\\/],\\\\\\\\,'` ;;
9192 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9194 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
9197 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9198 case ":$incPath1:" in
9200 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
9205 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9206 s,^[\\/],\\\\\\\\,'` ;;
9208 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9210 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
9213 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9214 case ":$incPath2:" in
9216 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
9221 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9222 s,^[\\/],\\\\\\\\,'` ;;
9224 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9226 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
9229 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9230 case ":$incPath3:" in
9232 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
9237 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9238 s,^[\\/],\\\\\\\\,'` ;;
9240 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9242 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
9245 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9246 case ":$libPath1:" in
9248 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
9253 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9254 s,^[\\/],\\\\\\\\,'` ;;
9256 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9258 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
9261 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9262 case ":$libPath2:" in
9264 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
9269 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9270 s,^[\\/],\\\\\\\\,'` ;;
9272 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9274 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
9277 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9278 case ":$libPath3:" in
9280 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
9285 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9286 s,^[\\/],\\\\\\\\,'` ;;
9288 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9290 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
9293 { $as_echo "$as_me:$LINENO: result:
9294 sdcc ${VERSION} is now configured for
9296 Build: ${build_alias}
9298 Source directory: ${srcdir}
9303 avr ${enable_avr_port}
9304 ds390 ${enable_ds390_port}
9305 ds400 ${enable_ds400_port}
9306 gbz80 ${enable_gbz80_port}
9307 hc08 ${enable_hc08_port}
9308 mcs51 ${enable_mcs51_port}
9309 pic ${enable_pic_port}
9310 pic16 ${enable_pic16_port}
9311 xa51 ${enable_xa51_port}
9312 z80 ${enable_z80_port}
9314 Disable packihx: ${OPT_DISABLE_PACKIHX}
9315 Disable ucsim: ${OPT_DISABLE_UCSIM}
9316 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9317 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9318 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9319 Enable documentation: ${OPT_ENABLE_DOC}
9320 Enable libgc: ${OPT_ENABLE_LIBGC}
9323 binary files: ${exec_prefix}
9324 include files: ${datadir}/${include_dir_suffix}
9325 library files: ${datadir}/${lib_dir_suffix}
9326 documentation: ${docdir}
9330 datarootdir: ${datarootdir}
9332 Search paths (incomplete, see manual for all search paths):
9333 binary files: \$SDCC_HOME${binPath}
9334 include files: ${incPath1}
9335 path(argv[0])${incPath2}
9337 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9338 path(argv[0])${libPath2}${dirch}<model>
9339 ${libPath3}${dirch}<model>
9342 sdcc ${VERSION} is now configured for
9344 Build: ${build_alias}
9346 Source directory: ${srcdir}
9351 avr ${enable_avr_port}
9352 ds390 ${enable_ds390_port}
9353 ds400 ${enable_ds400_port}
9354 gbz80 ${enable_gbz80_port}
9355 hc08 ${enable_hc08_port}
9356 mcs51 ${enable_mcs51_port}
9357 pic ${enable_pic_port}
9358 pic16 ${enable_pic16_port}
9359 xa51 ${enable_xa51_port}
9360 z80 ${enable_z80_port}
9362 Disable packihx: ${OPT_DISABLE_PACKIHX}
9363 Disable ucsim: ${OPT_DISABLE_UCSIM}
9364 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
9365 Disable sdcpp: ${OPT_DISABLE_SDCPP}
9366 Disable sdcdb: ${OPT_DISABLE_SDCDB}
9367 Enable documentation: ${OPT_ENABLE_DOC}
9368 Enable libgc: ${OPT_ENABLE_LIBGC}
9371 binary files: ${exec_prefix}
9372 include files: ${datadir}/${include_dir_suffix}
9373 library files: ${datadir}/${lib_dir_suffix}
9374 documentation: ${docdir}
9378 datarootdir: ${datarootdir}
9380 Search paths (incomplete, see manual for all search paths):
9381 binary files: \$SDCC_HOME${binPath}
9382 include files: ${incPath1}
9383 path(argv[0])${incPath2}
9385 library files: \$SDCC_HOME${libPath1}${dirch}<model>
9386 path(argv[0])${libPath2}${dirch}<model>
9387 ${libPath3}${dirch}<model>
9389 # End of configure/configure.in