2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="Makefile"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
275 # include <sys/types.h>
278 # include <sys/stat.h>
289 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <strings.h>
298 # include <inttypes.h>
308 ac_subdirs_all="$ac_subdirs_all support/cpp2"
309 ac_subdirs_all="$ac_subdirs_all packihx"
310 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
311 ac_subdirs_all="$ac_subdirs_all device/lib/pic16"
312 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 CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC AUTOCONF STRIP AS CP LYX LATEX LATEX2HTML PDFLATEX DVIPDF EGREP M_OR_MM sdccconf_h_dir_separator include_dir_suffix lib_dir_suffix docdir OPT_ENABLE_UCSIM OPT_ENABLE_DEVICE_LIB_BUILD OPT_ENABLE_PACKIHX subdirs LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
782 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
783 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
784 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
785 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
786 ac_env_include_dir_suffix_value=$include_dir_suffix
787 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
788 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
789 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
790 ac_env_lib_dir_suffix_value=$lib_dir_suffix
791 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
792 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
793 ac_env_docdir_set=${docdir+set}
794 ac_env_docdir_value=$docdir
795 ac_cv_env_docdir_set=${docdir+set}
796 ac_cv_env_docdir_value=$docdir
799 # Report the --help message.
801 if test "$ac_init_help" = "long"; then
802 # Omit some internal or obsolete options to make the list less imposing.
803 # This message is too long to be a string in the A/UX 3.1 sh.
805 \`configure' configures this package to adapt to many kinds of systems.
807 Usage: $0 [OPTION]... [VAR=VALUE]...
809 To assign environment variables (e.g., CC, CFLAGS...), specify them as
810 VAR=VALUE. See below for descriptions of some of the useful variables.
812 Defaults for the options are specified in brackets.
815 -h, --help display this help and exit
816 --help=short display options specific to this package
817 --help=recursive display the short help of all the included packages
818 -V, --version display version information and exit
819 -q, --quiet, --silent do not print \`checking...' messages
820 --cache-file=FILE cache test results in FILE [disabled]
821 -C, --config-cache alias for \`--cache-file=config.cache'
822 -n, --no-create do not create output files
823 --srcdir=DIR find the sources in DIR [configure dir or \`..']
828 Installation directories:
829 --prefix=PREFIX install architecture-independent files in PREFIX
831 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
834 By default, \`make install' will install all the files in
835 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
836 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
837 for instance \`--prefix=\$HOME'.
839 For better control, use the options below.
841 Fine tuning of the installation directories:
842 --bindir=DIR user executables [EPREFIX/bin]
843 --sbindir=DIR system admin executables [EPREFIX/sbin]
844 --libexecdir=DIR program executables [EPREFIX/libexec]
845 --datadir=DIR read-only architecture-independent data [PREFIX/share]
846 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
847 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
848 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
849 --libdir=DIR object code libraries [EPREFIX/lib]
850 --includedir=DIR C header files [PREFIX/include]
851 --oldincludedir=DIR C header files for non-gcc [/usr/include]
852 --infodir=DIR info documentation [PREFIX/info]
853 --mandir=DIR man documentation [PREFIX/man]
859 --program-prefix=PREFIX prepend PREFIX to installed program names
860 --program-suffix=SUFFIX append SUFFIX to installed program names
861 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
865 if test -n "$ac_init_help"; then
870 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
871 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
872 --disable-mcs51-port Excludes the Intel mcs51 port
873 --disable-gbz80-port Excludes the Gameboy gbz80 port
874 --disable-z80-port Excludes the z80 port
875 --disable-avr-port Excludes the AVR port
876 --disable-ds390-port Excludes the DS390 port
877 --disable-ds400-port Excludes the DS400 port
878 --disable-pic-port Excludes the PIC port
879 --disable-pic16-port Excludes the PIC port
880 --disable-xa51-port Excludes the XA51 port
881 --disable-hc08-port Excludes the HC08 port
882 --disable-ucsim Disables configuring and building of ucsim
883 --disable-device-lib-build
884 Disables automatically building device libraries
885 --disable-packihx Disables building packihx
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>
896 CXX C++ compiler command
897 CXXFLAGS C++ compiler flags
899 sdccconf_h_dir_separator
900 needed in sdccconf.h: either "/" (default) or "\\"
902 appended to datadir to define SDCC's include directory
904 appended to datadir to define SDCC's library root directory
905 docdir documentation installation directory
907 Use these variables to override the choices made by `configure' or to help
908 it to find libraries and programs with nonstandard names/locations.
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 ac_dir_suffix= ac_top_builddir=
929 .) # No --srcdir option. We are building in place.
931 if test -z "$ac_top_builddir"; then
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
945 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
946 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
947 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
948 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
973 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
974 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.54. Invocation command line was
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Also quote any args containing shell meta-characters.
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n ) continue ;;
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053 # Get rid of the leading space.
1057 # When interrupted or exit'd, cleanup temporary files, and complete
1058 # config.log. We remove comments because anyway the quotes in there
1059 # would cause problems or look ugly.
1060 # WARNING: Be sure not to use single quotes in there, as some shells,
1061 # such as our DU 5.0 friend, will then `close' the trap.
1062 trap 'exit_status=$?
1063 # Save into config.log some information that might help in debugging.
1068 ## ---------------- ##
1069 ## Cache variables. ##
1070 ## ---------------- ##
1073 # The following way of writing the cache mishandles newlines in values,
1076 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1079 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1084 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1091 ## ----------------- ##
1092 ## Output variables. ##
1093 ## ----------------- ##
1096 for ac_var in $ac_subst_vars
1098 eval ac_val=$`echo $ac_var`
1099 echo "$ac_var='"'"'$ac_val'"'"'"
1103 if test -n "$ac_subst_files"; then
1110 for ac_var in $ac_subst_files
1112 eval ac_val=$`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1118 if test -s confdefs.h; then
1125 sed "/^$/d" confdefs.h | sort
1128 test "$ac_signal" != 0 &&
1129 echo "$as_me: caught signal $ac_signal"
1130 echo "$as_me: exit $exit_status"
1132 rm -f core core.* *.core &&
1133 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1136 for ac_signal in 1 2 13 15; do
1137 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1142 rm -rf conftest* confdefs.h
1143 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1146 # Predefined preprocessor variables.
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_NAME "$PACKAGE_NAME"
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_STRING "$PACKAGE_STRING"
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1173 # Let the site file select an alternate cache file if it wants to.
1174 # Prefer explicitly selected file to automatically selected ones.
1175 if test -z "$CONFIG_SITE"; then
1176 if test "x$prefix" != xNONE; then
1177 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1179 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1182 for ac_site_file in $CONFIG_SITE; do
1183 if test -r "$ac_site_file"; then
1184 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1185 echo "$as_me: loading site script $ac_site_file" >&6;}
1186 sed 's/^/| /' "$ac_site_file" >&5
1191 if test -r "$cache_file"; then
1192 # Some versions of bash will fail to source /dev/null (special
1193 # files actually), so we avoid doing that.
1194 if test -f "$cache_file"; then
1195 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1196 echo "$as_me: loading cache $cache_file" >&6;}
1198 [\\/]* | ?:[\\/]* ) . $cache_file;;
1199 *) . ./$cache_file;;
1203 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1204 echo "$as_me: creating cache $cache_file" >&6;}
1208 # Check that the precious variables saved in the cache have kept the same
1210 ac_cache_corrupted=false
1211 for ac_var in `(set) 2>&1 |
1212 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1213 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1214 eval ac_new_set=\$ac_env_${ac_var}_set
1215 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1216 eval ac_new_val="\$ac_env_${ac_var}_value"
1217 case $ac_old_set,$ac_new_set in
1219 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1220 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1221 ac_cache_corrupted=: ;;
1223 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1225 ac_cache_corrupted=: ;;
1228 if test "x$ac_old_val" != "x$ac_new_val"; then
1229 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1230 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1231 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1232 echo "$as_me: former value: $ac_old_val" >&2;}
1233 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1234 echo "$as_me: current value: $ac_new_val" >&2;}
1235 ac_cache_corrupted=:
1238 # Pass precious variables to config.status.
1239 if test "$ac_new_set" = set; then
1241 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1243 *) ac_arg=$ac_var=$ac_new_val ;;
1245 case " $ac_configure_args " in
1246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1247 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1251 if $ac_cache_corrupted; then
1252 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1253 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1254 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1255 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1256 { (exit 1); exit 1; }; }
1260 ac_cpp='$CPP $CPPFLAGS'
1261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1287 for ac_prog in gawk mawk nawk awk
1289 # Extract the first word of "$ac_prog", so it can be a program name with args.
1290 set dummy $ac_prog; ac_word=$2
1291 echo "$as_me:$LINENO: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_AWK+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 if test -n "$AWK"; then
1297 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1303 test -z "$as_dir" && as_dir=.
1304 for ac_exec_ext in '' $ac_executable_extensions; do
1305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1306 ac_cv_prog_AWK="$ac_prog"
1307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1316 if test -n "$AWK"; then
1317 echo "$as_me:$LINENO: result: $AWK" >&5
1318 echo "${ECHO_T}$AWK" >&6
1320 echo "$as_me:$LINENO: result: no" >&5
1321 echo "${ECHO_T}no" >&6
1324 test -n "$AWK" && break
1328 echo "$as_me:$LINENO: checking version of the package" >&5
1329 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1330 if test -f .version; then
1331 VERSION=`cat .version`
1332 elif test -f ../.version; then
1333 VERSION=`cat ../.version`
1337 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1338 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1339 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1341 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1342 echo "${ECHO_T}${VERSION}" >&6
1347 cat >>confdefs.h <<_ACEOF
1348 #define SDCC_VERSION_LO ${VERSIONLO}
1351 cat >>confdefs.h <<_ACEOF
1352 #define SDCC_VERSION_HI ${VERSIONHI}
1355 cat >>confdefs.h <<_ACEOF
1356 #define SDCC_VERSION_P ${VERSIONP}
1359 cat >>confdefs.h <<_ACEOF
1360 #define SDCC_VERSION_STR "${VERSION}"
1363 test "$program_prefix" != NONE &&
1364 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1365 # Use a double $ so make ignores it.
1366 test "$program_suffix" != NONE &&
1367 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1368 # Double any \ or $. echo might interpret backslashes.
1369 # By default was `s,x,x', remove it if useless.
1370 cat <<\_ACEOF >conftest.sed
1371 s/[\\$]/&&/g;s/;s,x,x,$//
1373 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1376 sdcc_cv_version=$VERSION
1377 sdcc_cv_versionhi=$VERSIONHI
1378 sdcc_cv_versionlo=$VERSIONLO
1379 sdcc_cv_versionp=$VERSIONP
1383 # ===========================================================================
1385 ac_cpp='$CPP $CPPFLAGS'
1386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC="$CC" # Let the user override the test.
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404 test -z "$as_dir" && as_dir=.
1405 for ac_exec_ext in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1426 if test -z "$ac_cv_prog_CC"; then
1428 # Extract the first word of "gcc", so it can be a program name with args.
1429 set dummy gcc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 test -z "$as_dir" && as_dir=.
1443 for ac_exec_ext in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_ac_ct_CC="gcc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1468 if test -z "$CC"; then
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}cc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC="${ac_tool_prefix}cc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1508 # Extract the first word of "cc", so it can be a program name with args.
1509 set dummy cc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="cc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 # Extract the first word of "cc", so it can be a program name with args.
1551 set dummy cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1569 ac_prog_rejected=yes
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 if test $ac_prog_rejected = yes; then
1580 # We found a bogon in the path, so make sure we never use it.
1581 set dummy $ac_cv_prog_CC
1583 if test $# != 0; then
1584 # We chose a different compiler from the bogus one.
1585 # However, it has the same basename, so the bogon will be chosen
1586 # first if we set CC to just the basename; use the full file name.
1588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1642 test -n "$CC" && break
1645 if test -z "$CC"; then
1649 # Extract the first word of "$ac_prog", so it can be a program name with args.
1650 set dummy $ac_prog; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC="$ac_prog"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 test -n "$ac_ct_CC" && break
1693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1694 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1695 { (exit 1); exit 1; }; }
1697 # Provide some information about the compiler.
1698 echo "$as_me:$LINENO:" \
1699 "checking for C compiler version" >&5
1700 ac_compiler=`set X $ac_compile; echo $2`
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1702 (eval $ac_compiler --version </dev/null >&5) 2>&5
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1707 (eval $ac_compiler -v </dev/null >&5) 2>&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1712 (eval $ac_compiler -V </dev/null >&5) 2>&5
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1717 cat >conftest.$ac_ext <<_ACEOF
1718 #line $LINENO "configure"
1719 #include "confdefs.h"
1729 ac_clean_files_save=$ac_clean_files
1730 ac_clean_files="$ac_clean_files a.out a.exe"
1731 # Try to create an executable without -o first, disregard a.out.
1732 # It will help us diagnose broken compilers, and finding out an intuition
1734 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1735 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1737 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1738 (eval $ac_link_default) 2>&5
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 # Find the output, starting from the most likely. This scheme is
1743 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1746 # Be careful to initialize this variable, since it used to be cached.
1747 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1749 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1750 test -f "$ac_file" || continue
1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1753 a.out ) # We found the default executable, but exeext='' is most
1756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1764 echo "$as_me: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1767 check \`config.log' for details." >&5
1768 echo "$as_me: error: C compiler cannot create executables
1769 check \`config.log' for details." >&2;}
1770 { (exit 77); exit 77; }; }
1773 ac_exeext=$ac_cv_exeext
1774 echo "$as_me:$LINENO: result: $ac_file" >&5
1775 echo "${ECHO_T}$ac_file" >&6
1777 # Check the compiler produces executables we can run. If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1780 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782 # If not cross compiling, check that we can run a simple program.
1783 if test "$cross_compiling" != yes; then
1784 if { ac_try='./$ac_file'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 if test "$cross_compiling" = maybe; then
1795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&2;}
1799 { (exit 1); exit 1; }; }
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1806 rm -f a.out a.exe conftest$ac_cv_exeext
1807 ac_clean_files=$ac_clean_files_save
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1811 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1812 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1813 echo "${ECHO_T}$cross_compiling" >&6
1815 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1816 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1818 (eval $ac_link) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1824 # work properly (i.e., refer to `conftest.exe'), while it won't with
1826 for ac_file in conftest.exe conftest conftest.*; do
1827 test -f "$ac_file" || continue
1829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1839 { (exit 1); exit 1; }; }
1842 rm -f conftest$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1844 echo "${ECHO_T}$ac_cv_exeext" >&6
1846 rm -f conftest.$ac_ext
1847 EXEEXT=$ac_cv_exeext
1849 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1851 if test "${ac_cv_objext+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1856 #include "confdefs.h"
1866 rm -f conftest.o conftest.obj
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }; then
1872 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1875 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1883 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1884 { (exit 1); exit 1; }; }
1887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1889 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1890 echo "${ECHO_T}$ac_cv_objext" >&6
1891 OBJEXT=$ac_cv_objext
1893 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 cat >conftest.$ac_ext <<_ACEOF
1899 #line $LINENO "configure"
1900 #include "confdefs.h"
1913 rm -f conftest.$ac_objext
1914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>&5
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); } &&
1919 { ac_try='test -s conftest.$ac_objext'
1920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; }; then
1927 echo "$as_me: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1931 rm -f conftest.$ac_objext conftest.$ac_ext
1932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1935 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1936 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1937 GCC=`test $ac_compiler_gnu = yes && echo yes`
1938 ac_test_CFLAGS=${CFLAGS+set}
1939 ac_save_CFLAGS=$CFLAGS
1941 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1942 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1943 if test "${ac_cv_prog_cc_g+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line $LINENO "configure"
1948 #include "confdefs.h"
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1972 echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1976 rm -f conftest.$ac_objext conftest.$ac_ext
1978 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1980 if test "$ac_test_CFLAGS" = set; then
1981 CFLAGS=$ac_save_CFLAGS
1982 elif test $ac_cv_prog_cc_g = yes; then
1983 if test "$GCC" = yes; then
1989 if test "$GCC" = yes; then
1995 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1996 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1997 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 ac_cv_prog_cc_stdc=no
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line $LINENO "configure"
2004 #include "confdefs.h"
2007 #include <sys/types.h>
2008 #include <sys/stat.h>
2009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2010 struct buf { int x; };
2011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2012 static char *e (p, i)
2018 static char *f (char * (*g) (char **, int), char **p, ...)
2023 s = g (p, va_arg (v,int));
2027 int test (int i, double x);
2028 struct s1 {int (*f) (int a);};
2029 struct s2 {int (*f) (double a);};
2030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2041 # Don't try gcc -ansi; that turns off useful extensions and
2042 # breaks some systems' header files.
2043 # AIX -qlanglvl=ansi
2044 # Ultrix and OSF/1 -std1
2045 # HP-UX 10.20 and later -Ae
2046 # HP-UX older versions -Aa -D_HPUX_SOURCE
2047 # SVR4 -Xc -D__EXTENSIONS__
2048 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2050 CC="$ac_save_CC $ac_arg"
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -s conftest.$ac_objext'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2063 ac_cv_prog_cc_stdc=$ac_arg
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 rm -f conftest.$ac_objext
2071 rm -f conftest.$ac_ext conftest.$ac_objext
2076 case "x$ac_cv_prog_cc_stdc" in
2078 echo "$as_me:$LINENO: result: none needed" >&5
2079 echo "${ECHO_T}none needed" >&6 ;;
2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2083 CC="$CC $ac_cv_prog_cc_stdc" ;;
2086 # Some people use a C++ compiler to compile C. Since we use `exit',
2087 # in C++ we need to declare it. In case someone uses the same compiler
2088 # for both compiling C and C++ we need to have the C++ compiler decide
2089 # the declaration of exit, since it's the most demanding environment.
2090 cat >conftest.$ac_ext <<_ACEOF
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
2107 for ac_declaration in \
2109 '#include <stdlib.h>' \
2110 'extern "C" void std::exit (int) throw (); using std::exit;' \
2111 'extern "C" void std::exit (int); using std::exit;' \
2112 'extern "C" void exit (int) throw ();' \
2113 'extern "C" void exit (int);' \
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line $LINENO "configure"
2118 #include "confdefs.h"
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } &&
2135 { ac_try='test -s conftest.$ac_objext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2143 echo "$as_me: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2147 rm -f conftest.$ac_objext conftest.$ac_ext
2148 cat >conftest.$ac_ext <<_ACEOF
2149 #line $LINENO "configure"
2150 #include "confdefs.h"
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2174 echo "$as_me: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2177 rm -f conftest.$ac_objext conftest.$ac_ext
2180 if test -n "$ac_declaration"; then
2181 echo '#ifdef __cplusplus' >>confdefs.h
2182 echo $ac_declaration >>confdefs.h
2183 echo '#endif' >>confdefs.h
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2190 rm -f conftest.$ac_objext conftest.$ac_ext
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198 ac_cpp='$CXXCPP $CPPFLAGS'
2199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2202 if test -n "$ac_tool_prefix"; then
2203 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2207 echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_CXX+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$CXX"; then
2213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 if test -n "$CXX"; then
2233 echo "$as_me:$LINENO: result: $CXX" >&5
2234 echo "${ECHO_T}$CXX" >&6
2236 echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2240 test -n "$CXX" && break
2243 if test -z "$CXX"; then
2245 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 if test -n "$ac_ct_CXX"; then
2255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 ac_cv_prog_ac_ct_CXX="$ac_prog"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2274 if test -n "$ac_ct_CXX"; then
2275 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2276 echo "${ECHO_T}$ac_ct_CXX" >&6
2278 echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2282 test -n "$ac_ct_CXX" && break
2284 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2290 # Provide some information about the compiler.
2291 echo "$as_me:$LINENO:" \
2292 "checking for C++ compiler version" >&5
2293 ac_compiler=`set X $ac_compile; echo $2`
2294 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2295 (eval $ac_compiler --version </dev/null >&5) 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }
2299 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2300 (eval $ac_compiler -v </dev/null >&5) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }
2304 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2305 (eval $ac_compiler -V </dev/null >&5) 2>&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }
2310 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2311 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2312 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #line $LINENO "configure"
2317 #include "confdefs.h"
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2344 echo "$as_me: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2348 rm -f conftest.$ac_objext conftest.$ac_ext
2349 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2352 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2353 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2354 GXX=`test $ac_compiler_gnu = yes && echo yes`
2355 ac_test_CXXFLAGS=${CXXFLAGS+set}
2356 ac_save_CXXFLAGS=$CXXFLAGS
2358 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2359 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2360 if test "${ac_cv_prog_cxx_g+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.$ac_ext <<_ACEOF
2364 #line $LINENO "configure"
2365 #include "confdefs.h"
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -s conftest.$ac_objext'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2387 ac_cv_prog_cxx_g=yes
2389 echo "$as_me: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2393 rm -f conftest.$ac_objext conftest.$ac_ext
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2397 if test "$ac_test_CXXFLAGS" = set; then
2398 CXXFLAGS=$ac_save_CXXFLAGS
2399 elif test $ac_cv_prog_cxx_g = yes; then
2400 if test "$GXX" = yes; then
2406 if test "$GXX" = yes; then
2412 for ac_declaration in \
2414 '#include <stdlib.h>' \
2415 'extern "C" void std::exit (int) throw (); using std::exit;' \
2416 'extern "C" void std::exit (int); using std::exit;' \
2417 'extern "C" void exit (int) throw ();' \
2418 'extern "C" void exit (int);' \
2421 cat >conftest.$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 #include "confdefs.h"
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2448 echo "$as_me: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2452 rm -f conftest.$ac_objext conftest.$ac_ext
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 #include "confdefs.h"
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2485 if test -n "$ac_declaration"; then
2486 echo '#ifdef __cplusplus' >>confdefs.h
2487 echo $ac_declaration >>confdefs.h
2488 echo '#endif' >>confdefs.h
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2503 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2504 # On Suns, sometimes $CPP names a directory.
2505 if test -n "$CPP" && test -d "$CPP"; then
2508 if test -z "$CPP"; then
2509 if test "${ac_cv_prog_CPP+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 # Double quotes because CPP needs to be expanded
2513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2516 for ac_c_preproc_warn_flag in '' yes
2518 # Use a header file that comes with gcc, so configuring glibc
2519 # with a fresh cross-compiler works.
2520 # On the NeXT, cc -E runs the code through the compiler's parser,
2521 # not just through cpp. "Syntax error" is here to catch this case.
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #line $LINENO "configure"
2524 #include "confdefs.h"
2528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } >/dev/null; then
2536 if test -s conftest.err; then
2537 ac_cpp_err=$ac_c_preproc_warn_flag
2544 if test -z "$ac_cpp_err"; then
2547 echo "$as_me: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2549 # Broken: fails on valid input.
2552 rm -f conftest.err conftest.$ac_ext
2554 # OK, works on sane cases. Now check whether non-existent headers
2555 # can be detected and how.
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2559 #include <ac_nonexistent.h>
2561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2564 grep -v '^ *+' conftest.er1 >conftest.err
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } >/dev/null; then
2569 if test -s conftest.err; then
2570 ac_cpp_err=$ac_c_preproc_warn_flag
2577 if test -z "$ac_cpp_err"; then
2578 # Broken: success on invalid input.
2581 echo "$as_me: failed program was:" >&5
2582 cat 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
2604 echo "$as_me:$LINENO: result: $CPP" >&5
2605 echo "${ECHO_T}$CPP" >&6
2607 for ac_c_preproc_warn_flag in '' yes
2609 # Use a header file that comes with gcc, so configuring glibc
2610 # with a fresh cross-compiler works.
2611 # On the NeXT, cc -E runs the code through the compiler's parser,
2612 # not just through cpp. "Syntax error" is here to catch this case.
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
2615 #include "confdefs.h"
2619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2622 grep -v '^ *+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } >/dev/null; then
2627 if test -s conftest.err; then
2628 ac_cpp_err=$ac_c_preproc_warn_flag
2635 if test -z "$ac_cpp_err"; then
2638 echo "$as_me: failed program was:" >&5
2639 cat conftest.$ac_ext >&5
2640 # Broken: fails on valid input.
2643 rm -f conftest.err conftest.$ac_ext
2645 # OK, works on sane cases. Now check whether non-existent headers
2646 # can be detected and how.
2647 cat >conftest.$ac_ext <<_ACEOF
2648 #line $LINENO "configure"
2649 #include "confdefs.h"
2650 #include <ac_nonexistent.h>
2652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2655 grep -v '^ *+' conftest.er1 >conftest.err
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } >/dev/null; then
2660 if test -s conftest.err; then
2661 ac_cpp_err=$ac_c_preproc_warn_flag
2668 if test -z "$ac_cpp_err"; then
2669 # Broken: success on invalid input.
2672 echo "$as_me: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 # Passes both tests.
2678 rm -f conftest.err conftest.$ac_ext
2681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2682 rm -f conftest.err conftest.$ac_ext
2683 if $ac_preproc_ok; then
2686 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2687 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2688 { (exit 1); exit 1; }; }
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2699 if test -f $ac_dir/install-sh; then
2701 ac_install_sh="$ac_aux_dir/install-sh -c"
2703 elif test -f $ac_dir/install.sh; then
2705 ac_install_sh="$ac_aux_dir/install.sh -c"
2707 elif test -f $ac_dir/shtool; then
2709 ac_install_sh="$ac_aux_dir/shtool install -c"
2713 if test -z "$ac_aux_dir"; then
2714 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2715 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2716 { (exit 1); exit 1; }; }
2718 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2719 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2720 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2722 # Find a good install program. We prefer a C program (faster),
2723 # so one script is as good as another. But avoid the broken or
2724 # incompatible versions:
2725 # SysV /etc/install, /usr/sbin/install
2726 # SunOS /usr/etc/install
2727 # IRIX /sbin/install
2729 # AmigaOS /C/install, which installs bootblocks on floppy discs
2730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2733 # ./install, which can be erroneously created by make from ./install.sh.
2734 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2735 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2736 if test -z "$INSTALL"; then
2737 if test "${ac_cv_path_install+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 # Account for people who put trailing slashes in PATH elements.
2747 ./ | .// | /cC/* | \
2748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2751 # OSF1 and SCO ODT 3.0 have their own names for install.
2752 # Don't use installbsd from OSF since it installs stuff as root
2754 for ac_prog in ginstall scoinst install; do
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2757 if test $ac_prog = install &&
2758 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2759 # AIX install. It has an incompatible calling convention.
2761 elif test $ac_prog = install &&
2762 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2763 # program-specific install script used by HP pwplus--don't use.
2766 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2778 if test "${ac_cv_path_install+set}" = set; then
2779 INSTALL=$ac_cv_path_install
2781 # As a last resort, use the slow shell script. We don't cache a
2782 # path for INSTALL within a source directory, because that will
2783 # break other packages using the cache if that directory is
2784 # removed, or if the path is relative.
2785 INSTALL=$ac_install_sh
2788 echo "$as_me:$LINENO: result: $INSTALL" >&5
2789 echo "${ECHO_T}$INSTALL" >&6
2791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2792 # It thinks the first close brace ends the variable substitution.
2793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2795 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_RANLIB+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$RANLIB"; then
2808 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 RANLIB=$ac_cv_prog_RANLIB
2827 if test -n "$RANLIB"; then
2828 echo "$as_me:$LINENO: result: $RANLIB" >&5
2829 echo "${ECHO_T}$RANLIB" >&6
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2836 if test -z "$ac_cv_prog_RANLIB"; then
2837 ac_ct_RANLIB=$RANLIB
2838 # Extract the first word of "ranlib", so it can be a program name with args.
2839 set dummy ranlib; ac_word=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$ac_ct_RANLIB"; then
2846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_RANLIB="ranlib"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2866 if test -n "$ac_ct_RANLIB"; then
2867 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2868 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2870 echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2874 RANLIB=$ac_ct_RANLIB
2876 RANLIB="$ac_cv_prog_RANLIB"
2880 for ac_prog in flex lex
2882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2883 set dummy $ac_prog; ac_word=$2
2884 echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886 if test "${ac_cv_prog_LEX+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 if test -n "$LEX"; then
2890 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_LEX="$ac_prog"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$LEX"; then
2910 echo "$as_me:$LINENO: result: $LEX" >&5
2911 echo "${ECHO_T}$LEX" >&6
2913 echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2917 test -n "$LEX" && break
2919 test -n "$LEX" || LEX=":"
2921 if test -z "$LEXLIB"
2923 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2924 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2925 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 ac_check_lib_save_LIBS=$LIBS
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line $LINENO "configure"
2932 #include "confdefs.h"
2934 /* Override any gcc2 internal prototype to avoid an error. */
2938 /* We use char because int might match the return type of a gcc2
2939 builtin and then its argument prototype would still apply. */
2949 rm -f conftest.$ac_objext conftest$ac_exeext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2951 (eval $ac_link) 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
2955 { ac_try='test -s conftest$ac_exeext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 ac_cv_lib_fl_yywrap=yes
2963 echo "$as_me: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2965 ac_cv_lib_fl_yywrap=no
2967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2968 LIBS=$ac_check_lib_save_LIBS
2970 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2971 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2972 if test $ac_cv_lib_fl_yywrap = yes; then
2975 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2976 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2977 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 ac_check_lib_save_LIBS=$LIBS
2982 cat >conftest.$ac_ext <<_ACEOF
2983 #line $LINENO "configure"
2984 #include "confdefs.h"
2986 /* Override any gcc2 internal prototype to avoid an error. */
2990 /* We use char because int might match the return type of a gcc2
2991 builtin and then its argument prototype would still apply. */
3001 rm -f conftest.$ac_objext conftest$ac_exeext
3002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3003 (eval $ac_link) 2>&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -s conftest$ac_exeext'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3013 ac_cv_lib_l_yywrap=yes
3015 echo "$as_me: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3017 ac_cv_lib_l_yywrap=no
3019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3020 LIBS=$ac_check_lib_save_LIBS
3022 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3023 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3024 if test $ac_cv_lib_l_yywrap = yes; then
3032 if test "x$LEX" != "x:"; then
3033 echo "$as_me:$LINENO: checking lex output file root" >&5
3034 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3035 if test "${ac_cv_prog_lex_root+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 # The minimal lex program is just a single line: %%. But some broken lexes
3039 # (Solaris, I think it was) want two %% lines, so accommodate them.
3040 cat >conftest.l <<_ACEOF
3044 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3045 (eval $LEX conftest.l) 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }
3049 if test -f lex.yy.c; then
3050 ac_cv_prog_lex_root=lex.yy
3051 elif test -f lexyy.c; then
3052 ac_cv_prog_lex_root=lexyy
3054 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3055 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3056 { (exit 1); exit 1; }; }
3059 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3060 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3062 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3064 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3065 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3066 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 # POSIX says lex can declare yytext either as a pointer or an array; the
3070 # default is implementation-dependent. Figure out which it is, since
3071 # not all implementations provide the %pointer and %array declarations.
3072 ac_cv_prog_lex_yytext_pointer=no
3073 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3075 LIBS="$LIBS $LEXLIB"
3076 cat >conftest.$ac_ext <<_ACEOF
3077 `cat $LEX_OUTPUT_ROOT.c`
3079 rm -f conftest.$ac_objext conftest$ac_exeext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081 (eval $ac_link) 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -s conftest$ac_exeext'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_prog_lex_yytext_pointer=yes
3093 echo "$as_me: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3098 rm -f "${LEX_OUTPUT_ROOT}.c"
3101 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3102 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3103 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3105 cat >>confdefs.h <<\_ACEOF
3106 #define YYTEXT_POINTER 1
3112 for ac_prog in 'bison -y' byacc
3114 # Extract the first word of "$ac_prog", so it can be a program name with args.
3115 set dummy $ac_prog; ac_word=$2
3116 echo "$as_me:$LINENO: checking for $ac_word" >&5
3117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118 if test "${ac_cv_prog_YACC+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 if test -n "$YACC"; then
3122 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_YACC="$ac_prog"
3132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 YACC=$ac_cv_prog_YACC
3141 if test -n "$YACC"; then
3142 echo "$as_me:$LINENO: result: $YACC" >&5
3143 echo "${ECHO_T}$YACC" >&6
3145 echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3149 test -n "$YACC" && break
3151 test -n "$YACC" || YACC="yacc"
3153 # Extract the first word of "autoconf", so it can be a program name with args.
3154 set dummy autoconf; ac_word=$2
3155 echo "$as_me:$LINENO: checking for $ac_word" >&5
3156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3157 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 if test -n "$AUTOCONF"; then
3161 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_AUTOCONF="autoconf"
3171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3180 AUTOCONF=$ac_cv_prog_AUTOCONF
3181 if test -n "$AUTOCONF"; then
3182 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3183 echo "${ECHO_T}$AUTOCONF" >&6
3185 echo "$as_me:$LINENO: result: no" >&5
3186 echo "${ECHO_T}no" >&6
3189 # Extract the first word of "strip", so it can be a program name with args.
3190 set dummy strip; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_STRIP+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 if test -n "$STRIP"; then
3197 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_STRIP="strip"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3216 STRIP=$ac_cv_prog_STRIP
3217 if test -n "$STRIP"; then
3218 echo "$as_me:$LINENO: result: $STRIP" >&5
3219 echo "${ECHO_T}$STRIP" >&6
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3225 # Extract the first word of "as", so it can be a program name with args.
3226 set dummy as; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_AS+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 if test -n "$AS"; then
3233 ac_cv_prog_AS="$AS" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3253 if test -n "$AS"; then
3254 echo "$as_me:$LINENO: result: $AS" >&5
3255 echo "${ECHO_T}$AS" >&6
3257 echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3261 # Extract the first word of "cp", so it can be a program name with args.
3262 set dummy cp; ac_word=$2
3263 echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265 if test "${ac_cv_prog_CP+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if test -n "$CP"; then
3269 ac_cv_prog_CP="$CP" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3289 if test -n "$CP"; then
3290 echo "$as_me:$LINENO: result: $CP" >&5
3291 echo "${ECHO_T}$CP" >&6
3293 echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3298 # Extract the first word of "lyx", so it can be a program name with args.
3299 set dummy lyx; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_LYX+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 if test -n "$LYX"; then
3306 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_LYX="lyx"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3326 if test -n "$LYX"; then
3327 echo "$as_me:$LINENO: result: $LYX" >&5
3328 echo "${ECHO_T}$LYX" >&6
3330 echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3334 # Extract the first word of "latex", so it can be a program name with args.
3335 set dummy latex; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_prog_LATEX+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if test -n "$LATEX"; then
3342 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_LATEX="latex"
3352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3361 LATEX=$ac_cv_prog_LATEX
3362 if test -n "$LATEX"; then
3363 echo "$as_me:$LINENO: result: $LATEX" >&5
3364 echo "${ECHO_T}$LATEX" >&6
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3370 # Extract the first word of "latex2html", so it can be a program name with args.
3371 set dummy latex2html; ac_word=$2
3372 echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3374 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$LATEX2HTML"; then
3378 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_LATEX2HTML="latex2html"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3397 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3398 if test -n "$LATEX2HTML"; then
3399 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3400 echo "${ECHO_T}$LATEX2HTML" >&6
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3406 # Extract the first word of "pdflatex", so it can be a program name with args.
3407 set dummy pdflatex; ac_word=$2
3408 echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -n "$PDFLATEX"; then
3414 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_PDFLATEX="pdflatex"
3424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3433 PDFLATEX=$ac_cv_prog_PDFLATEX
3434 if test -n "$PDFLATEX"; then
3435 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3436 echo "${ECHO_T}$PDFLATEX" >&6
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3442 # Extract the first word of "dvipdf", so it can be a program name with args.
3443 set dummy dvipdf; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 if test -n "$DVIPDF"; then
3450 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_DVIPDF="dvipdf"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3469 DVIPDF=$ac_cv_prog_DVIPDF
3470 if test -n "$DVIPDF"; then
3471 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3472 echo "${ECHO_T}$DVIPDF" >&6
3474 echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3481 if test "$YACC" = ":"; then
3482 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3483 echo "$as_me: error: Cannot find required program bison." >&2;}
3484 { (exit 1); exit 1; }; }
3487 if test "$LEX" = ":"; then
3488 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3489 echo "$as_me: error: Cannot find required program lex." >&2;}
3490 { (exit 1); exit 1; }; }
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 # Checking for header files.
3503 # ===========================================================================
3505 echo "$as_me:$LINENO: checking for egrep" >&5
3506 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3507 if test "${ac_cv_prog_egrep+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3511 then ac_cv_prog_egrep='grep -E'
3512 else ac_cv_prog_egrep='egrep'
3515 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3516 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3517 EGREP=$ac_cv_prog_egrep
3520 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3521 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3522 if test "${ac_cv_header_stdc+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 cat >conftest.$ac_ext <<_ACEOF
3526 #line $LINENO "configure"
3527 #include "confdefs.h"
3534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3550 if test -z "$ac_cpp_err"; then
3551 ac_cv_header_stdc=yes
3553 echo "$as_me: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 ac_cv_header_stdc=no
3557 rm -f conftest.err conftest.$ac_ext
3559 if test $ac_cv_header_stdc = yes; then
3560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3561 cat >conftest.$ac_ext <<_ACEOF
3562 #line $LINENO "configure"
3563 #include "confdefs.h"
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568 $EGREP "memchr" >/dev/null 2>&1; then
3571 ac_cv_header_stdc=no
3577 if test $ac_cv_header_stdc = yes; then
3578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3579 cat >conftest.$ac_ext <<_ACEOF
3580 #line $LINENO "configure"
3581 #include "confdefs.h"
3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586 $EGREP "free" >/dev/null 2>&1; then
3589 ac_cv_header_stdc=no
3595 if test $ac_cv_header_stdc = yes; then
3596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3597 if test "$cross_compiling" = yes; then
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3604 #if ((' ' & 0x0FF) == 0x020)
3605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3608 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3609 || ('j' <= (c) && (c) <= 'r') \
3610 || ('s' <= (c) && (c) <= 'z'))
3611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3619 for (i = 0; i < 256; i++)
3620 if (XOR (islower (i), ISLOWER (i))
3621 || toupper (i) != TOUPPER (i))
3626 rm -f conftest$ac_exeext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628 (eval $ac_link) 2>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3639 echo "$as_me: program exited with status $ac_status" >&5
3640 echo "$as_me: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3643 ac_cv_header_stdc=no
3645 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3651 if test $ac_cv_header_stdc = yes; then
3653 cat >>confdefs.h <<\_ACEOF
3654 #define STDC_HEADERS 1
3659 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3670 inttypes.h stdint.h unistd.h
3672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3673 echo "$as_me:$LINENO: checking for $ac_header" >&5
3674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 cat >conftest.$ac_ext <<_ACEOF
3679 #line $LINENO "configure"
3680 #include "confdefs.h"
3681 $ac_includes_default
3683 #include <$ac_header>
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 eval "$as_ac_Header=yes"
3699 echo "$as_me: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3701 eval "$as_ac_Header=no"
3703 rm -f conftest.$ac_objext conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3708 cat >>confdefs.h <<_ACEOF
3709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3718 for ac_header in sys/socket.h
3720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3722 echo "$as_me:$LINENO: checking for $ac_header" >&5
3723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3730 # Is the header compilable?
3731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 #include "confdefs.h"
3736 $ac_includes_default
3737 #include <$ac_header>
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_header_compiler=yes
3753 echo "$as_me: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3755 ac_header_compiler=no
3757 rm -f conftest.$ac_objext conftest.$ac_ext
3758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3759 echo "${ECHO_T}$ac_header_compiler" >&6
3761 # Is the header present?
3762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3764 cat >conftest.$ac_ext <<_ACEOF
3765 #line $LINENO "configure"
3766 #include "confdefs.h"
3767 #include <$ac_header>
3769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3772 grep -v '^ *+' conftest.er1 >conftest.err
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } >/dev/null; then
3777 if test -s conftest.err; then
3778 ac_cpp_err=$ac_c_preproc_warn_flag
3785 if test -z "$ac_cpp_err"; then
3786 ac_header_preproc=yes
3788 echo "$as_me: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3790 ac_header_preproc=no
3792 rm -f conftest.err conftest.$ac_ext
3793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3794 echo "${ECHO_T}$ac_header_preproc" >&6
3796 # So? What about this header?
3797 case $ac_header_compiler:$ac_header_preproc in
3799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3811 echo "$as_me:$LINENO: checking for $ac_header" >&5
3812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 eval "$as_ac_Header=$ac_header_preproc"
3818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3823 cat >>confdefs.h <<_ACEOF
3824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3833 # Checking for functions
3834 # ===========================================================================
3836 for ac_func in strerror
3838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3839 echo "$as_me:$LINENO: checking for $ac_func" >&5
3840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3841 if eval "test \"\${$as_ac_var+set}\" = set"; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 cat >conftest.$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3846 #include "confdefs.h"
3847 /* System header to define __stub macros and hopefully few prototypes,
3848 which can conflict with char $ac_func (); below. */
3850 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3862 /* The GNU C library defines this for functions which it implements
3863 to always fail with ENOSYS. Some functions are actually named
3864 something starting with __ and the normal name is an alias. */
3865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3875 rm -f conftest.$ac_objext conftest$ac_exeext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3877 (eval $ac_link) 2>&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try='test -s conftest$ac_exeext'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 eval "$as_ac_var=yes"
3889 echo "$as_me: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3891 eval "$as_ac_var=no"
3893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3897 if test `eval echo '${'$as_ac_var'}'` = yes; then
3898 cat >>confdefs.h <<_ACEOF
3899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3909 for ac_func in vsnprintf snprintf vsprintf mkstemp
3911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3912 echo "$as_me:$LINENO: checking for $ac_func" >&5
3913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3914 if eval "test \"\${$as_ac_var+set}\" = set"; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 cat >conftest.$ac_ext <<_ACEOF
3918 #line $LINENO "configure"
3919 #include "confdefs.h"
3920 /* System header to define __stub macros and hopefully few prototypes,
3921 which can conflict with char $ac_func (); below. */
3923 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3935 /* The GNU C library defines this for functions which it implements
3936 to always fail with ENOSYS. Some functions are actually named
3937 something starting with __ and the normal name is an alias. */
3938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3948 rm -f conftest.$ac_objext conftest$ac_exeext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -s conftest$ac_exeext'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 eval "$as_ac_var=yes"
3962 echo "$as_me: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3964 eval "$as_ac_var=no"
3966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3970 if test `eval echo '${'$as_ac_var'}'` = yes; then
3971 cat >>confdefs.h <<_ACEOF
3972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3981 # ===========================================================================
3983 # DD_COPT macro checks if the compiler specified as the 1st parameter
3984 # supports option specified as the 2nd parameter
3985 # For example: DD_CPORT(CXX, fPIC)
3989 # This macro expands DIR and assigns it to RET.
3990 # If DIR is NONE, then it's replaced by DEFAULT.
3992 # Based on AC_DEFINE_DIR
3996 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
4000 # adl_NORMALIZE_PATH
4002 # - empty paths are changed to '.'
4003 # - trailing slashes are removed
4004 # - repeated slashes are squeezed except a leading doubled slash '//'
4005 # (which might indicate a networked disk on some OS).
4008 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4009 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4010 # are turned into backslashes, otherwise they are all turned into slashes.
4012 # This makes processing of DOS filenames quite easier, because you can turn a
4013 # filename to the Unix notation, make your processing, and turn it back to
4014 # original notation.
4019 # adl_COMPUTE_RELATIVE_PATH
4021 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4022 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4023 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4024 # absolute filenames for this macro to success.
4030 ## The following helper macros are too fragile to be used out
4031 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4032 ## paths are normalized), that's why I'm keeping them in the same file.
4033 ## Still, some of them maybe worth to reuse.
4047 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4052 # Checking characteristics of compilers and other programs
4053 # ===========================================================================
4054 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4055 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4056 if test "${sdcc_cv_MM+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 echo "#include <stdio.h>" >_test_.c
4061 $CPP -v -MM _test_.c 1>&5 2>&5
4062 if test "$?" = "0"; then
4069 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4070 echo "${ECHO_T}$sdcc_cv_MM" >&6
4074 # This is the first time when CFLAGS are set/modified!!
4076 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4077 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4078 if test "${sdcc_cv_CCggdb+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4086 if test "$?" = "0"; then
4087 sdcc_cv_CCggdb="yes"
4091 rm -f _test_.* a.out
4093 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4094 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4096 if test "$sdcc_cv_CCggdb" = "yes"; then
4097 CFLAGS="-ggdb ${CFLAGS}"
4101 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4102 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4103 if test "${sdcc_cv_CCpipe+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 $CC -v -pipe -c _test_.c 1>&5 2>&5
4111 if test "$?" = "0"; then
4112 sdcc_cv_CCpipe="yes"
4116 rm -f _test_.* a.out
4118 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4119 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4121 if test "$sdcc_cv_CCpipe" = "yes"; then
4122 CFLAGS="-pipe $CFLAGS"
4126 # Checks for typedefs, structures, and compiler characteristics.
4127 # ===========================================================================
4128 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4129 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4130 if test "${ac_cv_type_signal+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 cat >conftest.$ac_ext <<_ACEOF
4134 #line $LINENO "configure"
4135 #include "confdefs.h"
4136 #include <sys/types.h>
4142 extern "C" void (*signal (int, void (*)(int)))(int);
4144 void (*signal ()) ();
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_type_signal=void
4169 echo "$as_me: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 ac_cv_type_signal=int
4173 rm -f conftest.$ac_objext conftest.$ac_ext
4175 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4176 echo "${ECHO_T}$ac_cv_type_signal" >&6
4178 cat >>confdefs.h <<_ACEOF
4179 #define RETSIGTYPE $ac_cv_type_signal
4184 echo "$as_me:$LINENO: checking for char" >&5
4185 echo $ECHO_N "checking for char... $ECHO_C" >&6
4186 if test "${ac_cv_type_char+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 cat >conftest.$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4192 $ac_includes_default
4204 rm -f conftest.$ac_objext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4206 (eval $ac_compile) 2>&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4218 echo "$as_me: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4222 rm -f conftest.$ac_objext conftest.$ac_ext
4224 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4225 echo "${ECHO_T}$ac_cv_type_char" >&6
4227 echo "$as_me:$LINENO: checking size of char" >&5
4228 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4229 if test "${ac_cv_sizeof_char+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test "$ac_cv_type_char" = yes; then
4233 # The cast to unsigned long works around a bug in the HP C Compiler
4234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4236 # This bug is HP SR number 8606223364.
4237 if test "$cross_compiling" = yes; then
4238 # Depending upon the size, compute the lo and hi bounds.
4239 cat >conftest.$ac_ext <<_ACEOF
4240 #line $LINENO "configure"
4241 #include "confdefs.h"
4242 $ac_includes_default
4246 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4253 rm -f conftest.$ac_objext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line $LINENO "configure"
4269 #include "confdefs.h"
4270 $ac_includes_default
4274 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_hi=$ac_mid; break
4295 echo "$as_me: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4297 ac_lo=`expr $ac_mid + 1`
4298 if test $ac_lo -le $ac_mid; then
4302 ac_mid=`expr 2 '*' $ac_mid + 1`
4304 rm -f conftest.$ac_objext conftest.$ac_ext
4307 echo "$as_me: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 cat >conftest.$ac_ext <<_ACEOF
4310 #line $LINENO "configure"
4311 #include "confdefs.h"
4312 $ac_includes_default
4316 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4337 cat >conftest.$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4339 #include "confdefs.h"
4340 $ac_includes_default
4344 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4351 rm -f conftest.$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353 (eval $ac_compile) 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_lo=$ac_mid; break
4365 echo "$as_me: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4367 ac_hi=`expr '(' $ac_mid ')' - 1`
4368 if test $ac_mid -le $ac_hi; then
4372 ac_mid=`expr 2 '*' $ac_mid`
4374 rm -f conftest.$ac_objext conftest.$ac_ext
4377 echo "$as_me: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4383 rm -f conftest.$ac_objext conftest.$ac_ext
4384 # Binary search between lo and hi bounds.
4385 while test "x$ac_lo" != "x$ac_hi"; do
4386 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4387 cat >conftest.$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4389 #include "confdefs.h"
4390 $ac_includes_default
4394 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4401 rm -f conftest.$ac_objext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403 (eval $ac_compile) 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4415 echo "$as_me: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 ac_lo=`expr '(' $ac_mid ')' + 1`
4419 rm -f conftest.$ac_objext conftest.$ac_ext
4422 ?*) ac_cv_sizeof_char=$ac_lo;;
4423 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4424 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4425 { (exit 1); exit 1; }; } ;;
4428 if test "$cross_compiling" = yes; then
4429 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4430 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4431 { (exit 1); exit 1; }; }
4433 cat >conftest.$ac_ext <<_ACEOF
4434 #line $LINENO "configure"
4435 #include "confdefs.h"
4436 $ac_includes_default
4437 long longval () { return (long) (sizeof (char)); }
4438 unsigned long ulongval () { return (long) (sizeof (char)); }
4445 FILE *f = fopen ("conftest.val", "w");
4448 if (((long) (sizeof (char))) < 0)
4450 long i = longval ();
4451 if (i != ((long) (sizeof (char))))
4453 fprintf (f, "%ld\n", i);
4457 unsigned long i = ulongval ();
4458 if (i != ((long) (sizeof (char))))
4460 fprintf (f, "%lu\n", i);
4462 exit (ferror (f) || fclose (f) != 0);
4468 rm -f conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_sizeof_char=`cat conftest.val`
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4486 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4487 { (exit 1); exit 1; }; }
4489 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4497 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4498 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4499 cat >>confdefs.h <<_ACEOF
4500 #define SIZEOF_CHAR $ac_cv_sizeof_char
4504 echo "$as_me:$LINENO: checking for short" >&5
4505 echo $ECHO_N "checking for short... $ECHO_C" >&6
4506 if test "${ac_cv_type_short+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 cat >conftest.$ac_ext <<_ACEOF
4510 #line $LINENO "configure"
4511 #include "confdefs.h"
4512 $ac_includes_default
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 ac_cv_type_short=yes
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4545 echo "${ECHO_T}$ac_cv_type_short" >&6
4547 echo "$as_me:$LINENO: checking size of short" >&5
4548 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4549 if test "${ac_cv_sizeof_short+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test "$ac_cv_type_short" = yes; then
4553 # The cast to unsigned long works around a bug in the HP C Compiler
4554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4556 # This bug is HP SR number 8606223364.
4557 if test "$cross_compiling" = yes; then
4558 # Depending upon the size, compute the lo and hi bounds.
4559 cat >conftest.$ac_ext <<_ACEOF
4560 #line $LINENO "configure"
4561 #include "confdefs.h"
4562 $ac_includes_default
4566 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4573 rm -f conftest.$ac_objext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4587 cat >conftest.$ac_ext <<_ACEOF
4588 #line $LINENO "configure"
4589 #include "confdefs.h"
4590 $ac_includes_default
4594 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_hi=$ac_mid; break
4615 echo "$as_me: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4617 ac_lo=`expr $ac_mid + 1`
4618 if test $ac_lo -le $ac_mid; then
4622 ac_mid=`expr 2 '*' $ac_mid + 1`
4624 rm -f conftest.$ac_objext conftest.$ac_ext
4627 echo "$as_me: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4631 #include "confdefs.h"
4632 $ac_includes_default
4636 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4643 rm -f conftest.$ac_objext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -s conftest.$ac_objext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4657 cat >conftest.$ac_ext <<_ACEOF
4658 #line $LINENO "configure"
4659 #include "confdefs.h"
4660 $ac_includes_default
4664 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -s conftest.$ac_objext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_lo=$ac_mid; break
4685 echo "$as_me: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4687 ac_hi=`expr '(' $ac_mid ')' - 1`
4688 if test $ac_mid -le $ac_hi; then
4692 ac_mid=`expr 2 '*' $ac_mid`
4694 rm -f conftest.$ac_objext conftest.$ac_ext
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4701 rm -f conftest.$ac_objext conftest.$ac_ext
4703 rm -f conftest.$ac_objext conftest.$ac_ext
4704 # Binary search between lo and hi bounds.
4705 while test "x$ac_lo" != "x$ac_hi"; do
4706 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 #include "confdefs.h"
4710 $ac_includes_default
4714 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4735 echo "$as_me: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4737 ac_lo=`expr '(' $ac_mid ')' + 1`
4739 rm -f conftest.$ac_objext conftest.$ac_ext
4742 ?*) ac_cv_sizeof_short=$ac_lo;;
4743 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4744 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4745 { (exit 1); exit 1; }; } ;;
4748 if test "$cross_compiling" = yes; then
4749 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4750 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4751 { (exit 1); exit 1; }; }
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 #include "confdefs.h"
4756 $ac_includes_default
4757 long longval () { return (long) (sizeof (short)); }
4758 unsigned long ulongval () { return (long) (sizeof (short)); }
4765 FILE *f = fopen ("conftest.val", "w");
4768 if (((long) (sizeof (short))) < 0)
4770 long i = longval ();
4771 if (i != ((long) (sizeof (short))))
4773 fprintf (f, "%ld\n", i);
4777 unsigned long i = ulongval ();
4778 if (i != ((long) (sizeof (short))))
4780 fprintf (f, "%lu\n", i);
4782 exit (ferror (f) || fclose (f) != 0);
4788 rm -f conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 ac_cv_sizeof_short=`cat conftest.val`
4801 echo "$as_me: program exited with status $ac_status" >&5
4802 echo "$as_me: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4805 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4806 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4807 { (exit 1); exit 1; }; }
4809 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4814 ac_cv_sizeof_short=0
4817 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4818 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4819 cat >>confdefs.h <<_ACEOF
4820 #define SIZEOF_SHORT $ac_cv_sizeof_short
4824 echo "$as_me:$LINENO: checking for int" >&5
4825 echo $ECHO_N "checking for int... $ECHO_C" >&6
4826 if test "${ac_cv_type_int+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 cat >conftest.$ac_ext <<_ACEOF
4830 #line $LINENO "configure"
4831 #include "confdefs.h"
4832 $ac_includes_default
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4858 echo "$as_me: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4862 rm -f conftest.$ac_objext conftest.$ac_ext
4864 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4865 echo "${ECHO_T}$ac_cv_type_int" >&6
4867 echo "$as_me:$LINENO: checking size of int" >&5
4868 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4869 if test "${ac_cv_sizeof_int+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test "$ac_cv_type_int" = yes; then
4873 # The cast to unsigned long works around a bug in the HP C Compiler
4874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4876 # This bug is HP SR number 8606223364.
4877 if test "$cross_compiling" = yes; then
4878 # Depending upon the size, compute the lo and hi bounds.
4879 cat >conftest.$ac_ext <<_ACEOF
4880 #line $LINENO "configure"
4881 #include "confdefs.h"
4882 $ac_includes_default
4886 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4907 cat >conftest.$ac_ext <<_ACEOF
4908 #line $LINENO "configure"
4909 #include "confdefs.h"
4910 $ac_includes_default
4914 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_hi=$ac_mid; break
4935 echo "$as_me: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4937 ac_lo=`expr $ac_mid + 1`
4938 if test $ac_lo -le $ac_mid; then
4942 ac_mid=`expr 2 '*' $ac_mid + 1`
4944 rm -f conftest.$ac_objext conftest.$ac_ext
4947 echo "$as_me: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4951 #include "confdefs.h"
4952 $ac_includes_default
4956 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4963 rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4979 #include "confdefs.h"
4980 $ac_includes_default
4984 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_lo=$ac_mid; break
5005 echo "$as_me: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 ac_hi=`expr '(' $ac_mid ')' - 1`
5008 if test $ac_mid -le $ac_hi; then
5012 ac_mid=`expr 2 '*' $ac_mid`
5014 rm -f conftest.$ac_objext conftest.$ac_ext
5017 echo "$as_me: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5021 rm -f conftest.$ac_objext conftest.$ac_ext
5023 rm -f conftest.$ac_objext conftest.$ac_ext
5024 # Binary search between lo and hi bounds.
5025 while test "x$ac_lo" != "x$ac_hi"; do
5026 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5029 #include "confdefs.h"
5030 $ac_includes_default
5034 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5041 rm -f conftest.$ac_objext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043 (eval $ac_compile) 2>&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -s conftest.$ac_objext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5055 echo "$as_me: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5057 ac_lo=`expr '(' $ac_mid ')' + 1`
5059 rm -f conftest.$ac_objext conftest.$ac_ext
5062 ?*) ac_cv_sizeof_int=$ac_lo;;
5063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5064 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5065 { (exit 1); exit 1; }; } ;;
5068 if test "$cross_compiling" = yes; then
5069 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5070 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5071 { (exit 1); exit 1; }; }
5073 cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5075 #include "confdefs.h"
5076 $ac_includes_default
5077 long longval () { return (long) (sizeof (int)); }
5078 unsigned long ulongval () { return (long) (sizeof (int)); }
5085 FILE *f = fopen ("conftest.val", "w");
5088 if (((long) (sizeof (int))) < 0)
5090 long i = longval ();
5091 if (i != ((long) (sizeof (int))))
5093 fprintf (f, "%ld\n", i);
5097 unsigned long i = ulongval ();
5098 if (i != ((long) (sizeof (int))))
5100 fprintf (f, "%lu\n", i);
5102 exit (ferror (f) || fclose (f) != 0);
5108 rm -f conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 ac_cv_sizeof_int=`cat conftest.val`
5121 echo "$as_me: program exited with status $ac_status" >&5
5122 echo "$as_me: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5126 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5127 { (exit 1); exit 1; }; }
5129 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5137 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5138 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5139 cat >>confdefs.h <<_ACEOF
5140 #define SIZEOF_INT $ac_cv_sizeof_int
5144 echo "$as_me:$LINENO: checking for long" >&5
5145 echo $ECHO_N "checking for long... $ECHO_C" >&6
5146 if test "${ac_cv_type_long+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line $LINENO "configure"
5151 #include "confdefs.h"
5152 $ac_includes_default
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } &&
5170 { ac_try='test -s conftest.$ac_objext'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5178 echo "$as_me: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5182 rm -f conftest.$ac_objext conftest.$ac_ext
5184 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5185 echo "${ECHO_T}$ac_cv_type_long" >&6
5187 echo "$as_me:$LINENO: checking size of long" >&5
5188 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5189 if test "${ac_cv_sizeof_long+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 if test "$ac_cv_type_long" = yes; then
5193 # The cast to unsigned long works around a bug in the HP C Compiler
5194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5196 # This bug is HP SR number 8606223364.
5197 if test "$cross_compiling" = yes; then
5198 # Depending upon the size, compute the lo and hi bounds.
5199 cat >conftest.$ac_ext <<_ACEOF
5200 #line $LINENO "configure"
5201 #include "confdefs.h"
5202 $ac_includes_default
5206 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5230 $ac_includes_default
5234 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5241 rm -f conftest.$ac_objext
5242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5243 (eval $ac_compile) 2>&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } &&
5247 { ac_try='test -s conftest.$ac_objext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 ac_hi=$ac_mid; break
5255 echo "$as_me: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5257 ac_lo=`expr $ac_mid + 1`
5258 if test $ac_lo -le $ac_mid; then
5262 ac_mid=`expr 2 '*' $ac_mid + 1`
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5267 echo "$as_me: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5269 cat >conftest.$ac_ext <<_ACEOF
5270 #line $LINENO "configure"
5271 #include "confdefs.h"
5272 $ac_includes_default
5276 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5297 cat >conftest.$ac_ext <<_ACEOF
5298 #line $LINENO "configure"
5299 #include "confdefs.h"
5300 $ac_includes_default
5304 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_lo=$ac_mid; break
5325 echo "$as_me: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5327 ac_hi=`expr '(' $ac_mid ')' - 1`
5328 if test $ac_mid -le $ac_hi; then
5332 ac_mid=`expr 2 '*' $ac_mid`
5334 rm -f conftest.$ac_objext conftest.$ac_ext
5337 echo "$as_me: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5343 rm -f conftest.$ac_objext conftest.$ac_ext
5344 # Binary search between lo and hi bounds.
5345 while test "x$ac_lo" != "x$ac_hi"; do
5346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5347 cat >conftest.$ac_ext <<_ACEOF
5348 #line $LINENO "configure"
5349 #include "confdefs.h"
5350 $ac_includes_default
5354 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5361 rm -f conftest.$ac_objext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363 (eval $ac_compile) 2>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -s conftest.$ac_objext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5375 echo "$as_me: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 ac_lo=`expr '(' $ac_mid ')' + 1`
5379 rm -f conftest.$ac_objext conftest.$ac_ext
5382 ?*) ac_cv_sizeof_long=$ac_lo;;
5383 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5384 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5388 if test "$cross_compiling" = yes; then
5389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5390 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5391 { (exit 1); exit 1; }; }
5393 cat >conftest.$ac_ext <<_ACEOF
5394 #line $LINENO "configure"
5395 #include "confdefs.h"
5396 $ac_includes_default
5397 long longval () { return (long) (sizeof (long)); }
5398 unsigned long ulongval () { return (long) (sizeof (long)); }
5405 FILE *f = fopen ("conftest.val", "w");
5408 if (((long) (sizeof (long))) < 0)
5410 long i = longval ();
5411 if (i != ((long) (sizeof (long))))
5413 fprintf (f, "%ld\n", i);
5417 unsigned long i = ulongval ();
5418 if (i != ((long) (sizeof (long))))
5420 fprintf (f, "%lu\n", i);
5422 exit (ferror (f) || fclose (f) != 0);
5428 rm -f conftest$ac_exeext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430 (eval $ac_link) 2>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_cv_sizeof_long=`cat conftest.val`
5441 echo "$as_me: program exited with status $ac_status" >&5
5442 echo "$as_me: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5446 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5447 { (exit 1); exit 1; }; }
5449 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5457 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5458 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5459 cat >>confdefs.h <<_ACEOF
5460 #define SIZEOF_LONG $ac_cv_sizeof_long
5467 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5471 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5475 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5479 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5486 echo "$as_me:$LINENO: checking type name for byte" >&5
5487 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5488 TYPE_BYTE=`type_name 1`
5489 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5490 echo "${ECHO_T}$TYPE_BYTE" >&6
5491 echo "$as_me:$LINENO: checking type name for word" >&5
5492 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5493 TYPE_WORD=`type_name 2`
5494 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5495 echo "${ECHO_T}$TYPE_WORD" >&6
5496 echo "$as_me:$LINENO: checking type name for dword" >&5
5497 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5498 TYPE_DWORD=`type_name 4`
5499 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5500 echo "${ECHO_T}$TYPE_DWORD" >&6
5501 cat >>confdefs.h <<_ACEOF
5502 #define TYPE_BYTE $TYPE_BYTE
5505 cat >>confdefs.h <<_ACEOF
5506 #define TYPE_WORD $TYPE_WORD
5509 cat >>confdefs.h <<_ACEOF
5510 #define TYPE_DWORD $TYPE_DWORD
5514 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5515 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5516 if test "${ac_cv_c_bigendian+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 # See if sys/param.h defines the BYTE_ORDER macro.
5520 cat >conftest.$ac_ext <<_ACEOF
5521 #line $LINENO "configure"
5522 #include "confdefs.h"
5523 #include <sys/types.h>
5524 #include <sys/param.h>
5529 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -s conftest.$ac_objext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 # It does; now see whether it defined to BIG_ENDIAN or not.
5550 cat >conftest.$ac_ext <<_ACEOF
5551 #line $LINENO "configure"
5552 #include "confdefs.h"
5553 #include <sys/types.h>
5554 #include <sys/param.h>
5559 #if BYTE_ORDER != BIG_ENDIAN
5567 rm -f conftest.$ac_objext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_c_bigendian=yes
5581 echo "$as_me: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5583 ac_cv_c_bigendian=no
5585 rm -f conftest.$ac_objext conftest.$ac_ext
5587 echo "$as_me: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5589 # It does not; compile a test program.
5590 if test "$cross_compiling" = yes; then
5591 # try to guess the endianness by grepping values into an object file
5592 ac_cv_c_bigendian=unknown
5593 cat >conftest.$ac_ext <<_ACEOF
5594 #line $LINENO "configure"
5595 #include "confdefs.h"
5596 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5597 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5598 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5599 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5600 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5601 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5605 _ascii (); _ebcdic ();
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5623 ac_cv_c_bigendian=yes
5625 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5626 if test "$ac_cv_c_bigendian" = unknown; then
5627 ac_cv_c_bigendian=no
5629 # finding both strings is unlikely to happen, but who knows?
5630 ac_cv_c_bigendian=unknown
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 rm -f conftest.$ac_objext conftest.$ac_ext
5639 cat >conftest.$ac_ext <<_ACEOF
5640 #line $LINENO "configure"
5641 #include "confdefs.h"
5645 /* Are we little or big endian? From Harbison&Steele. */
5649 char c[sizeof (long)];
5652 exit (u.c[sizeof (long) - 1] == 1);
5655 rm -f conftest$ac_exeext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_cv_c_bigendian=no
5668 echo "$as_me: program exited with status $ac_status" >&5
5669 echo "$as_me: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 ac_cv_c_bigendian=yes
5674 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5677 rm -f conftest.$ac_objext conftest.$ac_ext
5679 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5680 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5681 case $ac_cv_c_bigendian in
5684 cat >>confdefs.h <<\_ACEOF
5685 #define WORDS_BIGENDIAN 1
5691 { { echo "$as_me:$LINENO: error: unknown endianness
5692 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5693 echo "$as_me: error: unknown endianness
5694 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5695 { (exit 1); exit 1; }; } ;;
5699 # Set standard installation paths
5700 # ===========================================================================
5702 # In the Makefiles we need paths with '/' as directory separator, even if
5703 # crosscompiling for Win32.
5704 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5705 # The variables in the Makefiles are replaced by AC_SUBST()
5707 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5709 # The macros are expanded for the header.
5710 # The variables in the header are replaced by AC_*DEFINE*()
5711 # sdccconf_h_dir_separator contains a backslash.
5713 if test "${sdccconf_h_dir_separator}" = ""; then
5714 sdccconf_h_dir_separator="/"
5720 # include_dir_suffix:
5721 # *nix default: "sdcc/include"
5724 if test "${include_dir_suffix}" = ""; then
5725 include_dir_suffix="sdcc/include"
5730 # *nix default: "sdcc/lib"
5732 if test "${lib_dir_suffix}" = ""; then
5733 lib_dir_suffix="sdcc/lib"
5738 # *nix default: "${datadir}/sdcc/doc"
5740 if test "${docdir}" = ""; then
5741 docdir="\${datadir}"/sdcc/doc
5750 cat >>confdefs.h <<_ACEOF
5751 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5754 cat >>confdefs.h <<_ACEOF
5755 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
5760 # default: "NONE", ${ac_default_prefix}: "/usr/local"
5762 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5765 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
5766 ac_expand=`eval echo $ac_expand`
5767 expanded_prefix=`eval echo $ac_expand`
5770 ac_ndu=$expanded_prefix
5772 # change empty paths to '.'
5774 # strip trailing slashes
5775 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5778 # squeze repeated slashes
5779 case $sdccconf_h_dir_separator in
5780 # if the path contains any backslashes, turn slashes into backslashes
5782 # Bernhard Held 2003-04-06
5783 # This was the original line. It doesn't:
5784 # - convert the first slash
5785 # - replace a slash with a double-backslash
5786 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5787 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5789 # if the path contains slashes, also turn backslashes into slashes
5790 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5792 cat >>confdefs.h <<_ACEOF
5793 #define PREFIX "${ac_ndu}"
5799 # default: "${prefix}"
5801 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5803 ac_expand=$exec_prefix
5804 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
5805 ac_expand=`eval echo $ac_expand`
5806 expanded_exec_prefix=`eval echo $ac_expand`
5809 ac_ndu=$expanded_exec_prefix
5811 # change empty paths to '.'
5813 # strip trailing slashes
5814 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5817 # squeze repeated slashes
5818 case $sdccconf_h_dir_separator in
5819 # if the path contains any backslashes, turn slashes into backslashes
5821 # Bernhard Held 2003-04-06
5822 # This was the original line. It doesn't:
5823 # - convert the first slash
5824 # - replace a slash with a double-backslash
5825 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5826 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5828 # if the path contains slashes, also turn backslashes into slashes
5829 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5831 cat >>confdefs.h <<_ACEOF
5832 #define EXEC_PREFIX "${ac_ndu}"
5838 # default: "${exec_prefix}/bin"
5840 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5843 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5844 ac_expand=`eval echo $ac_expand`
5845 expanded_bindir=`eval echo $ac_expand`
5848 ac_ndu=$expanded_bindir
5850 # change empty paths to '.'
5852 # strip trailing slashes
5853 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5856 # squeze repeated slashes
5857 case $sdccconf_h_dir_separator in
5858 # if the path contains any backslashes, turn slashes into backslashes
5860 # Bernhard Held 2003-04-06
5861 # This was the original line. It doesn't:
5862 # - convert the first slash
5863 # - replace a slash with a double-backslash
5864 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5865 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5867 # if the path contains slashes, also turn backslashes into slashes
5868 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5870 cat >>confdefs.h <<_ACEOF
5871 #define BINDIR "${ac_ndu}"
5877 # default: "${prefix}/share"
5879 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5882 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5883 ac_expand=`eval echo $ac_expand`
5884 expanded_datadir=`eval echo $ac_expand`
5887 ac_ndu=$expanded_datadir
5889 # change empty paths to '.'
5891 # strip trailing slashes
5892 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5895 # squeze repeated slashes
5896 case $sdccconf_h_dir_separator in
5897 # if the path contains any backslashes, turn slashes into backslashes
5899 # Bernhard Held 2003-04-06
5900 # This was the original line. It doesn't:
5901 # - convert the first slash
5902 # - replace a slash with a double-backslash
5903 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5904 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5906 # if the path contains slashes, also turn backslashes into slashes
5907 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5909 cat >>confdefs.h <<_ACEOF
5910 #define DATADIR "${ac_ndu}"
5915 # include/lib suffix
5916 norm_inc_dir_suffix=${include_dir_suffix}
5917 case ":$norm_inc_dir_suffix:" in
5918 # change empty paths to '.'
5919 ::) norm_inc_dir_suffix='.' ;;
5920 # strip trailing slashes
5921 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5924 # squeze repeated slashes
5925 case $sdccconf_h_dir_separator in
5926 # if the path contains any backslashes, turn slashes into backslashes
5928 # Bernhard Held 2003-04-06
5929 # This was the original line. It doesn't:
5930 # - convert the first slash
5931 # - replace a slash with a double-backslash
5932 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5933 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5935 # if the path contains slashes, also turn backslashes into slashes
5936 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5938 cat >>confdefs.h <<_ACEOF
5939 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
5942 norm_lib_dir_suffix=${lib_dir_suffix}
5943 case ":$norm_lib_dir_suffix:" in
5944 # change empty paths to '.'
5945 ::) norm_lib_dir_suffix='.' ;;
5946 # strip trailing slashes
5947 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5950 # squeze repeated slashes
5951 case $sdccconf_h_dir_separator in
5952 # if the path contains any backslashes, turn slashes into backslashes
5954 # Bernhard Held 2003-04-06
5955 # This was the original line. It doesn't:
5956 # - convert the first slash
5957 # - replace a slash with a double-backslash
5958 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5959 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5961 # if the path contains slashes, also turn backslashes into slashes
5962 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5964 cat >>confdefs.h <<_ACEOF
5965 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5970 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
5971 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
5972 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
5973 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
5974 _lcl_receval="$_lcl_from"
5975 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5976 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5978 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5979 _lcl_receval_old="$_lcl_receval"
5980 eval _lcl_receval="\"$_lcl_receval\""
5982 echo "$_lcl_receval")`
5983 _lcl_receval="$_lcl_to"
5984 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5985 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5987 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5988 _lcl_receval_old="$_lcl_receval"
5989 eval _lcl_receval="\"$_lcl_receval\""
5991 echo "$_lcl_receval")`
5992 _lcl_notation="$_lcl_from$_lcl_to"
5993 case ":$_lcl_from:" in
5994 # change empty paths to '.'
5995 ::) _lcl_from='.' ;;
5996 # strip trailing slashes
5997 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6000 # squeze repeated slashes
6002 # if the path contains any backslashes, turn slashes into backslashes
6004 # Bernhard Held 2003-04-06
6005 # This was the original line. It doesn't:
6006 # - convert the first slash
6007 # - replace a slash with a double-backslash
6008 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6009 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6011 # if the path contains slashes, also turn backslashes into slashes
6012 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6014 case ":$_lcl_to:" in
6015 # change empty paths to '.'
6017 # strip trailing slashes
6018 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6021 # squeze repeated slashes
6023 # if the path contains any backslashes, turn slashes into backslashes
6025 # Bernhard Held 2003-04-06
6026 # This was the original line. It doesn't:
6027 # - convert the first slash
6028 # - replace a slash with a double-backslash
6029 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6030 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6032 # if the path contains slashes, also turn backslashes into slashes
6033 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6035 _lcl_common_prefix=''
6036 _lcl_second_prefix_match=''
6037 while test "$_lcl_second_prefix_match" != 0; do
6038 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6039 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6040 if test "$_lcl_second_prefix_match" != 0; then
6041 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6042 _lcl_common_prefix="$_lcl_first_prefix"
6044 _lcl_second_prefix_match=0
6048 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6051 while test "$_lcl_tmp" != ''; do
6052 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6053 if test "$_lcl_first_suffix" != ''; then
6054 _lcl_first_suffix="$_lcl_tmp"
6055 _lcl_first_rel="../$_lcl_first_rel"
6058 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6059 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6060 case ":$_lcl_result_tmp:" in
6061 # change empty paths to '.'
6062 ::) _lcl_result_tmp='.' ;;
6063 # strip trailing slashes
6064 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6067 # squeze repeated slashes
6068 case "$_lcl_notation" in
6069 # if the path contains any backslashes, turn slashes into backslashes
6071 # Bernhard Held 2003-04-06
6072 # This was the original line. It doesn't:
6073 # - convert the first slash
6074 # - replace a slash with a double-backslash
6075 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6076 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6078 # if the path contains slashes, also turn backslashes into slashes
6079 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6081 eval $_lcl_result_var='$_lcl_result_tmp'
6083 case ":$bin2data_dir:" in
6084 # change empty paths to '.'
6085 ::) bin2data_dir='.' ;;
6086 # strip trailing slashes
6087 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6090 # squeze repeated slashes
6091 case $sdccconf_h_dir_separator in
6092 # if the path contains any backslashes, turn slashes into backslashes
6094 # Bernhard Held 2003-04-06
6095 # This was the original line. It doesn't:
6096 # - convert the first slash
6097 # - replace a slash with a double-backslash
6098 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6099 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6101 # if the path contains slashes, also turn backslashes into slashes
6102 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6104 cat >>confdefs.h <<_ACEOF
6105 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6109 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6110 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6111 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6112 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6113 _lcl_receval="$_lcl_from"
6114 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6115 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6117 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6118 _lcl_receval_old="$_lcl_receval"
6119 eval _lcl_receval="\"$_lcl_receval\""
6121 echo "$_lcl_receval")`
6122 _lcl_receval="$_lcl_to"
6123 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6124 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6126 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6127 _lcl_receval_old="$_lcl_receval"
6128 eval _lcl_receval="\"$_lcl_receval\""
6130 echo "$_lcl_receval")`
6131 _lcl_notation="$_lcl_from$_lcl_to"
6132 case ":$_lcl_from:" in
6133 # change empty paths to '.'
6134 ::) _lcl_from='.' ;;
6135 # strip trailing slashes
6136 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6139 # squeze repeated slashes
6141 # if the path contains any backslashes, turn slashes into backslashes
6143 # Bernhard Held 2003-04-06
6144 # This was the original line. It doesn't:
6145 # - convert the first slash
6146 # - replace a slash with a double-backslash
6147 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6148 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6150 # if the path contains slashes, also turn backslashes into slashes
6151 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6153 case ":$_lcl_to:" in
6154 # change empty paths to '.'
6156 # strip trailing slashes
6157 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6160 # squeze repeated slashes
6162 # if the path contains any backslashes, turn slashes into backslashes
6164 # Bernhard Held 2003-04-06
6165 # This was the original line. It doesn't:
6166 # - convert the first slash
6167 # - replace a slash with a double-backslash
6168 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6169 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6171 # if the path contains slashes, also turn backslashes into slashes
6172 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6174 _lcl_common_prefix=''
6175 _lcl_second_prefix_match=''
6176 while test "$_lcl_second_prefix_match" != 0; do
6177 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6178 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6179 if test "$_lcl_second_prefix_match" != 0; then
6180 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6181 _lcl_common_prefix="$_lcl_first_prefix"
6183 _lcl_second_prefix_match=0
6187 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6190 while test "$_lcl_tmp" != ''; do
6191 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6192 if test "$_lcl_first_suffix" != ''; then
6193 _lcl_first_suffix="$_lcl_tmp"
6194 _lcl_first_rel="../$_lcl_first_rel"
6197 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6198 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6199 case ":$_lcl_result_tmp:" in
6200 # change empty paths to '.'
6201 ::) _lcl_result_tmp='.' ;;
6202 # strip trailing slashes
6203 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6206 # squeze repeated slashes
6207 case "$_lcl_notation" in
6208 # if the path contains any backslashes, turn slashes into backslashes
6210 # Bernhard Held 2003-04-06
6211 # This was the original line. It doesn't:
6212 # - convert the first slash
6213 # - replace a slash with a double-backslash
6214 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6215 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6217 # if the path contains slashes, also turn backslashes into slashes
6218 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6220 eval $_lcl_result_var='$_lcl_result_tmp'
6222 case ":$prefix2bin_dir:" in
6223 # change empty paths to '.'
6224 ::) prefix2bin_dir='.' ;;
6225 # strip trailing slashes
6226 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6229 # squeze repeated slashes
6230 case $sdccconf_h_dir_separator in
6231 # if the path contains any backslashes, turn slashes into backslashes
6233 # Bernhard Held 2003-04-06
6234 # This was the original line. It doesn't:
6235 # - convert the first slash
6236 # - replace a slash with a double-backslash
6237 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6238 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6240 # if the path contains slashes, also turn backslashes into slashes
6241 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6243 cat >>confdefs.h <<_ACEOF
6244 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6248 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6249 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6250 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6251 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6252 _lcl_receval="$_lcl_from"
6253 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6254 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6256 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6257 _lcl_receval_old="$_lcl_receval"
6258 eval _lcl_receval="\"$_lcl_receval\""
6260 echo "$_lcl_receval")`
6261 _lcl_receval="$_lcl_to"
6262 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6263 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6265 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6266 _lcl_receval_old="$_lcl_receval"
6267 eval _lcl_receval="\"$_lcl_receval\""
6269 echo "$_lcl_receval")`
6270 _lcl_notation="$_lcl_from$_lcl_to"
6271 case ":$_lcl_from:" in
6272 # change empty paths to '.'
6273 ::) _lcl_from='.' ;;
6274 # strip trailing slashes
6275 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6278 # squeze repeated slashes
6280 # if the path contains any backslashes, turn slashes into backslashes
6282 # Bernhard Held 2003-04-06
6283 # This was the original line. It doesn't:
6284 # - convert the first slash
6285 # - replace a slash with a double-backslash
6286 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6287 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6289 # if the path contains slashes, also turn backslashes into slashes
6290 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6292 case ":$_lcl_to:" in
6293 # change empty paths to '.'
6295 # strip trailing slashes
6296 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6299 # squeze repeated slashes
6301 # if the path contains any backslashes, turn slashes into backslashes
6303 # Bernhard Held 2003-04-06
6304 # This was the original line. It doesn't:
6305 # - convert the first slash
6306 # - replace a slash with a double-backslash
6307 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6308 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6310 # if the path contains slashes, also turn backslashes into slashes
6311 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6313 _lcl_common_prefix=''
6314 _lcl_second_prefix_match=''
6315 while test "$_lcl_second_prefix_match" != 0; do
6316 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6317 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6318 if test "$_lcl_second_prefix_match" != 0; then
6319 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6320 _lcl_common_prefix="$_lcl_first_prefix"
6322 _lcl_second_prefix_match=0
6326 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6329 while test "$_lcl_tmp" != ''; do
6330 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6331 if test "$_lcl_first_suffix" != ''; then
6332 _lcl_first_suffix="$_lcl_tmp"
6333 _lcl_first_rel="../$_lcl_first_rel"
6336 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6337 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6338 case ":$_lcl_result_tmp:" in
6339 # change empty paths to '.'
6340 ::) _lcl_result_tmp='.' ;;
6341 # strip trailing slashes
6342 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6345 # squeze repeated slashes
6346 case "$_lcl_notation" in
6347 # if the path contains any backslashes, turn slashes into backslashes
6349 # Bernhard Held 2003-04-06
6350 # This was the original line. It doesn't:
6351 # - convert the first slash
6352 # - replace a slash with a double-backslash
6353 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6354 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6356 # if the path contains slashes, also turn backslashes into slashes
6357 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6359 eval $_lcl_result_var='$_lcl_result_tmp'
6361 case ":$prefix2data_dir:" in
6362 # change empty paths to '.'
6363 ::) prefix2data_dir='.' ;;
6364 # strip trailing slashes
6365 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6368 # squeze repeated slashes
6369 case $sdccconf_h_dir_separator in
6370 # if the path contains any backslashes, turn slashes into backslashes
6372 # Bernhard Held 2003-04-06
6373 # This was the original line. It doesn't:
6374 # - convert the first slash
6375 # - replace a slash with a double-backslash
6376 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6377 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6379 # if the path contains slashes, also turn backslashes into slashes
6380 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6382 if test "${prefix2data_dir}" = "."; then
6383 # small optimization for Mingw32; otherwise Borut will complain ;-)
6384 cat >>confdefs.h <<_ACEOF
6385 #define PREFIX2DATA_DIR ""
6389 cat >>confdefs.h <<_ACEOF
6390 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6396 cat >>confdefs.h <<_ACEOF
6397 #define STD_LIB "libsdcc"
6400 cat >>confdefs.h <<_ACEOF
6401 #define STD_INT_LIB "libint"
6404 cat >>confdefs.h <<_ACEOF
6405 #define STD_LONG_LIB "liblong"
6408 cat >>confdefs.h <<_ACEOF
6409 #define STD_FP_LIB "libfloat"
6412 cat >>confdefs.h <<_ACEOF
6413 #define STD_DS390_LIB "libds390"
6416 cat >>confdefs.h <<_ACEOF
6417 #define STD_DS400_LIB "libds400"
6420 cat >>confdefs.h <<_ACEOF
6421 #define STD_XA51_LIB "libxa51"
6425 # SDCC runtime environment variables
6426 sdcc_dir_name="SDCC_HOME"
6427 cat >>confdefs.h <<_ACEOF
6428 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6432 sdcc_include_name="SDCC_INCLUDE"
6433 cat >>confdefs.h <<_ACEOF
6434 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6438 sdcc_lib_name="SDCC_LIB"
6439 cat >>confdefs.h <<_ACEOF
6440 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6444 # Now handle the port selection
6445 # ===========================================================================
6446 rm -f ports.all ports.build
6447 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6448 if test "${enable_mcs51_port+set}" = set; then
6449 enableval="$enable_mcs51_port"
6452 echo mcs51 >>ports.all
6453 if test "$enable_mcs51_port" = "no"; then
6454 cat >>confdefs.h <<_ACEOF
6455 #define OPT_DISABLE_MCS51 1
6459 echo mcs51 >>ports.build
6460 cat >>confdefs.h <<_ACEOF
6461 #define OPT_DISABLE_MCS51 0
6466 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6467 if test "${enable_gbz80_port+set}" = set; then
6468 enableval="$enable_gbz80_port"
6471 echo z80 >>ports.all
6472 if test "$enable_gbz80_port" = "no"; then
6473 cat >>confdefs.h <<_ACEOF
6474 #define OPT_DISABLE_GBZ80 1
6478 echo z80 >>ports.build
6479 cat >>confdefs.h <<_ACEOF
6480 #define OPT_DISABLE_GBZ80 0
6485 # Check whether --enable-z80-port or --disable-z80-port was given.
6486 if test "${enable_z80_port+set}" = set; then
6487 enableval="$enable_z80_port"
6490 echo z80 >>ports.all
6491 if test "$enable_z80_port" = "no"; then
6492 cat >>confdefs.h <<_ACEOF
6493 #define OPT_DISABLE_Z80 1
6497 echo z80 >>ports.build
6498 cat >>confdefs.h <<_ACEOF
6499 #define OPT_DISABLE_Z80 0
6504 # Check whether --enable-avr-port or --disable-avr-port was given.
6505 if test "${enable_avr_port+set}" = set; then
6506 enableval="$enable_avr_port"
6509 echo avr >>ports.all
6510 if test "$enable_avr_port" = "no"; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define OPT_DISABLE_AVR 1
6516 echo avr >>ports.build
6517 cat >>confdefs.h <<_ACEOF
6518 #define OPT_DISABLE_AVR 0
6523 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6524 if test "${enable_ds390_port+set}" = set; then
6525 enableval="$enable_ds390_port"
6528 echo ds390 >>ports.all
6529 if test "$enable_ds390_port" = "no"; then
6530 cat >>confdefs.h <<_ACEOF
6531 #define OPT_DISABLE_DS390 1
6534 cat >>confdefs.h <<_ACEOF
6535 #define OPT_DISABLE_TININative 1
6539 echo ds390 >>ports.build
6540 cat >>confdefs.h <<_ACEOF
6541 #define OPT_DISABLE_DS390 0
6544 cat >>confdefs.h <<_ACEOF
6545 #define OPT_DISABLE_TININative 0
6550 # Check whether --enable-ds400-port or --disable-ds400-port was given.
6551 if test "${enable_ds400_port+set}" = set; then
6552 enableval="$enable_ds400_port"
6555 echo ds400 >>ports.all
6556 if test "$enable_ds400_port" = "no"; then
6557 cat >>confdefs.h <<_ACEOF
6558 #define OPT_DISABLE_DS400 1
6562 echo ds400 >>ports.build
6563 cat >>confdefs.h <<_ACEOF
6564 #define OPT_DISABLE_DS400 0
6569 # Check whether --enable-pic-port or --disable-pic-port was given.
6570 if test "${enable_pic_port+set}" = set; then
6571 enableval="$enable_pic_port"
6574 echo pic >>ports.all
6575 if test "$enable_pic_port" = "no"; then
6576 cat >>confdefs.h <<_ACEOF
6577 #define OPT_DISABLE_PIC 1
6581 echo pic >>ports.build
6582 cat >>confdefs.h <<_ACEOF
6583 #define OPT_DISABLE_PIC 0
6588 # Check whether --enable-pic16-port or --disable-pic16-port was given.
6589 if test "${enable_pic16_port+set}" = set; then
6590 enableval="$enable_pic16_port"
6593 echo pic16 >>ports.all
6594 if test "$enable_pic16_port" = "no"; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define OPT_DISABLE_PIC16 1
6600 echo pic16 >>ports.build
6601 cat >>confdefs.h <<_ACEOF
6602 #define OPT_DISABLE_PIC16 0
6607 # Check whether --enable-xa51-port or --disable-xa51-port was given.
6608 if test "${enable_xa51_port+set}" = set; then
6609 enableval="$enable_xa51_port"
6612 echo xa51 >>ports.all
6613 if test "$enable_xa51_port" = "no"; then
6614 cat >>confdefs.h <<_ACEOF
6615 #define OPT_DISABLE_XA51 1
6619 echo xa51 >>ports.build
6620 cat >>confdefs.h <<_ACEOF
6621 #define OPT_DISABLE_XA51 0
6626 # Check whether --enable-hc08-port or --disable-hc08-port was given.
6627 if test "${enable_hc08_port+set}" = set; then
6628 enableval="$enable_hc08_port"
6631 echo hc08 >>ports.all
6632 if test "$enable_hc08_port" = "no"; then
6633 cat >>confdefs.h <<_ACEOF
6634 #define OPT_DISABLE_HC08 1
6638 echo hc08 >>ports.build
6639 cat >>confdefs.h <<_ACEOF
6640 #define OPT_DISABLE_HC08 0
6645 # Check whether --enable-ucsim or --disable-ucsim was given.
6646 if test "${enable_ucsim+set}" = set; then
6647 enableval="$enable_ucsim"
6650 OPT_ENABLE_UCSIM=$enable_ucsim
6653 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
6654 if test "${enable_device_lib_build+set}" = set; then
6655 enableval="$enable_device_lib_build"
6658 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
6661 # Check whether --enable-packihx or --disable-packihx was given.
6662 if test "${enable_packihx+set}" = set; then
6663 enableval="$enable_packihx"
6666 OPT_ENABLE_PACKIHX=$enable_packihx
6669 # Check whether --enable-libgc or --disable-libgc was given.
6670 if test "${enable_libgc+set}" = set; then
6671 enableval="$enable_libgc"
6674 if test "$enable_libgc" = "yes"; then
6676 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
6677 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
6678 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 ac_check_lib_save_LIBS=$LIBS
6683 cat >conftest.$ac_ext <<_ACEOF
6684 #line $LINENO "configure"
6685 #include "confdefs.h"
6687 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6702 rm -f conftest.$ac_objext conftest$ac_exeext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6704 (eval $ac_link) 2>&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -s conftest$ac_exeext'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6714 ac_cv_lib_gc_GC_malloc=yes
6716 echo "$as_me: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6718 ac_cv_lib_gc_GC_malloc=no
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6721 LIBS=$ac_check_lib_save_LIBS
6723 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
6724 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
6725 if test $ac_cv_lib_gc_GC_malloc = yes; then
6726 cat >>confdefs.h <<_ACEOF
6727 #define HAVE_LIBGC 1
6738 cat >>confdefs.h <<_ACEOF
6739 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
6744 uniq ports.all ports
6746 uniq ports.build ports
6747 mv ports ports.build
6749 # Generating output files
6750 # ===========================================================================
6753 subdirs="$subdirs support/cpp2"
6757 subdirs="$subdirs packihx"
6761 subdirs="$subdirs sim/ucsim"
6765 subdirs="$subdirs device/lib/pic16"
6768 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile as/mcs51/Makefile as/hc08/Makefile device/include/Makefile device/lib/Makefile debugger/mcs51/Makefile Makefile.common:Makefile.common.in"
6770 cat >confcache <<\_ACEOF
6771 # This file is a shell script that caches the results of configure
6772 # tests run on this system so they can be shared between configure
6773 # scripts and configure runs, see configure's option --config-cache.
6774 # It is not useful on other systems. If it contains results you don't
6775 # want to keep, you may remove or edit it.
6777 # config.status only pays attention to the cache file if you give it
6778 # the --recheck option to rerun configure.
6780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6786 # The following way of writing the cache mishandles newlines in values,
6787 # but we know of no workaround that is simple, portable, and efficient.
6788 # So, don't put newlines in cache variables' values.
6789 # Ultrix sh set writes to stderr and can't be redirected directly,
6790 # and sets the high bit in the cache file unless we assign to the vars.
6793 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6795 # `set' does not quote correctly, so add quotes (double-quote
6796 # substitution turns \\\\ into \\, and sed turns \\ into \).
6799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6802 # `set' quotes correctly as required by POSIX, so do not add quotes.
6804 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6813 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6815 if cmp -s $cache_file confcache; then :; else
6816 if test -w $cache_file; then
6817 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6818 cat confcache >$cache_file
6820 echo "not updating unwritable cache $cache_file"
6825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6826 # Let make expand exec_prefix.
6827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6831 # trailing colons and then remove the whole line if VPATH becomes empty
6832 # (actually we leave an empty line to preserve line numbers).
6833 if test "x$srcdir" = x.; then
6834 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6835 s/:*\$(srcdir):*/:/;
6836 s/:*\${srcdir}:*/:/;
6838 s/^\([^=]*=[ ]*\):*/\1/;
6844 DEFS=-DHAVE_CONFIG_H
6848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6849 # 1. Remove the extension, and $U if already installed.
6850 ac_i=`echo "$ac_i" |
6851 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6853 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6854 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6858 LTLIBOBJS=$ac_ltlibobjs
6862 : ${CONFIG_STATUS=./config.status}
6863 ac_clean_files_save=$ac_clean_files
6864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6865 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6866 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6867 cat >$CONFIG_STATUS <<_ACEOF
6869 # Generated by $as_me.
6870 # Run this file to recreate the current configuration.
6871 # Compiler output produced by configure, useful for debugging
6872 # configure, is in config.log if it exists.
6875 SHELL=\${CONFIG_SHELL-$SHELL}
6878 cat >>$CONFIG_STATUS <<\_ACEOF
6879 ## --------------------- ##
6880 ## M4sh Initialization. ##
6881 ## --------------------- ##
6883 # Be Bourne compatible
6884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6887 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6888 # is contrary to our usage. Disable this feature.
6889 alias -g '${1+"$@"}'='"$@"'
6890 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6894 # Support unset when possible.
6895 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6902 # Work around bugs in pre-3.0 UWIN ksh.
6903 $as_unset ENV MAIL MAILPATH
6909 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
6911 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6912 eval $as_var=C; export $as_var
6918 # Required to use basename.
6919 if expr a : '\(a\)' >/dev/null 2>&1; then
6925 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6926 as_basename=basename
6932 # Name of the executable.
6933 as_me=`$as_basename "$0" ||
6934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6935 X"$0" : 'X\(//\)$' \| \
6936 X"$0" : 'X\(/\)$' \| \
6937 . : '\(.\)' 2>/dev/null ||
6939 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6940 /^X\/\(\/\/\)$/{ s//\1/; q; }
6941 /^X\/\(\/\).*/{ s//\1/; q; }
6945 # PATH needs CR, and LINENO needs CR and PATH.
6946 # Avoid depending upon Character Ranges.
6947 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6948 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6949 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6950 as_cr_digits='0123456789'
6951 as_cr_alnum=$as_cr_Letters$as_cr_digits
6953 # The user is always right.
6954 if test "${PATH_SEPARATOR+set}" != set; then
6955 echo "#! /bin/sh" >conftest.sh
6956 echo "exit 0" >>conftest.sh
6957 chmod +x conftest.sh
6958 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
6969 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6970 test "x$as_lineno_1" != "x$as_lineno_2" &&
6971 test "x$as_lineno_3" = "x$as_lineno_2" || {
6972 # Find who we are. Look in the path if we contain no path at all
6975 *[\\/]* ) as_myself=$0 ;;
6976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6986 # We did not find ourselves, most probably we were run as `sh COMMAND'
6987 # in which case we are not to be found in the path.
6988 if test "x$as_myself" = x; then
6991 if test ! -f "$as_myself"; then
6992 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6993 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6994 { (exit 1); exit 1; }; }
6996 case $CONFIG_SHELL in
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7002 test -z "$as_dir" && as_dir=.
7003 for as_base in sh bash ksh sh5; do
7006 if ("$as_dir/$as_base" -c '
7009 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7010 test "x$as_lineno_1" != "x$as_lineno_2" &&
7011 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7012 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7013 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7014 CONFIG_SHELL=$as_dir/$as_base
7016 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7024 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7025 # uniformly replaced by the line number. The first 'sed' inserts a
7026 # line-number line before each line; the second 'sed' does the real
7027 # work. The second script uses 'N' to pair each line-number line
7028 # with the numbered line, and appends trailing '-' during
7029 # substitution so that $LINENO is not a special case at line end.
7030 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7031 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7032 sed '=' <$as_myself |
7037 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7040 s,^['$as_cr_digits']*\n,,
7042 chmod +x $as_me.lineno ||
7043 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7044 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7045 { (exit 1); exit 1; }; }
7047 # Don't try to exec as it changes $[0], causing all sort of problems
7048 # (the dirname of $[0] is not the place where we might find the
7049 # original and so on. Autoconf is especially sensible to this).
7051 # Exit status is that of the last command.
7056 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7057 *c*,-n*) ECHO_N= ECHO_C='
7059 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7060 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7063 if expr a : '\(a\)' >/dev/null 2>&1; then
7069 rm -f conf$$ conf$$.exe conf$$.file
7071 if ln -s conf$$.file conf$$ 2>/dev/null; then
7072 # We could just check for DJGPP; but this test a) works b) is more generic
7073 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7074 if test -f conf$$.exe; then
7075 # Don't use ln at all; we don't have any links
7080 elif ln conf$$.file conf$$ 2>/dev/null; then
7085 rm -f conf$$ conf$$.exe conf$$.file
7087 if mkdir -p . 2>/dev/null; then
7093 as_executable_p="test -f"
7095 # Sed expression to map a string onto a valid CPP name.
7096 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7098 # Sed expression to map a string onto a valid variable name.
7099 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7103 # We need space, tab and new line, in precisely that order.
7113 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7114 # report actual input values of CONFIG_FILES etc. instead of their
7115 # values after options handling. Logging --version etc. is OK.
7119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7120 ## Running $as_me. ##
7125 This file was extended by $as_me, which was
7126 generated by GNU Autoconf 2.54. Invocation command line was
7128 CONFIG_FILES = $CONFIG_FILES
7129 CONFIG_HEADERS = $CONFIG_HEADERS
7130 CONFIG_LINKS = $CONFIG_LINKS
7131 CONFIG_COMMANDS = $CONFIG_COMMANDS
7135 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7139 # Files that config.status was made for.
7140 if test -n "$ac_config_files"; then
7141 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7144 if test -n "$ac_config_headers"; then
7145 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7148 if test -n "$ac_config_links"; then
7149 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7152 if test -n "$ac_config_commands"; then
7153 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7156 cat >>$CONFIG_STATUS <<\_ACEOF
7159 \`$as_me' instantiates files from templates according to the
7160 current configuration.
7162 Usage: $0 [OPTIONS] [FILE]...
7164 -h, --help print this help, then exit
7165 -V, --version print version number, then exit
7166 -d, --debug don't remove temporary files
7167 --recheck update $as_me by reconfiguring in the same conditions
7168 --file=FILE[:TEMPLATE]
7169 instantiate the configuration file FILE
7170 --header=FILE[:TEMPLATE]
7171 instantiate the configuration header FILE
7173 Configuration files:
7176 Configuration headers:
7179 Report bugs to <bug-autoconf@gnu.org>."
7182 cat >>$CONFIG_STATUS <<_ACEOF
7185 configured by $0, generated by GNU Autoconf 2.54,
7186 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7188 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7189 Free Software Foundation, Inc.
7190 This config.status script is free software; the Free Software Foundation
7191 gives unlimited permission to copy, distribute and modify it."
7196 cat >>$CONFIG_STATUS <<\_ACEOF
7197 # If no file are specified by the user, then we need to provide default
7198 # value. By we need to know if files were specified by the user.
7204 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7205 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7213 *) # This is not an option, so the user has probably given explicit
7216 ac_need_defaults=false;;
7220 # Handling of the options.
7222 cat >>$CONFIG_STATUS <<_ACEOF
7223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7224 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7225 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7227 cat >>$CONFIG_STATUS <<\_ACEOF
7228 --version | --vers* | -V )
7229 echo "$ac_cs_version"; exit 0 ;;
7231 # Conflict between --help and --header
7232 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7233 Try \`$0 --help' for more information." >&5
7234 echo "$as_me: error: ambiguous option: $1
7235 Try \`$0 --help' for more information." >&2;}
7236 { (exit 1); exit 1; }; };;
7237 --help | --hel | -h )
7238 echo "$ac_cs_usage"; exit 0 ;;
7239 --debug | --d* | -d )
7241 --file | --fil | --fi | --f )
7243 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7244 ac_need_defaults=false;;
7245 --header | --heade | --head | --hea )
7247 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7248 ac_need_defaults=false;;
7251 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7252 Try \`$0 --help' for more information." >&5
7253 echo "$as_me: error: unrecognized option: $1
7254 Try \`$0 --help' for more information." >&2;}
7255 { (exit 1); exit 1; }; } ;;
7257 *) ac_config_targets="$ac_config_targets $1" ;;
7269 cat >>$CONFIG_STATUS <<\_ACEOF
7270 for ac_config_target in $ac_config_targets
7272 case "$ac_config_target" in
7273 # Handling of arguments.
7274 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7275 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7276 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7277 "as/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
7278 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7279 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7280 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
7281 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7282 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7283 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7284 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7285 { (exit 1); exit 1; }; };;
7289 # If the user did not use the arguments to specify the items to instantiate,
7290 # then the envvar interface is used. Set only those that are not.
7291 # We use the long form for the default assignment because of an extremely
7292 # bizarre bug on SunOS 4.1.3.
7293 if $ac_need_defaults; then
7294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7295 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7298 # Create a temporary directory, and hook for its removal unless debugging.
7301 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7302 trap '{ (exit 1); exit 1; }' 1 2 13 15
7305 # Create a (secure) tmp directory for tmp files.
7308 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7309 test -n "$tmp" && test -d "$tmp"
7312 tmp=$TMPDIR/cs$$-$RANDOM
7313 (umask 077 && mkdir $tmp)
7316 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7317 { (exit 1); exit 1; }
7322 cat >>$CONFIG_STATUS <<_ACEOF
7325 # CONFIG_FILES section.
7328 # No need to generate the scripts if there are no CONFIG_FILES.
7329 # This happens for instance when ./config.status config.h
7330 if test -n "\$CONFIG_FILES"; then
7331 # Protect against being on the right side of a sed subst in config.status.
7332 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7333 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7334 s,@SHELL@,$SHELL,;t t
7335 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7336 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7337 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7338 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7339 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7340 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7341 s,@exec_prefix@,$exec_prefix,;t t
7342 s,@prefix@,$prefix,;t t
7343 s,@program_transform_name@,$program_transform_name,;t t
7344 s,@bindir@,$bindir,;t t
7345 s,@sbindir@,$sbindir,;t t
7346 s,@libexecdir@,$libexecdir,;t t
7347 s,@datadir@,$datadir,;t t
7348 s,@sysconfdir@,$sysconfdir,;t t
7349 s,@sharedstatedir@,$sharedstatedir,;t t
7350 s,@localstatedir@,$localstatedir,;t t
7351 s,@libdir@,$libdir,;t t
7352 s,@includedir@,$includedir,;t t
7353 s,@oldincludedir@,$oldincludedir,;t t
7354 s,@infodir@,$infodir,;t t
7355 s,@mandir@,$mandir,;t t
7356 s,@build_alias@,$build_alias,;t t
7357 s,@host_alias@,$host_alias,;t t
7358 s,@target_alias@,$target_alias,;t t
7360 s,@ECHO_C@,$ECHO_C,;t t
7361 s,@ECHO_N@,$ECHO_N,;t t
7362 s,@ECHO_T@,$ECHO_T,;t t
7365 s,@VERSION@,$VERSION,;t t
7366 s,@VERSIONHI@,$VERSIONHI,;t t
7367 s,@VERSIONLO@,$VERSIONLO,;t t
7368 s,@VERSIONP@,$VERSIONP,;t t
7370 s,@CFLAGS@,$CFLAGS,;t t
7371 s,@LDFLAGS@,$LDFLAGS,;t t
7372 s,@CPPFLAGS@,$CPPFLAGS,;t t
7373 s,@ac_ct_CC@,$ac_ct_CC,;t t
7374 s,@EXEEXT@,$EXEEXT,;t t
7375 s,@OBJEXT@,$OBJEXT,;t t
7377 s,@CXXFLAGS@,$CXXFLAGS,;t t
7378 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7380 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7381 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7382 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7383 s,@RANLIB@,$RANLIB,;t t
7384 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7386 s,@LEXLIB@,$LEXLIB,;t t
7387 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7389 s,@AUTOCONF@,$AUTOCONF,;t t
7390 s,@STRIP@,$STRIP,;t t
7394 s,@LATEX@,$LATEX,;t t
7395 s,@LATEX2HTML@,$LATEX2HTML,;t t
7396 s,@PDFLATEX@,$PDFLATEX,;t t
7397 s,@DVIPDF@,$DVIPDF,;t t
7398 s,@EGREP@,$EGREP,;t t
7399 s,@M_OR_MM@,$M_OR_MM,;t t
7400 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
7401 s,@include_dir_suffix@,$include_dir_suffix,;t t
7402 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
7403 s,@docdir@,$docdir,;t t
7404 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
7405 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
7406 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
7407 s,@subdirs@,$subdirs,;t t
7408 s,@LIBOBJS@,$LIBOBJS,;t t
7409 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7414 cat >>$CONFIG_STATUS <<\_ACEOF
7415 # Split the substitutions into bite-sized pieces for seds with
7416 # small command number limits, like on Digital OSF/1 and HP-UX.
7418 ac_sed_frag=1 # Number of current file.
7419 ac_beg=1 # First line for current file.
7420 ac_end=$ac_max_sed_lines # Line after last line for current file.
7423 while $ac_more_lines; do
7424 if test $ac_beg -gt 1; then
7425 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7427 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7429 if test ! -s $tmp/subs.frag; then
7432 # The purpose of the label and of the branching condition is to
7433 # speed up the sed processing (if there are no `@' at all, there
7434 # is no need to browse any of the substitutions).
7435 # These are the two extra sed commands mentioned above.
7437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7438 if test -z "$ac_sed_cmds"; then
7439 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7441 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7443 ac_sed_frag=`expr $ac_sed_frag + 1`
7445 ac_end=`expr $ac_end + $ac_max_sed_lines`
7448 if test -z "$ac_sed_cmds"; then
7451 fi # test -n "$CONFIG_FILES"
7454 cat >>$CONFIG_STATUS <<\_ACEOF
7455 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7458 - | *:- | *:-:* ) # input from stdin
7460 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7461 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7462 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7464 * ) ac_file_in=$ac_file.in ;;
7467 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7468 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7469 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7470 X"$ac_file" : 'X\(//\)[^/]' \| \
7471 X"$ac_file" : 'X\(//\)$' \| \
7472 X"$ac_file" : 'X\(/\)' \| \
7473 . : '\(.\)' 2>/dev/null ||
7475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7477 /^X\(\/\/\)$/{ s//\1/; q; }
7478 /^X\(\/\).*/{ s//\1/; q; }
7480 { if $as_mkdir_p; then
7485 while test ! -d "$as_dir"; do
7486 as_dirs="$as_dir $as_dirs"
7487 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7489 X"$as_dir" : 'X\(//\)[^/]' \| \
7490 X"$as_dir" : 'X\(//\)$' \| \
7491 X"$as_dir" : 'X\(/\)' \| \
7492 . : '\(.\)' 2>/dev/null ||
7494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7496 /^X\(\/\/\)$/{ s//\1/; q; }
7497 /^X\(\/\).*/{ s//\1/; q; }
7500 test ! -n "$as_dirs" || mkdir $as_dirs
7501 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7502 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7503 { (exit 1); exit 1; }; }; }
7507 if test "$ac_dir" != .; then
7508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7509 # A "../" for each directory in $ac_dir_suffix.
7510 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7512 ac_dir_suffix= ac_top_builddir=
7516 .) # No --srcdir option. We are building in place.
7518 if test -z "$ac_top_builddir"; then
7521 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7523 [\\/]* | ?:[\\/]* ) # Absolute path.
7524 ac_srcdir=$srcdir$ac_dir_suffix;
7525 ac_top_srcdir=$srcdir ;;
7527 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7528 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7530 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7532 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7533 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7534 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7535 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7540 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7543 if test x"$ac_file" != x-; then
7544 { echo "$as_me:$LINENO: creating $ac_file" >&5
7545 echo "$as_me: creating $ac_file" >&6;}
7548 # Let's still pretend it is `configure' which instantiates (i.e., don't
7549 # use $as_me), people would be surprised to read:
7550 # /* config.h. Generated by config.status. */
7551 if test x"$ac_file" = x-; then
7554 configure_input="$ac_file. "
7556 configure_input=$configure_input"Generated from `echo $ac_file_in |
7557 sed 's,.*/,,'` by configure."
7559 # First look for the input files in the build tree, otherwise in the
7561 ac_file_inputs=`IFS=:
7562 for f in $ac_file_in; do
7564 -) echo $tmp/stdin ;;
7566 # Absolute (can't be DOS-style, as IFS=:)
7567 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7568 echo "$as_me: error: cannot find input file: $f" >&2;}
7569 { (exit 1); exit 1; }; }
7572 if test -f "$f"; then
7575 elif test -f "$srcdir/$f"; then
7580 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7581 echo "$as_me: error: cannot find input file: $f" >&2;}
7582 { (exit 1); exit 1; }; }
7585 done` || { (exit 1); exit 1; }
7587 cat >>$CONFIG_STATUS <<_ACEOF
7591 cat >>$CONFIG_STATUS <<\_ACEOF
7593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7594 s,@configure_input@,$configure_input,;t t
7595 s,@srcdir@,$ac_srcdir,;t t
7596 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7597 s,@top_srcdir@,$ac_top_srcdir,;t t
7598 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7599 s,@builddir@,$ac_builddir,;t t
7600 s,@abs_builddir@,$ac_abs_builddir,;t t
7601 s,@top_builddir@,$ac_top_builddir,;t t
7602 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7603 s,@INSTALL@,$ac_INSTALL,;t t
7604 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7606 if test x"$ac_file" != x-; then
7607 mv $tmp/out $ac_file
7615 cat >>$CONFIG_STATUS <<\_ACEOF
7618 # CONFIG_HEADER section.
7621 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7622 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7624 # ac_d sets the value in "#define NAME VALUE" lines.
7625 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7626 ac_dB='[ ].*$,\1#\2'
7629 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7630 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7631 ac_uB='$,\1#\2define\3'
7635 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7638 - | *:- | *:-:* ) # input from stdin
7640 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7642 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7644 * ) ac_file_in=$ac_file.in ;;
7647 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7648 echo "$as_me: creating $ac_file" >&6;}
7650 # First look for the input files in the build tree, otherwise in the
7652 ac_file_inputs=`IFS=:
7653 for f in $ac_file_in; do
7655 -) echo $tmp/stdin ;;
7657 # Absolute (can't be DOS-style, as IFS=:)
7658 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7659 echo "$as_me: error: cannot find input file: $f" >&2;}
7660 { (exit 1); exit 1; }; }
7663 if test -f "$f"; then
7666 elif test -f "$srcdir/$f"; then
7671 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7672 echo "$as_me: error: cannot find input file: $f" >&2;}
7673 { (exit 1); exit 1; }; }
7676 done` || { (exit 1); exit 1; }
7677 # Remove the trailing spaces.
7678 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7682 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7683 # `conftest.undefs', that substitutes the proper values into
7684 # config.h.in to produce config.h. The first handles `#define'
7685 # templates, and the second `#undef' templates.
7686 # And first: Protect against being on the right side of a sed subst in
7687 # config.status. Protect against being in an unquoted here document
7689 rm -f conftest.defines conftest.undefs
7690 # Using a here document instead of a string reduces the quoting nightmare.
7691 # Putting comments in sed scripts is not portable.
7693 # `end' is used to avoid that the second main sed command (meant for
7694 # 0-ary CPP macros) applies to n-ary macro definitions.
7695 # See the Autoconf documentation for `clear'.
7696 cat >confdef2sed.sed <<\_ACEOF
7701 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7703 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7706 # If some macros were called several times there might be several times
7707 # the same #defines, which is useless. Nevertheless, we may not want to
7708 # sort them, since we want the *last* AC-DEFINE to be honored.
7709 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7710 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7711 rm -f confdef2sed.sed
7713 # This sed command replaces #undef with comments. This is necessary, for
7714 # example, in the case of _POSIX_SOURCE, which is predefined and required
7715 # on some systems where configure will not decide to define it.
7716 cat >>conftest.undefs <<\_ACEOF
7717 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7720 # Break up conftest.defines because some shells have a limit on the size
7721 # of here documents, and old seds have small limits too (100 cmds).
7722 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7723 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7724 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7725 echo ' :' >>$CONFIG_STATUS
7727 while grep . conftest.defines >/dev/null
7729 # Write a limited-size here document to $tmp/defines.sed.
7730 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7731 # Speed up: don't consider the non `#define' lines.
7732 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7733 # Work around the forget-to-reset-the-flag bug.
7734 echo 't clr' >>$CONFIG_STATUS
7735 echo ': clr' >>$CONFIG_STATUS
7736 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7738 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7742 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7743 rm -f conftest.defines
7744 mv conftest.tail conftest.defines
7746 rm -f conftest.defines
7747 echo ' fi # grep' >>$CONFIG_STATUS
7748 echo >>$CONFIG_STATUS
7750 # Break up conftest.undefs because some shells have a limit on the size
7751 # of here documents, and old seds have small limits too (100 cmds).
7752 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7754 while grep . conftest.undefs >/dev/null
7756 # Write a limited-size here document to $tmp/undefs.sed.
7757 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7758 # Speed up: don't consider the non `#undef'
7759 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7760 # Work around the forget-to-reset-the-flag bug.
7761 echo 't clr' >>$CONFIG_STATUS
7762 echo ': clr' >>$CONFIG_STATUS
7763 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7765 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7769 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7770 rm -f conftest.undefs
7771 mv conftest.tail conftest.undefs
7773 rm -f conftest.undefs
7775 cat >>$CONFIG_STATUS <<\_ACEOF
7776 # Let's still pretend it is `configure' which instantiates (i.e., don't
7777 # use $as_me), people would be surprised to read:
7778 # /* config.h. Generated by config.status. */
7779 if test x"$ac_file" = x-; then
7780 echo "/* Generated by configure. */" >$tmp/config.h
7782 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7784 cat $tmp/in >>$tmp/config.h
7786 if test x"$ac_file" != x-; then
7787 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7788 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7789 echo "$as_me: $ac_file is unchanged" >&6;}
7791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7793 X"$ac_file" : 'X\(//\)[^/]' \| \
7794 X"$ac_file" : 'X\(//\)$' \| \
7795 X"$ac_file" : 'X\(/\)' \| \
7796 . : '\(.\)' 2>/dev/null ||
7798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7800 /^X\(\/\/\)$/{ s//\1/; q; }
7801 /^X\(\/\).*/{ s//\1/; q; }
7803 { if $as_mkdir_p; then
7808 while test ! -d "$as_dir"; do
7809 as_dirs="$as_dir $as_dirs"
7810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7812 X"$as_dir" : 'X\(//\)[^/]' \| \
7813 X"$as_dir" : 'X\(//\)$' \| \
7814 X"$as_dir" : 'X\(/\)' \| \
7815 . : '\(.\)' 2>/dev/null ||
7817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7819 /^X\(\/\/\)$/{ s//\1/; q; }
7820 /^X\(\/\).*/{ s//\1/; q; }
7823 test ! -n "$as_dirs" || mkdir $as_dirs
7824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7825 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7826 { (exit 1); exit 1; }; }; }
7829 mv $tmp/config.h $ac_file
7838 cat >>$CONFIG_STATUS <<\_ACEOF
7840 { (exit 0); exit 0; }
7842 chmod +x $CONFIG_STATUS
7843 ac_clean_files=$ac_clean_files_save
7846 # configure is writing to config.log, and then calls config.status.
7847 # config.status does its own redirection, appending to config.log.
7848 # Unfortunately, on DOS this fails, as config.log is still kept open
7849 # by configure, so config.status won't be able to write to it; its
7850 # output is simply discarded. So we exec the FD to /dev/null,
7851 # effectively closing config.log, so it can be properly (re)opened and
7852 # appended to by config.status. When coming back to configure, we
7853 # need to make the FD available again.
7854 if test "$no_create" != yes; then
7857 $SHELL $CONFIG_STATUS || ac_cs_success=false
7859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7860 # would make configure fail if this is the last instruction.
7861 $ac_cs_success || { (exit 1); exit 1; }
7865 # CONFIG_SUBDIRS section.
7867 if test "$no_recursion" != yes; then
7869 # Remove --cache-file and --srcdir arguments so they do not pile up.
7870 ac_sub_configure_args=
7872 for ac_arg in $ac_configure_args; do
7873 if test -n "$ac_prev"; then
7878 -cache-file | --cache-file | --cache-fil | --cache-fi \
7879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7880 ac_prev=cache_file ;;
7881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7885 --config-cache | -C)
7887 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7889 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7891 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7893 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7895 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7899 # Always prepend --prefix to ensure using the same prefix
7900 # in subdir configurations.
7901 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7904 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7906 # Do not complain, so a configure script can configure whichever
7907 # parts of a large source tree are present.
7908 test -d $srcdir/$ac_dir || continue
7910 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7911 echo "$as_me: configuring in $ac_dir" >&6;}
7912 { if $as_mkdir_p; then
7917 while test ! -d "$as_dir"; do
7918 as_dirs="$as_dir $as_dirs"
7919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7921 X"$as_dir" : 'X\(//\)[^/]' \| \
7922 X"$as_dir" : 'X\(//\)$' \| \
7923 X"$as_dir" : 'X\(/\)' \| \
7924 . : '\(.\)' 2>/dev/null ||
7926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7928 /^X\(\/\/\)$/{ s//\1/; q; }
7929 /^X\(\/\).*/{ s//\1/; q; }
7932 test ! -n "$as_dirs" || mkdir $as_dirs
7933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7935 { (exit 1); exit 1; }; }; }
7939 if test "$ac_dir" != .; then
7940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7941 # A "../" for each directory in $ac_dir_suffix.
7942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7944 ac_dir_suffix= ac_top_builddir=
7948 .) # No --srcdir option. We are building in place.
7950 if test -z "$ac_top_builddir"; then
7953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7955 [\\/]* | ?:[\\/]* ) # Absolute path.
7956 ac_srcdir=$srcdir$ac_dir_suffix;
7957 ac_top_srcdir=$srcdir ;;
7959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7972 # Check for guested configure; otherwise get Cygnus style configure.
7973 if test -f $ac_srcdir/configure.gnu; then
7974 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7975 elif test -f $ac_srcdir/configure; then
7976 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7977 elif test -f $ac_srcdir/configure.in; then
7978 ac_sub_configure=$ac_configure
7980 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7985 # The recursion is here.
7986 if test -n "$ac_sub_configure"; then
7987 # Make the cache file name correct relative to the subdirectory.
7989 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7991 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7994 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7995 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7996 # The eval makes quoting arguments work.
7997 eval $ac_sub_configure $ac_sub_configure_args \
7998 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7999 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8000 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8001 { (exit 1); exit 1; }; }
8009 # End of configure/configure.in