2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subdirs_all="$ac_subdirs_all support/cpp2"
313 ac_subdirs_all="$ac_subdirs_all support/packihx"
314 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
315 ac_subdirs_all="$ac_subdirs_all debugger/mcs51"
316 ac_subdirs_all="$ac_subdirs_all device/lib/pic"
317 ac_subdirs_all="$ac_subdirs_all device/lib/pic16"
318 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK VERSION VERSIONHI VERSIONLO VERSIONP CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB AUTOCONF STRIP AS CP LEX YACC M_OR_MM EGREP sdccconf_h_dir_separator include_dir_suffix lib_dir_suffix docdir OPT_DISABLE_MCS51 OPT_DISABLE_GBZ80 OPT_DISABLE_Z80 OPT_DISABLE_AVR OPT_DISABLE_DS390 OPT_DISABLE_DS400 OPT_DISABLE_PIC OPT_DISABLE_PIC16 OPT_DISABLE_XA51 OPT_DISABLE_HC08 OPT_DISABLE_UCSIM OPT_DISABLE_DEVICE_LIB OPT_DISABLE_PACKIHX OPT_DISABLE_SDCPP OPT_DISABLE_SDCDB OPT_ENABLE_DOC LYX LATEX2HTML PDFLATEX PDFOPT MAKEINDEX OPT_ENABLE_LIBGC subdirs LIBOBJS LTLIBOBJS'
321 # Initialize some variables set by options.
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
333 program_transform_name=s,x,x,
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371 # Accept the important Cygnus configure options, so we can diagnose typos.
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
393 cache_file=config.cache ;;
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399 datadir=$ac_optarg ;;
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421 eval "enable_$ac_feature='$ac_optarg'" ;;
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
436 -help | --help | --hel | --he | -h)
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
460 -libdir | --libdir | --libdi | --libd)
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487 # Obsolete; use --without-fp.
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551 sbindir=$ac_optarg ;;
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562 sharedstatedir=$ac_optarg ;;
564 -site | --site | --sit)
566 -site=* | --site=* | --sit=*)
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
589 -version | --version | --versio | --versi | --vers | -V)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603 eval "with_$ac_package='$ac_optarg'" ;;
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
615 # Obsolete; use --with-x.
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
667 eval ac_val=$`echo $ac_var`
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
679 eval ac_val=$`echo $ac_var`
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
708 test "$silent" = yes && exec 6>/dev/null
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
728 if test ! -r $srcdir/$ac_unique_file; then
732 ac_srcdir_defaulted=no
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
780 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
781 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
782 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
783 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
784 ac_env_include_dir_suffix_value=$include_dir_suffix
785 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
786 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
787 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
788 ac_env_lib_dir_suffix_value=$lib_dir_suffix
789 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
790 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
791 ac_env_docdir_set=${docdir+set}
792 ac_env_docdir_value=$docdir
793 ac_cv_env_docdir_set=${docdir+set}
794 ac_cv_env_docdir_value=$docdir
797 # Report the --help message.
799 if test "$ac_init_help" = "long"; then
800 # Omit some internal or obsolete options to make the list less imposing.
801 # This message is too long to be a string in the A/UX 3.1 sh.
803 \`configure' configures this package to adapt to many kinds of systems.
805 Usage: $0 [OPTION]... [VAR=VALUE]...
807 To assign environment variables (e.g., CC, CFLAGS...), specify them as
808 VAR=VALUE. See below for descriptions of some of the useful variables.
810 Defaults for the options are specified in brackets.
813 -h, --help display this help and exit
814 --help=short display options specific to this package
815 --help=recursive display the short help of all the included packages
816 -V, --version display version information and exit
817 -q, --quiet, --silent do not print \`checking...' messages
818 --cache-file=FILE cache test results in FILE [disabled]
819 -C, --config-cache alias for \`--cache-file=config.cache'
820 -n, --no-create do not create output files
821 --srcdir=DIR find the sources in DIR [configure dir or \`..']
826 Installation directories:
827 --prefix=PREFIX install architecture-independent files in PREFIX
829 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
832 By default, \`make install' will install all the files in
833 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
834 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835 for instance \`--prefix=\$HOME'.
837 For better control, use the options below.
839 Fine tuning of the installation directories:
840 --bindir=DIR user executables [EPREFIX/bin]
841 --sbindir=DIR system admin executables [EPREFIX/sbin]
842 --libexecdir=DIR program executables [EPREFIX/libexec]
843 --datadir=DIR read-only architecture-independent data [PREFIX/share]
844 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
845 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
846 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
847 --libdir=DIR object code libraries [EPREFIX/lib]
848 --includedir=DIR C header files [PREFIX/include]
849 --oldincludedir=DIR C header files for non-gcc [/usr/include]
850 --infodir=DIR info documentation [PREFIX/info]
851 --mandir=DIR man documentation [PREFIX/man]
857 --program-prefix=PREFIX prepend PREFIX to installed program names
858 --program-suffix=SUFFIX append SUFFIX to installed program names
859 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
863 if test -n "$ac_init_help"; then
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --disable-mcs51-port Excludes the Intel mcs51 port
871 --disable-gbz80-port Excludes the Gameboy gbz80 port
872 --disable-z80-port Excludes the z80 port
873 --disable-avr-port Excludes the AVR port
874 --disable-ds390-port Excludes the DS390 port
875 --disable-ds400-port Excludes the DS400 port
876 --disable-pic-port Excludes the PIC port
877 --disable-pic16-port Excludes the PIC16 port
878 --disable-xa51-port Excludes the XA51 port
879 --disable-hc08-port Excludes the HC08 port
880 --disable-ucsim Disables configuring and building of ucsim
881 --disable-device-lib Disables building device libraries
882 --disable-packihx Disables building packihx
883 --disable-sdcpp Disables building sdcpp
884 --disable-sdcdb Disables building sdcdb
885 --enable-doc Enables building the documentation
886 --enable-libgc Use the Bohem memory allocator. Lower runtime
889 Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
897 sdccconf_h_dir_separator
898 needed in sdccconf.h: either "/" (default) or "\\"
900 appended to datadir to define SDCC's include directory
902 appended to datadir to define SDCC's library root directory
903 docdir documentation installation directory
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 ac_dir_suffix= ac_top_builddir=
927 .) # No --srcdir option. We are building in place.
929 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Do not use `cd foo && pwd` to compute absolute paths, because
943 # the directories may not exist.
945 .) ac_abs_builddir="$ac_dir";;
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 case $ac_abs_builddir in
954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 case $ac_abs_builddir in
963 .) ac_abs_srcdir=$ac_srcdir;;
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 case $ac_abs_builddir in
972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982 # Check for guested configure; otherwise get Cygnus style configure.
983 if test -f $ac_srcdir/configure.gnu; then
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
988 $SHELL $ac_srcdir/configure --help=recursive
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1004 Copyright (C) 2003 Free Software Foundation, Inc.
1005 This configure script is free software; the Free Software Foundation
1006 gives unlimited permission to copy, distribute and modify it.
1012 This file contains any messages produced by compilers while
1013 running configure, to aid debugging if configure makes a mistake.
1015 It was created by $as_me, which was
1016 generated by GNU Autoconf 2.59. Invocation command line was
1027 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1036 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1039 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1040 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1066 # Keep a trace of the command line.
1067 # Strip out --no-create and --no-recursion so they do not pile up.
1068 # Strip out --silent because we don't want to record it for future runs.
1069 # Also quote any args containing shell meta-characters.
1070 # Make two passes to allow for proper duplicate-argument suppression.
1075 ac_must_keep_next=false
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 -* ) ac_must_keep_next=true ;;
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1114 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117 # When interrupted or exit'd, cleanup temporary files, and complete
1118 # config.log. We remove comments because anyway the quotes in there
1119 # would cause problems or look ugly.
1120 # WARNING: Be sure not to use single quotes in there, as some shells,
1121 # such as our DU 5.0 friend, will then `close' the trap.
1122 trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1128 ## ---------------- ##
1129 ## Cache variables. ##
1130 ## ---------------- ##
1133 # The following way of writing the cache mishandles newlines in values,
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1151 ## ----------------- ##
1152 ## Output variables. ##
1153 ## ----------------- ##
1156 for ac_var in $ac_subst_vars
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -n "$ac_subst_files"; then
1170 for ac_var in $ac_subst_files
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1178 if test -s confdefs.h; then
1185 sed "/^$/d" confdefs.h | sort
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1202 rm -rf conftest* confdefs.h
1203 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206 # Predefined preprocessor variables.
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 # Let the site file select an alternate cache file if it wants to.
1234 # Prefer explicitly selected file to automatically selected ones.
1235 if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 for ac_site_file in $CONFIG_SITE; do
1243 if test -r "$ac_site_file"; then
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245 echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
1251 if test -r "$cache_file"; then
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256 echo "$as_me: loading cache $cache_file" >&6;}
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264 echo "$as_me: creating cache $cache_file" >&6;}
1268 # Check that the precious variables saved in the cache have kept the same
1270 ac_cache_corrupted=false
1271 for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
1277 case $ac_old_set,$ac_new_set in
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292 echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294 echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311 if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
1320 ac_cpp='$CPP $CPPFLAGS'
1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1347 for ac_prog in gawk mawk nawk awk
1349 # Extract the first word of "$ac_prog", so it can be a program name with args.
1350 set dummy $ac_prog; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_AWK+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 if test -n "$AWK"; then
1357 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_AWK="$ac_prog"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376 if test -n "$AWK"; then
1377 echo "$as_me:$LINENO: result: $AWK" >&5
1378 echo "${ECHO_T}$AWK" >&6
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1384 test -n "$AWK" && break
1388 echo "$as_me:$LINENO: checking version of the package" >&5
1389 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1390 if test -f ${srcdir}/.version; then
1391 VERSION=`cat ${srcdir}/.version`
1392 elif test -f ../.version; then
1393 VERSION=`cat ../.version`
1397 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1398 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1399 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1401 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1402 echo "${ECHO_T}${VERSION}" >&6
1407 cat >>confdefs.h <<_ACEOF
1408 #define SDCC_VERSION_LO ${VERSIONLO}
1411 cat >>confdefs.h <<_ACEOF
1412 #define SDCC_VERSION_HI ${VERSIONHI}
1415 cat >>confdefs.h <<_ACEOF
1416 #define SDCC_VERSION_P ${VERSIONP}
1419 cat >>confdefs.h <<_ACEOF
1420 #define SDCC_VERSION_STR "${VERSION}"
1423 test "$program_prefix" != NONE &&
1424 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1425 # Use a double $ so make ignores it.
1426 test "$program_suffix" != NONE &&
1427 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1428 # Double any \ or $. echo might interpret backslashes.
1429 # By default was `s,x,x', remove it if useless.
1430 cat <<\_ACEOF >conftest.sed
1431 s/[\\$]/&&/g;s/;s,x,x,$//
1433 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1436 sdcc_cv_version=$VERSION
1437 sdcc_cv_versionhi=$VERSIONHI
1438 sdcc_cv_versionlo=$VERSIONLO
1439 sdcc_cv_versionp=$VERSIONP
1443 # ===========================================================================
1445 ac_cpp='$CPP $CPPFLAGS'
1446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1449 if test -n "$ac_tool_prefix"; then
1450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1452 echo "$as_me:$LINENO: checking for $ac_word" >&5
1453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1454 if test "${ac_cv_prog_CC+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 if test -n "$CC"; then
1458 ac_cv_prog_CC="$CC" # Let the user override the test.
1460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 test -z "$as_dir" && as_dir=.
1465 for ac_exec_ext in '' $ac_executable_extensions; do
1466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 if test -n "$CC"; then
1478 echo "$as_me:$LINENO: result: $CC" >&5
1479 echo "${ECHO_T}$CC" >&6
1481 echo "$as_me:$LINENO: result: no" >&5
1482 echo "${ECHO_T}no" >&6
1486 if test -z "$ac_cv_prog_CC"; then
1488 # Extract the first word of "gcc", so it can be a program name with args.
1489 set dummy gcc; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$ac_ct_CC"; then
1496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_ac_ct_CC="gcc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1515 if test -n "$ac_ct_CC"; then
1516 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1517 echo "${ECHO_T}$ac_ct_CC" >&6
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1528 if test -z "$CC"; then
1529 if test -n "$ac_tool_prefix"; then
1530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1531 set dummy ${ac_tool_prefix}cc; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_CC="${ac_tool_prefix}cc"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 if test -n "$CC"; then
1558 echo "$as_me:$LINENO: result: $CC" >&5
1559 echo "${ECHO_T}$CC" >&6
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1566 if test -z "$ac_cv_prog_CC"; then
1568 # Extract the first word of "cc", so it can be a program name with args.
1569 set dummy cc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 if test -n "$ac_ct_CC"; then
1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_CC="cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595 if test -n "$ac_ct_CC"; then
1596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1597 echo "${ECHO_T}$ac_ct_CC" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1609 if test -z "$CC"; then
1610 # Extract the first word of "cc", so it can be a program name with args.
1611 set dummy cc; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1629 ac_prog_rejected=yes
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 if test $ac_prog_rejected = yes; then
1640 # We found a bogon in the path, so make sure we never use it.
1641 set dummy $ac_cv_prog_CC
1643 if test $# != 0; then
1644 # We chose a different compiler from the bogus one.
1645 # However, it has the same basename, so the bogon will be chosen
1646 # first if we set CC to just the basename; use the full file name.
1648 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1654 if test -n "$CC"; then
1655 echo "$as_me:$LINENO: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1663 if test -z "$CC"; then
1664 if test -n "$ac_tool_prefix"; then
1667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$CC"; then
1675 ac_cv_prog_CC="$CC" # Let the user override the test.
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 if test -n "$CC"; then
1695 echo "$as_me:$LINENO: result: $CC" >&5
1696 echo "${ECHO_T}$CC" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1702 test -n "$CC" && break
1705 if test -z "$CC"; then
1709 # Extract the first word of "$ac_prog", so it can be a program name with args.
1710 set dummy $ac_prog; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 if test -n "$ac_ct_CC"; then
1717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_ac_ct_CC="$ac_prog"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736 if test -n "$ac_ct_CC"; then
1737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738 echo "${ECHO_T}$ac_ct_CC" >&6
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1744 test -n "$ac_ct_CC" && break
1753 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1754 See \`config.log' for more details." >&5
1755 echo "$as_me: error: no acceptable C compiler found in \$PATH
1756 See \`config.log' for more details." >&2;}
1757 { (exit 1); exit 1; }; }
1759 # Provide some information about the compiler.
1760 echo "$as_me:$LINENO:" \
1761 "checking for C compiler version" >&5
1762 ac_compiler=`set X $ac_compile; echo $2`
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1764 (eval $ac_compiler --version </dev/null >&5) 2>&5
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1769 (eval $ac_compiler -v </dev/null >&5) 2>&5
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }
1773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1774 (eval $ac_compiler -V </dev/null >&5) 2>&5
1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777 (exit $ac_status); }
1779 cat >conftest.$ac_ext <<_ACEOF
1782 cat confdefs.h >>conftest.$ac_ext
1783 cat >>conftest.$ac_ext <<_ACEOF
1784 /* end confdefs.h. */
1794 ac_clean_files_save=$ac_clean_files
1795 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1796 # Try to create an executable without -o first, disregard a.out.
1797 # It will help us diagnose broken compilers, and finding out an intuition
1799 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1800 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1801 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1802 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1803 (eval $ac_link_default) 2>&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }; then
1807 # Find the output, starting from the most likely. This scheme is
1808 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1811 # Be careful to initialize this variable, since it used to be cached.
1812 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1814 # b.out is created by i960 compilers.
1815 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1817 test -f "$ac_file" || continue
1819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1822 # This is the source file.
1825 # We found the default executable, but exeext='' is most
1829 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1830 # FIXME: I believe we export ac_cv_exeext for Libtool,
1831 # but it would be cool to find out if it's true. Does anybody
1832 # maintain Libtool? --akim.
1840 echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: C compiler cannot create executables
1846 See \`config.log' for more details." >&2;}
1847 { (exit 77); exit 77; }; }
1850 ac_exeext=$ac_cv_exeext
1851 echo "$as_me:$LINENO: result: $ac_file" >&5
1852 echo "${ECHO_T}$ac_file" >&6
1854 # Check the compiler produces executables we can run. If not, either
1855 # the compiler is broken, or we cross compile.
1856 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1857 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1859 # If not cross compiling, check that we can run a simple program.
1860 if test "$cross_compiling" != yes; then
1861 if { ac_try='./$ac_file'
1862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }; }; then
1869 if test "$cross_compiling" = maybe; then
1872 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1873 If you meant to cross compile, use \`--host'.
1874 See \`config.log' for more details." >&5
1875 echo "$as_me: error: cannot run C compiled programs.
1876 If you meant to cross compile, use \`--host'.
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }
1882 echo "$as_me:$LINENO: result: yes" >&5
1883 echo "${ECHO_T}yes" >&6
1885 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1886 ac_clean_files=$ac_clean_files_save
1887 # Check the compiler produces executables we can run. If not, either
1888 # the compiler is broken, or we cross compile.
1889 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1890 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1891 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1892 echo "${ECHO_T}$cross_compiling" >&6
1894 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1895 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1897 (eval $ac_link) 2>&5
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); }; then
1901 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1902 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1903 # work properly (i.e., refer to `conftest.exe'), while it won't with
1905 for ac_file in conftest.exe conftest conftest.*; do
1906 test -f "$ac_file" || continue
1908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1909 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1917 See \`config.log' for more details." >&5
1918 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1919 See \`config.log' for more details." >&2;}
1920 { (exit 1); exit 1; }; }
1923 rm -f conftest$ac_cv_exeext
1924 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1925 echo "${ECHO_T}$ac_cv_exeext" >&6
1927 rm -f conftest.$ac_ext
1928 EXEEXT=$ac_cv_exeext
1930 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1931 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1932 if test "${ac_cv_objext+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 cat >conftest.$ac_ext <<_ACEOF
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h. */
1950 rm -f conftest.o conftest.obj
1951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; then
1956 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1959 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1964 echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1968 See \`config.log' for more details." >&5
1969 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1970 See \`config.log' for more details." >&2;}
1971 { (exit 1); exit 1; }; }
1974 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1976 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1977 echo "${ECHO_T}$ac_cv_objext" >&6
1978 OBJEXT=$ac_cv_objext
1980 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1981 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1982 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 cat >conftest.$ac_ext <<_ACEOF
1988 cat confdefs.h >>conftest.$ac_ext
1989 cat >>conftest.$ac_ext <<_ACEOF
1990 /* end confdefs.h. */
2003 rm -f conftest.$ac_objext
2004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005 (eval $ac_compile) 2>conftest.er1
2007 grep -v '^ *+' conftest.er1 >conftest.err
2009 cat conftest.err >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -z "$ac_c_werror_flag"
2013 || test ! -s conftest.err'
2014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; } &&
2019 { ac_try='test -s conftest.$ac_objext'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2027 echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2036 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2037 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2038 GCC=`test $ac_compiler_gnu = yes && echo yes`
2039 ac_test_CFLAGS=${CFLAGS+set}
2040 ac_save_CFLAGS=$CFLAGS
2042 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2044 if test "${ac_cv_prog_cc_g+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 cat >conftest.$ac_ext <<_ACEOF
2050 cat confdefs.h >>conftest.$ac_ext
2051 cat >>conftest.$ac_ext <<_ACEOF
2052 /* end confdefs.h. */
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064 (eval $ac_compile) 2>conftest.er1
2066 grep -v '^ *+' conftest.er1 >conftest.err
2068 cat conftest.err >&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); } &&
2071 { ac_try='test -z "$ac_c_werror_flag"
2072 || test ! -s conftest.err'
2073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }; } &&
2078 { ac_try='test -s conftest.$ac_objext'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2086 echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2094 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2095 if test "$ac_test_CFLAGS" = set; then
2096 CFLAGS=$ac_save_CFLAGS
2097 elif test $ac_cv_prog_cc_g = yes; then
2098 if test "$GCC" = yes; then
2104 if test "$GCC" = yes; then
2110 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2111 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 ac_cv_prog_cc_stdc=no
2117 cat >conftest.$ac_ext <<_ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h. */
2125 #include <sys/types.h>
2126 #include <sys/stat.h>
2127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2128 struct buf { int x; };
2129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2130 static char *e (p, i)
2136 static char *f (char * (*g) (char **, int), char **p, ...)
2141 s = g (p, va_arg (v,int));
2146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2147 function prototypes and stuff, but not '\xHH' hex character constants.
2148 These don't provoke an error unfortunately, instead are silently treated
2149 as 'x'. The following induces an error, until -std1 is added to get
2150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2151 array size at least. It's necessary to write '\x00'==0 to get something
2152 that's true only with -std1. */
2153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2169 # Don't try gcc -ansi; that turns off useful extensions and
2170 # breaks some systems' header files.
2171 # AIX -qlanglvl=ansi
2172 # Ultrix and OSF/1 -std1
2173 # HP-UX 10.20 and later -Ae
2174 # HP-UX older versions -Aa -D_HPUX_SOURCE
2175 # SVR4 -Xc -D__EXTENSIONS__
2176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2178 CC="$ac_save_CC $ac_arg"
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>conftest.er1
2183 grep -v '^ *+' conftest.er1 >conftest.err
2185 cat conftest.err >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -z "$ac_c_werror_flag"
2189 || test ! -s conftest.err'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 ac_cv_prog_cc_stdc=$ac_arg
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2208 rm -f conftest.err conftest.$ac_objext
2210 rm -f conftest.$ac_ext conftest.$ac_objext
2215 case "x$ac_cv_prog_cc_stdc" in
2217 echo "$as_me:$LINENO: result: none needed" >&5
2218 echo "${ECHO_T}none needed" >&6 ;;
2220 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2221 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2222 CC="$CC $ac_cv_prog_cc_stdc" ;;
2225 # Some people use a C++ compiler to compile C. Since we use `exit',
2226 # in C++ we need to declare it. In case someone uses the same compiler
2227 # for both compiling C and C++ we need to have the C++ compiler decide
2228 # the declaration of exit, since it's the most demanding environment.
2229 cat >conftest.$ac_ext <<_ACEOF
2234 rm -f conftest.$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>conftest.er1
2238 grep -v '^ *+' conftest.er1 >conftest.err
2240 cat conftest.err >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } &&
2243 { ac_try='test -z "$ac_c_werror_flag"
2244 || test ! -s conftest.err'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; } &&
2250 { ac_try='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2256 for ac_declaration in \
2258 'extern "C" void std::exit (int) throw (); using std::exit;' \
2259 'extern "C" void std::exit (int); using std::exit;' \
2260 'extern "C" void exit (int) throw ();' \
2261 'extern "C" void exit (int);' \
2264 cat >conftest.$ac_ext <<_ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2280 rm -f conftest.$ac_objext
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>conftest.er1
2284 grep -v '^ *+' conftest.er1 >conftest.err
2286 cat conftest.err >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -z "$ac_c_werror_flag"
2290 || test ! -s conftest.err'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 cat >conftest.$ac_ext <<_ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2329 grep -v '^ *+' conftest.er1 >conftest.err
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 if test -n "$ac_declaration"; then
2357 echo '#ifdef __cplusplus' >>confdefs.h
2358 echo $ac_declaration >>confdefs.h
2359 echo '#endif' >>confdefs.h
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2380 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2381 # On Suns, sometimes $CPP names a directory.
2382 if test -n "$CPP" && test -d "$CPP"; then
2385 if test -z "$CPP"; then
2386 if test "${ac_cv_prog_CPP+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 # Double quotes because CPP needs to be expanded
2390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2393 for ac_c_preproc_warn_flag in '' yes
2395 # Use a header file that comes with gcc, so configuring glibc
2396 # with a fresh cross-compiler works.
2397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2398 # <limits.h> exists even on freestanding compilers.
2399 # On the NeXT, cc -E runs the code through the compiler's parser,
2400 # not just through cpp. "Syntax error" is here to catch this case.
2401 cat >conftest.$ac_ext <<_ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2408 # include <limits.h>
2410 # include <assert.h>
2414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } >/dev/null; then
2422 if test -s conftest.err; then
2423 ac_cpp_err=$ac_c_preproc_warn_flag
2424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2431 if test -z "$ac_cpp_err"; then
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 # Broken: fails on valid input.
2440 rm -f conftest.err conftest.$ac_ext
2442 # OK, works on sane cases. Now check whether non-existent headers
2443 # can be detected and how.
2444 cat >conftest.$ac_ext <<_ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450 #include <ac_nonexistent.h>
2452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469 if test -z "$ac_cpp_err"; then
2470 # Broken: success on invalid input.
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2476 # Passes both tests.
2480 rm -f conftest.err conftest.$ac_ext
2483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2484 rm -f conftest.err conftest.$ac_ext
2485 if $ac_preproc_ok; then
2497 echo "$as_me:$LINENO: result: $CPP" >&5
2498 echo "${ECHO_T}$CPP" >&6
2500 for ac_c_preproc_warn_flag in '' yes
2502 # Use a header file that comes with gcc, so configuring glibc
2503 # with a fresh cross-compiler works.
2504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2505 # <limits.h> exists even on freestanding compilers.
2506 # On the NeXT, cc -E runs the code through the compiler's parser,
2507 # not just through cpp. "Syntax error" is here to catch this case.
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2515 # include <limits.h>
2517 # include <assert.h>
2521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2524 grep -v '^ *+' conftest.er1 >conftest.err
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } >/dev/null; then
2529 if test -s conftest.err; then
2530 ac_cpp_err=$ac_c_preproc_warn_flag
2531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2538 if test -z "$ac_cpp_err"; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2544 # Broken: fails on valid input.
2547 rm -f conftest.err conftest.$ac_ext
2549 # OK, works on sane cases. Now check whether non-existent headers
2550 # can be detected and how.
2551 cat >conftest.$ac_ext <<_ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2557 #include <ac_nonexistent.h>
2559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } >/dev/null; then
2567 if test -s conftest.err; then
2568 ac_cpp_err=$ac_c_preproc_warn_flag
2569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2576 if test -z "$ac_cpp_err"; then
2577 # Broken: success on invalid input.
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 # Passes both tests.
2587 rm -f conftest.err conftest.$ac_ext
2590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2591 rm -f conftest.err conftest.$ac_ext
2592 if $ac_preproc_ok; then
2595 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2598 See \`config.log' for more details." >&2;}
2599 { (exit 1); exit 1; }; }
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2610 if test -f $ac_dir/install-sh; then
2612 ac_install_sh="$ac_aux_dir/install-sh -c"
2614 elif test -f $ac_dir/install.sh; then
2616 ac_install_sh="$ac_aux_dir/install.sh -c"
2618 elif test -f $ac_dir/shtool; then
2620 ac_install_sh="$ac_aux_dir/shtool install -c"
2624 if test -z "$ac_aux_dir"; then
2625 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2626 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2627 { (exit 1); exit 1; }; }
2629 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2630 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2631 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2633 # Find a good install program. We prefer a C program (faster),
2634 # so one script is as good as another. But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2640 # AmigaOS /C/install, which installs bootblocks on floppy discs
2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644 # OS/2's system install, which has a completely different semantic
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2647 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2648 if test -z "$INSTALL"; then
2649 if test "${ac_cv_path_install+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 # Account for people who put trailing slashes in PATH elements.
2659 ./ | .// | /cC/* | \
2660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2661 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2664 # OSF1 and SCO ODT 3.0 have their own names for install.
2665 # Don't use installbsd from OSF since it installs stuff as root
2667 for ac_prog in ginstall scoinst install; do
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2670 if test $ac_prog = install &&
2671 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2672 # AIX install. It has an incompatible calling convention.
2674 elif test $ac_prog = install &&
2675 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # program-specific install script used by HP pwplus--don't use.
2679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2691 if test "${ac_cv_path_install+set}" = set; then
2692 INSTALL=$ac_cv_path_install
2694 # As a last resort, use the slow shell script. We don't cache a
2695 # path for INSTALL within a source directory, because that will
2696 # break other packages using the cache if that directory is
2697 # removed, or if the path is relative.
2698 INSTALL=$ac_install_sh
2701 echo "$as_me:$LINENO: result: $INSTALL" >&5
2702 echo "${ECHO_T}$INSTALL" >&6
2704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2705 # It thinks the first close brace ends the variable substitution.
2706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2710 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_RANLIB+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$RANLIB"; then
2721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 RANLIB=$ac_cv_prog_RANLIB
2740 if test -n "$RANLIB"; then
2741 echo "$as_me:$LINENO: result: $RANLIB" >&5
2742 echo "${ECHO_T}$RANLIB" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2749 if test -z "$ac_cv_prog_RANLIB"; then
2750 ac_ct_RANLIB=$RANLIB
2751 # Extract the first word of "ranlib", so it can be a program name with args.
2752 set dummy ranlib; ac_word=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$ac_ct_RANLIB"; then
2759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_RANLIB="ranlib"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2779 if test -n "$ac_ct_RANLIB"; then
2780 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2787 RANLIB=$ac_ct_RANLIB
2789 RANLIB="$ac_cv_prog_RANLIB"
2792 # Extract the first word of "autoconf", so it can be a program name with args.
2793 set dummy autoconf; ac_word=$2
2794 echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 if test -n "$AUTOCONF"; then
2800 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_AUTOCONF="autoconf"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
2819 AUTOCONF=$ac_cv_prog_AUTOCONF
2820 if test -n "$AUTOCONF"; then
2821 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2822 echo "${ECHO_T}$AUTOCONF" >&6
2824 echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2828 # Extract the first word of "strip", so it can be a program name with args.
2829 set dummy strip; ac_word=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_STRIP+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 if test -n "$STRIP"; then
2836 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_STRIP="strip"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2855 STRIP=$ac_cv_prog_STRIP
2856 if test -n "$STRIP"; then
2857 echo "$as_me:$LINENO: result: $STRIP" >&5
2858 echo "${ECHO_T}$STRIP" >&6
2860 echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6
2864 # Extract the first word of "as", so it can be a program name with args.
2865 set dummy as; ac_word=$2
2866 echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868 if test "${ac_cv_prog_AS+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 if test -n "$AS"; then
2872 ac_cv_prog_AS="$AS" # Let the user override the test.
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
2892 if test -n "$AS"; then
2893 echo "$as_me:$LINENO: result: $AS" >&5
2894 echo "${ECHO_T}$AS" >&6
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2900 # Extract the first word of "cp", so it can be a program name with args.
2901 set dummy cp; ac_word=$2
2902 echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904 if test "${ac_cv_prog_CP+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 if test -n "$CP"; then
2908 ac_cv_prog_CP="$CP" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
2928 if test -n "$CP"; then
2929 echo "$as_me:$LINENO: result: $CP" >&5
2930 echo "${ECHO_T}$CP" >&6
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 for ac_prog in flex lex
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943 if test "${ac_cv_prog_LEX+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$LEX"; then
2947 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_LEX="$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$LEX"; then
2967 echo "$as_me:$LINENO: result: $LEX" >&5
2968 echo "${ECHO_T}$LEX" >&6
2970 echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6
2974 test -n "$LEX" && break
2976 test -n "$LEX" || LEX=":"
2979 for ac_prog in 'bison -y' byacc yacc
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_prog_YACC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 if test -n "$YACC"; then
2989 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_YACC="$ac_prog"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 YACC=$ac_cv_prog_YACC
3008 if test -n "$YACC"; then
3009 echo "$as_me:$LINENO: result: $YACC" >&5
3010 echo "${ECHO_T}$YACC" >&6
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3016 test -n "$YACC" && break
3018 test -n "$YACC" || YACC=":"
3023 if test "$YACC" = ":"; then
3024 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3025 echo "$as_me: error: Cannot find required program bison." >&2;}
3026 { (exit 1); exit 1; }; }
3029 if test "$LEX" = ":"; then
3030 { { echo "$as_me:$LINENO: error: Cannot find required program flex." >&5
3031 echo "$as_me: error: Cannot find required program flex." >&2;}
3032 { (exit 1); exit 1; }; }
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 # Checking for functions
3045 # ===========================================================================
3048 for ac_func in strerror
3050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3051 echo "$as_me:$LINENO: checking for $ac_func" >&5
3052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3053 if eval "test \"\${$as_ac_var+set}\" = set"; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 cat >conftest.$ac_ext <<_ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3064 #define $ac_func innocuous_$ac_func
3066 /* System header to define __stub macros and hopefully few prototypes,
3067 which can conflict with char $ac_func (); below.
3068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 <limits.h> exists even on freestanding compilers. */
3072 # include <limits.h>
3074 # include <assert.h>
3079 /* Override any gcc2 internal prototype to avoid an error. */
3084 /* We use char because int might match the return type of a gcc2
3085 builtin and then its argument prototype would still apply. */
3087 /* The GNU C library defines this for functions which it implements
3088 to always fail with ENOSYS. Some functions are actually named
3089 something starting with __ and the normal name is an alias. */
3090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3093 char (*f) () = $ac_func;
3102 return f != $ac_func;
3107 rm -f conftest.$ac_objext conftest$ac_exeext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>conftest.er1
3111 grep -v '^ *+' conftest.er1 >conftest.err
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 { ac_try='test -z "$ac_c_werror_flag"
3117 || test ! -s conftest.err'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest$ac_exeext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 eval "$as_ac_var=yes"
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 eval "$as_ac_var=no"
3136 rm -f conftest.err conftest.$ac_objext \
3137 conftest$ac_exeext conftest.$ac_ext
3139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3141 if test `eval echo '${'$as_ac_var'}'` = yes; then
3142 cat >>confdefs.h <<_ACEOF
3143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3153 for ac_func in vsnprintf snprintf vsprintf mkstemp
3155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3156 echo "$as_me:$LINENO: checking for $ac_func" >&5
3157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3158 if eval "test \"\${$as_ac_var+set}\" = set"; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3169 #define $ac_func innocuous_$ac_func
3171 /* System header to define __stub macros and hopefully few prototypes,
3172 which can conflict with char $ac_func (); below.
3173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174 <limits.h> exists even on freestanding compilers. */
3177 # include <limits.h>
3179 # include <assert.h>
3184 /* Override any gcc2 internal prototype to avoid an error. */
3189 /* We use char because int might match the return type of a gcc2
3190 builtin and then its argument prototype would still apply. */
3192 /* The GNU C library defines this for functions which it implements
3193 to always fail with ENOSYS. Some functions are actually named
3194 something starting with __ and the normal name is an alias. */
3195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3198 char (*f) () = $ac_func;
3207 return f != $ac_func;
3212 rm -f conftest.$ac_objext conftest$ac_exeext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3214 (eval $ac_link) 2>conftest.er1
3216 grep -v '^ *+' conftest.er1 >conftest.err
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag"
3222 || test ! -s conftest.err'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try='test -s conftest$ac_exeext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 eval "$as_ac_var=yes"
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 eval "$as_ac_var=no"
3241 rm -f conftest.err conftest.$ac_objext \
3242 conftest$ac_exeext conftest.$ac_ext
3244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3246 if test `eval echo '${'$as_ac_var'}'` = yes; then
3247 cat >>confdefs.h <<_ACEOF
3248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3257 # ===========================================================================
3259 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3260 # supports option specified as the 2nd parameter
3261 # For example: DD_CPORT(CXX, fPIC)
3265 # This macro expands DIR and assigns it to RET.
3266 # If DIR is NONE, then it's replaced by DEFAULT.
3268 # Based on AC_DEFINE_DIR
3272 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3276 # adl_NORMALIZE_PATH
3278 # - empty paths are changed to '.'
3279 # - trailing slashes are removed
3280 # - repeated slashes are squeezed except a leading doubled slash '//'
3281 # (which might indicate a networked disk on some OS).
3284 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3285 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3286 # are turned into backslashes, otherwise they are all turned into slashes.
3288 # This makes processing of DOS filenames quite easier, because you can turn a
3289 # filename to the Unix notation, make your processing, and turn it back to
3290 # original notation.
3295 # adl_COMPUTE_RELATIVE_PATH
3297 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3298 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3299 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3300 # absolute filenames for this macro to success.
3306 ## The following helper macros are too fragile to be used out
3307 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3308 ## paths are normalized), that's why I'm keeping them in the same file.
3309 ## Still, some of them maybe worth to reuse.
3327 # Checking characteristics of compilers and other programs
3328 # ===========================================================================
3329 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3330 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
3331 if test "${sdcc_cv_MM+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 echo "#include <stdio.h>" >_test_.c
3336 $CPP -v -MM _test_.c 1>&5 2>&5
3337 if test "$?" = "0"; then
3344 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3345 echo "${ECHO_T}$sdcc_cv_MM" >&6
3349 # This is the first time when CFLAGS are set/modified!!
3351 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3352 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
3353 if test "${sdcc_cv_CCggdb+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3361 if test "$?" = "0"; then
3362 sdcc_cv_CCggdb="yes"
3366 rm -f _test_.* a.out
3368 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3369 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
3371 if test "$sdcc_cv_CCggdb" = "yes"; then
3372 CFLAGS="-ggdb ${CFLAGS}"
3376 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3377 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
3378 if test "${sdcc_cv_CCpipe+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 $CC -v -pipe -c _test_.c 1>&5 2>&5
3386 if test "$?" = "0"; then
3387 sdcc_cv_CCpipe="yes"
3391 rm -f _test_.* a.out
3393 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3394 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
3396 if test "$sdcc_cv_CCpipe" = "yes"; then
3397 CFLAGS="-pipe $CFLAGS"
3401 # Checks for typedefs, structures, and compiler characteristics.
3402 # ===========================================================================
3403 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3404 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3405 if test "${ac_cv_type_signal+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <sys/types.h>
3420 extern "C" void (*signal (int, void (*)(int)))(int);
3422 void (*signal ()) ();
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_type_signal=void
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_cv_type_signal=int
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3465 echo "${ECHO_T}$ac_cv_type_signal" >&6
3467 cat >>confdefs.h <<_ACEOF
3468 #define RETSIGTYPE $ac_cv_type_signal
3474 echo "$as_me:$LINENO: checking for egrep" >&5
3475 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3476 if test "${ac_cv_prog_egrep+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3480 then ac_cv_prog_egrep='grep -E'
3481 else ac_cv_prog_egrep='egrep'
3484 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3485 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3486 EGREP=$ac_cv_prog_egrep
3489 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3491 if test "${ac_cv_header_stdc+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>conftest.er1
3517 grep -v '^ *+' conftest.er1 >conftest.err
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_c_werror_flag"
3523 || test ! -s conftest.err'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 ac_cv_header_stdc=yes
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_cv_header_stdc=no
3542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3544 if test $ac_cv_header_stdc = yes; then
3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "memchr" >/dev/null 2>&1; then
3559 ac_cv_header_stdc=no
3565 if test $ac_cv_header_stdc = yes; then
3566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "free" >/dev/null 2>&1; then
3580 ac_cv_header_stdc=no
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 if test "$cross_compiling" = yes; then
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3598 #if ((' ' & 0x0FF) == 0x020)
3599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3602 # define ISLOWER(c) \
3603 (('a' <= (c) && (c) <= 'i') \
3604 || ('j' <= (c) && (c) <= 'r') \
3605 || ('s' <= (c) && (c) <= 'z'))
3606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3614 for (i = 0; i < 256; i++)
3615 if (XOR (islower (i), ISLOWER (i))
3616 || toupper (i) != TOUPPER (i))
3621 rm -f conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3634 echo "$as_me: program exited with status $ac_status" >&5
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3639 ac_cv_header_stdc=no
3641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3645 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3646 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3647 if test $ac_cv_header_stdc = yes; then
3649 cat >>confdefs.h <<\_ACEOF
3650 #define STDC_HEADERS 1
3655 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3665 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3666 inttypes.h stdint.h unistd.h
3668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3669 echo "$as_me:$LINENO: checking for $ac_header" >&5
3670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 $ac_includes_default
3682 #include <$ac_header>
3684 rm -f conftest.$ac_objext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686 (eval $ac_compile) 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 eval "$as_ac_Header=yes"
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 eval "$as_ac_Header=no"
3713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3718 cat >>confdefs.h <<_ACEOF
3719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3727 echo "$as_me:$LINENO: checking for char" >&5
3728 echo $ECHO_N "checking for char... $ECHO_C" >&6
3729 if test "${ac_cv_type_char+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 $ac_includes_default
3750 rm -f conftest.$ac_objext
3751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752 (eval $ac_compile) 2>conftest.er1
3754 grep -v '^ *+' conftest.er1 >conftest.err
3756 cat conftest.err >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -z "$ac_c_werror_flag"
3760 || test ! -s conftest.err'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
3782 echo "${ECHO_T}$ac_cv_type_char" >&6
3784 echo "$as_me:$LINENO: checking size of char" >&5
3785 echo $ECHO_N "checking size of char... $ECHO_C" >&6
3786 if test "${ac_cv_sizeof_char+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test "$ac_cv_type_char" = yes; then
3790 # The cast to unsigned long works around a bug in the HP C Compiler
3791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3793 # This bug is HP SR number 8606223364.
3794 if test "$cross_compiling" = yes; then
3795 # Depending upon the size, compute the lo and hi bounds.
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 $ac_includes_default
3806 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 $ac_includes_default
3847 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
3854 rm -f conftest.$ac_objext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>conftest.er1
3858 grep -v '^ *+' conftest.er1 >conftest.err
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } &&
3863 { ac_try='test -z "$ac_c_werror_flag"
3864 || test ! -s conftest.err'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; } &&
3870 { ac_try='test -s conftest.$ac_objext'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3876 ac_hi=$ac_mid; break
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 ac_lo=`expr $ac_mid + 1`
3882 if test $ac_lo -le $ac_mid; then
3886 ac_mid=`expr 2 '*' $ac_mid + 1`
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3904 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
3911 rm -f conftest.$ac_objext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913 (eval $ac_compile) 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -z "$ac_c_werror_flag"
3921 || test ! -s conftest.err'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; } &&
3927 { ac_try='test -s conftest.$ac_objext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 $ac_includes_default
3945 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -z "$ac_c_werror_flag"
3962 || test ! -s conftest.err'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 ac_lo=$ac_mid; break
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 ac_hi=`expr '(' $ac_mid ')' - 1`
3980 if test $ac_mid -le $ac_hi; then
3984 ac_mid=`expr 2 '*' $ac_mid`
3986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3997 # Binary search between lo and hi bounds.
3998 while test "x$ac_lo" != "x$ac_hi"; do
3999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 $ac_includes_default
4010 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 ac_lo=`expr '(' $ac_mid ')' + 1`
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4049 ?*) ac_cv_sizeof_char=$ac_lo;;
4050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4051 See \`config.log' for more details." >&5
4052 echo "$as_me: error: cannot compute sizeof (char), 77
4053 See \`config.log' for more details." >&2;}
4054 { (exit 1); exit 1; }; } ;;
4057 if test "$cross_compiling" = yes; then
4058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4059 See \`config.log' for more details." >&5
4060 echo "$as_me: error: cannot run test program while cross compiling
4061 See \`config.log' for more details." >&2;}
4062 { (exit 1); exit 1; }; }
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 $ac_includes_default
4071 long longval () { return (long) (sizeof (char)); }
4072 unsigned long ulongval () { return (long) (sizeof (char)); }
4079 FILE *f = fopen ("conftest.val", "w");
4082 if (((long) (sizeof (char))) < 0)
4084 long i = longval ();
4085 if (i != ((long) (sizeof (char))))
4087 fprintf (f, "%ld\n", i);
4091 unsigned long i = ulongval ();
4092 if (i != ((long) (sizeof (char))))
4094 fprintf (f, "%lu\n", i);
4096 exit (ferror (f) || fclose (f) != 0);
4102 rm -f conftest$ac_exeext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 ac_cv_sizeof_char=`cat conftest.val`
4115 echo "$as_me: program exited with status $ac_status" >&5
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4121 See \`config.log' for more details." >&5
4122 echo "$as_me: error: cannot compute sizeof (char), 77
4123 See \`config.log' for more details." >&2;}
4124 { (exit 1); exit 1; }; }
4126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4134 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4135 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4136 cat >>confdefs.h <<_ACEOF
4137 #define SIZEOF_CHAR $ac_cv_sizeof_char
4141 echo "$as_me:$LINENO: checking for short" >&5
4142 echo $ECHO_N "checking for short... $ECHO_C" >&6
4143 if test "${ac_cv_type_short+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 $ac_includes_default
4164 rm -f conftest.$ac_objext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>conftest.er1
4168 grep -v '^ *+' conftest.er1 >conftest.err
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag"
4174 || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_type_short=yes
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4195 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4196 echo "${ECHO_T}$ac_cv_type_short" >&6
4198 echo "$as_me:$LINENO: checking size of short" >&5
4199 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4200 if test "${ac_cv_sizeof_short+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 if test "$ac_cv_type_short" = yes; then
4204 # The cast to unsigned long works around a bug in the HP C Compiler
4205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4207 # This bug is HP SR number 8606223364.
4208 if test "$cross_compiling" = yes; then
4209 # Depending upon the size, compute the lo and hi bounds.
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 $ac_includes_default
4220 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_c_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 $ac_includes_default
4261 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4268 rm -f conftest.$ac_objext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_hi=$ac_mid; break
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_lo=`expr $ac_mid + 1`
4296 if test $ac_lo -le $ac_mid; then
4300 ac_mid=`expr 2 '*' $ac_mid + 1`
4302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4318 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 $ac_includes_default
4359 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_lo=$ac_mid; break
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_hi=`expr '(' $ac_mid ')' - 1`
4394 if test $ac_mid -le $ac_hi; then
4398 ac_mid=`expr 2 '*' $ac_mid`
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411 # Binary search between lo and hi bounds.
4412 while test "x$ac_lo" != "x$ac_hi"; do
4413 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 $ac_includes_default
4424 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4431 rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4435 grep -v '^ *+' conftest.er1 >conftest.err
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 ac_lo=`expr '(' $ac_mid ')' + 1`
4460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4463 ?*) ac_cv_sizeof_short=$ac_lo;;
4464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4465 See \`config.log' for more details." >&5
4466 echo "$as_me: error: cannot compute sizeof (short), 77
4467 See \`config.log' for more details." >&2;}
4468 { (exit 1); exit 1; }; } ;;
4471 if test "$cross_compiling" = yes; then
4472 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4473 See \`config.log' for more details." >&5
4474 echo "$as_me: error: cannot run test program while cross compiling
4475 See \`config.log' for more details." >&2;}
4476 { (exit 1); exit 1; }; }
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 $ac_includes_default
4485 long longval () { return (long) (sizeof (short)); }
4486 unsigned long ulongval () { return (long) (sizeof (short)); }
4493 FILE *f = fopen ("conftest.val", "w");
4496 if (((long) (sizeof (short))) < 0)
4498 long i = longval ();
4499 if (i != ((long) (sizeof (short))))
4501 fprintf (f, "%ld\n", i);
4505 unsigned long i = ulongval ();
4506 if (i != ((long) (sizeof (short))))
4508 fprintf (f, "%lu\n", i);
4510 exit (ferror (f) || fclose (f) != 0);
4516 rm -f conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518 (eval $ac_link) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 ac_cv_sizeof_short=`cat conftest.val`
4529 echo "$as_me: program exited with status $ac_status" >&5
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4535 See \`config.log' for more details." >&5
4536 echo "$as_me: error: cannot compute sizeof (short), 77
4537 See \`config.log' for more details." >&2;}
4538 { (exit 1); exit 1; }; }
4540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4545 ac_cv_sizeof_short=0
4548 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4549 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4550 cat >>confdefs.h <<_ACEOF
4551 #define SIZEOF_SHORT $ac_cv_sizeof_short
4555 echo "$as_me:$LINENO: checking for int" >&5
4556 echo $ECHO_N "checking for int... $ECHO_C" >&6
4557 if test "${ac_cv_type_int+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4610 echo "${ECHO_T}$ac_cv_type_int" >&6
4612 echo "$as_me:$LINENO: checking size of int" >&5
4613 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4614 if test "${ac_cv_sizeof_int+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test "$ac_cv_type_int" = yes; then
4618 # The cast to unsigned long works around a bug in the HP C Compiler
4619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4621 # This bug is HP SR number 8606223364.
4622 if test "$cross_compiling" = yes; then
4623 # Depending upon the size, compute the lo and hi bounds.
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4634 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4665 cat >conftest.$ac_ext <<_ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 $ac_includes_default
4675 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_hi=$ac_mid; break
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 ac_lo=`expr $ac_mid + 1`
4710 if test $ac_lo -le $ac_mid; then
4714 ac_mid=`expr 2 '*' $ac_mid + 1`
4716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4732 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>conftest.er1
4743 grep -v '^ *+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_c_werror_flag"
4749 || test ! -s conftest.err'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4773 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_lo=$ac_mid; break
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 ac_hi=`expr '(' $ac_mid ')' - 1`
4808 if test $ac_mid -le $ac_hi; then
4812 ac_mid=`expr 2 '*' $ac_mid`
4814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 # Binary search between lo and hi bounds.
4826 while test "x$ac_lo" != "x$ac_hi"; do
4827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 $ac_includes_default
4838 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4845 rm -f conftest.$ac_objext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4849 grep -v '^ *+' conftest.er1 >conftest.err
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_c_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_lo=`expr '(' $ac_mid ')' + 1`
4874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877 ?*) ac_cv_sizeof_int=$ac_lo;;
4878 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4879 See \`config.log' for more details." >&5
4880 echo "$as_me: error: cannot compute sizeof (int), 77
4881 See \`config.log' for more details." >&2;}
4882 { (exit 1); exit 1; }; } ;;
4885 if test "$cross_compiling" = yes; then
4886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4887 See \`config.log' for more details." >&5
4888 echo "$as_me: error: cannot run test program while cross compiling
4889 See \`config.log' for more details." >&2;}
4890 { (exit 1); exit 1; }; }
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 long longval () { return (long) (sizeof (int)); }
4900 unsigned long ulongval () { return (long) (sizeof (int)); }
4907 FILE *f = fopen ("conftest.val", "w");
4910 if (((long) (sizeof (int))) < 0)
4912 long i = longval ();
4913 if (i != ((long) (sizeof (int))))
4915 fprintf (f, "%ld\n", i);
4919 unsigned long i = ulongval ();
4920 if (i != ((long) (sizeof (int))))
4922 fprintf (f, "%lu\n", i);
4924 exit (ferror (f) || fclose (f) != 0);
4930 rm -f conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_sizeof_int=`cat conftest.val`
4943 echo "$as_me: program exited with status $ac_status" >&5
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4949 See \`config.log' for more details." >&5
4950 echo "$as_me: error: cannot compute sizeof (int), 77
4951 See \`config.log' for more details." >&2;}
4952 { (exit 1); exit 1; }; }
4954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4963 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4964 cat >>confdefs.h <<_ACEOF
4965 #define SIZEOF_INT $ac_cv_sizeof_int
4969 echo "$as_me:$LINENO: checking for long" >&5
4970 echo $ECHO_N "checking for long... $ECHO_C" >&6
4971 if test "${ac_cv_type_long+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 $ac_includes_default
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5024 echo "${ECHO_T}$ac_cv_type_long" >&6
5026 echo "$as_me:$LINENO: checking size of long" >&5
5027 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5028 if test "${ac_cv_sizeof_long+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 if test "$ac_cv_type_long" = yes; then
5032 # The cast to unsigned long works around a bug in the HP C Compiler
5033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5035 # This bug is HP SR number 8606223364.
5036 if test "$cross_compiling" = yes; then
5037 # Depending upon the size, compute the lo and hi bounds.
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 $ac_includes_default
5048 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_c_werror_flag"
5065 || test ! -s conftest.err'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; } &&
5071 { ac_try='test -s conftest.$ac_objext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 $ac_includes_default
5089 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5096 rm -f conftest.$ac_objext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5098 (eval $ac_compile) 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest.$ac_objext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_hi=$ac_mid; break
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 ac_lo=`expr $ac_mid + 1`
5124 if test $ac_lo -le $ac_mid; then
5128 ac_mid=`expr 2 '*' $ac_mid + 1`
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 $ac_includes_default
5146 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5153 rm -f conftest.$ac_objext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5155 (eval $ac_compile) 2>conftest.er1
5157 grep -v '^ *+' conftest.er1 >conftest.err
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -z "$ac_c_werror_flag"
5163 || test ! -s conftest.err'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; } &&
5169 { ac_try='test -s conftest.$ac_objext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 $ac_includes_default
5187 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5194 rm -f conftest.$ac_objext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196 (eval $ac_compile) 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest.$ac_objext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_lo=$ac_mid; break
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_hi=`expr '(' $ac_mid ')' - 1`
5222 if test $ac_mid -le $ac_hi; then
5226 ac_mid=`expr 2 '*' $ac_mid`
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5239 # Binary search between lo and hi bounds.
5240 while test "x$ac_lo" != "x$ac_hi"; do
5241 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5252 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>conftest.er1
5263 grep -v '^ *+' conftest.er1 >conftest.err
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag"
5269 || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_lo=`expr '(' $ac_mid ')' + 1`
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5291 ?*) ac_cv_sizeof_long=$ac_lo;;
5292 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5293 See \`config.log' for more details." >&5
5294 echo "$as_me: error: cannot compute sizeof (long), 77
5295 See \`config.log' for more details." >&2;}
5296 { (exit 1); exit 1; }; } ;;
5299 if test "$cross_compiling" = yes; then
5300 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: cannot run test program while cross compiling
5303 See \`config.log' for more details." >&2;}
5304 { (exit 1); exit 1; }; }
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
5313 long longval () { return (long) (sizeof (long)); }
5314 unsigned long ulongval () { return (long) (sizeof (long)); }
5321 FILE *f = fopen ("conftest.val", "w");
5324 if (((long) (sizeof (long))) < 0)
5326 long i = longval ();
5327 if (i != ((long) (sizeof (long))))
5329 fprintf (f, "%ld\n", i);
5333 unsigned long i = ulongval ();
5334 if (i != ((long) (sizeof (long))))
5336 fprintf (f, "%lu\n", i);
5338 exit (ferror (f) || fclose (f) != 0);
5344 rm -f conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_cv_sizeof_long=`cat conftest.val`
5357 echo "$as_me: program exited with status $ac_status" >&5
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5363 See \`config.log' for more details." >&5
5364 echo "$as_me: error: cannot compute sizeof (long), 77
5365 See \`config.log' for more details." >&2;}
5366 { (exit 1); exit 1; }; }
5368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5376 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5377 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5378 cat >>confdefs.h <<_ACEOF
5379 #define SIZEOF_LONG $ac_cv_sizeof_long
5384 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5385 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5386 if test "${ac_cv_c_char_unsigned+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 cat >conftest.$ac_ext <<_ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5399 static int test_array [1 - 2 * !(((char) -1) < 0)];
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>conftest.er1
5410 grep -v '^ *+' conftest.er1 >conftest.err
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -z "$ac_c_werror_flag"
5416 || test ! -s conftest.err'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_c_char_unsigned=no
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 ac_cv_c_char_unsigned=yes
5435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5437 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5438 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5439 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5440 cat >>confdefs.h <<\_ACEOF
5441 #define __CHAR_UNSIGNED__ 1
5449 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5453 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5457 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5461 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5468 echo "$as_me:$LINENO: checking type name for byte" >&5
5469 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5470 TYPE_CHAR=`type_name 1`
5471 if test "$ac_cv_c_char_unsigned" = "yes"; then
5472 TYPE_BYTE="signed $TYPE_CHAR"
5474 TYPE_BYTE=$TYPE_CHAR
5476 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5477 echo "${ECHO_T}$TYPE_BYTE" >&6
5478 echo "$as_me:$LINENO: checking type name for word" >&5
5479 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5480 TYPE_WORD=`type_name 2`
5481 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5482 echo "${ECHO_T}$TYPE_WORD" >&6
5483 echo "$as_me:$LINENO: checking type name for dword" >&5
5484 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5485 TYPE_DWORD=`type_name 4`
5486 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5487 echo "${ECHO_T}$TYPE_DWORD" >&6
5489 cat >>confdefs.h <<_ACEOF
5490 #define TYPE_BYTE $TYPE_BYTE
5493 cat >>confdefs.h <<_ACEOF
5494 #define TYPE_WORD $TYPE_WORD
5497 cat >>confdefs.h <<_ACEOF
5498 #define TYPE_DWORD $TYPE_DWORD
5502 cat >>confdefs.h <<_ACEOF
5503 #define TYPE_UBYTE unsigned $TYPE_CHAR
5506 cat >>confdefs.h <<_ACEOF
5507 #define TYPE_UWORD unsigned $TYPE_WORD
5510 cat >>confdefs.h <<_ACEOF
5511 #define TYPE_UDWORD unsigned $TYPE_DWORD
5515 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5516 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5517 if test "${ac_cv_c_bigendian+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 # See if sys/param.h defines the BYTE_ORDER macro.
5521 cat >conftest.$ac_ext <<_ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <sys/types.h>
5528 #include <sys/param.h>
5533 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5541 rm -f conftest.$ac_objext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543 (eval $ac_compile) 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag"
5551 || test ! -s conftest.err'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; } &&
5557 { ac_try='test -s conftest.$ac_objext'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5563 # It does; now see whether it defined to BIG_ENDIAN or not.
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <sys/types.h>
5571 #include <sys/param.h>
5576 #if BYTE_ORDER != BIG_ENDIAN
5584 rm -f conftest.$ac_objext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586 (eval $ac_compile) 2>conftest.er1
5588 grep -v '^ *+' conftest.er1 >conftest.err
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -z "$ac_c_werror_flag"
5594 || test ! -s conftest.err'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; } &&
5600 { ac_try='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_c_bigendian=yes
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 ac_cv_c_bigendian=no
5613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 # It does not; compile a test program.
5619 if test "$cross_compiling" = yes; then
5620 # try to guess the endianness by grepping values into an object file
5621 ac_cv_c_bigendian=unknown
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5629 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5630 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5631 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5632 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5633 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5637 _ascii (); _ebcdic ();
5642 rm -f conftest.$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>conftest.er1
5646 grep -v '^ *+' conftest.er1 >conftest.err
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5665 ac_cv_c_bigendian=yes
5667 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5668 if test "$ac_cv_c_bigendian" = unknown; then
5669 ac_cv_c_bigendian=no
5671 # finding both strings is unlikely to happen, but who knows?
5672 ac_cv_c_bigendian=unknown
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5691 /* Are we little or big endian? From Harbison&Steele. */
5695 char c[sizeof (long)];
5698 exit (u.c[sizeof (long) - 1] == 1);
5701 rm -f conftest$ac_exeext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 (eval $ac_link) 2>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5712 ac_cv_c_bigendian=no
5714 echo "$as_me: program exited with status $ac_status" >&5
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5719 ac_cv_c_bigendian=yes
5721 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5727 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5728 case $ac_cv_c_bigendian in
5731 cat >>confdefs.h <<\_ACEOF
5732 #define WORDS_BIGENDIAN 1
5738 { { echo "$as_me:$LINENO: error: unknown endianness
5739 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5740 echo "$as_me: error: unknown endianness
5741 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5742 { (exit 1); exit 1; }; } ;;
5746 # Set standard installation paths
5747 # ===========================================================================
5749 # In the Makefiles we need paths with '/' as directory separator, even if
5750 # crosscompiling for Win32.
5751 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5752 # The variables in the Makefiles are replaced by AC_SUBST()
5754 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5756 # The macros are expanded for the header.
5757 # The variables in the header are replaced by AC_*DEFINE*()
5758 # sdccconf_h_dir_separator contains a backslash.
5760 if test "x${sdccconf_h_dir_separator}" = "x"; then
5761 sdccconf_h_dir_separator="/"
5767 # include_dir_suffix:
5768 # *nix default: "sdcc/include"
5771 if test "${include_dir_suffix}" = ""; then
5772 include_dir_suffix="sdcc/include"
5777 # *nix default: "sdcc/lib"
5779 if test "${lib_dir_suffix}" = ""; then
5780 lib_dir_suffix="sdcc/lib"
5785 # *nix default: "${datadir}/sdcc/doc"
5787 if test "${docdir}" = ""; then
5788 docdir="\${datadir}"/sdcc/doc
5797 cat >>confdefs.h <<_ACEOF
5798 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5801 cat >>confdefs.h <<_ACEOF
5802 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
5807 # default: "NONE", ${ac_default_prefix}: "/usr/local"
5809 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5810 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5812 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
5813 ac_expand=`eval echo $ac_expand`
5814 expanded_prefix=`eval echo $ac_expand`
5817 ac_ndu=$expanded_prefix
5820 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5823 case $sdccconf_h_dir_separator in
5825 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5826 s,^[\\/],\\\\\\\\,'` ;;
5828 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5830 cat >>confdefs.h <<_ACEOF
5831 #define PREFIX "${ac_ndu}"
5837 # default: "${prefix}"
5839 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5840 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5841 ac_expand=$exec_prefix
5842 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
5843 ac_expand=`eval echo $ac_expand`
5844 expanded_exec_prefix=`eval echo $ac_expand`
5847 ac_ndu=$expanded_exec_prefix
5850 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5853 case $sdccconf_h_dir_separator in
5855 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5856 s,^[\\/],\\\\\\\\,'` ;;
5858 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5860 cat >>confdefs.h <<_ACEOF
5861 #define EXEC_PREFIX "${ac_ndu}"
5867 # default: "${exec_prefix}/bin"
5869 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5872 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5873 ac_expand=`eval echo $ac_expand`
5874 expanded_bindir=`eval echo $ac_expand`
5877 ac_ndu=$expanded_bindir
5880 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5883 case $sdccconf_h_dir_separator in
5885 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5886 s,^[\\/],\\\\\\\\,'` ;;
5888 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5890 cat >>confdefs.h <<_ACEOF
5891 #define BINDIR "${ac_ndu}"
5897 # default: "${prefix}/share"
5899 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5902 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5903 ac_expand=`eval echo $ac_expand`
5904 expanded_datadir=`eval echo $ac_expand`
5907 ac_ndu=$expanded_datadir
5910 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5913 case $sdccconf_h_dir_separator in
5915 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5916 s,^[\\/],\\\\\\\\,'` ;;
5918 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5920 cat >>confdefs.h <<_ACEOF
5921 #define DATADIR "${ac_ndu}"
5926 # include/lib suffix
5927 norm_inc_dir_suffix=${include_dir_suffix}
5928 case ":$norm_inc_dir_suffix:" in
5929 ::) norm_inc_dir_suffix='.' ;;
5930 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5933 case $sdccconf_h_dir_separator in
5935 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5936 s,^[\\/],\\\\\\\\,'` ;;
5938 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5940 cat >>confdefs.h <<_ACEOF
5941 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
5944 norm_lib_dir_suffix=${lib_dir_suffix}
5945 case ":$norm_lib_dir_suffix:" in
5946 ::) norm_lib_dir_suffix='.' ;;
5947 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5950 case $sdccconf_h_dir_separator in
5952 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5953 s,^[\\/],\\\\\\\\,'` ;;
5955 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5957 cat >>confdefs.h <<_ACEOF
5958 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5963 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
5964 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
5965 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
5966 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
5967 _lcl_receval="$_lcl_from"
5968 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5969 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5971 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5972 _lcl_receval_old="$_lcl_receval"
5973 eval _lcl_receval="\"$_lcl_receval\""
5975 echo "$_lcl_receval")`
5976 _lcl_receval="$_lcl_to"
5977 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5978 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5980 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5981 _lcl_receval_old="$_lcl_receval"
5982 eval _lcl_receval="\"$_lcl_receval\""
5984 echo "$_lcl_receval")`
5985 _lcl_notation="$_lcl_from$_lcl_to"
5986 case ":$_lcl_from:" in
5987 ::) _lcl_from='.' ;;
5988 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
5993 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
5994 s,^[\\/],\\\\\\\\,'` ;;
5996 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5998 case ":$_lcl_to:" in
6000 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6005 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6006 s,^[\\/],\\\\\\\\,'` ;;
6008 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6010 _lcl_common_prefix=''
6011 _lcl_second_prefix_match=''
6012 while test "$_lcl_second_prefix_match" != 0; do
6013 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6014 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6015 if test "$_lcl_second_prefix_match" != 0; then
6016 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6017 _lcl_common_prefix="$_lcl_first_prefix"
6019 _lcl_second_prefix_match=0
6023 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6026 while test "$_lcl_tmp" != ''; do
6027 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6028 if test "$_lcl_first_suffix" != ''; then
6029 _lcl_first_suffix="$_lcl_tmp"
6030 _lcl_first_rel="../$_lcl_first_rel"
6033 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6034 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6035 case ":$_lcl_result_tmp:" in
6036 ::) _lcl_result_tmp='.' ;;
6037 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6040 case "$_lcl_notation" in
6042 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6043 s,^[\\/],\\\\\\\\,'` ;;
6045 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6047 eval $_lcl_result_var='$_lcl_result_tmp'
6049 case ":$bin2data_dir:" in
6050 ::) bin2data_dir='.' ;;
6051 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6054 case $sdccconf_h_dir_separator in
6056 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6057 s,^[\\/],\\\\\\\\,'` ;;
6059 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6061 cat >>confdefs.h <<_ACEOF
6062 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6066 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6067 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6068 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6069 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6070 _lcl_receval="$_lcl_from"
6071 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6072 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6074 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6075 _lcl_receval_old="$_lcl_receval"
6076 eval _lcl_receval="\"$_lcl_receval\""
6078 echo "$_lcl_receval")`
6079 _lcl_receval="$_lcl_to"
6080 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6081 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6083 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6084 _lcl_receval_old="$_lcl_receval"
6085 eval _lcl_receval="\"$_lcl_receval\""
6087 echo "$_lcl_receval")`
6088 _lcl_notation="$_lcl_from$_lcl_to"
6089 case ":$_lcl_from:" in
6090 ::) _lcl_from='.' ;;
6091 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6096 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6097 s,^[\\/],\\\\\\\\,'` ;;
6099 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6101 case ":$_lcl_to:" in
6103 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6108 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6109 s,^[\\/],\\\\\\\\,'` ;;
6111 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6113 _lcl_common_prefix=''
6114 _lcl_second_prefix_match=''
6115 while test "$_lcl_second_prefix_match" != 0; do
6116 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6117 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6118 if test "$_lcl_second_prefix_match" != 0; then
6119 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6120 _lcl_common_prefix="$_lcl_first_prefix"
6122 _lcl_second_prefix_match=0
6126 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6129 while test "$_lcl_tmp" != ''; do
6130 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6131 if test "$_lcl_first_suffix" != ''; then
6132 _lcl_first_suffix="$_lcl_tmp"
6133 _lcl_first_rel="../$_lcl_first_rel"
6136 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6137 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6138 case ":$_lcl_result_tmp:" in
6139 ::) _lcl_result_tmp='.' ;;
6140 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6143 case "$_lcl_notation" in
6145 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6146 s,^[\\/],\\\\\\\\,'` ;;
6148 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6150 eval $_lcl_result_var='$_lcl_result_tmp'
6152 case ":$prefix2bin_dir:" in
6153 ::) prefix2bin_dir='.' ;;
6154 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6157 case $sdccconf_h_dir_separator in
6159 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6160 s,^[\\/],\\\\\\\\,'` ;;
6162 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6164 cat >>confdefs.h <<_ACEOF
6165 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6169 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6170 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6171 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6172 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6173 _lcl_receval="$_lcl_from"
6174 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6175 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6177 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6178 _lcl_receval_old="$_lcl_receval"
6179 eval _lcl_receval="\"$_lcl_receval\""
6181 echo "$_lcl_receval")`
6182 _lcl_receval="$_lcl_to"
6183 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6184 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6186 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6187 _lcl_receval_old="$_lcl_receval"
6188 eval _lcl_receval="\"$_lcl_receval\""
6190 echo "$_lcl_receval")`
6191 _lcl_notation="$_lcl_from$_lcl_to"
6192 case ":$_lcl_from:" in
6193 ::) _lcl_from='.' ;;
6194 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6199 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6200 s,^[\\/],\\\\\\\\,'` ;;
6202 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6204 case ":$_lcl_to:" in
6206 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6211 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6212 s,^[\\/],\\\\\\\\,'` ;;
6214 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6216 _lcl_common_prefix=''
6217 _lcl_second_prefix_match=''
6218 while test "$_lcl_second_prefix_match" != 0; do
6219 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6220 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6221 if test "$_lcl_second_prefix_match" != 0; then
6222 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6223 _lcl_common_prefix="$_lcl_first_prefix"
6225 _lcl_second_prefix_match=0
6229 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6232 while test "$_lcl_tmp" != ''; do
6233 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6234 if test "$_lcl_first_suffix" != ''; then
6235 _lcl_first_suffix="$_lcl_tmp"
6236 _lcl_first_rel="../$_lcl_first_rel"
6239 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6240 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6241 case ":$_lcl_result_tmp:" in
6242 ::) _lcl_result_tmp='.' ;;
6243 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6246 case "$_lcl_notation" in
6248 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6249 s,^[\\/],\\\\\\\\,'` ;;
6251 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6253 eval $_lcl_result_var='$_lcl_result_tmp'
6255 case ":$prefix2data_dir:" in
6256 ::) prefix2data_dir='.' ;;
6257 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6260 case $sdccconf_h_dir_separator in
6262 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6263 s,^[\\/],\\\\\\\\,'` ;;
6265 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6267 if test "${prefix2data_dir}" = "."; then
6268 # small optimization for Mingw32; otherwise Borut will complain ;-)
6269 cat >>confdefs.h <<_ACEOF
6270 #define PREFIX2DATA_DIR ""
6274 cat >>confdefs.h <<_ACEOF
6275 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6281 cat >>confdefs.h <<_ACEOF
6282 #define STD_LIB "libsdcc"
6285 cat >>confdefs.h <<_ACEOF
6286 #define STD_INT_LIB "libint"
6289 cat >>confdefs.h <<_ACEOF
6290 #define STD_LONG_LIB "liblong"
6293 cat >>confdefs.h <<_ACEOF
6294 #define STD_FP_LIB "libfloat"
6297 cat >>confdefs.h <<_ACEOF
6298 #define STD_DS390_LIB "libds390"
6301 cat >>confdefs.h <<_ACEOF
6302 #define STD_DS400_LIB "libds400"
6305 cat >>confdefs.h <<_ACEOF
6306 #define STD_XA51_LIB "libxa51"
6310 # SDCC runtime environment variables
6311 sdcc_dir_name="SDCC_HOME"
6312 cat >>confdefs.h <<_ACEOF
6313 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6317 sdcc_include_name="SDCC_INCLUDE"
6318 cat >>confdefs.h <<_ACEOF
6319 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6323 sdcc_lib_name="SDCC_LIB"
6324 cat >>confdefs.h <<_ACEOF
6325 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6329 # Port selection helper
6330 # ===========================================================================
6331 # macro AC_DO_ENABLER()
6332 # $1 used to access enable_$1, e.g. enable-doc
6333 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6337 # macro AC_DO_DISABLER()
6338 # $1 used to access disable_$1, e.g. ucsim
6339 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6343 # macro AC_DO_PORT($1, $2, $3, $4)
6344 # $1 used to access enable_$2_port, e.g. gbz80
6345 # $2 port name in ports.all and ports.build, e.g. z80
6346 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6350 # Now handle the port selection
6351 # ===========================================================================
6352 rm -f ports.all ports.build
6354 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6355 if test "${enable_mcs51_port+set}" = set; then
6356 enableval="$enable_mcs51_port"
6360 if test "$enable_mcs51_port" = "no"; then
6363 enable_mcs51_port="yes"
6367 cat >>confdefs.h <<_ACEOF
6368 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6373 echo mcs51 >>ports.all
6374 if test $OPT_DISABLE_MCS51 = 0; then
6375 echo mcs51 >>ports.build
6379 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6380 if test "${enable_gbz80_port+set}" = set; then
6381 enableval="$enable_gbz80_port"
6385 if test "$enable_gbz80_port" = "no"; then
6388 enable_gbz80_port="yes"
6392 cat >>confdefs.h <<_ACEOF
6393 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6398 echo z80 >>ports.all
6399 if test $OPT_DISABLE_GBZ80 = 0; then
6400 echo z80 >>ports.build
6404 # Check whether --enable-z80-port or --disable-z80-port was given.
6405 if test "${enable_z80_port+set}" = set; then
6406 enableval="$enable_z80_port"
6410 if test "$enable_z80_port" = "no"; then
6413 enable_z80_port="yes"
6417 cat >>confdefs.h <<_ACEOF
6418 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6423 echo z80 >>ports.all
6424 if test $OPT_DISABLE_Z80 = 0; then
6425 echo z80 >>ports.build
6429 # Check whether --enable-avr-port or --disable-avr-port was given.
6430 if test "${enable_avr_port+set}" = set; then
6431 enableval="$enable_avr_port"
6435 if test "$enable_avr_port" = "no"; then
6438 enable_avr_port="yes"
6442 cat >>confdefs.h <<_ACEOF
6443 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
6448 echo avr >>ports.all
6449 if test $OPT_DISABLE_AVR = 0; then
6450 echo avr >>ports.build
6454 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6455 if test "${enable_ds390_port+set}" = set; then
6456 enableval="$enable_ds390_port"
6460 if test "$enable_ds390_port" = "no"; then
6463 enable_ds390_port="yes"
6467 cat >>confdefs.h <<_ACEOF
6468 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
6473 echo ds390 >>ports.all
6474 if test $OPT_DISABLE_DS390 = 0; then
6475 echo ds390 >>ports.build
6478 cat >>confdefs.h <<_ACEOF
6479 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
6483 # Check whether --enable-ds400-port or --disable-ds400-port was given.
6484 if test "${enable_ds400_port+set}" = set; then
6485 enableval="$enable_ds400_port"
6489 if test "$enable_ds400_port" = "no"; then
6492 enable_ds400_port="yes"
6496 cat >>confdefs.h <<_ACEOF
6497 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
6502 echo ds400 >>ports.all
6503 if test $OPT_DISABLE_DS400 = 0; then
6504 echo ds400 >>ports.build
6508 # Check whether --enable-pic-port or --disable-pic-port was given.
6509 if test "${enable_pic_port+set}" = set; then
6510 enableval="$enable_pic_port"
6514 if test "$enable_pic_port" = "no"; then
6517 enable_pic_port="yes"
6521 cat >>confdefs.h <<_ACEOF
6522 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
6527 echo pic >>ports.all
6528 if test $OPT_DISABLE_PIC = 0; then
6529 echo pic >>ports.build
6533 # Check whether --enable-pic16-port or --disable-pic16-port was given.
6534 if test "${enable_pic16_port+set}" = set; then
6535 enableval="$enable_pic16_port"
6539 if test "$enable_pic16_port" = "no"; then
6542 enable_pic16_port="yes"
6546 cat >>confdefs.h <<_ACEOF
6547 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
6552 echo pic16 >>ports.all
6553 if test $OPT_DISABLE_PIC16 = 0; then
6554 echo pic16 >>ports.build
6558 # Check whether --enable-xa51-port or --disable-xa51-port was given.
6559 if test "${enable_xa51_port+set}" = set; then
6560 enableval="$enable_xa51_port"
6564 if test "$enable_xa51_port" = "no"; then
6567 enable_xa51_port="yes"
6571 cat >>confdefs.h <<_ACEOF
6572 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
6577 echo xa51 >>ports.all
6578 if test $OPT_DISABLE_XA51 = 0; then
6579 echo xa51 >>ports.build
6583 # Check whether --enable-hc08-port or --disable-hc08-port was given.
6584 if test "${enable_hc08_port+set}" = set; then
6585 enableval="$enable_hc08_port"
6589 if test "$enable_hc08_port" = "no"; then
6592 enable_hc08_port="yes"
6596 cat >>confdefs.h <<_ACEOF
6597 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
6602 echo hc08 >>ports.all
6603 if test $OPT_DISABLE_HC08 = 0; then
6604 echo hc08 >>ports.build
6609 # Check whether --enable-ucsim or --disable-ucsim was given.
6610 if test "${enable_ucsim+set}" = set; then
6611 enableval="$enable_ucsim"
6615 arg1=`echo ucsim | sed s/-/_/`
6617 if test "`eval echo \\$enable_$arg1`" = "no"; then
6623 cat >>confdefs.h <<_ACEOF
6624 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
6630 # Check whether --enable-device-lib or --disable-device-lib was given.
6631 if test "${enable_device_lib+set}" = set; then
6632 enableval="$enable_device_lib"
6636 arg1=`echo device-lib | sed s/-/_/`
6638 if test "`eval echo \\$enable_$arg1`" = "no"; then
6639 OPT_DISABLE_DEVICE_LIB=1
6641 OPT_DISABLE_DEVICE_LIB=0
6644 cat >>confdefs.h <<_ACEOF
6645 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
6651 # Check whether --enable-packihx or --disable-packihx was given.
6652 if test "${enable_packihx+set}" = set; then
6653 enableval="$enable_packihx"
6657 arg1=`echo packihx | sed s/-/_/`
6659 if test "`eval echo \\$enable_$arg1`" = "no"; then
6660 OPT_DISABLE_PACKIHX=1
6662 OPT_DISABLE_PACKIHX=0
6665 cat >>confdefs.h <<_ACEOF
6666 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
6672 # Check whether --enable-sdcpp or --disable-sdcpp was given.
6673 if test "${enable_sdcpp+set}" = set; then
6674 enableval="$enable_sdcpp"
6678 arg1=`echo sdcpp | sed s/-/_/`
6680 if test "`eval echo \\$enable_$arg1`" = "no"; then
6686 cat >>confdefs.h <<_ACEOF
6687 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
6693 # Check whether --enable-sdcdb or --disable-sdcdb was given.
6694 if test "${enable_sdcdb+set}" = set; then
6695 enableval="$enable_sdcdb"
6699 arg1=`echo sdcdb | sed s/-/_/`
6701 if test "`eval echo \\$enable_$arg1`" = "no"; then
6707 cat >>confdefs.h <<_ACEOF
6708 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
6715 # Check whether --enable-doc or --disable-doc was given.
6716 if test "${enable_doc+set}" = set; then
6717 enableval="$enable_doc"
6721 if test "$enable_doc" = "yes"; then
6727 cat >>confdefs.h <<_ACEOF
6728 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
6733 if test $OPT_ENABLE_DOC = 1; then
6734 # Extract the first word of "lyx", so it can be a program name with args.
6735 set dummy lyx; ac_word=$2
6736 echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6738 if test "${ac_cv_prog_LYX+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 if test -n "$LYX"; then
6742 ac_cv_prog_LYX="$LYX" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_LYX="lyx"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
6762 if test -n "$LYX"; then
6763 echo "$as_me:$LINENO: result: $LYX" >&5
6764 echo "${ECHO_T}$LYX" >&6
6766 echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6
6770 # Extract the first word of "latex2html", so it can be a program name with args.
6771 set dummy latex2html; ac_word=$2
6772 echo "$as_me:$LINENO: checking for $ac_word" >&5
6773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6774 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 if test -n "$LATEX2HTML"; then
6778 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_LATEX2HTML="latex2html"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
6797 LATEX2HTML=$ac_cv_prog_LATEX2HTML
6798 if test -n "$LATEX2HTML"; then
6799 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
6800 echo "${ECHO_T}$LATEX2HTML" >&6
6802 echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6
6806 # Extract the first word of "pdflatex", so it can be a program name with args.
6807 set dummy pdflatex; ac_word=$2
6808 echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6810 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 if test -n "$PDFLATEX"; then
6814 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_PDFLATEX="pdflatex"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
6833 PDFLATEX=$ac_cv_prog_PDFLATEX
6834 if test -n "$PDFLATEX"; then
6835 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
6836 echo "${ECHO_T}$PDFLATEX" >&6
6838 echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6
6842 # Extract the first word of "pdfopt", so it can be a program name with args.
6843 set dummy pdfopt; ac_word=$2
6844 echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6846 if test "${ac_cv_prog_PDFOPT+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 if test -n "$PDFOPT"; then
6850 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_PDFOPT="pdfopt"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
6869 PDFOPT=$ac_cv_prog_PDFOPT
6870 if test -n "$PDFOPT"; then
6871 echo "$as_me:$LINENO: result: $PDFOPT" >&5
6872 echo "${ECHO_T}$PDFOPT" >&6
6874 echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6
6878 # Extract the first word of "makeindex", so it can be a program name with args.
6879 set dummy makeindex; ac_word=$2
6880 echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6882 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 if test -n "$MAKEINDEX"; then
6886 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_MAKEINDEX="makeindex"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
6905 MAKEINDEX=$ac_cv_prog_MAKEINDEX
6906 if test -n "$MAKEINDEX"; then
6907 echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
6908 echo "${ECHO_T}$MAKEINDEX" >&6
6910 echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6
6915 if test "$LYX" = ":"; then
6916 { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
6917 echo "$as_me: error: Cannot find required program lyx." >&2;}
6918 { (exit 1); exit 1; }; }
6921 if test "$LATEX2HTML" = ":"; then
6922 { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
6923 echo "$as_me: error: Cannot find required program latex2html." >&2;}
6924 { (exit 1); exit 1; }; }
6927 if test "$PDFLATEX" = ":"; then
6928 { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
6929 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
6930 { (exit 1); exit 1; }; }
6933 if test "$PDFOPT" = ":"; then
6934 { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
6935 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
6936 { (exit 1); exit 1; }; }
6939 if test "$MAKEINDEX" = ":"; then
6940 { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
6941 echo "$as_me: error: Cannot find required program makeindex." >&2;}
6942 { (exit 1); exit 1; }; }
6948 # Check whether --enable-libgc or --disable-libgc was given.
6949 if test "${enable_libgc+set}" = set; then
6950 enableval="$enable_libgc"
6954 if test "$enable_libgc" = "yes"; then
6960 cat >>confdefs.h <<_ACEOF
6961 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
6966 if test $OPT_ENABLE_LIBGC = 1; then
6968 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
6969 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
6970 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_check_lib_save_LIBS=$LIBS
6975 cat >conftest.$ac_ext <<_ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6982 /* Override any gcc2 internal prototype to avoid an error. */
6986 /* We use char because int might match the return type of a gcc2
6987 builtin and then its argument prototype would still apply. */
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999 (eval $ac_link) 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } &&
7006 { ac_try='test -z "$ac_c_werror_flag"
7007 || test ! -s conftest.err'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_lib_gc_GC_malloc=yes
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_cv_lib_gc_GC_malloc=no
7026 rm -f conftest.err conftest.$ac_objext \
7027 conftest$ac_exeext conftest.$ac_ext
7028 LIBS=$ac_check_lib_save_LIBS
7030 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7031 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7032 if test $ac_cv_lib_gc_GC_malloc = yes; then
7033 cat >>confdefs.h <<_ACEOF
7034 #define HAVE_LIBGC 1
7041 if test $ac_cv_lib_gc_GC_malloc = no; then
7042 { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7043 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7044 { (exit 1); exit 1; }; }
7049 uniq ports.all ports
7051 uniq ports.build ports
7052 mv ports ports.build
7054 # Generating output files
7055 # ===========================================================================
7056 test $OPT_DISABLE_SDCPP = 0 &&
7058 subdirs="$subdirs support/cpp2"
7060 test $OPT_DISABLE_PACKIHX = 0 &&
7062 subdirs="$subdirs support/packihx"
7064 test $OPT_DISABLE_UCSIM = 0 &&
7066 subdirs="$subdirs sim/ucsim"
7068 test $OPT_DISABLE_SDCDB = 0 &&
7070 subdirs="$subdirs debugger/mcs51"
7072 ac_config_files="$ac_config_files doc/Makefile"
7075 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7078 if test $OPT_DISABLE_DS390 = 0; then
7079 ac_config_files="$ac_config_files src/ds390/Makefile"
7081 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7085 if test $OPT_DISABLE_DS400 = 0; then
7086 ac_config_files="$ac_config_files src/ds400/Makefile"
7088 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7092 if test $OPT_DISABLE_HC08 = 0; then
7093 ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7095 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7099 if test $OPT_DISABLE_MCS51 = 0; then
7100 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7102 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"
7106 if test $OPT_DISABLE_PIC = 0; then
7107 ac_config_files="$ac_config_files src/pic/Makefile"
7109 test $OPT_DISABLE_DEVICE_LIB = 0 &&
7111 subdirs="$subdirs device/lib/pic"
7114 if test $OPT_DISABLE_PIC16 = 0; then
7115 ac_config_files="$ac_config_files src/pic16/Makefile"
7117 test $OPT_DISABLE_DEVICE_LIB = 0 &&
7119 subdirs="$subdirs device/lib/pic16"
7123 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7126 if test $OPT_DISABLE_Z80 = 0; then
7127 ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7129 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7133 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7136 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile device/include/Makefile support/librarian/Makefile support/makebin/Makefile support/regression/Makefile support/valdiag/Makefile Makefile Makefile.common:Makefile.common.in"
7138 cat >confcache <<\_ACEOF
7139 # This file is a shell script that caches the results of configure
7140 # tests run on this system so they can be shared between configure
7141 # scripts and configure runs, see configure's option --config-cache.
7142 # It is not useful on other systems. If it contains results you don't
7143 # want to keep, you may remove or edit it.
7145 # config.status only pays attention to the cache file if you give it
7146 # the --recheck option to rerun configure.
7148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7154 # The following way of writing the cache mishandles newlines in values,
7155 # but we know of no workaround that is simple, portable, and efficient.
7156 # So, don't put newlines in cache variables' values.
7157 # Ultrix sh set writes to stderr and can't be redirected directly,
7158 # and sets the high bit in the cache file unless we assign to the vars.
7161 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7163 # `set' does not quote correctly, so add quotes (double-quote
7164 # substitution turns \\\\ into \\, and sed turns \\ into \).
7167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7170 # `set' quotes correctly as required by POSIX, so do not add quotes.
7172 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7181 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7183 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7184 if test -w $cache_file; then
7185 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7186 cat confcache >$cache_file
7188 echo "not updating unwritable cache $cache_file"
7193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7194 # Let make expand exec_prefix.
7195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7199 # trailing colons and then remove the whole line if VPATH becomes empty
7200 # (actually we leave an empty line to preserve line numbers).
7201 if test "x$srcdir" = x.; then
7202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7203 s/:*\$(srcdir):*/:/;
7204 s/:*\${srcdir}:*/:/;
7206 s/^\([^=]*=[ ]*\):*/\1/;
7212 DEFS=-DHAVE_CONFIG_H
7216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7217 # 1. Remove the extension, and $U if already installed.
7218 ac_i=`echo "$ac_i" |
7219 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7221 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7222 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7226 LTLIBOBJS=$ac_ltlibobjs
7230 : ${CONFIG_STATUS=./config.status}
7231 ac_clean_files_save=$ac_clean_files
7232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7235 cat >$CONFIG_STATUS <<_ACEOF
7237 # Generated by $as_me.
7238 # Run this file to recreate the current configuration.
7239 # Compiler output produced by configure, useful for debugging
7240 # configure, is in config.log if it exists.
7245 SHELL=\${CONFIG_SHELL-$SHELL}
7248 cat >>$CONFIG_STATUS <<\_ACEOF
7249 ## --------------------- ##
7250 ## M4sh Initialization. ##
7251 ## --------------------- ##
7253 # Be Bourne compatible
7254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7257 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7258 # is contrary to our usage. Disable this feature.
7259 alias -g '${1+"$@"}'='"$@"'
7260 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7263 DUALCASE=1; export DUALCASE # for MKS sh
7265 # Support unset when possible.
7266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7273 # Work around bugs in pre-3.0 UWIN ksh.
7274 $as_unset ENV MAIL MAILPATH
7281 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7282 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7283 LC_TELEPHONE LC_TIME
7285 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7286 eval $as_var=C; export $as_var
7292 # Required to use basename.
7293 if expr a : '\(a\)' >/dev/null 2>&1; then
7299 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7300 as_basename=basename
7306 # Name of the executable.
7307 as_me=`$as_basename "$0" ||
7308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7309 X"$0" : 'X\(//\)$' \| \
7310 X"$0" : 'X\(/\)$' \| \
7311 . : '\(.\)' 2>/dev/null ||
7313 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7314 /^X\/\(\/\/\)$/{ s//\1/; q; }
7315 /^X\/\(\/\).*/{ s//\1/; q; }
7319 # PATH needs CR, and LINENO needs CR and PATH.
7320 # Avoid depending upon Character Ranges.
7321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7324 as_cr_digits='0123456789'
7325 as_cr_alnum=$as_cr_Letters$as_cr_digits
7327 # The user is always right.
7328 if test "${PATH_SEPARATOR+set}" != set; then
7329 echo "#! /bin/sh" >conf$$.sh
7330 echo "exit 0" >>conf$$.sh
7332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7343 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7344 test "x$as_lineno_1" != "x$as_lineno_2" &&
7345 test "x$as_lineno_3" = "x$as_lineno_2" || {
7346 # Find who we are. Look in the path if we contain no path at all
7349 *[\\/]* ) as_myself=$0 ;;
7350 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7360 # We did not find ourselves, most probably we were run as `sh COMMAND'
7361 # in which case we are not to be found in the path.
7362 if test "x$as_myself" = x; then
7365 if test ! -f "$as_myself"; then
7366 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7367 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7368 { (exit 1); exit 1; }; }
7370 case $CONFIG_SHELL in
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7376 test -z "$as_dir" && as_dir=.
7377 for as_base in sh bash ksh sh5; do
7380 if ("$as_dir/$as_base" -c '
7383 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7384 test "x$as_lineno_1" != "x$as_lineno_2" &&
7385 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7386 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7387 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7388 CONFIG_SHELL=$as_dir/$as_base
7390 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7399 # uniformly replaced by the line number. The first 'sed' inserts a
7400 # line-number line before each line; the second 'sed' does the real
7401 # work. The second script uses 'N' to pair each line-number line
7402 # with the numbered line, and appends trailing '-' during
7403 # substitution so that $LINENO is not a special case at line end.
7404 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7405 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7406 sed '=' <$as_myself |
7411 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7414 s,^['$as_cr_digits']*\n,,
7416 chmod +x $as_me.lineno ||
7417 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7418 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7419 { (exit 1); exit 1; }; }
7421 # Don't try to exec as it changes $[0], causing all sort of problems
7422 # (the dirname of $[0] is not the place where we might find the
7423 # original and so on. Autoconf is especially sensible to this).
7425 # Exit status is that of the last command.
7430 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7431 *c*,-n*) ECHO_N= ECHO_C='
7433 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7434 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7437 if expr a : '\(a\)' >/dev/null 2>&1; then
7443 rm -f conf$$ conf$$.exe conf$$.file
7445 if ln -s conf$$.file conf$$ 2>/dev/null; then
7446 # We could just check for DJGPP; but this test a) works b) is more generic
7447 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7448 if test -f conf$$.exe; then
7449 # Don't use ln at all; we don't have any links
7454 elif ln conf$$.file conf$$ 2>/dev/null; then
7459 rm -f conf$$ conf$$.exe conf$$.file
7461 if mkdir -p . 2>/dev/null; then
7464 test -d ./-p && rmdir ./-p
7468 as_executable_p="test -f"
7470 # Sed expression to map a string onto a valid CPP name.
7471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7473 # Sed expression to map a string onto a valid variable name.
7474 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7478 # We need space, tab and new line, in precisely that order.
7488 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7489 # report actual input values of CONFIG_FILES etc. instead of their
7490 # values after options handling. Logging --version etc. is OK.
7494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7495 ## Running $as_me. ##
7500 This file was extended by $as_me, which was
7501 generated by GNU Autoconf 2.59. Invocation command line was
7503 CONFIG_FILES = $CONFIG_FILES
7504 CONFIG_HEADERS = $CONFIG_HEADERS
7505 CONFIG_LINKS = $CONFIG_LINKS
7506 CONFIG_COMMANDS = $CONFIG_COMMANDS
7510 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7514 # Files that config.status was made for.
7515 if test -n "$ac_config_files"; then
7516 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7519 if test -n "$ac_config_headers"; then
7520 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7523 if test -n "$ac_config_links"; then
7524 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7527 if test -n "$ac_config_commands"; then
7528 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7531 cat >>$CONFIG_STATUS <<\_ACEOF
7534 \`$as_me' instantiates files from templates according to the
7535 current configuration.
7537 Usage: $0 [OPTIONS] [FILE]...
7539 -h, --help print this help, then exit
7540 -V, --version print version number, then exit
7541 -q, --quiet do not print progress messages
7542 -d, --debug don't remove temporary files
7543 --recheck update $as_me by reconfiguring in the same conditions
7544 --file=FILE[:TEMPLATE]
7545 instantiate the configuration file FILE
7546 --header=FILE[:TEMPLATE]
7547 instantiate the configuration header FILE
7549 Configuration files:
7552 Configuration headers:
7555 Report bugs to <bug-autoconf@gnu.org>."
7558 cat >>$CONFIG_STATUS <<_ACEOF
7561 configured by $0, generated by GNU Autoconf 2.59,
7562 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7564 Copyright (C) 2003 Free Software Foundation, Inc.
7565 This config.status script is free software; the Free Software Foundation
7566 gives unlimited permission to copy, distribute and modify it."
7571 cat >>$CONFIG_STATUS <<\_ACEOF
7572 # If no file are specified by the user, then we need to provide default
7573 # value. By we need to know if files were specified by the user.
7579 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7580 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7588 *) # This is not an option, so the user has probably given explicit
7591 ac_need_defaults=false;;
7595 # Handling of the options.
7597 cat >>$CONFIG_STATUS <<\_ACEOF
7598 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7600 --version | --vers* | -V )
7601 echo "$ac_cs_version"; exit 0 ;;
7603 # Conflict between --help and --header
7604 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7605 Try \`$0 --help' for more information." >&5
7606 echo "$as_me: error: ambiguous option: $1
7607 Try \`$0 --help' for more information." >&2;}
7608 { (exit 1); exit 1; }; };;
7609 --help | --hel | -h )
7610 echo "$ac_cs_usage"; exit 0 ;;
7611 --debug | --d* | -d )
7613 --file | --fil | --fi | --f )
7615 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7616 ac_need_defaults=false;;
7617 --header | --heade | --head | --hea )
7619 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7620 ac_need_defaults=false;;
7621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7626 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7627 Try \`$0 --help' for more information." >&5
7628 echo "$as_me: error: unrecognized option: $1
7629 Try \`$0 --help' for more information." >&2;}
7630 { (exit 1); exit 1; }; } ;;
7632 *) ac_config_targets="$ac_config_targets $1" ;;
7638 ac_configure_extra_args=
7640 if $ac_cs_silent; then
7642 ac_configure_extra_args="$ac_configure_extra_args --silent"
7646 cat >>$CONFIG_STATUS <<_ACEOF
7647 if \$ac_cs_recheck; then
7648 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7649 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7658 cat >>$CONFIG_STATUS <<\_ACEOF
7659 for ac_config_target in $ac_config_targets
7661 case "$ac_config_target" in
7662 # Handling of arguments.
7663 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7664 "src/avr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
7665 "src/ds390/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
7666 "device/lib/ds390/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
7667 "src/ds400/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
7668 "device/lib/ds400/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
7669 "src/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
7670 "as/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
7671 "as/link/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
7672 "device/lib/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
7673 "src/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
7674 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7675 "as/link/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
7676 "device/lib/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
7677 "device/lib/small/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
7678 "device/lib/medium/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
7679 "device/lib/large/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
7680 "src/pic/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
7681 "src/pic16/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
7682 "src/xa51/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
7683 "src/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
7684 "as/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
7685 "as/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
7686 "as/link/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
7687 "as/link/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
7688 "device/lib/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
7689 "device/lib/gbz80/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
7690 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7691 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7692 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7693 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7694 "support/librarian/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
7695 "support/makebin/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
7696 "support/regression/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
7697 "support/valdiag/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
7698 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7699 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7700 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7701 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7702 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7703 { (exit 1); exit 1; }; };;
7707 # If the user did not use the arguments to specify the items to instantiate,
7708 # then the envvar interface is used. Set only those that are not.
7709 # We use the long form for the default assignment because of an extremely
7710 # bizarre bug on SunOS 4.1.3.
7711 if $ac_need_defaults; then
7712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7713 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7716 # Have a temporary directory for convenience. Make it in the build tree
7717 # simply because there is no reason to put it here, and in addition,
7718 # creating and moving files from /tmp can sometimes cause problems.
7719 # Create a temporary directory, and hook for its removal unless debugging.
7722 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7723 trap '{ (exit 1); exit 1; }' 1 2 13 15
7726 # Create a (secure) tmp directory for tmp files.
7729 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7730 test -n "$tmp" && test -d "$tmp"
7733 tmp=./confstat$$-$RANDOM
7734 (umask 077 && mkdir $tmp)
7737 echo "$me: cannot create a temporary directory in ." >&2
7738 { (exit 1); exit 1; }
7743 cat >>$CONFIG_STATUS <<_ACEOF
7746 # CONFIG_FILES section.
7749 # No need to generate the scripts if there are no CONFIG_FILES.
7750 # This happens for instance when ./config.status config.h
7751 if test -n "\$CONFIG_FILES"; then
7752 # Protect against being on the right side of a sed subst in config.status.
7753 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7754 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7755 s,@SHELL@,$SHELL,;t t
7756 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7757 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7758 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7759 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7760 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7761 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7762 s,@exec_prefix@,$exec_prefix,;t t
7763 s,@prefix@,$prefix,;t t
7764 s,@program_transform_name@,$program_transform_name,;t t
7765 s,@bindir@,$bindir,;t t
7766 s,@sbindir@,$sbindir,;t t
7767 s,@libexecdir@,$libexecdir,;t t
7768 s,@datadir@,$datadir,;t t
7769 s,@sysconfdir@,$sysconfdir,;t t
7770 s,@sharedstatedir@,$sharedstatedir,;t t
7771 s,@localstatedir@,$localstatedir,;t t
7772 s,@libdir@,$libdir,;t t
7773 s,@includedir@,$includedir,;t t
7774 s,@oldincludedir@,$oldincludedir,;t t
7775 s,@infodir@,$infodir,;t t
7776 s,@mandir@,$mandir,;t t
7777 s,@build_alias@,$build_alias,;t t
7778 s,@host_alias@,$host_alias,;t t
7779 s,@target_alias@,$target_alias,;t t
7781 s,@ECHO_C@,$ECHO_C,;t t
7782 s,@ECHO_N@,$ECHO_N,;t t
7783 s,@ECHO_T@,$ECHO_T,;t t
7786 s,@VERSION@,$VERSION,;t t
7787 s,@VERSIONHI@,$VERSIONHI,;t t
7788 s,@VERSIONLO@,$VERSIONLO,;t t
7789 s,@VERSIONP@,$VERSIONP,;t t
7791 s,@CFLAGS@,$CFLAGS,;t t
7792 s,@LDFLAGS@,$LDFLAGS,;t t
7793 s,@CPPFLAGS@,$CPPFLAGS,;t t
7794 s,@ac_ct_CC@,$ac_ct_CC,;t t
7795 s,@EXEEXT@,$EXEEXT,;t t
7796 s,@OBJEXT@,$OBJEXT,;t t
7798 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7799 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7800 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7801 s,@RANLIB@,$RANLIB,;t t
7802 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7803 s,@AUTOCONF@,$AUTOCONF,;t t
7804 s,@STRIP@,$STRIP,;t t
7809 s,@M_OR_MM@,$M_OR_MM,;t t
7810 s,@EGREP@,$EGREP,;t t
7811 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
7812 s,@include_dir_suffix@,$include_dir_suffix,;t t
7813 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
7814 s,@docdir@,$docdir,;t t
7815 s,@OPT_DISABLE_MCS51@,$OPT_DISABLE_MCS51,;t t
7816 s,@OPT_DISABLE_GBZ80@,$OPT_DISABLE_GBZ80,;t t
7817 s,@OPT_DISABLE_Z80@,$OPT_DISABLE_Z80,;t t
7818 s,@OPT_DISABLE_AVR@,$OPT_DISABLE_AVR,;t t
7819 s,@OPT_DISABLE_DS390@,$OPT_DISABLE_DS390,;t t
7820 s,@OPT_DISABLE_DS400@,$OPT_DISABLE_DS400,;t t
7821 s,@OPT_DISABLE_PIC@,$OPT_DISABLE_PIC,;t t
7822 s,@OPT_DISABLE_PIC16@,$OPT_DISABLE_PIC16,;t t
7823 s,@OPT_DISABLE_XA51@,$OPT_DISABLE_XA51,;t t
7824 s,@OPT_DISABLE_HC08@,$OPT_DISABLE_HC08,;t t
7825 s,@OPT_DISABLE_UCSIM@,$OPT_DISABLE_UCSIM,;t t
7826 s,@OPT_DISABLE_DEVICE_LIB@,$OPT_DISABLE_DEVICE_LIB,;t t
7827 s,@OPT_DISABLE_PACKIHX@,$OPT_DISABLE_PACKIHX,;t t
7828 s,@OPT_DISABLE_SDCPP@,$OPT_DISABLE_SDCPP,;t t
7829 s,@OPT_DISABLE_SDCDB@,$OPT_DISABLE_SDCDB,;t t
7830 s,@OPT_ENABLE_DOC@,$OPT_ENABLE_DOC,;t t
7832 s,@LATEX2HTML@,$LATEX2HTML,;t t
7833 s,@PDFLATEX@,$PDFLATEX,;t t
7834 s,@PDFOPT@,$PDFOPT,;t t
7835 s,@MAKEINDEX@,$MAKEINDEX,;t t
7836 s,@OPT_ENABLE_LIBGC@,$OPT_ENABLE_LIBGC,;t t
7837 s,@subdirs@,$subdirs,;t t
7838 s,@LIBOBJS@,$LIBOBJS,;t t
7839 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7844 cat >>$CONFIG_STATUS <<\_ACEOF
7845 # Split the substitutions into bite-sized pieces for seds with
7846 # small command number limits, like on Digital OSF/1 and HP-UX.
7848 ac_sed_frag=1 # Number of current file.
7849 ac_beg=1 # First line for current file.
7850 ac_end=$ac_max_sed_lines # Line after last line for current file.
7853 while $ac_more_lines; do
7854 if test $ac_beg -gt 1; then
7855 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7857 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7859 if test ! -s $tmp/subs.frag; then
7862 # The purpose of the label and of the branching condition is to
7863 # speed up the sed processing (if there are no `@' at all, there
7864 # is no need to browse any of the substitutions).
7865 # These are the two extra sed commands mentioned above.
7867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7868 if test -z "$ac_sed_cmds"; then
7869 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7871 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7873 ac_sed_frag=`expr $ac_sed_frag + 1`
7875 ac_end=`expr $ac_end + $ac_max_sed_lines`
7878 if test -z "$ac_sed_cmds"; then
7881 fi # test -n "$CONFIG_FILES"
7884 cat >>$CONFIG_STATUS <<\_ACEOF
7885 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7886 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7888 - | *:- | *:-:* ) # input from stdin
7890 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7891 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7892 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7893 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7894 * ) ac_file_in=$ac_file.in ;;
7897 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7898 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7900 X"$ac_file" : 'X\(//\)[^/]' \| \
7901 X"$ac_file" : 'X\(//\)$' \| \
7902 X"$ac_file" : 'X\(/\)' \| \
7903 . : '\(.\)' 2>/dev/null ||
7905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7907 /^X\(\/\/\)$/{ s//\1/; q; }
7908 /^X\(\/\).*/{ s//\1/; q; }
7910 { if $as_mkdir_p; then
7915 while test ! -d "$as_dir"; do
7916 as_dirs="$as_dir $as_dirs"
7917 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7918 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7919 X"$as_dir" : 'X\(//\)[^/]' \| \
7920 X"$as_dir" : 'X\(//\)$' \| \
7921 X"$as_dir" : 'X\(/\)' \| \
7922 . : '\(.\)' 2>/dev/null ||
7924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7926 /^X\(\/\/\)$/{ s//\1/; q; }
7927 /^X\(\/\).*/{ s//\1/; q; }
7930 test ! -n "$as_dirs" || mkdir $as_dirs
7931 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7932 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7933 { (exit 1); exit 1; }; }; }
7937 if test "$ac_dir" != .; then
7938 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7939 # A "../" for each directory in $ac_dir_suffix.
7940 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7942 ac_dir_suffix= ac_top_builddir=
7946 .) # No --srcdir option. We are building in place.
7948 if test -z "$ac_top_builddir"; then
7951 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7953 [\\/]* | ?:[\\/]* ) # Absolute path.
7954 ac_srcdir=$srcdir$ac_dir_suffix;
7955 ac_top_srcdir=$srcdir ;;
7957 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7958 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7961 # Do not use `cd foo && pwd` to compute absolute paths, because
7962 # the directories may not exist.
7964 .) ac_abs_builddir="$ac_dir";;
7967 .) ac_abs_builddir=`pwd`;;
7968 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7969 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7972 case $ac_abs_builddir in
7973 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7975 case ${ac_top_builddir}. in
7976 .) ac_abs_top_builddir=$ac_abs_builddir;;
7977 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7978 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7981 case $ac_abs_builddir in
7982 .) ac_abs_srcdir=$ac_srcdir;;
7985 .) ac_abs_srcdir=$ac_abs_builddir;;
7986 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7987 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7990 case $ac_abs_builddir in
7991 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7993 case $ac_top_srcdir in
7994 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7995 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7996 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8003 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8006 if test x"$ac_file" != x-; then
8007 { echo "$as_me:$LINENO: creating $ac_file" >&5
8008 echo "$as_me: creating $ac_file" >&6;}
8011 # Let's still pretend it is `configure' which instantiates (i.e., don't
8012 # use $as_me), people would be surprised to read:
8013 # /* config.h. Generated by config.status. */
8014 if test x"$ac_file" = x-; then
8017 configure_input="$ac_file. "
8019 configure_input=$configure_input"Generated from `echo $ac_file_in |
8020 sed 's,.*/,,'` by configure."
8022 # First look for the input files in the build tree, otherwise in the
8024 ac_file_inputs=`IFS=:
8025 for f in $ac_file_in; do
8027 -) echo $tmp/stdin ;;
8029 # Absolute (can't be DOS-style, as IFS=:)
8030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8031 echo "$as_me: error: cannot find input file: $f" >&2;}
8032 { (exit 1); exit 1; }; }
8035 if test -f "$f"; then
8038 elif test -f "$srcdir/$f"; then
8043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8044 echo "$as_me: error: cannot find input file: $f" >&2;}
8045 { (exit 1); exit 1; }; }
8048 done` || { (exit 1); exit 1; }
8050 cat >>$CONFIG_STATUS <<_ACEOF
8054 cat >>$CONFIG_STATUS <<\_ACEOF
8056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8057 s,@configure_input@,$configure_input,;t t
8058 s,@srcdir@,$ac_srcdir,;t t
8059 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8060 s,@top_srcdir@,$ac_top_srcdir,;t t
8061 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8062 s,@builddir@,$ac_builddir,;t t
8063 s,@abs_builddir@,$ac_abs_builddir,;t t
8064 s,@top_builddir@,$ac_top_builddir,;t t
8065 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8066 s,@INSTALL@,$ac_INSTALL,;t t
8067 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8069 if test x"$ac_file" != x-; then
8070 mv $tmp/out $ac_file
8078 cat >>$CONFIG_STATUS <<\_ACEOF
8081 # CONFIG_HEADER section.
8084 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8085 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8087 # ac_d sets the value in "#define NAME VALUE" lines.
8088 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8089 ac_dB='[ ].*$,\1#\2'
8092 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8093 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8094 ac_uB='$,\1#\2define\3'
8098 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8101 - | *:- | *:-:* ) # input from stdin
8103 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8105 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8107 * ) ac_file_in=$ac_file.in ;;
8110 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8111 echo "$as_me: creating $ac_file" >&6;}
8113 # First look for the input files in the build tree, otherwise in the
8115 ac_file_inputs=`IFS=:
8116 for f in $ac_file_in; do
8118 -) echo $tmp/stdin ;;
8120 # Absolute (can't be DOS-style, as IFS=:)
8121 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8122 echo "$as_me: error: cannot find input file: $f" >&2;}
8123 { (exit 1); exit 1; }; }
8124 # Do quote $f, to prevent DOS paths from being IFS'd.
8127 if test -f "$f"; then
8130 elif test -f "$srcdir/$f"; then
8135 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8136 echo "$as_me: error: cannot find input file: $f" >&2;}
8137 { (exit 1); exit 1; }; }
8140 done` || { (exit 1); exit 1; }
8141 # Remove the trailing spaces.
8142 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8146 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8147 # `conftest.undefs', that substitutes the proper values into
8148 # config.h.in to produce config.h. The first handles `#define'
8149 # templates, and the second `#undef' templates.
8150 # And first: Protect against being on the right side of a sed subst in
8151 # config.status. Protect against being in an unquoted here document
8153 rm -f conftest.defines conftest.undefs
8154 # Using a here document instead of a string reduces the quoting nightmare.
8155 # Putting comments in sed scripts is not portable.
8157 # `end' is used to avoid that the second main sed command (meant for
8158 # 0-ary CPP macros) applies to n-ary macro definitions.
8159 # See the Autoconf documentation for `clear'.
8160 cat >confdef2sed.sed <<\_ACEOF
8165 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8167 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8170 # If some macros were called several times there might be several times
8171 # the same #defines, which is useless. Nevertheless, we may not want to
8172 # sort them, since we want the *last* AC-DEFINE to be honored.
8173 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8174 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8175 rm -f confdef2sed.sed
8177 # This sed command replaces #undef with comments. This is necessary, for
8178 # example, in the case of _POSIX_SOURCE, which is predefined and required
8179 # on some systems where configure will not decide to define it.
8180 cat >>conftest.undefs <<\_ACEOF
8181 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8184 # Break up conftest.defines because some shells have a limit on the size
8185 # of here documents, and old seds have small limits too (100 cmds).
8186 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8187 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8188 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8189 echo ' :' >>$CONFIG_STATUS
8191 while grep . conftest.defines >/dev/null
8193 # Write a limited-size here document to $tmp/defines.sed.
8194 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8195 # Speed up: don't consider the non `#define' lines.
8196 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8197 # Work around the forget-to-reset-the-flag bug.
8198 echo 't clr' >>$CONFIG_STATUS
8199 echo ': clr' >>$CONFIG_STATUS
8200 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8202 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8206 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8207 rm -f conftest.defines
8208 mv conftest.tail conftest.defines
8210 rm -f conftest.defines
8211 echo ' fi # grep' >>$CONFIG_STATUS
8212 echo >>$CONFIG_STATUS
8214 # Break up conftest.undefs because some shells have a limit on the size
8215 # of here documents, and old seds have small limits too (100 cmds).
8216 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8218 while grep . conftest.undefs >/dev/null
8220 # Write a limited-size here document to $tmp/undefs.sed.
8221 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8222 # Speed up: don't consider the non `#undef'
8223 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8224 # Work around the forget-to-reset-the-flag bug.
8225 echo 't clr' >>$CONFIG_STATUS
8226 echo ': clr' >>$CONFIG_STATUS
8227 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8229 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8233 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8234 rm -f conftest.undefs
8235 mv conftest.tail conftest.undefs
8237 rm -f conftest.undefs
8239 cat >>$CONFIG_STATUS <<\_ACEOF
8240 # Let's still pretend it is `configure' which instantiates (i.e., don't
8241 # use $as_me), people would be surprised to read:
8242 # /* config.h. Generated by config.status. */
8243 if test x"$ac_file" = x-; then
8244 echo "/* Generated by configure. */" >$tmp/config.h
8246 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8248 cat $tmp/in >>$tmp/config.h
8250 if test x"$ac_file" != x-; then
8251 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8252 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8253 echo "$as_me: $ac_file is unchanged" >&6;}
8255 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8257 X"$ac_file" : 'X\(//\)[^/]' \| \
8258 X"$ac_file" : 'X\(//\)$' \| \
8259 X"$ac_file" : 'X\(/\)' \| \
8260 . : '\(.\)' 2>/dev/null ||
8262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8264 /^X\(\/\/\)$/{ s//\1/; q; }
8265 /^X\(\/\).*/{ s//\1/; q; }
8267 { if $as_mkdir_p; then
8272 while test ! -d "$as_dir"; do
8273 as_dirs="$as_dir $as_dirs"
8274 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8276 X"$as_dir" : 'X\(//\)[^/]' \| \
8277 X"$as_dir" : 'X\(//\)$' \| \
8278 X"$as_dir" : 'X\(/\)' \| \
8279 . : '\(.\)' 2>/dev/null ||
8281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8283 /^X\(\/\/\)$/{ s//\1/; q; }
8284 /^X\(\/\).*/{ s//\1/; q; }
8287 test ! -n "$as_dirs" || mkdir $as_dirs
8288 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8289 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8290 { (exit 1); exit 1; }; }; }
8293 mv $tmp/config.h $ac_file
8302 cat >>$CONFIG_STATUS <<\_ACEOF
8304 { (exit 0); exit 0; }
8306 chmod +x $CONFIG_STATUS
8307 ac_clean_files=$ac_clean_files_save
8310 # configure is writing to config.log, and then calls config.status.
8311 # config.status does its own redirection, appending to config.log.
8312 # Unfortunately, on DOS this fails, as config.log is still kept open
8313 # by configure, so config.status won't be able to write to it; its
8314 # output is simply discarded. So we exec the FD to /dev/null,
8315 # effectively closing config.log, so it can be properly (re)opened and
8316 # appended to by config.status. When coming back to configure, we
8317 # need to make the FD available again.
8318 if test "$no_create" != yes; then
8320 ac_config_status_args=
8321 test "$silent" = yes &&
8322 ac_config_status_args="$ac_config_status_args --quiet"
8324 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8326 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8327 # would make configure fail if this is the last instruction.
8328 $ac_cs_success || { (exit 1); exit 1; }
8332 # CONFIG_SUBDIRS section.
8334 if test "$no_recursion" != yes; then
8336 # Remove --cache-file and --srcdir arguments so they do not pile up.
8337 ac_sub_configure_args=
8339 for ac_arg in $ac_configure_args; do
8340 if test -n "$ac_prev"; then
8345 -cache-file | --cache-file | --cache-fil | --cache-fi \
8346 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8347 ac_prev=cache_file ;;
8348 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8349 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8352 --config-cache | -C)
8354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8362 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8366 # Always prepend --prefix to ensure using the same prefix
8367 # in subdir configurations.
8368 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8371 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8373 # Do not complain, so a configure script can configure whichever
8374 # parts of a large source tree are present.
8375 test -d $srcdir/$ac_dir || continue
8377 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8378 echo "$as_me: configuring in $ac_dir" >&6;}
8379 { if $as_mkdir_p; then
8384 while test ! -d "$as_dir"; do
8385 as_dirs="$as_dir $as_dirs"
8386 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8388 X"$as_dir" : 'X\(//\)[^/]' \| \
8389 X"$as_dir" : 'X\(//\)$' \| \
8390 X"$as_dir" : 'X\(/\)' \| \
8391 . : '\(.\)' 2>/dev/null ||
8393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8395 /^X\(\/\/\)$/{ s//\1/; q; }
8396 /^X\(\/\).*/{ s//\1/; q; }
8399 test ! -n "$as_dirs" || mkdir $as_dirs
8400 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8401 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8402 { (exit 1); exit 1; }; }; }
8406 if test "$ac_dir" != .; then
8407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8408 # A "../" for each directory in $ac_dir_suffix.
8409 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8411 ac_dir_suffix= ac_top_builddir=
8415 .) # No --srcdir option. We are building in place.
8417 if test -z "$ac_top_builddir"; then
8420 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8422 [\\/]* | ?:[\\/]* ) # Absolute path.
8423 ac_srcdir=$srcdir$ac_dir_suffix;
8424 ac_top_srcdir=$srcdir ;;
8426 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8427 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8430 # Do not use `cd foo && pwd` to compute absolute paths, because
8431 # the directories may not exist.
8433 .) ac_abs_builddir="$ac_dir";;
8436 .) ac_abs_builddir=`pwd`;;
8437 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8438 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8441 case $ac_abs_builddir in
8442 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8444 case ${ac_top_builddir}. in
8445 .) ac_abs_top_builddir=$ac_abs_builddir;;
8446 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8447 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8450 case $ac_abs_builddir in
8451 .) ac_abs_srcdir=$ac_srcdir;;
8454 .) ac_abs_srcdir=$ac_abs_builddir;;
8455 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8456 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8459 case $ac_abs_builddir in
8460 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8462 case $ac_top_srcdir in
8463 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8464 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8465 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8472 # Check for guested configure; otherwise get Cygnus style configure.
8473 if test -f $ac_srcdir/configure.gnu; then
8474 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8475 elif test -f $ac_srcdir/configure; then
8476 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8477 elif test -f $ac_srcdir/configure.in; then
8478 ac_sub_configure=$ac_configure
8480 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8481 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8485 # The recursion is here.
8486 if test -n "$ac_sub_configure"; then
8487 # Make the cache file name correct relative to the subdirectory.
8489 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8491 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8494 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8495 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8496 # The eval makes quoting arguments work.
8497 eval $ac_sub_configure $ac_sub_configure_args \
8498 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8499 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8500 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8501 { (exit 1); exit 1; }; }
8509 # I found no better place
8512 # Prepare result message
8513 # ======================
8515 # In the C-header we need \\ as dir-separator, but in the message only \
8516 dirch=${sdccconf_h_dir_separator}
8517 test ${dirch} = '\\' && dirch='\'
8519 # calc friendly strings
8521 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
8522 case ":$binPath:" in
8524 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
8529 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8530 s,^[\\/],\\\\\\\\,'` ;;
8532 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8534 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
8537 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8538 case ":$incPath1:" in
8540 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
8545 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8546 s,^[\\/],\\\\\\\\,'` ;;
8548 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8550 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
8553 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8554 case ":$incPath2:" in
8556 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
8561 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8562 s,^[\\/],\\\\\\\\,'` ;;
8564 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8566 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
8569 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8570 case ":$incPath3:" in
8572 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
8577 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8578 s,^[\\/],\\\\\\\\,'` ;;
8580 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8582 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
8585 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8586 case ":$libPath1:" in
8588 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
8593 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8594 s,^[\\/],\\\\\\\\,'` ;;
8596 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8598 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
8601 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8602 case ":$libPath2:" in
8604 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
8609 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8610 s,^[\\/],\\\\\\\\,'` ;;
8612 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8614 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
8617 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8618 case ":$libPath3:" in
8620 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
8625 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8626 s,^[\\/],\\\\\\\\,'` ;;
8628 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8630 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
8633 echo "$as_me:$LINENO: result:
8634 sdcc ${VERSION} is now configured for
8636 Build: ${build_alias}
8638 Source directory: ${srcdir}
8643 avr ${enable_avr_port}
8644 ds390 ${enable_ds390_port}
8645 ds400 ${enable_ds400_port}
8646 gbz80 ${enable_gbz80_port}
8647 hc08 ${enable_hc08_port}
8648 pic ${enable_pic_port}
8649 pic16 ${enable_pic16_port}
8650 xa51 ${enable_xa51_port}
8651 z80 ${enable_z80_port}
8653 Disable packihx: ${OPT_DISABLE_PACKIHX}
8654 Disable ucsim: ${OPT_DISABLE_UCSIM}
8655 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
8656 Disable sdcpp: ${OPT_DISABLE_SDCPP}
8657 Disable sdcdb: ${OPT_DISABLE_SDCDB}
8658 Enable documentation: ${OPT_ENABLE_DOC}
8659 Enable libgc: ${OPT_ENABLE_LIBGC}
8662 binary files: ${exec_prefix}
8663 include files: ${datadir}/${include_dir_suffix}
8664 library files: ${datadir}/${lib_dir_suffix}
8665 documentation: ${docdir}
8670 Search paths (incomplete, see manual for all search paths):
8671 binary files: \$SDCC_HOME${binPath}
8672 include files: ${incPath1}
8673 path(argv[0])${incPath2}
8675 library files: \$SDCC_HOME${libPath1}${dirch}<model>
8676 path(argv[0])${libPath2}${dirch}<model>
8677 ${libPath3}${dirch}<model>
8680 sdcc ${VERSION} is now configured for
8682 Build: ${build_alias}
8684 Source directory: ${srcdir}
8689 avr ${enable_avr_port}
8690 ds390 ${enable_ds390_port}
8691 ds400 ${enable_ds400_port}
8692 gbz80 ${enable_gbz80_port}
8693 hc08 ${enable_hc08_port}
8694 pic ${enable_pic_port}
8695 pic16 ${enable_pic16_port}
8696 xa51 ${enable_xa51_port}
8697 z80 ${enable_z80_port}
8699 Disable packihx: ${OPT_DISABLE_PACKIHX}
8700 Disable ucsim: ${OPT_DISABLE_UCSIM}
8701 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
8702 Disable sdcpp: ${OPT_DISABLE_SDCPP}
8703 Disable sdcdb: ${OPT_DISABLE_SDCDB}
8704 Enable documentation: ${OPT_ENABLE_DOC}
8705 Enable libgc: ${OPT_ENABLE_LIBGC}
8708 binary files: ${exec_prefix}
8709 include files: ${datadir}/${include_dir_suffix}
8710 library files: ${datadir}/${lib_dir_suffix}
8711 documentation: ${docdir}
8716 Search paths (incomplete, see manual for all search paths):
8717 binary files: \$SDCC_HOME${binPath}
8718 include files: ${incPath1}
8719 path(argv[0])${incPath2}
8721 library files: \$SDCC_HOME${libPath1}${dirch}<model>
8722 path(argv[0])${libPath2}${dirch}<model>
8723 ${libPath3}${dirch}<model>
8725 # End of configure/configure.in