2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subdirs_all="$ac_subdirs_all support/cpp2"
313 ac_subdirs_all="$ac_subdirs_all packihx"
314 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
315 ac_subdirs_all="$ac_subdirs_all device/lib/pic16"
316 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 CP_U 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'
319 # Initialize some variables set by options.
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
331 program_transform_name=s,x,x,
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369 # Accept the important Cygnus configure options, so we can diagnose typos.
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
391 cache_file=config.cache ;;
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 datadir=$ac_optarg ;;
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 eval "enable_$ac_feature='$ac_optarg'" ;;
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
434 -help | --help | --hel | --he | -h)
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
458 -libdir | --libdir | --libdi | --libd)
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485 # Obsolete; use --without-fp.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 sbindir=$ac_optarg ;;
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 sharedstatedir=$ac_optarg ;;
562 -site | --site | --sit)
564 -site=* | --site=* | --sit=*)
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 -version | --version | --versio | --versi | --vers | -V)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 eval "with_$ac_package='$ac_optarg'" ;;
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
613 # Obsolete; use --with-x.
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
665 eval ac_val=$`echo $ac_var`
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
677 eval ac_val=$`echo $ac_var`
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706 test "$silent" = yes && exec 6>/dev/null
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
726 if test ! -r $srcdir/$ac_unique_file; then
730 ac_srcdir_defaulted=no
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CXX_set=${CXX+set}
774 ac_env_CXX_value=$CXX
775 ac_cv_env_CXX_set=${CXX+set}
776 ac_cv_env_CXX_value=$CXX
777 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_env_CXXFLAGS_value=$CXXFLAGS
779 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
781 ac_env_CPP_set=${CPP+set}
782 ac_env_CPP_value=$CPP
783 ac_cv_env_CPP_set=${CPP+set}
784 ac_cv_env_CPP_value=$CPP
785 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
786 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
787 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
788 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
789 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
790 ac_env_include_dir_suffix_value=$include_dir_suffix
791 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
792 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
793 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
794 ac_env_lib_dir_suffix_value=$lib_dir_suffix
795 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
796 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
797 ac_env_docdir_set=${docdir+set}
798 ac_env_docdir_value=$docdir
799 ac_cv_env_docdir_set=${docdir+set}
800 ac_cv_env_docdir_value=$docdir
803 # Report the --help message.
805 if test "$ac_init_help" = "long"; then
806 # Omit some internal or obsolete options to make the list less imposing.
807 # This message is too long to be a string in the A/UX 3.1 sh.
809 \`configure' configures this package to adapt to many kinds of systems.
811 Usage: $0 [OPTION]... [VAR=VALUE]...
813 To assign environment variables (e.g., CC, CFLAGS...), specify them as
814 VAR=VALUE. See below for descriptions of some of the useful variables.
816 Defaults for the options are specified in brackets.
819 -h, --help display this help and exit
820 --help=short display options specific to this package
821 --help=recursive display the short help of all the included packages
822 -V, --version display version information and exit
823 -q, --quiet, --silent do not print \`checking...' messages
824 --cache-file=FILE cache test results in FILE [disabled]
825 -C, --config-cache alias for \`--cache-file=config.cache'
826 -n, --no-create do not create output files
827 --srcdir=DIR find the sources in DIR [configure dir or \`..']
832 Installation directories:
833 --prefix=PREFIX install architecture-independent files in PREFIX
835 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
838 By default, \`make install' will install all the files in
839 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
840 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
841 for instance \`--prefix=\$HOME'.
843 For better control, use the options below.
845 Fine tuning of the installation directories:
846 --bindir=DIR user executables [EPREFIX/bin]
847 --sbindir=DIR system admin executables [EPREFIX/sbin]
848 --libexecdir=DIR program executables [EPREFIX/libexec]
849 --datadir=DIR read-only architecture-independent data [PREFIX/share]
850 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
851 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
852 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
853 --libdir=DIR object code libraries [EPREFIX/lib]
854 --includedir=DIR C header files [PREFIX/include]
855 --oldincludedir=DIR C header files for non-gcc [/usr/include]
856 --infodir=DIR info documentation [PREFIX/info]
857 --mandir=DIR man documentation [PREFIX/man]
863 --program-prefix=PREFIX prepend PREFIX to installed program names
864 --program-suffix=SUFFIX append SUFFIX to installed program names
865 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
869 if test -n "$ac_init_help"; then
874 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
875 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
876 --disable-mcs51-port Excludes the Intel mcs51 port
877 --disable-gbz80-port Excludes the Gameboy gbz80 port
878 --disable-z80-port Excludes the z80 port
879 --disable-avr-port Excludes the AVR port
880 --disable-ds390-port Excludes the DS390 port
881 --disable-ds400-port Excludes the DS400 port
882 --disable-pic-port Excludes the PIC port
883 --disable-pic16-port Excludes the PIC port
884 --disable-xa51-port Excludes the XA51 port
885 --disable-hc08-port Excludes the HC08 port
886 --disable-ucsim Disables configuring and building of ucsim
887 --disable-device-lib-build
888 Disables automatically building device libraries
889 --disable-packihx Disables building packihx
890 --enable-libgc Use the Bohem memory allocator. Lower runtime
893 Some influential environment variables:
894 CC C compiler command
895 CFLAGS C compiler flags
896 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
897 nonstandard directory <lib dir>
898 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
899 headers in a nonstandard directory <include dir>
900 CXX C++ compiler command
901 CXXFLAGS C++ compiler flags
903 sdccconf_h_dir_separator
904 needed in sdccconf.h: either "/" (default) or "\\"
906 appended to datadir to define SDCC's include directory
908 appended to datadir to define SDCC's library root directory
909 docdir documentation installation directory
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 ac_dir_suffix= ac_top_builddir=
933 .) # No --srcdir option. We are building in place.
935 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
951 .) ac_abs_builddir="$ac_dir";;
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1010 Copyright (C) 2003 Free Software Foundation, Inc.
1011 This configure script is free software; the Free Software Foundation
1012 gives unlimited permission to copy, distribute and modify it.
1018 This file contains any messages produced by compilers while
1019 running configure, to aid debugging if configure makes a mistake.
1021 It was created by $as_me, which was
1022 generated by GNU Autoconf 2.59. Invocation command line was
1033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 test -z "$as_dir" && as_dir=.
1057 echo "PATH: $as_dir"
1072 # Keep a trace of the command line.
1073 # Strip out --no-create and --no-recursion so they do not pile up.
1074 # Strip out --silent because we don't want to record it for future runs.
1075 # Also quote any args containing shell meta-characters.
1076 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_must_keep_next=false
1087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1091 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098 if test $ac_must_keep_next = true; then
1099 ac_must_keep_next=false # Got value, back to normal.
1102 *=* | --config-cache | -C | -disable-* | --disable-* \
1103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105 | -with-* | --with-* | -without-* | --without-* | --x)
1106 case "$ac_configure_args0 " in
1107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 -* ) ac_must_keep_next=true ;;
1113 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114 # Get rid of the leading space.
1120 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123 # When interrupted or exit'd, cleanup temporary files, and complete
1124 # config.log. We remove comments because anyway the quotes in there
1125 # would cause problems or look ugly.
1126 # WARNING: Be sure not to use single quotes in there, as some shells,
1127 # such as our DU 5.0 friend, will then `close' the trap.
1128 trap 'exit_status=$?
1129 # Save into config.log some information that might help in debugging.
1134 ## ---------------- ##
1135 ## Cache variables. ##
1136 ## ---------------- ##
1139 # The following way of writing the cache mishandles newlines in values,
1142 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 ## ----------------- ##
1158 ## Output variables. ##
1159 ## ----------------- ##
1162 for ac_var in $ac_subst_vars
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -n "$ac_subst_files"; then
1176 for ac_var in $ac_subst_files
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
1184 if test -s confdefs.h; then
1191 sed "/^$/d" confdefs.h | sort
1194 test "$ac_signal" != 0 &&
1195 echo "$as_me: caught signal $ac_signal"
1196 echo "$as_me: exit $exit_status"
1198 rm -f core *.core &&
1199 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 for ac_signal in 1 2 13 15; do
1203 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1208 rm -rf conftest* confdefs.h
1209 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 # Predefined preprocessor variables.
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 # Let the site file select an alternate cache file if it wants to.
1240 # Prefer explicitly selected file to automatically selected ones.
1241 if test -z "$CONFIG_SITE"; then
1242 if test "x$prefix" != xNONE; then
1243 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248 for ac_site_file in $CONFIG_SITE; do
1249 if test -r "$ac_site_file"; then
1250 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251 echo "$as_me: loading site script $ac_site_file" >&6;}
1252 sed 's/^/| /' "$ac_site_file" >&5
1257 if test -r "$cache_file"; then
1258 # Some versions of bash will fail to source /dev/null (special
1259 # files actually), so we avoid doing that.
1260 if test -f "$cache_file"; then
1261 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262 echo "$as_me: loading cache $cache_file" >&6;}
1264 [\\/]* | ?:[\\/]* ) . $cache_file;;
1265 *) . ./$cache_file;;
1269 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270 echo "$as_me: creating cache $cache_file" >&6;}
1274 # Check that the precious variables saved in the cache have kept the same
1276 ac_cache_corrupted=false
1277 for ac_var in `(set) 2>&1 |
1278 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280 eval ac_new_set=\$ac_env_${ac_var}_set
1281 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282 eval ac_new_val="\$ac_env_${ac_var}_value"
1283 case $ac_old_set,$ac_new_set in
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1294 if test "x$ac_old_val" != "x$ac_new_val"; then
1295 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1298 echo "$as_me: former value: $ac_old_val" >&2;}
1299 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1300 echo "$as_me: current value: $ac_new_val" >&2;}
1301 ac_cache_corrupted=:
1304 # Pass precious variables to config.status.
1305 if test "$ac_new_set" = set; then
1307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1309 *) ac_arg=$ac_var=$ac_new_val ;;
1311 case " $ac_configure_args " in
1312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1313 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 if $ac_cache_corrupted; then
1318 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322 { (exit 1); exit 1; }; }
1326 ac_cpp='$CPP $CPPFLAGS'
1327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1350 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1353 for ac_prog in gawk mawk nawk awk
1355 # Extract the first word of "$ac_prog", so it can be a program name with args.
1356 set dummy $ac_prog; ac_word=$2
1357 echo "$as_me:$LINENO: checking for $ac_word" >&5
1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359 if test "${ac_cv_prog_AWK+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 if test -n "$AWK"; then
1363 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 test -z "$as_dir" && as_dir=.
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1372 ac_cv_prog_AWK="$ac_prog"
1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 if test -n "$AWK"; then
1383 echo "$as_me:$LINENO: result: $AWK" >&5
1384 echo "${ECHO_T}$AWK" >&6
1386 echo "$as_me:$LINENO: result: no" >&5
1387 echo "${ECHO_T}no" >&6
1390 test -n "$AWK" && break
1394 echo "$as_me:$LINENO: checking version of the package" >&5
1395 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1396 if test -f .version; then
1397 VERSION=`cat .version`
1398 elif test -f ../.version; then
1399 VERSION=`cat ../.version`
1403 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1404 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1405 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1407 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1408 echo "${ECHO_T}${VERSION}" >&6
1413 cat >>confdefs.h <<_ACEOF
1414 #define SDCC_VERSION_LO ${VERSIONLO}
1417 cat >>confdefs.h <<_ACEOF
1418 #define SDCC_VERSION_HI ${VERSIONHI}
1421 cat >>confdefs.h <<_ACEOF
1422 #define SDCC_VERSION_P ${VERSIONP}
1425 cat >>confdefs.h <<_ACEOF
1426 #define SDCC_VERSION_STR "${VERSION}"
1429 test "$program_prefix" != NONE &&
1430 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1431 # Use a double $ so make ignores it.
1432 test "$program_suffix" != NONE &&
1433 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1434 # Double any \ or $. echo might interpret backslashes.
1435 # By default was `s,x,x', remove it if useless.
1436 cat <<\_ACEOF >conftest.sed
1437 s/[\\$]/&&/g;s/;s,x,x,$//
1439 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1442 sdcc_cv_version=$VERSION
1443 sdcc_cv_versionhi=$VERSIONHI
1444 sdcc_cv_versionlo=$VERSIONLO
1445 sdcc_cv_versionp=$VERSIONP
1449 # ===========================================================================
1451 ac_cpp='$CPP $CPPFLAGS'
1452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1457 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 if test -n "$CC"; then
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1492 if test -z "$ac_cv_prog_CC"; then
1494 # Extract the first word of "gcc", so it can be a program name with args.
1495 set dummy gcc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="gcc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521 if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523 echo "${ECHO_T}$ac_ct_CC" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1534 if test -z "$CC"; then
1535 if test -n "$ac_tool_prefix"; then
1536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 ac_cv_prog_CC="${ac_tool_prefix}cc"
1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 if test -n "$CC"; then
1564 echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1572 if test -z "$ac_cv_prog_CC"; then
1574 # Extract the first word of "cc", so it can be a program name with args.
1575 set dummy cc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 if test -n "$ac_ct_CC"; then
1582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_ac_ct_CC="cc"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1615 if test -z "$CC"; then
1616 # Extract the first word of "cc", so it can be a program name with args.
1617 set dummy cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1635 ac_prog_rejected=yes
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 if test $ac_prog_rejected = yes; then
1646 # We found a bogon in the path, so make sure we never use it.
1647 set dummy $ac_cv_prog_CC
1649 if test $# != 0; then
1650 # We chose a different compiler from the bogus one.
1651 # However, it has the same basename, so the bogon will be chosen
1652 # first if we set CC to just the basename; use the full file name.
1654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1669 if test -z "$CC"; then
1670 if test -n "$ac_tool_prefix"; then
1673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 if test -n "$CC"; then
1701 echo "$as_me:$LINENO: result: $CC" >&5
1702 echo "${ECHO_T}$CC" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1708 test -n "$CC" && break
1711 if test -z "$CC"; then
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716 set dummy $ac_prog; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$ac_ct_CC"; then
1723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_CC="$ac_prog"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742 if test -n "$ac_ct_CC"; then
1743 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744 echo "${ECHO_T}$ac_ct_CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1750 test -n "$ac_ct_CC" && break
1759 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1760 See \`config.log' for more details." >&5
1761 echo "$as_me: error: no acceptable C compiler found in \$PATH
1762 See \`config.log' for more details." >&2;}
1763 { (exit 1); exit 1; }; }
1765 # Provide some information about the compiler.
1766 echo "$as_me:$LINENO:" \
1767 "checking for C compiler version" >&5
1768 ac_compiler=`set X $ac_compile; echo $2`
1769 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1770 (eval $ac_compiler --version </dev/null >&5) 2>&5
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }
1774 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1775 (eval $ac_compiler -v </dev/null >&5) 2>&5
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1780 (eval $ac_compiler -V </dev/null >&5) 2>&5
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1785 cat >conftest.$ac_ext <<_ACEOF
1788 cat confdefs.h >>conftest.$ac_ext
1789 cat >>conftest.$ac_ext <<_ACEOF
1790 /* end confdefs.h. */
1800 ac_clean_files_save=$ac_clean_files
1801 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1802 # Try to create an executable without -o first, disregard a.out.
1803 # It will help us diagnose broken compilers, and finding out an intuition
1805 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1806 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1807 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1808 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1809 (eval $ac_link_default) 2>&5
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }; then
1813 # Find the output, starting from the most likely. This scheme is
1814 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1817 # Be careful to initialize this variable, since it used to be cached.
1818 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1820 # b.out is created by i960 compilers.
1821 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1823 test -f "$ac_file" || continue
1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1828 # This is the source file.
1831 # We found the default executable, but exeext='' is most
1835 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 # FIXME: I believe we export ac_cv_exeext for Libtool,
1837 # but it would be cool to find out if it's true. Does anybody
1838 # maintain Libtool? --akim.
1846 echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: C compiler cannot create executables
1852 See \`config.log' for more details." >&2;}
1853 { (exit 77); exit 77; }; }
1856 ac_exeext=$ac_cv_exeext
1857 echo "$as_me:$LINENO: result: $ac_file" >&5
1858 echo "${ECHO_T}$ac_file" >&6
1860 # Check the compiler produces executables we can run. If not, either
1861 # the compiler is broken, or we cross compile.
1862 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1863 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1864 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1865 # If not cross compiling, check that we can run a simple program.
1866 if test "$cross_compiling" != yes; then
1867 if { ac_try='./$ac_file'
1868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; }; then
1875 if test "$cross_compiling" = maybe; then
1878 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1879 If you meant to cross compile, use \`--host'.
1880 See \`config.log' for more details." >&5
1881 echo "$as_me: error: cannot run C compiled programs.
1882 If you meant to cross compile, use \`--host'.
1883 See \`config.log' for more details." >&2;}
1884 { (exit 1); exit 1; }; }
1888 echo "$as_me:$LINENO: result: yes" >&5
1889 echo "${ECHO_T}yes" >&6
1891 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1892 ac_clean_files=$ac_clean_files_save
1893 # Check the compiler produces executables we can run. If not, either
1894 # the compiler is broken, or we cross compile.
1895 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1896 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1897 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1898 echo "${ECHO_T}$cross_compiling" >&6
1900 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1901 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1903 (eval $ac_link) 2>&5
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }; then
1907 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1908 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1909 # work properly (i.e., refer to `conftest.exe'), while it won't with
1911 for ac_file in conftest.exe conftest conftest.*; do
1912 test -f "$ac_file" || continue
1914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1922 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1925 See \`config.log' for more details." >&2;}
1926 { (exit 1); exit 1; }; }
1929 rm -f conftest$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1931 echo "${ECHO_T}$ac_cv_exeext" >&6
1933 rm -f conftest.$ac_ext
1934 EXEEXT=$ac_cv_exeext
1936 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1938 if test "${ac_cv_objext+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 cat >conftest.$ac_ext <<_ACEOF
1944 cat confdefs.h >>conftest.$ac_ext
1945 cat >>conftest.$ac_ext <<_ACEOF
1946 /* end confdefs.h. */
1956 rm -f conftest.o conftest.obj
1957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1958 (eval $ac_compile) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; then
1962 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1965 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1970 echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1974 See \`config.log' for more details." >&5
1975 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1976 See \`config.log' for more details." >&2;}
1977 { (exit 1); exit 1; }; }
1980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1982 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1983 echo "${ECHO_T}$ac_cv_objext" >&6
1984 OBJEXT=$ac_cv_objext
1986 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1987 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1988 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 cat >conftest.$ac_ext <<_ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>conftest.er1
2013 grep -v '^ *+' conftest.er1 >conftest.err
2015 cat conftest.err >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -z "$ac_c_werror_flag"
2019 || test ! -s conftest.err'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2042 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2043 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2044 GCC=`test $ac_compiler_gnu = yes && echo yes`
2045 ac_test_CFLAGS=${CFLAGS+set}
2046 ac_save_CFLAGS=$CFLAGS
2048 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2050 if test "${ac_cv_prog_cc_g+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 cat >conftest.$ac_ext <<_ACEOF
2056 cat confdefs.h >>conftest.$ac_ext
2057 cat >>conftest.$ac_ext <<_ACEOF
2058 /* end confdefs.h. */
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>conftest.er1
2072 grep -v '^ *+' conftest.er1 >conftest.err
2074 cat conftest.err >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -z "$ac_c_werror_flag"
2078 || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2100 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2101 if test "$ac_test_CFLAGS" = set; then
2102 CFLAGS=$ac_save_CFLAGS
2103 elif test $ac_cv_prog_cc_g = yes; then
2104 if test "$GCC" = yes; then
2110 if test "$GCC" = yes; then
2116 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2117 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2118 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 ac_cv_prog_cc_stdc=no
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2131 #include <sys/types.h>
2132 #include <sys/stat.h>
2133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2134 struct buf { int x; };
2135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2147 s = g (p, va_arg (v,int));
2152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2153 function prototypes and stuff, but not '\xHH' hex character constants.
2154 These don't provoke an error unfortunately, instead are silently treated
2155 as 'x'. The following induces an error, until -std1 is added to get
2156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2157 array size at least. It's necessary to write '\x00'==0 to get something
2158 that's true only with -std1. */
2159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2161 int test (int i, double x);
2162 struct s1 {int (*f) (int a);};
2163 struct s2 {int (*f) (double a);};
2164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2175 # Don't try gcc -ansi; that turns off useful extensions and
2176 # breaks some systems' header files.
2177 # AIX -qlanglvl=ansi
2178 # Ultrix and OSF/1 -std1
2179 # HP-UX 10.20 and later -Ae
2180 # HP-UX older versions -Aa -D_HPUX_SOURCE
2181 # SVR4 -Xc -D__EXTENSIONS__
2182 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2184 CC="$ac_save_CC $ac_arg"
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2189 grep -v '^ *+' conftest.er1 >conftest.err
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 ac_cv_prog_cc_stdc=$ac_arg
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2214 rm -f conftest.err conftest.$ac_objext
2216 rm -f conftest.$ac_ext conftest.$ac_objext
2221 case "x$ac_cv_prog_cc_stdc" in
2223 echo "$as_me:$LINENO: result: none needed" >&5
2224 echo "${ECHO_T}none needed" >&6 ;;
2226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2227 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2228 CC="$CC $ac_cv_prog_cc_stdc" ;;
2231 # Some people use a C++ compiler to compile C. Since we use `exit',
2232 # in C++ we need to declare it. In case someone uses the same compiler
2233 # for both compiling C and C++ we need to have the C++ compiler decide
2234 # the declaration of exit, since it's the most demanding environment.
2235 cat >conftest.$ac_ext <<_ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2244 grep -v '^ *+' conftest.er1 >conftest.err
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 for ac_declaration in \
2264 'extern "C" void std::exit (int) throw (); using std::exit;' \
2265 'extern "C" void std::exit (int); using std::exit;' \
2266 'extern "C" void exit (int) throw ();' \
2267 'extern "C" void exit (int);' \
2270 cat >conftest.$ac_ext <<_ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2290 grep -v '^ *+' conftest.er1 >conftest.err
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 cat >conftest.$ac_ext <<_ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2335 grep -v '^ *+' conftest.er1 >conftest.err
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2362 if test -n "$ac_declaration"; then
2363 echo '#ifdef __cplusplus' >>confdefs.h
2364 echo $ac_declaration >>confdefs.h
2365 echo '#endif' >>confdefs.h
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$CXX"; then
2396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 if test -n "$CXX"; then
2416 echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2419 echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2423 test -n "$CXX" && break
2426 if test -z "$CXX"; then
2428 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2430 # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$ac_ct_CXX"; then
2438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_CXX="$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$ac_ct_CXX" && break
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475 "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478 (eval $ac_compiler --version </dev/null >&5) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483 (eval $ac_compiler -v </dev/null >&5) 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488 (eval $ac_compiler -V </dev/null >&5) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_cxx_werror_flag"
2526 || test ! -s conftest.err'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2549 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2551 GXX=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CXXFLAGS=${CXXFLAGS+set}
2553 ac_save_CXXFLAGS=$CXXFLAGS
2555 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2556 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2557 if test "${ac_cv_prog_cxx_g+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 cat >conftest.$ac_ext <<_ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>conftest.er1
2579 grep -v '^ *+' conftest.er1 >conftest.err
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -z "$ac_cxx_werror_flag"
2585 || test ! -s conftest.err'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2597 ac_cv_prog_cxx_g=yes
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2608 if test "$ac_test_CXXFLAGS" = set; then
2609 CXXFLAGS=$ac_save_CXXFLAGS
2610 elif test $ac_cv_prog_cxx_g = yes; then
2611 if test "$GXX" = yes; then
2617 if test "$GXX" = yes; then
2623 for ac_declaration in \
2625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_cxx_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_cxx_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2741 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2742 # On Suns, sometimes $CPP names a directory.
2743 if test -n "$CPP" && test -d "$CPP"; then
2746 if test -z "$CPP"; then
2747 if test "${ac_cv_prog_CPP+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 # Double quotes because CPP needs to be expanded
2751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2754 for ac_c_preproc_warn_flag in '' yes
2756 # Use a header file that comes with gcc, so configuring glibc
2757 # with a fresh cross-compiler works.
2758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2759 # <limits.h> exists even on freestanding compilers.
2760 # On the NeXT, cc -E runs the code through the compiler's parser,
2761 # not just through cpp. "Syntax error" is here to catch this case.
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2769 # include <limits.h>
2771 # include <assert.h>
2775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } >/dev/null; then
2783 if test -s conftest.err; then
2784 ac_cpp_err=$ac_c_preproc_warn_flag
2785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2792 if test -z "$ac_cpp_err"; then
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2798 # Broken: fails on valid input.
2801 rm -f conftest.err conftest.$ac_ext
2803 # OK, works on sane cases. Now check whether non-existent headers
2804 # can be detected and how.
2805 cat >conftest.$ac_ext <<_ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2811 #include <ac_nonexistent.h>
2813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } >/dev/null; then
2821 if test -s conftest.err; then
2822 ac_cpp_err=$ac_c_preproc_warn_flag
2823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2830 if test -z "$ac_cpp_err"; then
2831 # Broken: success on invalid input.
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 # Passes both tests.
2841 rm -f conftest.err conftest.$ac_ext
2844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2845 rm -f conftest.err conftest.$ac_ext
2846 if $ac_preproc_ok; then
2858 echo "$as_me:$LINENO: result: $CPP" >&5
2859 echo "${ECHO_T}$CPP" >&6
2861 for ac_c_preproc_warn_flag in '' yes
2863 # Use a header file that comes with gcc, so configuring glibc
2864 # with a fresh cross-compiler works.
2865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2866 # <limits.h> exists even on freestanding compilers.
2867 # On the NeXT, cc -E runs the code through the compiler's parser,
2868 # not just through cpp. "Syntax error" is here to catch this case.
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2876 # include <limits.h>
2878 # include <assert.h>
2882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2885 grep -v '^ *+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } >/dev/null; then
2890 if test -s conftest.err; then
2891 ac_cpp_err=$ac_c_preproc_warn_flag
2892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2899 if test -z "$ac_cpp_err"; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 # Broken: fails on valid input.
2908 rm -f conftest.err conftest.$ac_ext
2910 # OK, works on sane cases. Now check whether non-existent headers
2911 # can be detected and how.
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2918 #include <ac_nonexistent.h>
2920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923 grep -v '^ *+' conftest.er1 >conftest.err
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } >/dev/null; then
2928 if test -s conftest.err; then
2929 ac_cpp_err=$ac_c_preproc_warn_flag
2930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2937 if test -z "$ac_cpp_err"; then
2938 # Broken: success on invalid input.
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 # Passes both tests.
2948 rm -f conftest.err conftest.$ac_ext
2951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2952 rm -f conftest.err conftest.$ac_ext
2953 if $ac_preproc_ok; then
2956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2957 See \`config.log' for more details." >&5
2958 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2959 See \`config.log' for more details." >&2;}
2960 { (exit 1); exit 1; }; }
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2971 if test -f $ac_dir/install-sh; then
2973 ac_install_sh="$ac_aux_dir/install-sh -c"
2975 elif test -f $ac_dir/install.sh; then
2977 ac_install_sh="$ac_aux_dir/install.sh -c"
2979 elif test -f $ac_dir/shtool; then
2981 ac_install_sh="$ac_aux_dir/shtool install -c"
2985 if test -z "$ac_aux_dir"; then
2986 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2987 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2988 { (exit 1); exit 1; }; }
2990 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2991 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2992 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2994 # Find a good install program. We prefer a C program (faster),
2995 # so one script is as good as another. But avoid the broken or
2996 # incompatible versions:
2997 # SysV /etc/install, /usr/sbin/install
2998 # SunOS /usr/etc/install
2999 # IRIX /sbin/install
3001 # AmigaOS /C/install, which installs bootblocks on floppy discs
3002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3005 # OS/2's system install, which has a completely different semantic
3006 # ./install, which can be erroneously created by make from ./install.sh.
3007 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3008 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3009 if test -z "$INSTALL"; then
3010 if test "${ac_cv_path_install+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 # Account for people who put trailing slashes in PATH elements.
3020 ./ | .// | /cC/* | \
3021 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3022 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3025 # OSF1 and SCO ODT 3.0 have their own names for install.
3026 # Don't use installbsd from OSF since it installs stuff as root
3028 for ac_prog in ginstall scoinst install; do
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3031 if test $ac_prog = install &&
3032 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # AIX install. It has an incompatible calling convention.
3035 elif test $ac_prog = install &&
3036 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3037 # program-specific install script used by HP pwplus--don't use.
3040 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3052 if test "${ac_cv_path_install+set}" = set; then
3053 INSTALL=$ac_cv_path_install
3055 # As a last resort, use the slow shell script. We don't cache a
3056 # path for INSTALL within a source directory, because that will
3057 # break other packages using the cache if that directory is
3058 # removed, or if the path is relative.
3059 INSTALL=$ac_install_sh
3062 echo "$as_me:$LINENO: result: $INSTALL" >&5
3063 echo "${ECHO_T}$INSTALL" >&6
3065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3066 # It thinks the first close brace ends the variable substitution.
3067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_RANLIB+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -n "$RANLIB"; then
3082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 RANLIB=$ac_cv_prog_RANLIB
3101 if test -n "$RANLIB"; then
3102 echo "$as_me:$LINENO: result: $RANLIB" >&5
3103 echo "${ECHO_T}$RANLIB" >&6
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3110 if test -z "$ac_cv_prog_RANLIB"; then
3111 ac_ct_RANLIB=$RANLIB
3112 # Extract the first word of "ranlib", so it can be a program name with args.
3113 set dummy ranlib; ac_word=$2
3114 echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3116 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 if test -n "$ac_ct_RANLIB"; then
3120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_ac_ct_RANLIB="ranlib"
3130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3140 if test -n "$ac_ct_RANLIB"; then
3141 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3142 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3144 echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6
3148 RANLIB=$ac_ct_RANLIB
3150 RANLIB="$ac_cv_prog_RANLIB"
3154 for ac_prog in flex lex
3156 # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 echo "$as_me:$LINENO: checking for $ac_word" >&5
3159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160 if test "${ac_cv_prog_LEX+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 if test -n "$LEX"; then
3164 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_LEX="$ac_prog"
3174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test -n "$LEX"; then
3184 echo "$as_me:$LINENO: result: $LEX" >&5
3185 echo "${ECHO_T}$LEX" >&6
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3191 test -n "$LEX" && break
3193 test -n "$LEX" || LEX=":"
3195 if test -z "$LEXLIB"
3197 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3198 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3199 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 ac_check_lib_save_LIBS=$LIBS
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3211 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3226 rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228 (eval $ac_link) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest$ac_exeext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 ac_cv_lib_fl_yywrap=yes
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 ac_cv_lib_fl_yywrap=no
3255 rm -f conftest.err conftest.$ac_objext \
3256 conftest$ac_exeext conftest.$ac_ext
3257 LIBS=$ac_check_lib_save_LIBS
3259 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3260 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3261 if test $ac_cv_lib_fl_yywrap = yes; then
3264 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3265 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3266 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 ac_check_lib_save_LIBS=$LIBS
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3278 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3293 rm -f conftest.$ac_objext conftest$ac_exeext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -z "$ac_c_werror_flag"
3303 || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_lib_l_yywrap=yes
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_cv_lib_l_yywrap=no
3322 rm -f conftest.err conftest.$ac_objext \
3323 conftest$ac_exeext conftest.$ac_ext
3324 LIBS=$ac_check_lib_save_LIBS
3326 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3327 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3328 if test $ac_cv_lib_l_yywrap = yes; then
3336 if test "x$LEX" != "x:"; then
3337 echo "$as_me:$LINENO: checking lex output file root" >&5
3338 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3339 if test "${ac_cv_prog_lex_root+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 # The minimal lex program is just a single line: %%. But some broken lexes
3343 # (Solaris, I think it was) want two %% lines, so accommodate them.
3344 cat >conftest.l <<_ACEOF
3348 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3349 (eval $LEX conftest.l) 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }
3353 if test -f lex.yy.c; then
3354 ac_cv_prog_lex_root=lex.yy
3355 elif test -f lexyy.c; then
3356 ac_cv_prog_lex_root=lexyy
3358 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3359 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3360 { (exit 1); exit 1; }; }
3363 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3364 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3366 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3368 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3369 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3370 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 # POSIX says lex can declare yytext either as a pointer or an array; the
3374 # default is implementation-dependent. Figure out which it is, since
3375 # not all implementations provide the %pointer and %array declarations.
3376 ac_cv_prog_lex_yytext_pointer=no
3377 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3379 LIBS="$LIBS $LEXLIB"
3380 cat >conftest.$ac_ext <<_ACEOF
3381 `cat $LEX_OUTPUT_ROOT.c`
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385 (eval $ac_link) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest$ac_exeext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_cv_prog_lex_yytext_pointer=yes
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3411 rm -f conftest.err conftest.$ac_objext \
3412 conftest$ac_exeext conftest.$ac_ext
3414 rm -f "${LEX_OUTPUT_ROOT}.c"
3417 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3418 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3419 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3421 cat >>confdefs.h <<\_ACEOF
3422 #define YYTEXT_POINTER 1
3428 for ac_prog in 'bison -y' byacc
3430 # Extract the first word of "$ac_prog", so it can be a program name with args.
3431 set dummy $ac_prog; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_YACC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 if test -n "$YACC"; then
3438 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_YACC="$ac_prog"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 YACC=$ac_cv_prog_YACC
3457 if test -n "$YACC"; then
3458 echo "$as_me:$LINENO: result: $YACC" >&5
3459 echo "${ECHO_T}$YACC" >&6
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3465 test -n "$YACC" && break
3467 test -n "$YACC" || YACC="yacc"
3469 # Extract the first word of "autoconf", so it can be a program name with args.
3470 set dummy autoconf; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$AUTOCONF"; then
3477 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_AUTOCONF="autoconf"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3496 AUTOCONF=$ac_cv_prog_AUTOCONF
3497 if test -n "$AUTOCONF"; then
3498 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3499 echo "${ECHO_T}$AUTOCONF" >&6
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3505 # Extract the first word of "strip", so it can be a program name with args.
3506 set dummy strip; ac_word=$2
3507 echo "$as_me:$LINENO: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_prog_STRIP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_STRIP="strip"
3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3532 STRIP=$ac_cv_prog_STRIP
3533 if test -n "$STRIP"; then
3534 echo "$as_me:$LINENO: result: $STRIP" >&5
3535 echo "${ECHO_T}$STRIP" >&6
3537 echo "$as_me:$LINENO: result: no" >&5
3538 echo "${ECHO_T}no" >&6
3541 # Extract the first word of "as", so it can be a program name with args.
3542 set dummy as; ac_word=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_prog_AS+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if test -n "$AS"; then
3549 ac_cv_prog_AS="$AS" # Let the user override the test.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3569 if test -n "$AS"; then
3570 echo "$as_me:$LINENO: result: $AS" >&5
3571 echo "${ECHO_T}$AS" >&6
3573 echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3577 # Extract the first word of "cp", so it can be a program name with args.
3578 set dummy cp; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_CP+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test -n "$CP"; then
3585 ac_cv_prog_CP="$CP" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3605 if test -n "$CP"; then
3606 echo "$as_me:$LINENO: result: $CP" >&5
3607 echo "${ECHO_T}$CP" >&6
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3613 # Extract the first word of "'cp -u'", so it can be a program name with args.
3614 set dummy 'cp -u'; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_CP_U+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test -n "$CP_U"; then
3621 ac_cv_prog_CP_U="$CP_U" # Let the user override the test.
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 CP_U=$ac_cv_prog_CP_U
3640 if test -n "$CP_U"; then
3641 echo "$as_me:$LINENO: result: $CP_U" >&5
3642 echo "${ECHO_T}$CP_U" >&6
3644 echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3649 # Extract the first word of "lyx", so it can be a program name with args.
3650 set dummy lyx; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_LYX+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -n "$LYX"; then
3657 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_LYX="lyx"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3677 if test -n "$LYX"; then
3678 echo "$as_me:$LINENO: result: $LYX" >&5
3679 echo "${ECHO_T}$LYX" >&6
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3685 # Extract the first word of "latex", so it can be a program name with args.
3686 set dummy latex; ac_word=$2
3687 echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689 if test "${ac_cv_prog_LATEX+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 if test -n "$LATEX"; then
3693 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_LATEX="latex"
3703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3712 LATEX=$ac_cv_prog_LATEX
3713 if test -n "$LATEX"; then
3714 echo "$as_me:$LINENO: result: $LATEX" >&5
3715 echo "${ECHO_T}$LATEX" >&6
3717 echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3721 # Extract the first word of "latex2html", so it can be a program name with args.
3722 set dummy latex2html; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 if test -n "$LATEX2HTML"; then
3729 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_LATEX2HTML="latex2html"
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3748 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3749 if test -n "$LATEX2HTML"; then
3750 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3751 echo "${ECHO_T}$LATEX2HTML" >&6
3753 echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3757 # Extract the first word of "pdflatex", so it can be a program name with args.
3758 set dummy pdflatex; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 if test -n "$PDFLATEX"; then
3765 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_PDFLATEX="pdflatex"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3784 PDFLATEX=$ac_cv_prog_PDFLATEX
3785 if test -n "$PDFLATEX"; then
3786 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3787 echo "${ECHO_T}$PDFLATEX" >&6
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3793 # Extract the first word of "dvipdf", so it can be a program name with args.
3794 set dummy dvipdf; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -n "$DVIPDF"; then
3801 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_DVIPDF="dvipdf"
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3820 DVIPDF=$ac_cv_prog_DVIPDF
3821 if test -n "$DVIPDF"; then
3822 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3823 echo "${ECHO_T}$DVIPDF" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3832 if test "$YACC" = ":"; then
3833 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3834 echo "$as_me: error: Cannot find required program bison." >&2;}
3835 { (exit 1); exit 1; }; }
3838 if test "$LEX" = ":"; then
3839 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3840 echo "$as_me: error: Cannot find required program lex." >&2;}
3841 { (exit 1); exit 1; }; }
3846 ac_cpp='$CPP $CPPFLAGS'
3847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 # Checking for header files.
3854 # ===========================================================================
3856 echo "$as_me:$LINENO: checking for egrep" >&5
3857 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3858 if test "${ac_cv_prog_egrep+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3862 then ac_cv_prog_egrep='grep -E'
3863 else ac_cv_prog_egrep='egrep'
3866 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3867 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3868 EGREP=$ac_cv_prog_egrep
3871 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3873 if test "${ac_cv_header_stdc+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3895 rm -f conftest.$ac_objext
3896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3897 (eval $ac_compile) 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } &&
3904 { ac_try='test -z "$ac_c_werror_flag"
3905 || test ! -s conftest.err'
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; } &&
3911 { ac_try='test -s conftest.$ac_objext'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 ac_cv_header_stdc=yes
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 ac_cv_header_stdc=no
3924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 $EGREP "memchr" >/dev/null 2>&1; then
3941 ac_cv_header_stdc=no
3947 if test $ac_cv_header_stdc = yes; then
3948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 $EGREP "free" >/dev/null 2>&1; then
3962 ac_cv_header_stdc=no
3968 if test $ac_cv_header_stdc = yes; then
3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3970 if test "$cross_compiling" = yes; then
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 #if ((' ' & 0x0FF) == 0x020)
3981 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3982 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3984 # define ISLOWER(c) \
3985 (('a' <= (c) && (c) <= 'i') \
3986 || ('j' <= (c) && (c) <= 'r') \
3987 || ('s' <= (c) && (c) <= 'z'))
3988 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3991 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3996 for (i = 0; i < 256; i++)
3997 if (XOR (islower (i), ISLOWER (i))
3998 || toupper (i) != TOUPPER (i))
4003 rm -f conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4016 echo "$as_me: program exited with status $ac_status" >&5
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4021 ac_cv_header_stdc=no
4023 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4027 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4028 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4029 if test $ac_cv_header_stdc = yes; then
4031 cat >>confdefs.h <<\_ACEOF
4032 #define STDC_HEADERS 1
4037 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4048 inttypes.h stdint.h unistd.h
4050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4051 echo "$as_me:$LINENO: checking for $ac_header" >&5
4052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 $ac_includes_default
4064 #include <$ac_header>
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
4070 grep -v '^ *+' conftest.er1 >conftest.err
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_c_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 eval "$as_ac_Header=yes"
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 eval "$as_ac_Header=no"
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4100 cat >>confdefs.h <<_ACEOF
4101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 for ac_header in sys/socket.h
4112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4114 echo "$as_me:$LINENO: checking for $ac_header" >&5
4115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4122 # Is the header compilable?
4123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4132 #include <$ac_header>
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_header_compiler=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_header_compiler=no
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4165 echo "${ECHO_T}$ac_header_compiler" >&6
4167 # Is the header present?
4168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 #include <$ac_header>
4178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } >/dev/null; then
4186 if test -s conftest.err; then
4187 ac_cpp_err=$ac_c_preproc_warn_flag
4188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4195 if test -z "$ac_cpp_err"; then
4196 ac_header_preproc=yes
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_header_preproc=no
4203 rm -f conftest.err conftest.$ac_ext
4204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4205 echo "${ECHO_T}$ac_header_preproc" >&6
4207 # So? What about this header?
4208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4214 ac_header_preproc=yes
4217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4231 ## ------------------------------------------ ##
4232 ## Report this to the AC_PACKAGE_NAME lists. ##
4233 ## ------------------------------------------ ##
4236 sed "s/^/$as_me: WARNING: /" >&2
4239 echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 eval "$as_ac_Header=\$ac_header_preproc"
4246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4251 cat >>confdefs.h <<_ACEOF
4252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4261 # Checking for functions/libs
4262 # ===========================================================================
4264 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4265 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4266 if test "${ac_cv_lib_socket_socket+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 ac_check_lib_save_LIBS=$LIBS
4270 LIBS="-lsocket $LIBS"
4271 cat >conftest.$ac_ext <<_ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4278 /* Override any gcc2 internal prototype to avoid an error. */
4282 /* We use char because int might match the return type of a gcc2
4283 builtin and then its argument prototype would still apply. */
4293 rm -f conftest.$ac_objext conftest$ac_exeext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295 (eval $ac_link) 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -z "$ac_c_werror_flag"
4303 || test ! -s conftest.err'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest$ac_exeext'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 ac_cv_lib_socket_socket=yes
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4320 ac_cv_lib_socket_socket=no
4322 rm -f conftest.err conftest.$ac_objext \
4323 conftest$ac_exeext conftest.$ac_ext
4324 LIBS=$ac_check_lib_save_LIBS
4326 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4327 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4328 if test $ac_cv_lib_socket_socket = yes; then
4329 cat >>confdefs.h <<_ACEOF
4330 #define HAVE_LIBSOCKET 1
4333 LIBS="-lsocket $LIBS"
4338 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
4339 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
4340 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 ac_check_lib_save_LIBS=$LIBS
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4352 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4367 rm -f conftest.$ac_objext conftest$ac_exeext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4369 (eval $ac_link) 2>conftest.er1
4371 grep -v '^ *+' conftest.er1 >conftest.err
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -z "$ac_c_werror_flag"
4377 || test ! -s conftest.err'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; } &&
4383 { ac_try='test -s conftest$ac_exeext'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 ac_cv_lib_nsl_xdr_short=yes
4391 echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_cv_lib_nsl_xdr_short=no
4396 rm -f conftest.err conftest.$ac_objext \
4397 conftest$ac_exeext conftest.$ac_ext
4398 LIBS=$ac_check_lib_save_LIBS
4400 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
4401 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
4402 if test $ac_cv_lib_nsl_xdr_short = yes; then
4403 cat >>confdefs.h <<_ACEOF
4404 #define HAVE_LIBNSL 1
4413 # Checking for functions
4414 # ===========================================================================
4416 for ac_func in strerror
4418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4419 echo "$as_me:$LINENO: checking for $ac_func" >&5
4420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4421 if eval "test \"\${$as_ac_var+set}\" = set"; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4432 #define $ac_func innocuous_$ac_func
4434 /* System header to define __stub macros and hopefully few prototypes,
4435 which can conflict with char $ac_func (); below.
4436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4437 <limits.h> exists even on freestanding compilers. */
4440 # include <limits.h>
4442 # include <assert.h>
4447 /* Override any gcc2 internal prototype to avoid an error. */
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4455 /* The GNU C library defines this for functions which it implements
4456 to always fail with ENOSYS. Some functions are actually named
4457 something starting with __ and the normal name is an alias. */
4458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4461 char (*f) () = $ac_func;
4470 return f != $ac_func;
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477 (eval $ac_link) 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag"
4485 || test ! -s conftest.err'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest$ac_exeext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 eval "$as_ac_var=yes"
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 eval "$as_ac_var=no"
4504 rm -f conftest.err conftest.$ac_objext \
4505 conftest$ac_exeext conftest.$ac_ext
4507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4509 if test `eval echo '${'$as_ac_var'}'` = yes; then
4510 cat >>confdefs.h <<_ACEOF
4511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4521 for ac_func in vsnprintf snprintf vsprintf mkstemp
4523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4524 echo "$as_me:$LINENO: checking for $ac_func" >&5
4525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_var+set}\" = set"; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4537 #define $ac_func innocuous_$ac_func
4539 /* System header to define __stub macros and hopefully few prototypes,
4540 which can conflict with char $ac_func (); below.
4541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542 <limits.h> exists even on freestanding compilers. */
4545 # include <limits.h>
4547 # include <assert.h>
4552 /* Override any gcc2 internal prototype to avoid an error. */
4557 /* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4560 /* The GNU C library defines this for functions which it implements
4561 to always fail with ENOSYS. Some functions are actually named
4562 something starting with __ and the normal name is an alias. */
4563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4566 char (*f) () = $ac_func;
4575 return f != $ac_func;
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582 (eval $ac_link) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest$ac_exeext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 eval "$as_ac_var=yes"
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 eval "$as_ac_var=no"
4609 rm -f conftest.err conftest.$ac_objext \
4610 conftest$ac_exeext conftest.$ac_ext
4612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4614 if test `eval echo '${'$as_ac_var'}'` = yes; then
4615 cat >>confdefs.h <<_ACEOF
4616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4625 # ===========================================================================
4627 # DD_COPT macro checks if the compiler specified as the 1st parameter
4628 # supports option specified as the 2nd parameter
4629 # For example: DD_CPORT(CXX, fPIC)
4633 # This macro expands DIR and assigns it to RET.
4634 # If DIR is NONE, then it's replaced by DEFAULT.
4636 # Based on AC_DEFINE_DIR
4640 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
4644 # adl_NORMALIZE_PATH
4646 # - empty paths are changed to '.'
4647 # - trailing slashes are removed
4648 # - repeated slashes are squeezed except a leading doubled slash '//'
4649 # (which might indicate a networked disk on some OS).
4652 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4653 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4654 # are turned into backslashes, otherwise they are all turned into slashes.
4656 # This makes processing of DOS filenames quite easier, because you can turn a
4657 # filename to the Unix notation, make your processing, and turn it back to
4658 # original notation.
4663 # adl_COMPUTE_RELATIVE_PATH
4665 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4666 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4667 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4668 # absolute filenames for this macro to success.
4674 ## The following helper macros are too fragile to be used out
4675 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4676 ## paths are normalized), that's why I'm keeping them in the same file.
4677 ## Still, some of them maybe worth to reuse.
4691 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4696 # Checking characteristics of compilers and other programs
4697 # ===========================================================================
4698 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4699 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4700 if test "${sdcc_cv_MM+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 echo "#include <stdio.h>" >_test_.c
4705 $CPP -v -MM _test_.c 1>&5 2>&5
4706 if test "$?" = "0"; then
4713 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4714 echo "${ECHO_T}$sdcc_cv_MM" >&6
4718 # This is the first time when CFLAGS are set/modified!!
4720 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4721 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4722 if test "${sdcc_cv_CCggdb+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4730 if test "$?" = "0"; then
4731 sdcc_cv_CCggdb="yes"
4735 rm -f _test_.* a.out
4737 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4738 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4740 if test "$sdcc_cv_CCggdb" = "yes"; then
4741 CFLAGS="-ggdb ${CFLAGS}"
4745 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4746 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4747 if test "${sdcc_cv_CCpipe+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 $CC -v -pipe -c _test_.c 1>&5 2>&5
4755 if test "$?" = "0"; then
4756 sdcc_cv_CCpipe="yes"
4760 rm -f _test_.* a.out
4762 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4763 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4765 if test "$sdcc_cv_CCpipe" = "yes"; then
4766 CFLAGS="-pipe $CFLAGS"
4770 # Checks for typedefs, structures, and compiler characteristics.
4771 # ===========================================================================
4772 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4773 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4774 if test "${ac_cv_type_signal+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.$ac_ext <<_ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #include <sys/types.h>
4789 extern "C" void (*signal (int, void (*)(int)))(int);
4791 void (*signal ()) ();
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_type_signal=void
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_cv_type_signal=int
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4834 echo "${ECHO_T}$ac_cv_type_signal" >&6
4836 cat >>confdefs.h <<_ACEOF
4837 #define RETSIGTYPE $ac_cv_type_signal
4842 echo "$as_me:$LINENO: checking for char" >&5
4843 echo $ECHO_N "checking for char... $ECHO_C" >&6
4844 if test "${ac_cv_type_char+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4896 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4897 echo "${ECHO_T}$ac_cv_type_char" >&6
4899 echo "$as_me:$LINENO: checking size of char" >&5
4900 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4901 if test "${ac_cv_sizeof_char+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 if test "$ac_cv_type_char" = yes; then
4905 # The cast to unsigned long works around a bug in the HP C Compiler
4906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4908 # This bug is HP SR number 8606223364.
4909 if test "$cross_compiling" = yes; then
4910 # Depending upon the size, compute the lo and hi bounds.
4911 cat >conftest.$ac_ext <<_ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 $ac_includes_default
4921 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>conftest.er1
4932 grep -v '^ *+' conftest.er1 >conftest.err
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try='test -z "$ac_c_werror_flag"
4938 || test ! -s conftest.err'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; } &&
4944 { ac_try='test -s conftest.$ac_objext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4952 cat >conftest.$ac_ext <<_ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 $ac_includes_default
4962 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4969 rm -f conftest.$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>conftest.er1
4973 grep -v '^ *+' conftest.er1 >conftest.err
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_hi=$ac_mid; break
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 ac_lo=`expr $ac_mid + 1`
4997 if test $ac_lo -le $ac_mid; then
5001 ac_mid=`expr 2 '*' $ac_mid + 1`
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 $ac_includes_default
5019 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5026 rm -f conftest.$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028 (eval $ac_compile) 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -z "$ac_c_werror_flag"
5036 || test ! -s conftest.err'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try='test -s conftest.$ac_objext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 $ac_includes_default
5060 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5067 rm -f conftest.$ac_objext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069 (eval $ac_compile) 2>conftest.er1
5071 grep -v '^ *+' conftest.er1 >conftest.err
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -z "$ac_c_werror_flag"
5077 || test ! -s conftest.err'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_lo=$ac_mid; break
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_hi=`expr '(' $ac_mid ')' - 1`
5095 if test $ac_mid -le $ac_hi; then
5099 ac_mid=`expr 2 '*' $ac_mid`
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5112 # Binary search between lo and hi bounds.
5113 while test "x$ac_lo" != "x$ac_hi"; do
5114 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 $ac_includes_default
5125 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5132 rm -f conftest.$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>conftest.er1
5136 grep -v '^ *+' conftest.er1 >conftest.err
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -z "$ac_c_werror_flag"
5142 || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 ac_lo=`expr '(' $ac_mid ')' + 1`
5161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5164 ?*) ac_cv_sizeof_char=$ac_lo;;
5165 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5166 See \`config.log' for more details." >&5
5167 echo "$as_me: error: cannot compute sizeof (char), 77
5168 See \`config.log' for more details." >&2;}
5169 { (exit 1); exit 1; }; } ;;
5172 if test "$cross_compiling" = yes; then
5173 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5174 See \`config.log' for more details." >&5
5175 echo "$as_me: error: cannot run test program while cross compiling
5176 See \`config.log' for more details." >&2;}
5177 { (exit 1); exit 1; }; }
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 $ac_includes_default
5186 long longval () { return (long) (sizeof (char)); }
5187 unsigned long ulongval () { return (long) (sizeof (char)); }
5194 FILE *f = fopen ("conftest.val", "w");
5197 if (((long) (sizeof (char))) < 0)
5199 long i = longval ();
5200 if (i != ((long) (sizeof (char))))
5202 fprintf (f, "%ld\n", i);
5206 unsigned long i = ulongval ();
5207 if (i != ((long) (sizeof (char))))
5209 fprintf (f, "%lu\n", i);
5211 exit (ferror (f) || fclose (f) != 0);
5217 rm -f conftest$ac_exeext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5219 (eval $ac_link) 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_cv_sizeof_char=`cat conftest.val`
5230 echo "$as_me: program exited with status $ac_status" >&5
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5235 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5236 See \`config.log' for more details." >&5
5237 echo "$as_me: error: cannot compute sizeof (char), 77
5238 See \`config.log' for more details." >&2;}
5239 { (exit 1); exit 1; }; }
5241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5250 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5251 cat >>confdefs.h <<_ACEOF
5252 #define SIZEOF_CHAR $ac_cv_sizeof_char
5256 echo "$as_me:$LINENO: checking for short" >&5
5257 echo $ECHO_N "checking for short... $ECHO_C" >&6
5258 if test "${ac_cv_type_short+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 cat >conftest.$ac_ext <<_ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 $ac_includes_default
5279 rm -f conftest.$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -z "$ac_c_werror_flag"
5289 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_cv_type_short=yes
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5311 echo "${ECHO_T}$ac_cv_type_short" >&6
5313 echo "$as_me:$LINENO: checking size of short" >&5
5314 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5315 if test "${ac_cv_sizeof_short+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 if test "$ac_cv_type_short" = yes; then
5319 # The cast to unsigned long works around a bug in the HP C Compiler
5320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5322 # This bug is HP SR number 8606223364.
5323 if test "$cross_compiling" = yes; then
5324 # Depending upon the size, compute the lo and hi bounds.
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5335 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>conftest.er1
5346 grep -v '^ *+' conftest.er1 >conftest.err
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -z "$ac_c_werror_flag"
5352 || test ! -s conftest.err'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; } &&
5358 { ac_try='test -s conftest.$ac_objext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 $ac_includes_default
5376 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_c_werror_flag"
5393 || test ! -s conftest.err'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; } &&
5399 { ac_try='test -s conftest.$ac_objext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_hi=$ac_mid; break
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_lo=`expr $ac_mid + 1`
5411 if test $ac_lo -le $ac_mid; then
5415 ac_mid=`expr 2 '*' $ac_mid + 1`
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 $ac_includes_default
5433 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>conftest.er1
5444 grep -v '^ *+' conftest.er1 >conftest.err
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try='test -z "$ac_c_werror_flag"
5450 || test ! -s conftest.err'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5464 cat >conftest.$ac_ext <<_ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5474 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5485 grep -v '^ *+' conftest.er1 >conftest.err
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_lo=$ac_mid; break
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_hi=`expr '(' $ac_mid ')' - 1`
5509 if test $ac_mid -le $ac_hi; then
5513 ac_mid=`expr 2 '*' $ac_mid`
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5526 # Binary search between lo and hi bounds.
5527 while test "x$ac_lo" != "x$ac_hi"; do
5528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5529 cat >conftest.$ac_ext <<_ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 $ac_includes_default
5539 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5546 rm -f conftest.$ac_objext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548 (eval $ac_compile) 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -z "$ac_c_werror_flag"
5556 || test ! -s conftest.err'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; } &&
5562 { ac_try='test -s conftest.$ac_objext'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5573 ac_lo=`expr '(' $ac_mid ')' + 1`
5575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ?*) ac_cv_sizeof_short=$ac_lo;;
5579 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5580 See \`config.log' for more details." >&5
5581 echo "$as_me: error: cannot compute sizeof (short), 77
5582 See \`config.log' for more details." >&2;}
5583 { (exit 1); exit 1; }; } ;;
5586 if test "$cross_compiling" = yes; then
5587 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5588 See \`config.log' for more details." >&5
5589 echo "$as_me: error: cannot run test program while cross compiling
5590 See \`config.log' for more details." >&2;}
5591 { (exit 1); exit 1; }; }
5593 cat >conftest.$ac_ext <<_ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 $ac_includes_default
5600 long longval () { return (long) (sizeof (short)); }
5601 unsigned long ulongval () { return (long) (sizeof (short)); }
5608 FILE *f = fopen ("conftest.val", "w");
5611 if (((long) (sizeof (short))) < 0)
5613 long i = longval ();
5614 if (i != ((long) (sizeof (short))))
5616 fprintf (f, "%ld\n", i);
5620 unsigned long i = ulongval ();
5621 if (i != ((long) (sizeof (short))))
5623 fprintf (f, "%lu\n", i);
5625 exit (ferror (f) || fclose (f) != 0);
5631 rm -f conftest$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 ac_cv_sizeof_short=`cat conftest.val`
5644 echo "$as_me: program exited with status $ac_status" >&5
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5650 See \`config.log' for more details." >&5
5651 echo "$as_me: error: cannot compute sizeof (short), 77
5652 See \`config.log' for more details." >&2;}
5653 { (exit 1); exit 1; }; }
5655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5660 ac_cv_sizeof_short=0
5663 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5664 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5665 cat >>confdefs.h <<_ACEOF
5666 #define SIZEOF_SHORT $ac_cv_sizeof_short
5670 echo "$as_me:$LINENO: checking for int" >&5
5671 echo $ECHO_N "checking for int... $ECHO_C" >&6
5672 if test "${ac_cv_type_int+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 cat >conftest.$ac_ext <<_ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -z "$ac_c_werror_flag"
5703 || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5724 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5725 echo "${ECHO_T}$ac_cv_type_int" >&6
5727 echo "$as_me:$LINENO: checking size of int" >&5
5728 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5729 if test "${ac_cv_sizeof_int+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 if test "$ac_cv_type_int" = yes; then
5733 # The cast to unsigned long works around a bug in the HP C Compiler
5734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5736 # This bug is HP SR number 8606223364.
5737 if test "$cross_compiling" = yes; then
5738 # Depending upon the size, compute the lo and hi bounds.
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 $ac_includes_default
5749 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5756 rm -f conftest.$ac_objext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758 (eval $ac_compile) 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_c_werror_flag"
5766 || test ! -s conftest.err'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 $ac_includes_default
5790 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_c_werror_flag"
5807 || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_hi=$ac_mid; break
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 ac_lo=`expr $ac_mid + 1`
5825 if test $ac_lo -le $ac_mid; then
5829 ac_mid=`expr 2 '*' $ac_mid + 1`
5831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 $ac_includes_default
5847 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5854 rm -f conftest.$ac_objext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 $ac_includes_default
5888 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5895 rm -f conftest.$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_lo=$ac_mid; break
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_hi=`expr '(' $ac_mid ')' - 1`
5923 if test $ac_mid -le $ac_hi; then
5927 ac_mid=`expr 2 '*' $ac_mid`
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 # Binary search between lo and hi bounds.
5941 while test "x$ac_lo" != "x$ac_hi"; do
5942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5943 cat >conftest.$ac_ext <<_ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 $ac_includes_default
5953 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5960 rm -f conftest.$ac_objext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 (eval $ac_compile) 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } &&
5969 { ac_try='test -z "$ac_c_werror_flag"
5970 || test ! -s conftest.err'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; } &&
5976 { ac_try='test -s conftest.$ac_objext'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 ac_lo=`expr '(' $ac_mid ')' + 1`
5989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992 ?*) ac_cv_sizeof_int=$ac_lo;;
5993 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5994 See \`config.log' for more details." >&5
5995 echo "$as_me: error: cannot compute sizeof (int), 77
5996 See \`config.log' for more details." >&2;}
5997 { (exit 1); exit 1; }; } ;;
6000 if test "$cross_compiling" = yes; then
6001 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6002 See \`config.log' for more details." >&5
6003 echo "$as_me: error: cannot run test program while cross compiling
6004 See \`config.log' for more details." >&2;}
6005 { (exit 1); exit 1; }; }
6007 cat >conftest.$ac_ext <<_ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 $ac_includes_default
6014 long longval () { return (long) (sizeof (int)); }
6015 unsigned long ulongval () { return (long) (sizeof (int)); }
6022 FILE *f = fopen ("conftest.val", "w");
6025 if (((long) (sizeof (int))) < 0)
6027 long i = longval ();
6028 if (i != ((long) (sizeof (int))))
6030 fprintf (f, "%ld\n", i);
6034 unsigned long i = ulongval ();
6035 if (i != ((long) (sizeof (int))))
6037 fprintf (f, "%lu\n", i);
6039 exit (ferror (f) || fclose (f) != 0);
6045 rm -f conftest$ac_exeext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6056 ac_cv_sizeof_int=`cat conftest.val`
6058 echo "$as_me: program exited with status $ac_status" >&5
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6064 See \`config.log' for more details." >&5
6065 echo "$as_me: error: cannot compute sizeof (int), 77
6066 See \`config.log' for more details." >&2;}
6067 { (exit 1); exit 1; }; }
6069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6078 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6079 cat >>confdefs.h <<_ACEOF
6080 #define SIZEOF_INT $ac_cv_sizeof_int
6084 echo "$as_me:$LINENO: checking for long" >&5
6085 echo $ECHO_N "checking for long... $ECHO_C" >&6
6086 if test "${ac_cv_type_long+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6107 rm -f conftest.$ac_objext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -z "$ac_c_werror_flag"
6117 || test ! -s conftest.err'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6138 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6139 echo "${ECHO_T}$ac_cv_type_long" >&6
6141 echo "$as_me:$LINENO: checking size of long" >&5
6142 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6143 if test "${ac_cv_sizeof_long+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 if test "$ac_cv_type_long" = yes; then
6147 # The cast to unsigned long works around a bug in the HP C Compiler
6148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6150 # This bug is HP SR number 8606223364.
6151 if test "$cross_compiling" = yes; then
6152 # Depending upon the size, compute the lo and hi bounds.
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 $ac_includes_default
6163 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6194 cat >conftest.$ac_ext <<_ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6204 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6211 rm -f conftest.$ac_objext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 (eval $ac_compile) 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -z "$ac_c_werror_flag"
6221 || test ! -s conftest.err'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; } &&
6227 { ac_try='test -s conftest.$ac_objext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_hi=$ac_mid; break
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 ac_lo=`expr $ac_mid + 1`
6239 if test $ac_lo -le $ac_mid; then
6243 ac_mid=`expr 2 '*' $ac_mid + 1`
6245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 $ac_includes_default
6261 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6268 rm -f conftest.$ac_objext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270 (eval $ac_compile) 2>conftest.er1
6272 grep -v '^ *+' conftest.er1 >conftest.err
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_c_werror_flag"
6278 || test ! -s conftest.err'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest.$ac_objext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 $ac_includes_default
6302 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6309 rm -f conftest.$ac_objext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6311 (eval $ac_compile) 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } &&
6318 { ac_try='test -z "$ac_c_werror_flag"
6319 || test ! -s conftest.err'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; } &&
6325 { ac_try='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_lo=$ac_mid; break
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_hi=`expr '(' $ac_mid ')' - 1`
6337 if test $ac_mid -le $ac_hi; then
6341 ac_mid=`expr 2 '*' $ac_mid`
6343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6354 # Binary search between lo and hi bounds.
6355 while test "x$ac_lo" != "x$ac_hi"; do
6356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6357 cat >conftest.$ac_ext <<_ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 $ac_includes_default
6367 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>conftest.er1
6378 grep -v '^ *+' conftest.er1 >conftest.err
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } &&
6383 { ac_try='test -z "$ac_c_werror_flag"
6384 || test ! -s conftest.err'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 ac_lo=`expr '(' $ac_mid ')' + 1`
6403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ?*) ac_cv_sizeof_long=$ac_lo;;
6407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6408 See \`config.log' for more details." >&5
6409 echo "$as_me: error: cannot compute sizeof (long), 77
6410 See \`config.log' for more details." >&2;}
6411 { (exit 1); exit 1; }; } ;;
6414 if test "$cross_compiling" = yes; then
6415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6416 See \`config.log' for more details." >&5
6417 echo "$as_me: error: cannot run test program while cross compiling
6418 See \`config.log' for more details." >&2;}
6419 { (exit 1); exit 1; }; }
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 $ac_includes_default
6428 long longval () { return (long) (sizeof (long)); }
6429 unsigned long ulongval () { return (long) (sizeof (long)); }
6436 FILE *f = fopen ("conftest.val", "w");
6439 if (((long) (sizeof (long))) < 0)
6441 long i = longval ();
6442 if (i != ((long) (sizeof (long))))
6444 fprintf (f, "%ld\n", i);
6448 unsigned long i = ulongval ();
6449 if (i != ((long) (sizeof (long))))
6451 fprintf (f, "%lu\n", i);
6453 exit (ferror (f) || fclose (f) != 0);
6459 rm -f conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_sizeof_long=`cat conftest.val`
6472 echo "$as_me: program exited with status $ac_status" >&5
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6478 See \`config.log' for more details." >&5
6479 echo "$as_me: error: cannot compute sizeof (long), 77
6480 See \`config.log' for more details." >&2;}
6481 { (exit 1); exit 1; }; }
6483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6492 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6493 cat >>confdefs.h <<_ACEOF
6494 #define SIZEOF_LONG $ac_cv_sizeof_long
6501 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
6505 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
6509 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
6513 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
6520 echo "$as_me:$LINENO: checking type name for byte" >&5
6521 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
6522 TYPE_BYTE=`type_name 1`
6523 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6524 echo "${ECHO_T}$TYPE_BYTE" >&6
6525 echo "$as_me:$LINENO: checking type name for word" >&5
6526 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
6527 TYPE_WORD=`type_name 2`
6528 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6529 echo "${ECHO_T}$TYPE_WORD" >&6
6530 echo "$as_me:$LINENO: checking type name for dword" >&5
6531 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
6532 TYPE_DWORD=`type_name 4`
6533 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6534 echo "${ECHO_T}$TYPE_DWORD" >&6
6535 cat >>confdefs.h <<_ACEOF
6536 #define TYPE_BYTE $TYPE_BYTE
6539 cat >>confdefs.h <<_ACEOF
6540 #define TYPE_WORD $TYPE_WORD
6543 cat >>confdefs.h <<_ACEOF
6544 #define TYPE_DWORD $TYPE_DWORD
6548 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6549 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6550 if test "${ac_cv_c_bigendian+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 # See if sys/param.h defines the BYTE_ORDER macro.
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <sys/types.h>
6561 #include <sys/param.h>
6566 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6574 rm -f conftest.$ac_objext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576 (eval $ac_compile) 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 # It does; now see whether it defined to BIG_ENDIAN or not.
6597 cat >conftest.$ac_ext <<_ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 #include <sys/types.h>
6604 #include <sys/param.h>
6609 #if BYTE_ORDER != BIG_ENDIAN
6617 rm -f conftest.$ac_objext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619 (eval $ac_compile) 2>conftest.er1
6621 grep -v '^ *+' conftest.er1 >conftest.err
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try='test -z "$ac_c_werror_flag"
6627 || test ! -s conftest.err'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; } &&
6633 { ac_try='test -s conftest.$ac_objext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6639 ac_cv_c_bigendian=yes
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 ac_cv_c_bigendian=no
6646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 # It does not; compile a test program.
6652 if test "$cross_compiling" = yes; then
6653 # try to guess the endianness by grepping values into an object file
6654 ac_cv_c_bigendian=unknown
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6662 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6663 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6664 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6665 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6666 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6670 _ascii (); _ebcdic ();
6675 rm -f conftest.$ac_objext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6677 (eval $ac_compile) 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag"
6685 || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest.$ac_objext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6698 ac_cv_c_bigendian=yes
6700 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6701 if test "$ac_cv_c_bigendian" = unknown; then
6702 ac_cv_c_bigendian=no
6704 # finding both strings is unlikely to happen, but who knows?
6705 ac_cv_c_bigendian=unknown
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6724 /* Are we little or big endian? From Harbison&Steele. */
6728 char c[sizeof (long)];
6731 exit (u.c[sizeof (long) - 1] == 1);
6734 rm -f conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736 (eval $ac_link) 2>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_cv_c_bigendian=no
6747 echo "$as_me: program exited with status $ac_status" >&5
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_cv_c_bigendian=yes
6754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6759 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6760 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6761 case $ac_cv_c_bigendian in
6764 cat >>confdefs.h <<\_ACEOF
6765 #define WORDS_BIGENDIAN 1
6771 { { echo "$as_me:$LINENO: error: unknown endianness
6772 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6773 echo "$as_me: error: unknown endianness
6774 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6775 { (exit 1); exit 1; }; } ;;
6779 # Set standard installation paths
6780 # ===========================================================================
6782 # In the Makefiles we need paths with '/' as directory separator, even if
6783 # crosscompiling for Win32.
6784 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6785 # The variables in the Makefiles are replaced by AC_SUBST()
6787 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6789 # The macros are expanded for the header.
6790 # The variables in the header are replaced by AC_*DEFINE*()
6791 # sdccconf_h_dir_separator contains a backslash.
6793 if test "${sdccconf_h_dir_separator}" = ""; then
6794 sdccconf_h_dir_separator="/"
6800 # include_dir_suffix:
6801 # *nix default: "sdcc/include"
6804 if test "${include_dir_suffix}" = ""; then
6805 include_dir_suffix="sdcc/include"
6810 # *nix default: "sdcc/lib"
6812 if test "${lib_dir_suffix}" = ""; then
6813 lib_dir_suffix="sdcc/lib"
6818 # *nix default: "${datadir}/sdcc/doc"
6820 if test "${docdir}" = ""; then
6821 docdir="\${datadir}"/sdcc/doc
6830 cat >>confdefs.h <<_ACEOF
6831 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6834 cat >>confdefs.h <<_ACEOF
6835 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6840 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6842 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6845 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6846 ac_expand=`eval echo $ac_expand`
6847 expanded_prefix=`eval echo $ac_expand`
6850 ac_ndu=$expanded_prefix
6852 # change empty paths to '.'
6854 # strip trailing slashes
6855 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6858 # squeze repeated slashes
6859 case $sdccconf_h_dir_separator in
6860 # if the path contains any backslashes, turn slashes into backslashes
6862 # Bernhard Held 2003-04-06
6863 # This was the original line. It doesn't:
6864 # - convert the first slash
6865 # - replace a slash with a double-backslash
6866 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6867 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6869 # if the path contains slashes, also turn backslashes into slashes
6870 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6872 cat >>confdefs.h <<_ACEOF
6873 #define PREFIX "${ac_ndu}"
6879 # default: "${prefix}"
6881 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6883 ac_expand=$exec_prefix
6884 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6885 ac_expand=`eval echo $ac_expand`
6886 expanded_exec_prefix=`eval echo $ac_expand`
6889 ac_ndu=$expanded_exec_prefix
6891 # change empty paths to '.'
6893 # strip trailing slashes
6894 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6897 # squeze repeated slashes
6898 case $sdccconf_h_dir_separator in
6899 # if the path contains any backslashes, turn slashes into backslashes
6901 # Bernhard Held 2003-04-06
6902 # This was the original line. It doesn't:
6903 # - convert the first slash
6904 # - replace a slash with a double-backslash
6905 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6906 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6908 # if the path contains slashes, also turn backslashes into slashes
6909 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6911 cat >>confdefs.h <<_ACEOF
6912 #define EXEC_PREFIX "${ac_ndu}"
6918 # default: "${exec_prefix}/bin"
6920 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6923 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6924 ac_expand=`eval echo $ac_expand`
6925 expanded_bindir=`eval echo $ac_expand`
6928 ac_ndu=$expanded_bindir
6930 # change empty paths to '.'
6932 # strip trailing slashes
6933 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6936 # squeze repeated slashes
6937 case $sdccconf_h_dir_separator in
6938 # if the path contains any backslashes, turn slashes into backslashes
6940 # Bernhard Held 2003-04-06
6941 # This was the original line. It doesn't:
6942 # - convert the first slash
6943 # - replace a slash with a double-backslash
6944 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6945 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6947 # if the path contains slashes, also turn backslashes into slashes
6948 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6950 cat >>confdefs.h <<_ACEOF
6951 #define BINDIR "${ac_ndu}"
6957 # default: "${prefix}/share"
6959 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6962 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6963 ac_expand=`eval echo $ac_expand`
6964 expanded_datadir=`eval echo $ac_expand`
6967 ac_ndu=$expanded_datadir
6969 # change empty paths to '.'
6971 # strip trailing slashes
6972 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6975 # squeze repeated slashes
6976 case $sdccconf_h_dir_separator in
6977 # if the path contains any backslashes, turn slashes into backslashes
6979 # Bernhard Held 2003-04-06
6980 # This was the original line. It doesn't:
6981 # - convert the first slash
6982 # - replace a slash with a double-backslash
6983 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6984 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6986 # if the path contains slashes, also turn backslashes into slashes
6987 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6989 cat >>confdefs.h <<_ACEOF
6990 #define DATADIR "${ac_ndu}"
6995 # include/lib suffix
6996 norm_inc_dir_suffix=${include_dir_suffix}
6997 case ":$norm_inc_dir_suffix:" in
6998 # change empty paths to '.'
6999 ::) norm_inc_dir_suffix='.' ;;
7000 # strip trailing slashes
7001 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7004 # squeze repeated slashes
7005 case $sdccconf_h_dir_separator in
7006 # if the path contains any backslashes, turn slashes into backslashes
7008 # Bernhard Held 2003-04-06
7009 # This was the original line. It doesn't:
7010 # - convert the first slash
7011 # - replace a slash with a double-backslash
7012 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7013 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7015 # if the path contains slashes, also turn backslashes into slashes
7016 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7018 cat >>confdefs.h <<_ACEOF
7019 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
7022 norm_lib_dir_suffix=${lib_dir_suffix}
7023 case ":$norm_lib_dir_suffix:" in
7024 # change empty paths to '.'
7025 ::) norm_lib_dir_suffix='.' ;;
7026 # strip trailing slashes
7027 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
7030 # squeze repeated slashes
7031 case $sdccconf_h_dir_separator in
7032 # if the path contains any backslashes, turn slashes into backslashes
7034 # Bernhard Held 2003-04-06
7035 # This was the original line. It doesn't:
7036 # - convert the first slash
7037 # - replace a slash with a double-backslash
7038 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7039 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7041 # if the path contains slashes, also turn backslashes into slashes
7042 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7044 cat >>confdefs.h <<_ACEOF
7045 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
7050 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
7051 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7052 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7053 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7054 _lcl_receval="$_lcl_from"
7055 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7056 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7058 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7059 _lcl_receval_old="$_lcl_receval"
7060 eval _lcl_receval="\"$_lcl_receval\""
7062 echo "$_lcl_receval")`
7063 _lcl_receval="$_lcl_to"
7064 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7065 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7067 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7068 _lcl_receval_old="$_lcl_receval"
7069 eval _lcl_receval="\"$_lcl_receval\""
7071 echo "$_lcl_receval")`
7072 _lcl_notation="$_lcl_from$_lcl_to"
7073 case ":$_lcl_from:" in
7074 # change empty paths to '.'
7075 ::) _lcl_from='.' ;;
7076 # strip trailing slashes
7077 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7080 # squeze repeated slashes
7082 # if the path contains any backslashes, turn slashes into backslashes
7084 # Bernhard Held 2003-04-06
7085 # This was the original line. It doesn't:
7086 # - convert the first slash
7087 # - replace a slash with a double-backslash
7088 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7089 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7091 # if the path contains slashes, also turn backslashes into slashes
7092 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7094 case ":$_lcl_to:" in
7095 # change empty paths to '.'
7097 # strip trailing slashes
7098 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7101 # squeze repeated slashes
7103 # if the path contains any backslashes, turn slashes into backslashes
7105 # Bernhard Held 2003-04-06
7106 # This was the original line. It doesn't:
7107 # - convert the first slash
7108 # - replace a slash with a double-backslash
7109 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7110 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7112 # if the path contains slashes, also turn backslashes into slashes
7113 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7115 _lcl_common_prefix=''
7116 _lcl_second_prefix_match=''
7117 while test "$_lcl_second_prefix_match" != 0; do
7118 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7119 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7120 if test "$_lcl_second_prefix_match" != 0; then
7121 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7122 _lcl_common_prefix="$_lcl_first_prefix"
7124 _lcl_second_prefix_match=0
7128 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7131 while test "$_lcl_tmp" != ''; do
7132 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7133 if test "$_lcl_first_suffix" != ''; then
7134 _lcl_first_suffix="$_lcl_tmp"
7135 _lcl_first_rel="../$_lcl_first_rel"
7138 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7139 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7140 case ":$_lcl_result_tmp:" in
7141 # change empty paths to '.'
7142 ::) _lcl_result_tmp='.' ;;
7143 # strip trailing slashes
7144 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7147 # squeze repeated slashes
7148 case "$_lcl_notation" in
7149 # if the path contains any backslashes, turn slashes into backslashes
7151 # Bernhard Held 2003-04-06
7152 # This was the original line. It doesn't:
7153 # - convert the first slash
7154 # - replace a slash with a double-backslash
7155 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7156 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7158 # if the path contains slashes, also turn backslashes into slashes
7159 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7161 eval $_lcl_result_var='$_lcl_result_tmp'
7163 case ":$bin2data_dir:" in
7164 # change empty paths to '.'
7165 ::) bin2data_dir='.' ;;
7166 # strip trailing slashes
7167 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
7170 # squeze repeated slashes
7171 case $sdccconf_h_dir_separator in
7172 # if the path contains any backslashes, turn slashes into backslashes
7174 # Bernhard Held 2003-04-06
7175 # This was the original line. It doesn't:
7176 # - convert the first slash
7177 # - replace a slash with a double-backslash
7178 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7179 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7181 # if the path contains slashes, also turn backslashes into slashes
7182 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7184 cat >>confdefs.h <<_ACEOF
7185 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
7189 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
7190 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7191 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7192 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7193 _lcl_receval="$_lcl_from"
7194 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7195 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7197 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7198 _lcl_receval_old="$_lcl_receval"
7199 eval _lcl_receval="\"$_lcl_receval\""
7201 echo "$_lcl_receval")`
7202 _lcl_receval="$_lcl_to"
7203 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7204 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7206 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7207 _lcl_receval_old="$_lcl_receval"
7208 eval _lcl_receval="\"$_lcl_receval\""
7210 echo "$_lcl_receval")`
7211 _lcl_notation="$_lcl_from$_lcl_to"
7212 case ":$_lcl_from:" in
7213 # change empty paths to '.'
7214 ::) _lcl_from='.' ;;
7215 # strip trailing slashes
7216 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7219 # squeze repeated slashes
7221 # if the path contains any backslashes, turn slashes into backslashes
7223 # Bernhard Held 2003-04-06
7224 # This was the original line. It doesn't:
7225 # - convert the first slash
7226 # - replace a slash with a double-backslash
7227 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7228 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7230 # if the path contains slashes, also turn backslashes into slashes
7231 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7233 case ":$_lcl_to:" in
7234 # change empty paths to '.'
7236 # strip trailing slashes
7237 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7240 # squeze repeated slashes
7242 # if the path contains any backslashes, turn slashes into backslashes
7244 # Bernhard Held 2003-04-06
7245 # This was the original line. It doesn't:
7246 # - convert the first slash
7247 # - replace a slash with a double-backslash
7248 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7249 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7251 # if the path contains slashes, also turn backslashes into slashes
7252 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7254 _lcl_common_prefix=''
7255 _lcl_second_prefix_match=''
7256 while test "$_lcl_second_prefix_match" != 0; do
7257 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7258 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7259 if test "$_lcl_second_prefix_match" != 0; then
7260 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7261 _lcl_common_prefix="$_lcl_first_prefix"
7263 _lcl_second_prefix_match=0
7267 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7270 while test "$_lcl_tmp" != ''; do
7271 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7272 if test "$_lcl_first_suffix" != ''; then
7273 _lcl_first_suffix="$_lcl_tmp"
7274 _lcl_first_rel="../$_lcl_first_rel"
7277 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7278 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7279 case ":$_lcl_result_tmp:" in
7280 # change empty paths to '.'
7281 ::) _lcl_result_tmp='.' ;;
7282 # strip trailing slashes
7283 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7286 # squeze repeated slashes
7287 case "$_lcl_notation" in
7288 # if the path contains any backslashes, turn slashes into backslashes
7290 # Bernhard Held 2003-04-06
7291 # This was the original line. It doesn't:
7292 # - convert the first slash
7293 # - replace a slash with a double-backslash
7294 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7295 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7297 # if the path contains slashes, also turn backslashes into slashes
7298 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7300 eval $_lcl_result_var='$_lcl_result_tmp'
7302 case ":$prefix2bin_dir:" in
7303 # change empty paths to '.'
7304 ::) prefix2bin_dir='.' ;;
7305 # strip trailing slashes
7306 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
7309 # squeze repeated slashes
7310 case $sdccconf_h_dir_separator in
7311 # if the path contains any backslashes, turn slashes into backslashes
7313 # Bernhard Held 2003-04-06
7314 # This was the original line. It doesn't:
7315 # - convert the first slash
7316 # - replace a slash with a double-backslash
7317 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7318 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7320 # if the path contains slashes, also turn backslashes into slashes
7321 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7323 cat >>confdefs.h <<_ACEOF
7324 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
7328 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
7329 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7330 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7331 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7332 _lcl_receval="$_lcl_from"
7333 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7334 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7336 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7337 _lcl_receval_old="$_lcl_receval"
7338 eval _lcl_receval="\"$_lcl_receval\""
7340 echo "$_lcl_receval")`
7341 _lcl_receval="$_lcl_to"
7342 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7343 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7345 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7346 _lcl_receval_old="$_lcl_receval"
7347 eval _lcl_receval="\"$_lcl_receval\""
7349 echo "$_lcl_receval")`
7350 _lcl_notation="$_lcl_from$_lcl_to"
7351 case ":$_lcl_from:" in
7352 # change empty paths to '.'
7353 ::) _lcl_from='.' ;;
7354 # strip trailing slashes
7355 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7358 # squeze repeated slashes
7360 # if the path contains any backslashes, turn slashes into backslashes
7362 # Bernhard Held 2003-04-06
7363 # This was the original line. It doesn't:
7364 # - convert the first slash
7365 # - replace a slash with a double-backslash
7366 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7367 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7369 # if the path contains slashes, also turn backslashes into slashes
7370 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7372 case ":$_lcl_to:" in
7373 # change empty paths to '.'
7375 # strip trailing slashes
7376 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7379 # squeze repeated slashes
7381 # if the path contains any backslashes, turn slashes into backslashes
7383 # Bernhard Held 2003-04-06
7384 # This was the original line. It doesn't:
7385 # - convert the first slash
7386 # - replace a slash with a double-backslash
7387 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7388 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7390 # if the path contains slashes, also turn backslashes into slashes
7391 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7393 _lcl_common_prefix=''
7394 _lcl_second_prefix_match=''
7395 while test "$_lcl_second_prefix_match" != 0; do
7396 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7397 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7398 if test "$_lcl_second_prefix_match" != 0; then
7399 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7400 _lcl_common_prefix="$_lcl_first_prefix"
7402 _lcl_second_prefix_match=0
7406 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7409 while test "$_lcl_tmp" != ''; do
7410 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7411 if test "$_lcl_first_suffix" != ''; then
7412 _lcl_first_suffix="$_lcl_tmp"
7413 _lcl_first_rel="../$_lcl_first_rel"
7416 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7417 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7418 case ":$_lcl_result_tmp:" in
7419 # change empty paths to '.'
7420 ::) _lcl_result_tmp='.' ;;
7421 # strip trailing slashes
7422 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7425 # squeze repeated slashes
7426 case "$_lcl_notation" in
7427 # if the path contains any backslashes, turn slashes into backslashes
7429 # Bernhard Held 2003-04-06
7430 # This was the original line. It doesn't:
7431 # - convert the first slash
7432 # - replace a slash with a double-backslash
7433 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7434 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7436 # if the path contains slashes, also turn backslashes into slashes
7437 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7439 eval $_lcl_result_var='$_lcl_result_tmp'
7441 case ":$prefix2data_dir:" in
7442 # change empty paths to '.'
7443 ::) prefix2data_dir='.' ;;
7444 # strip trailing slashes
7445 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
7448 # squeze repeated slashes
7449 case $sdccconf_h_dir_separator in
7450 # if the path contains any backslashes, turn slashes into backslashes
7452 # Bernhard Held 2003-04-06
7453 # This was the original line. It doesn't:
7454 # - convert the first slash
7455 # - replace a slash with a double-backslash
7456 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7457 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7459 # if the path contains slashes, also turn backslashes into slashes
7460 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7462 if test "${prefix2data_dir}" = "."; then
7463 # small optimization for Mingw32; otherwise Borut will complain ;-)
7464 cat >>confdefs.h <<_ACEOF
7465 #define PREFIX2DATA_DIR ""
7469 cat >>confdefs.h <<_ACEOF
7470 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
7476 cat >>confdefs.h <<_ACEOF
7477 #define STD_LIB "libsdcc"
7480 cat >>confdefs.h <<_ACEOF
7481 #define STD_INT_LIB "libint"
7484 cat >>confdefs.h <<_ACEOF
7485 #define STD_LONG_LIB "liblong"
7488 cat >>confdefs.h <<_ACEOF
7489 #define STD_FP_LIB "libfloat"
7492 cat >>confdefs.h <<_ACEOF
7493 #define STD_DS390_LIB "libds390"
7496 cat >>confdefs.h <<_ACEOF
7497 #define STD_DS400_LIB "libds400"
7500 cat >>confdefs.h <<_ACEOF
7501 #define STD_XA51_LIB "libxa51"
7505 # SDCC runtime environment variables
7506 sdcc_dir_name="SDCC_HOME"
7507 cat >>confdefs.h <<_ACEOF
7508 #define SDCC_DIR_NAME "${sdcc_dir_name}"
7512 sdcc_include_name="SDCC_INCLUDE"
7513 cat >>confdefs.h <<_ACEOF
7514 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
7518 sdcc_lib_name="SDCC_LIB"
7519 cat >>confdefs.h <<_ACEOF
7520 #define SDCC_LIB_NAME "${sdcc_lib_name}"
7524 # Now handle the port selection
7525 # ===========================================================================
7526 rm -f ports.all ports.build
7527 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
7528 if test "${enable_mcs51_port+set}" = set; then
7529 enableval="$enable_mcs51_port"
7532 echo mcs51 >>ports.all
7533 if test "$enable_mcs51_port" = "no"; then
7534 cat >>confdefs.h <<_ACEOF
7535 #define OPT_DISABLE_MCS51 1
7539 echo mcs51 >>ports.build
7540 cat >>confdefs.h <<_ACEOF
7541 #define OPT_DISABLE_MCS51 0
7546 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
7547 if test "${enable_gbz80_port+set}" = set; then
7548 enableval="$enable_gbz80_port"
7551 echo z80 >>ports.all
7552 if test "$enable_gbz80_port" = "no"; then
7553 cat >>confdefs.h <<_ACEOF
7554 #define OPT_DISABLE_GBZ80 1
7558 echo z80 >>ports.build
7559 cat >>confdefs.h <<_ACEOF
7560 #define OPT_DISABLE_GBZ80 0
7565 # Check whether --enable-z80-port or --disable-z80-port was given.
7566 if test "${enable_z80_port+set}" = set; then
7567 enableval="$enable_z80_port"
7570 echo z80 >>ports.all
7571 if test "$enable_z80_port" = "no"; then
7572 cat >>confdefs.h <<_ACEOF
7573 #define OPT_DISABLE_Z80 1
7577 echo z80 >>ports.build
7578 cat >>confdefs.h <<_ACEOF
7579 #define OPT_DISABLE_Z80 0
7584 # Check whether --enable-avr-port or --disable-avr-port was given.
7585 if test "${enable_avr_port+set}" = set; then
7586 enableval="$enable_avr_port"
7589 echo avr >>ports.all
7590 if test "$enable_avr_port" = "no"; then
7591 cat >>confdefs.h <<_ACEOF
7592 #define OPT_DISABLE_AVR 1
7596 echo avr >>ports.build
7597 cat >>confdefs.h <<_ACEOF
7598 #define OPT_DISABLE_AVR 0
7603 # Check whether --enable-ds390-port or --disable-ds390-port was given.
7604 if test "${enable_ds390_port+set}" = set; then
7605 enableval="$enable_ds390_port"
7608 echo ds390 >>ports.all
7609 if test "$enable_ds390_port" = "no"; then
7610 cat >>confdefs.h <<_ACEOF
7611 #define OPT_DISABLE_DS390 1
7614 cat >>confdefs.h <<_ACEOF
7615 #define OPT_DISABLE_TININative 1
7619 echo ds390 >>ports.build
7620 cat >>confdefs.h <<_ACEOF
7621 #define OPT_DISABLE_DS390 0
7624 cat >>confdefs.h <<_ACEOF
7625 #define OPT_DISABLE_TININative 0
7630 # Check whether --enable-ds400-port or --disable-ds400-port was given.
7631 if test "${enable_ds400_port+set}" = set; then
7632 enableval="$enable_ds400_port"
7635 echo ds400 >>ports.all
7636 if test "$enable_ds400_port" = "no"; then
7637 cat >>confdefs.h <<_ACEOF
7638 #define OPT_DISABLE_DS400 1
7642 echo ds400 >>ports.build
7643 cat >>confdefs.h <<_ACEOF
7644 #define OPT_DISABLE_DS400 0
7649 # Check whether --enable-pic-port or --disable-pic-port was given.
7650 if test "${enable_pic_port+set}" = set; then
7651 enableval="$enable_pic_port"
7654 echo pic >>ports.all
7655 if test "$enable_pic_port" = "no"; then
7656 cat >>confdefs.h <<_ACEOF
7657 #define OPT_DISABLE_PIC 1
7661 echo pic >>ports.build
7662 cat >>confdefs.h <<_ACEOF
7663 #define OPT_DISABLE_PIC 0
7668 # Check whether --enable-pic16-port or --disable-pic16-port was given.
7669 if test "${enable_pic16_port+set}" = set; then
7670 enableval="$enable_pic16_port"
7673 echo pic16 >>ports.all
7674 if test "$enable_pic16_port" = "no"; then
7675 cat >>confdefs.h <<_ACEOF
7676 #define OPT_DISABLE_PIC16 1
7680 echo pic16 >>ports.build
7681 cat >>confdefs.h <<_ACEOF
7682 #define OPT_DISABLE_PIC16 0
7687 # Check whether --enable-xa51-port or --disable-xa51-port was given.
7688 if test "${enable_xa51_port+set}" = set; then
7689 enableval="$enable_xa51_port"
7692 echo xa51 >>ports.all
7693 if test "$enable_xa51_port" = "no"; then
7694 cat >>confdefs.h <<_ACEOF
7695 #define OPT_DISABLE_XA51 1
7699 echo xa51 >>ports.build
7700 cat >>confdefs.h <<_ACEOF
7701 #define OPT_DISABLE_XA51 0
7706 # Check whether --enable-hc08-port or --disable-hc08-port was given.
7707 if test "${enable_hc08_port+set}" = set; then
7708 enableval="$enable_hc08_port"
7711 echo hc08 >>ports.all
7712 if test "$enable_hc08_port" = "no"; then
7713 cat >>confdefs.h <<_ACEOF
7714 #define OPT_DISABLE_HC08 1
7718 echo hc08 >>ports.build
7719 cat >>confdefs.h <<_ACEOF
7720 #define OPT_DISABLE_HC08 0
7725 # Check whether --enable-ucsim or --disable-ucsim was given.
7726 if test "${enable_ucsim+set}" = set; then
7727 enableval="$enable_ucsim"
7730 OPT_ENABLE_UCSIM=$enable_ucsim
7733 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
7734 if test "${enable_device_lib_build+set}" = set; then
7735 enableval="$enable_device_lib_build"
7738 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
7741 # Check whether --enable-packihx or --disable-packihx was given.
7742 if test "${enable_packihx+set}" = set; then
7743 enableval="$enable_packihx"
7746 OPT_ENABLE_PACKIHX=$enable_packihx
7749 # Check whether --enable-libgc or --disable-libgc was given.
7750 if test "${enable_libgc+set}" = set; then
7751 enableval="$enable_libgc"
7754 if test "$enable_libgc" = "yes"; then
7756 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7757 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7758 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 ac_check_lib_save_LIBS=$LIBS
7763 cat >conftest.$ac_ext <<_ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7770 /* Override any gcc2 internal prototype to avoid an error. */
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>conftest.er1
7789 grep -v '^ *+' conftest.er1 >conftest.err
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag"
7795 || test ! -s conftest.err'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; } &&
7801 { ac_try='test -s conftest$ac_exeext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 ac_cv_lib_gc_GC_malloc=yes
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_cv_lib_gc_GC_malloc=no
7814 rm -f conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$ac_check_lib_save_LIBS
7818 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7819 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7820 if test $ac_cv_lib_gc_GC_malloc = yes; then
7821 cat >>confdefs.h <<_ACEOF
7822 #define HAVE_LIBGC 1
7833 cat >>confdefs.h <<_ACEOF
7834 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7839 uniq ports.all ports
7841 uniq ports.build ports
7842 mv ports ports.build
7844 # Generating output files
7845 # ===========================================================================
7848 subdirs="$subdirs support/cpp2"
7852 subdirs="$subdirs packihx"
7856 subdirs="$subdirs sim/ucsim"
7860 subdirs="$subdirs device/lib/pic16"
7863 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 support/regression/Makefile Makefile.common:Makefile.common.in"
7865 cat >confcache <<\_ACEOF
7866 # This file is a shell script that caches the results of configure
7867 # tests run on this system so they can be shared between configure
7868 # scripts and configure runs, see configure's option --config-cache.
7869 # It is not useful on other systems. If it contains results you don't
7870 # want to keep, you may remove or edit it.
7872 # config.status only pays attention to the cache file if you give it
7873 # the --recheck option to rerun configure.
7875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7881 # The following way of writing the cache mishandles newlines in values,
7882 # but we know of no workaround that is simple, portable, and efficient.
7883 # So, don't put newlines in cache variables' values.
7884 # Ultrix sh set writes to stderr and can't be redirected directly,
7885 # and sets the high bit in the cache file unless we assign to the vars.
7888 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7890 # `set' does not quote correctly, so add quotes (double-quote
7891 # substitution turns \\\\ into \\, and sed turns \\ into \).
7894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7897 # `set' quotes correctly as required by POSIX, so do not add quotes.
7899 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7908 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7910 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7911 if test -w $cache_file; then
7912 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7913 cat confcache >$cache_file
7915 echo "not updating unwritable cache $cache_file"
7920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7921 # Let make expand exec_prefix.
7922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7924 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7925 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7926 # trailing colons and then remove the whole line if VPATH becomes empty
7927 # (actually we leave an empty line to preserve line numbers).
7928 if test "x$srcdir" = x.; then
7929 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7930 s/:*\$(srcdir):*/:/;
7931 s/:*\${srcdir}:*/:/;
7933 s/^\([^=]*=[ ]*\):*/\1/;
7939 DEFS=-DHAVE_CONFIG_H
7943 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7944 # 1. Remove the extension, and $U if already installed.
7945 ac_i=`echo "$ac_i" |
7946 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7948 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7949 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7953 LTLIBOBJS=$ac_ltlibobjs
7957 : ${CONFIG_STATUS=./config.status}
7958 ac_clean_files_save=$ac_clean_files
7959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7960 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7961 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7962 cat >$CONFIG_STATUS <<_ACEOF
7964 # Generated by $as_me.
7965 # Run this file to recreate the current configuration.
7966 # Compiler output produced by configure, useful for debugging
7967 # configure, is in config.log if it exists.
7972 SHELL=\${CONFIG_SHELL-$SHELL}
7975 cat >>$CONFIG_STATUS <<\_ACEOF
7976 ## --------------------- ##
7977 ## M4sh Initialization. ##
7978 ## --------------------- ##
7980 # Be Bourne compatible
7981 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7984 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7985 # is contrary to our usage. Disable this feature.
7986 alias -g '${1+"$@"}'='"$@"'
7987 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7990 DUALCASE=1; export DUALCASE # for MKS sh
7992 # Support unset when possible.
7993 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8000 # Work around bugs in pre-3.0 UWIN ksh.
8001 $as_unset ENV MAIL MAILPATH
8008 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8009 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8010 LC_TELEPHONE LC_TIME
8012 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8013 eval $as_var=C; export $as_var
8019 # Required to use basename.
8020 if expr a : '\(a\)' >/dev/null 2>&1; then
8026 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8027 as_basename=basename
8033 # Name of the executable.
8034 as_me=`$as_basename "$0" ||
8035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8036 X"$0" : 'X\(//\)$' \| \
8037 X"$0" : 'X\(/\)$' \| \
8038 . : '\(.\)' 2>/dev/null ||
8040 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8041 /^X\/\(\/\/\)$/{ s//\1/; q; }
8042 /^X\/\(\/\).*/{ s//\1/; q; }
8046 # PATH needs CR, and LINENO needs CR and PATH.
8047 # Avoid depending upon Character Ranges.
8048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8051 as_cr_digits='0123456789'
8052 as_cr_alnum=$as_cr_Letters$as_cr_digits
8054 # The user is always right.
8055 if test "${PATH_SEPARATOR+set}" != set; then
8056 echo "#! /bin/sh" >conf$$.sh
8057 echo "exit 0" >>conf$$.sh
8059 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8070 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8071 test "x$as_lineno_1" != "x$as_lineno_2" &&
8072 test "x$as_lineno_3" = "x$as_lineno_2" || {
8073 # Find who we are. Look in the path if we contain no path at all
8076 *[\\/]* ) as_myself=$0 ;;
8077 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir=.
8082 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8087 # We did not find ourselves, most probably we were run as `sh COMMAND'
8088 # in which case we are not to be found in the path.
8089 if test "x$as_myself" = x; then
8092 if test ! -f "$as_myself"; then
8093 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8094 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8095 { (exit 1); exit 1; }; }
8097 case $CONFIG_SHELL in
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8103 test -z "$as_dir" && as_dir=.
8104 for as_base in sh bash ksh sh5; do
8107 if ("$as_dir/$as_base" -c '
8110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8111 test "x$as_lineno_1" != "x$as_lineno_2" &&
8112 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8113 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8114 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8115 CONFIG_SHELL=$as_dir/$as_base
8117 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8125 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8126 # uniformly replaced by the line number. The first 'sed' inserts a
8127 # line-number line before each line; the second 'sed' does the real
8128 # work. The second script uses 'N' to pair each line-number line
8129 # with the numbered line, and appends trailing '-' during
8130 # substitution so that $LINENO is not a special case at line end.
8131 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8132 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8133 sed '=' <$as_myself |
8138 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8141 s,^['$as_cr_digits']*\n,,
8143 chmod +x $as_me.lineno ||
8144 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8145 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8146 { (exit 1); exit 1; }; }
8148 # Don't try to exec as it changes $[0], causing all sort of problems
8149 # (the dirname of $[0] is not the place where we might find the
8150 # original and so on. Autoconf is especially sensible to this).
8152 # Exit status is that of the last command.
8157 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8158 *c*,-n*) ECHO_N= ECHO_C='
8160 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8161 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8164 if expr a : '\(a\)' >/dev/null 2>&1; then
8170 rm -f conf$$ conf$$.exe conf$$.file
8172 if ln -s conf$$.file conf$$ 2>/dev/null; then
8173 # We could just check for DJGPP; but this test a) works b) is more generic
8174 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8175 if test -f conf$$.exe; then
8176 # Don't use ln at all; we don't have any links
8181 elif ln conf$$.file conf$$ 2>/dev/null; then
8186 rm -f conf$$ conf$$.exe conf$$.file
8188 if mkdir -p . 2>/dev/null; then
8191 test -d ./-p && rmdir ./-p
8195 as_executable_p="test -f"
8197 # Sed expression to map a string onto a valid CPP name.
8198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8200 # Sed expression to map a string onto a valid variable name.
8201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8205 # We need space, tab and new line, in precisely that order.
8215 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8216 # report actual input values of CONFIG_FILES etc. instead of their
8217 # values after options handling. Logging --version etc. is OK.
8221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8222 ## Running $as_me. ##
8227 This file was extended by $as_me, which was
8228 generated by GNU Autoconf 2.59. Invocation command line was
8230 CONFIG_FILES = $CONFIG_FILES
8231 CONFIG_HEADERS = $CONFIG_HEADERS
8232 CONFIG_LINKS = $CONFIG_LINKS
8233 CONFIG_COMMANDS = $CONFIG_COMMANDS
8237 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8241 # Files that config.status was made for.
8242 if test -n "$ac_config_files"; then
8243 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8246 if test -n "$ac_config_headers"; then
8247 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8250 if test -n "$ac_config_links"; then
8251 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8254 if test -n "$ac_config_commands"; then
8255 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8258 cat >>$CONFIG_STATUS <<\_ACEOF
8261 \`$as_me' instantiates files from templates according to the
8262 current configuration.
8264 Usage: $0 [OPTIONS] [FILE]...
8266 -h, --help print this help, then exit
8267 -V, --version print version number, then exit
8268 -q, --quiet do not print progress messages
8269 -d, --debug don't remove temporary files
8270 --recheck update $as_me by reconfiguring in the same conditions
8271 --file=FILE[:TEMPLATE]
8272 instantiate the configuration file FILE
8273 --header=FILE[:TEMPLATE]
8274 instantiate the configuration header FILE
8276 Configuration files:
8279 Configuration headers:
8282 Report bugs to <bug-autoconf@gnu.org>."
8285 cat >>$CONFIG_STATUS <<_ACEOF
8288 configured by $0, generated by GNU Autoconf 2.59,
8289 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8291 Copyright (C) 2003 Free Software Foundation, Inc.
8292 This config.status script is free software; the Free Software Foundation
8293 gives unlimited permission to copy, distribute and modify it."
8298 cat >>$CONFIG_STATUS <<\_ACEOF
8299 # If no file are specified by the user, then we need to provide default
8300 # value. By we need to know if files were specified by the user.
8306 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8307 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8315 *) # This is not an option, so the user has probably given explicit
8318 ac_need_defaults=false;;
8322 # Handling of the options.
8324 cat >>$CONFIG_STATUS <<\_ACEOF
8325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8327 --version | --vers* | -V )
8328 echo "$ac_cs_version"; exit 0 ;;
8330 # Conflict between --help and --header
8331 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8332 Try \`$0 --help' for more information." >&5
8333 echo "$as_me: error: ambiguous option: $1
8334 Try \`$0 --help' for more information." >&2;}
8335 { (exit 1); exit 1; }; };;
8336 --help | --hel | -h )
8337 echo "$ac_cs_usage"; exit 0 ;;
8338 --debug | --d* | -d )
8340 --file | --fil | --fi | --f )
8342 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8343 ac_need_defaults=false;;
8344 --header | --heade | --head | --hea )
8346 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8347 ac_need_defaults=false;;
8348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8349 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8353 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8354 Try \`$0 --help' for more information." >&5
8355 echo "$as_me: error: unrecognized option: $1
8356 Try \`$0 --help' for more information." >&2;}
8357 { (exit 1); exit 1; }; } ;;
8359 *) ac_config_targets="$ac_config_targets $1" ;;
8365 ac_configure_extra_args=
8367 if $ac_cs_silent; then
8369 ac_configure_extra_args="$ac_configure_extra_args --silent"
8373 cat >>$CONFIG_STATUS <<_ACEOF
8374 if \$ac_cs_recheck; then
8375 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8376 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8385 cat >>$CONFIG_STATUS <<\_ACEOF
8386 for ac_config_target in $ac_config_targets
8388 case "$ac_config_target" in
8389 # Handling of arguments.
8390 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8391 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8392 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8393 "as/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8394 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8395 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8396 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
8397 "support/regression/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8398 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8399 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8400 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8401 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8402 { (exit 1); exit 1; }; };;
8406 # If the user did not use the arguments to specify the items to instantiate,
8407 # then the envvar interface is used. Set only those that are not.
8408 # We use the long form for the default assignment because of an extremely
8409 # bizarre bug on SunOS 4.1.3.
8410 if $ac_need_defaults; then
8411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8412 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8415 # Have a temporary directory for convenience. Make it in the build tree
8416 # simply because there is no reason to put it here, and in addition,
8417 # creating and moving files from /tmp can sometimes cause problems.
8418 # Create a temporary directory, and hook for its removal unless debugging.
8421 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8422 trap '{ (exit 1); exit 1; }' 1 2 13 15
8425 # Create a (secure) tmp directory for tmp files.
8428 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8429 test -n "$tmp" && test -d "$tmp"
8432 tmp=./confstat$$-$RANDOM
8433 (umask 077 && mkdir $tmp)
8436 echo "$me: cannot create a temporary directory in ." >&2
8437 { (exit 1); exit 1; }
8442 cat >>$CONFIG_STATUS <<_ACEOF
8445 # CONFIG_FILES section.
8448 # No need to generate the scripts if there are no CONFIG_FILES.
8449 # This happens for instance when ./config.status config.h
8450 if test -n "\$CONFIG_FILES"; then
8451 # Protect against being on the right side of a sed subst in config.status.
8452 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8453 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8454 s,@SHELL@,$SHELL,;t t
8455 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8456 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8457 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8458 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8459 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8460 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8461 s,@exec_prefix@,$exec_prefix,;t t
8462 s,@prefix@,$prefix,;t t
8463 s,@program_transform_name@,$program_transform_name,;t t
8464 s,@bindir@,$bindir,;t t
8465 s,@sbindir@,$sbindir,;t t
8466 s,@libexecdir@,$libexecdir,;t t
8467 s,@datadir@,$datadir,;t t
8468 s,@sysconfdir@,$sysconfdir,;t t
8469 s,@sharedstatedir@,$sharedstatedir,;t t
8470 s,@localstatedir@,$localstatedir,;t t
8471 s,@libdir@,$libdir,;t t
8472 s,@includedir@,$includedir,;t t
8473 s,@oldincludedir@,$oldincludedir,;t t
8474 s,@infodir@,$infodir,;t t
8475 s,@mandir@,$mandir,;t t
8476 s,@build_alias@,$build_alias,;t t
8477 s,@host_alias@,$host_alias,;t t
8478 s,@target_alias@,$target_alias,;t t
8480 s,@ECHO_C@,$ECHO_C,;t t
8481 s,@ECHO_N@,$ECHO_N,;t t
8482 s,@ECHO_T@,$ECHO_T,;t t
8485 s,@VERSION@,$VERSION,;t t
8486 s,@VERSIONHI@,$VERSIONHI,;t t
8487 s,@VERSIONLO@,$VERSIONLO,;t t
8488 s,@VERSIONP@,$VERSIONP,;t t
8490 s,@CFLAGS@,$CFLAGS,;t t
8491 s,@LDFLAGS@,$LDFLAGS,;t t
8492 s,@CPPFLAGS@,$CPPFLAGS,;t t
8493 s,@ac_ct_CC@,$ac_ct_CC,;t t
8494 s,@EXEEXT@,$EXEEXT,;t t
8495 s,@OBJEXT@,$OBJEXT,;t t
8497 s,@CXXFLAGS@,$CXXFLAGS,;t t
8498 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8500 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8501 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8502 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8503 s,@RANLIB@,$RANLIB,;t t
8504 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8506 s,@LEXLIB@,$LEXLIB,;t t
8507 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8509 s,@AUTOCONF@,$AUTOCONF,;t t
8510 s,@STRIP@,$STRIP,;t t
8515 s,@LATEX@,$LATEX,;t t
8516 s,@LATEX2HTML@,$LATEX2HTML,;t t
8517 s,@PDFLATEX@,$PDFLATEX,;t t
8518 s,@DVIPDF@,$DVIPDF,;t t
8519 s,@EGREP@,$EGREP,;t t
8520 s,@M_OR_MM@,$M_OR_MM,;t t
8521 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
8522 s,@include_dir_suffix@,$include_dir_suffix,;t t
8523 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
8524 s,@docdir@,$docdir,;t t
8525 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
8526 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
8527 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
8528 s,@subdirs@,$subdirs,;t t
8529 s,@LIBOBJS@,$LIBOBJS,;t t
8530 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8535 cat >>$CONFIG_STATUS <<\_ACEOF
8536 # Split the substitutions into bite-sized pieces for seds with
8537 # small command number limits, like on Digital OSF/1 and HP-UX.
8539 ac_sed_frag=1 # Number of current file.
8540 ac_beg=1 # First line for current file.
8541 ac_end=$ac_max_sed_lines # Line after last line for current file.
8544 while $ac_more_lines; do
8545 if test $ac_beg -gt 1; then
8546 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8548 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8550 if test ! -s $tmp/subs.frag; then
8553 # The purpose of the label and of the branching condition is to
8554 # speed up the sed processing (if there are no `@' at all, there
8555 # is no need to browse any of the substitutions).
8556 # These are the two extra sed commands mentioned above.
8558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8559 if test -z "$ac_sed_cmds"; then
8560 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8562 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8564 ac_sed_frag=`expr $ac_sed_frag + 1`
8566 ac_end=`expr $ac_end + $ac_max_sed_lines`
8569 if test -z "$ac_sed_cmds"; then
8572 fi # test -n "$CONFIG_FILES"
8575 cat >>$CONFIG_STATUS <<\_ACEOF
8576 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8579 - | *:- | *:-:* ) # input from stdin
8581 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8582 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8583 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8585 * ) ac_file_in=$ac_file.in ;;
8588 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8589 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8591 X"$ac_file" : 'X\(//\)[^/]' \| \
8592 X"$ac_file" : 'X\(//\)$' \| \
8593 X"$ac_file" : 'X\(/\)' \| \
8594 . : '\(.\)' 2>/dev/null ||
8596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8598 /^X\(\/\/\)$/{ s//\1/; q; }
8599 /^X\(\/\).*/{ s//\1/; q; }
8601 { if $as_mkdir_p; then
8606 while test ! -d "$as_dir"; do
8607 as_dirs="$as_dir $as_dirs"
8608 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8610 X"$as_dir" : 'X\(//\)[^/]' \| \
8611 X"$as_dir" : 'X\(//\)$' \| \
8612 X"$as_dir" : 'X\(/\)' \| \
8613 . : '\(.\)' 2>/dev/null ||
8615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8617 /^X\(\/\/\)$/{ s//\1/; q; }
8618 /^X\(\/\).*/{ s//\1/; q; }
8621 test ! -n "$as_dirs" || mkdir $as_dirs
8622 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8624 { (exit 1); exit 1; }; }; }
8628 if test "$ac_dir" != .; then
8629 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8630 # A "../" for each directory in $ac_dir_suffix.
8631 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8633 ac_dir_suffix= ac_top_builddir=
8637 .) # No --srcdir option. We are building in place.
8639 if test -z "$ac_top_builddir"; then
8642 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8644 [\\/]* | ?:[\\/]* ) # Absolute path.
8645 ac_srcdir=$srcdir$ac_dir_suffix;
8646 ac_top_srcdir=$srcdir ;;
8648 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8649 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8652 # Do not use `cd foo && pwd` to compute absolute paths, because
8653 # the directories may not exist.
8655 .) ac_abs_builddir="$ac_dir";;
8658 .) ac_abs_builddir=`pwd`;;
8659 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8660 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8663 case $ac_abs_builddir in
8664 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8666 case ${ac_top_builddir}. in
8667 .) ac_abs_top_builddir=$ac_abs_builddir;;
8668 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8669 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8672 case $ac_abs_builddir in
8673 .) ac_abs_srcdir=$ac_srcdir;;
8676 .) ac_abs_srcdir=$ac_abs_builddir;;
8677 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8678 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8681 case $ac_abs_builddir in
8682 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8684 case $ac_top_srcdir in
8685 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8686 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8687 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8694 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8697 if test x"$ac_file" != x-; then
8698 { echo "$as_me:$LINENO: creating $ac_file" >&5
8699 echo "$as_me: creating $ac_file" >&6;}
8702 # Let's still pretend it is `configure' which instantiates (i.e., don't
8703 # use $as_me), people would be surprised to read:
8704 # /* config.h. Generated by config.status. */
8705 if test x"$ac_file" = x-; then
8708 configure_input="$ac_file. "
8710 configure_input=$configure_input"Generated from `echo $ac_file_in |
8711 sed 's,.*/,,'` by configure."
8713 # First look for the input files in the build tree, otherwise in the
8715 ac_file_inputs=`IFS=:
8716 for f in $ac_file_in; do
8718 -) echo $tmp/stdin ;;
8720 # Absolute (can't be DOS-style, as IFS=:)
8721 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8722 echo "$as_me: error: cannot find input file: $f" >&2;}
8723 { (exit 1); exit 1; }; }
8726 if test -f "$f"; then
8729 elif test -f "$srcdir/$f"; then
8734 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8735 echo "$as_me: error: cannot find input file: $f" >&2;}
8736 { (exit 1); exit 1; }; }
8739 done` || { (exit 1); exit 1; }
8741 cat >>$CONFIG_STATUS <<_ACEOF
8745 cat >>$CONFIG_STATUS <<\_ACEOF
8747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8748 s,@configure_input@,$configure_input,;t t
8749 s,@srcdir@,$ac_srcdir,;t t
8750 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8751 s,@top_srcdir@,$ac_top_srcdir,;t t
8752 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8753 s,@builddir@,$ac_builddir,;t t
8754 s,@abs_builddir@,$ac_abs_builddir,;t t
8755 s,@top_builddir@,$ac_top_builddir,;t t
8756 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8757 s,@INSTALL@,$ac_INSTALL,;t t
8758 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8760 if test x"$ac_file" != x-; then
8761 mv $tmp/out $ac_file
8769 cat >>$CONFIG_STATUS <<\_ACEOF
8772 # CONFIG_HEADER section.
8775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8778 # ac_d sets the value in "#define NAME VALUE" lines.
8779 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8780 ac_dB='[ ].*$,\1#\2'
8783 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8784 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8785 ac_uB='$,\1#\2define\3'
8789 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8792 - | *:- | *:-:* ) # input from stdin
8794 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8795 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8796 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8797 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8798 * ) ac_file_in=$ac_file.in ;;
8801 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8802 echo "$as_me: creating $ac_file" >&6;}
8804 # First look for the input files in the build tree, otherwise in the
8806 ac_file_inputs=`IFS=:
8807 for f in $ac_file_in; do
8809 -) echo $tmp/stdin ;;
8811 # Absolute (can't be DOS-style, as IFS=:)
8812 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8813 echo "$as_me: error: cannot find input file: $f" >&2;}
8814 { (exit 1); exit 1; }; }
8815 # Do quote $f, to prevent DOS paths from being IFS'd.
8818 if test -f "$f"; then
8821 elif test -f "$srcdir/$f"; then
8826 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8827 echo "$as_me: error: cannot find input file: $f" >&2;}
8828 { (exit 1); exit 1; }; }
8831 done` || { (exit 1); exit 1; }
8832 # Remove the trailing spaces.
8833 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8837 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8838 # `conftest.undefs', that substitutes the proper values into
8839 # config.h.in to produce config.h. The first handles `#define'
8840 # templates, and the second `#undef' templates.
8841 # And first: Protect against being on the right side of a sed subst in
8842 # config.status. Protect against being in an unquoted here document
8844 rm -f conftest.defines conftest.undefs
8845 # Using a here document instead of a string reduces the quoting nightmare.
8846 # Putting comments in sed scripts is not portable.
8848 # `end' is used to avoid that the second main sed command (meant for
8849 # 0-ary CPP macros) applies to n-ary macro definitions.
8850 # See the Autoconf documentation for `clear'.
8851 cat >confdef2sed.sed <<\_ACEOF
8856 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8858 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8861 # If some macros were called several times there might be several times
8862 # the same #defines, which is useless. Nevertheless, we may not want to
8863 # sort them, since we want the *last* AC-DEFINE to be honored.
8864 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8865 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8866 rm -f confdef2sed.sed
8868 # This sed command replaces #undef with comments. This is necessary, for
8869 # example, in the case of _POSIX_SOURCE, which is predefined and required
8870 # on some systems where configure will not decide to define it.
8871 cat >>conftest.undefs <<\_ACEOF
8872 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8875 # Break up conftest.defines because some shells have a limit on the size
8876 # of here documents, and old seds have small limits too (100 cmds).
8877 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8878 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8879 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8880 echo ' :' >>$CONFIG_STATUS
8882 while grep . conftest.defines >/dev/null
8884 # Write a limited-size here document to $tmp/defines.sed.
8885 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8886 # Speed up: don't consider the non `#define' lines.
8887 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8888 # Work around the forget-to-reset-the-flag bug.
8889 echo 't clr' >>$CONFIG_STATUS
8890 echo ': clr' >>$CONFIG_STATUS
8891 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8893 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8897 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8898 rm -f conftest.defines
8899 mv conftest.tail conftest.defines
8901 rm -f conftest.defines
8902 echo ' fi # grep' >>$CONFIG_STATUS
8903 echo >>$CONFIG_STATUS
8905 # Break up conftest.undefs because some shells have a limit on the size
8906 # of here documents, and old seds have small limits too (100 cmds).
8907 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8909 while grep . conftest.undefs >/dev/null
8911 # Write a limited-size here document to $tmp/undefs.sed.
8912 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8913 # Speed up: don't consider the non `#undef'
8914 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8915 # Work around the forget-to-reset-the-flag bug.
8916 echo 't clr' >>$CONFIG_STATUS
8917 echo ': clr' >>$CONFIG_STATUS
8918 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8920 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8924 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8925 rm -f conftest.undefs
8926 mv conftest.tail conftest.undefs
8928 rm -f conftest.undefs
8930 cat >>$CONFIG_STATUS <<\_ACEOF
8931 # Let's still pretend it is `configure' which instantiates (i.e., don't
8932 # use $as_me), people would be surprised to read:
8933 # /* config.h. Generated by config.status. */
8934 if test x"$ac_file" = x-; then
8935 echo "/* Generated by configure. */" >$tmp/config.h
8937 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8939 cat $tmp/in >>$tmp/config.h
8941 if test x"$ac_file" != x-; then
8942 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8944 echo "$as_me: $ac_file is unchanged" >&6;}
8946 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8948 X"$ac_file" : 'X\(//\)[^/]' \| \
8949 X"$ac_file" : 'X\(//\)$' \| \
8950 X"$ac_file" : 'X\(/\)' \| \
8951 . : '\(.\)' 2>/dev/null ||
8953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8955 /^X\(\/\/\)$/{ s//\1/; q; }
8956 /^X\(\/\).*/{ s//\1/; q; }
8958 { if $as_mkdir_p; then
8963 while test ! -d "$as_dir"; do
8964 as_dirs="$as_dir $as_dirs"
8965 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8967 X"$as_dir" : 'X\(//\)[^/]' \| \
8968 X"$as_dir" : 'X\(//\)$' \| \
8969 X"$as_dir" : 'X\(/\)' \| \
8970 . : '\(.\)' 2>/dev/null ||
8972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8974 /^X\(\/\/\)$/{ s//\1/; q; }
8975 /^X\(\/\).*/{ s//\1/; q; }
8978 test ! -n "$as_dirs" || mkdir $as_dirs
8979 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8980 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8981 { (exit 1); exit 1; }; }; }
8984 mv $tmp/config.h $ac_file
8993 cat >>$CONFIG_STATUS <<\_ACEOF
8995 { (exit 0); exit 0; }
8997 chmod +x $CONFIG_STATUS
8998 ac_clean_files=$ac_clean_files_save
9001 # configure is writing to config.log, and then calls config.status.
9002 # config.status does its own redirection, appending to config.log.
9003 # Unfortunately, on DOS this fails, as config.log is still kept open
9004 # by configure, so config.status won't be able to write to it; its
9005 # output is simply discarded. So we exec the FD to /dev/null,
9006 # effectively closing config.log, so it can be properly (re)opened and
9007 # appended to by config.status. When coming back to configure, we
9008 # need to make the FD available again.
9009 if test "$no_create" != yes; then
9011 ac_config_status_args=
9012 test "$silent" = yes &&
9013 ac_config_status_args="$ac_config_status_args --quiet"
9015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9018 # would make configure fail if this is the last instruction.
9019 $ac_cs_success || { (exit 1); exit 1; }
9023 # CONFIG_SUBDIRS section.
9025 if test "$no_recursion" != yes; then
9027 # Remove --cache-file and --srcdir arguments so they do not pile up.
9028 ac_sub_configure_args=
9030 for ac_arg in $ac_configure_args; do
9031 if test -n "$ac_prev"; then
9036 -cache-file | --cache-file | --cache-fil | --cache-fi \
9037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9038 ac_prev=cache_file ;;
9039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9043 --config-cache | -C)
9045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9053 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9057 # Always prepend --prefix to ensure using the same prefix
9058 # in subdir configurations.
9059 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
9062 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9064 # Do not complain, so a configure script can configure whichever
9065 # parts of a large source tree are present.
9066 test -d $srcdir/$ac_dir || continue
9068 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
9069 echo "$as_me: configuring in $ac_dir" >&6;}
9070 { if $as_mkdir_p; then
9075 while test ! -d "$as_dir"; do
9076 as_dirs="$as_dir $as_dirs"
9077 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9079 X"$as_dir" : 'X\(//\)[^/]' \| \
9080 X"$as_dir" : 'X\(//\)$' \| \
9081 X"$as_dir" : 'X\(/\)' \| \
9082 . : '\(.\)' 2>/dev/null ||
9084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9086 /^X\(\/\/\)$/{ s//\1/; q; }
9087 /^X\(\/\).*/{ s//\1/; q; }
9090 test ! -n "$as_dirs" || mkdir $as_dirs
9091 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9092 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9093 { (exit 1); exit 1; }; }; }
9097 if test "$ac_dir" != .; then
9098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9099 # A "../" for each directory in $ac_dir_suffix.
9100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9102 ac_dir_suffix= ac_top_builddir=
9106 .) # No --srcdir option. We are building in place.
9108 if test -z "$ac_top_builddir"; then
9111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9113 [\\/]* | ?:[\\/]* ) # Absolute path.
9114 ac_srcdir=$srcdir$ac_dir_suffix;
9115 ac_top_srcdir=$srcdir ;;
9117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9118 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9121 # Do not use `cd foo && pwd` to compute absolute paths, because
9122 # the directories may not exist.
9124 .) ac_abs_builddir="$ac_dir";;
9127 .) ac_abs_builddir=`pwd`;;
9128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9129 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9132 case $ac_abs_builddir in
9133 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9135 case ${ac_top_builddir}. in
9136 .) ac_abs_top_builddir=$ac_abs_builddir;;
9137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9141 case $ac_abs_builddir in
9142 .) ac_abs_srcdir=$ac_srcdir;;
9145 .) ac_abs_srcdir=$ac_abs_builddir;;
9146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9150 case $ac_abs_builddir in
9151 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9153 case $ac_top_srcdir in
9154 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9163 # Check for guested configure; otherwise get Cygnus style configure.
9164 if test -f $ac_srcdir/configure.gnu; then
9165 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
9166 elif test -f $ac_srcdir/configure; then
9167 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
9168 elif test -f $ac_srcdir/configure.in; then
9169 ac_sub_configure=$ac_configure
9171 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9176 # The recursion is here.
9177 if test -n "$ac_sub_configure"; then
9178 # Make the cache file name correct relative to the subdirectory.
9180 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9182 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
9185 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9186 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9187 # The eval makes quoting arguments work.
9188 eval $ac_sub_configure $ac_sub_configure_args \
9189 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
9190 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9191 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9192 { (exit 1); exit 1; }; }
9200 # End of configure/configure.in