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_subdirs_all="$ac_subdirs_all device/lib/pic"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK VERSION VERSIONHI VERSIONLO VERSIONP CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC AUTOCONF STRIP AS CP LYX LATEX LATEX2HTML PDFLATEX DVIPDF EGREP M_OR_MM sdccconf_h_dir_separator include_dir_suffix lib_dir_suffix docdir OPT_ENABLE_UCSIM OPT_ENABLE_DEVICE_LIB_BUILD OPT_ENABLE_PACKIHX subdirs LIBOBJS LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CXX_set=${CXX+set}
775 ac_env_CXX_value=$CXX
776 ac_cv_env_CXX_set=${CXX+set}
777 ac_cv_env_CXX_value=$CXX
778 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_env_CXXFLAGS_value=$CXXFLAGS
780 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
782 ac_env_CPP_set=${CPP+set}
783 ac_env_CPP_value=$CPP
784 ac_cv_env_CPP_set=${CPP+set}
785 ac_cv_env_CPP_value=$CPP
786 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
787 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
788 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
789 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
790 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
791 ac_env_include_dir_suffix_value=$include_dir_suffix
792 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
793 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
794 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
795 ac_env_lib_dir_suffix_value=$lib_dir_suffix
796 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
797 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
798 ac_env_docdir_set=${docdir+set}
799 ac_env_docdir_value=$docdir
800 ac_cv_env_docdir_set=${docdir+set}
801 ac_cv_env_docdir_value=$docdir
804 # Report the --help message.
806 if test "$ac_init_help" = "long"; then
807 # Omit some internal or obsolete options to make the list less imposing.
808 # This message is too long to be a string in the A/UX 3.1 sh.
810 \`configure' configures this package to adapt to many kinds of systems.
812 Usage: $0 [OPTION]... [VAR=VALUE]...
814 To assign environment variables (e.g., CC, CFLAGS...), specify them as
815 VAR=VALUE. See below for descriptions of some of the useful variables.
817 Defaults for the options are specified in brackets.
820 -h, --help display this help and exit
821 --help=short display options specific to this package
822 --help=recursive display the short help of all the included packages
823 -V, --version display version information and exit
824 -q, --quiet, --silent do not print \`checking...' messages
825 --cache-file=FILE cache test results in FILE [disabled]
826 -C, --config-cache alias for \`--cache-file=config.cache'
827 -n, --no-create do not create output files
828 --srcdir=DIR find the sources in DIR [configure dir or \`..']
833 Installation directories:
834 --prefix=PREFIX install architecture-independent files in PREFIX
836 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
839 By default, \`make install' will install all the files in
840 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
841 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
842 for instance \`--prefix=\$HOME'.
844 For better control, use the options below.
846 Fine tuning of the installation directories:
847 --bindir=DIR user executables [EPREFIX/bin]
848 --sbindir=DIR system admin executables [EPREFIX/sbin]
849 --libexecdir=DIR program executables [EPREFIX/libexec]
850 --datadir=DIR read-only architecture-independent data [PREFIX/share]
851 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
852 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
853 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
854 --libdir=DIR object code libraries [EPREFIX/lib]
855 --includedir=DIR C header files [PREFIX/include]
856 --oldincludedir=DIR C header files for non-gcc [/usr/include]
857 --infodir=DIR info documentation [PREFIX/info]
858 --mandir=DIR man documentation [PREFIX/man]
864 --program-prefix=PREFIX prepend PREFIX to installed program names
865 --program-suffix=SUFFIX append SUFFIX to installed program names
866 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
870 if test -n "$ac_init_help"; then
875 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
876 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
877 --disable-mcs51-port Excludes the Intel mcs51 port
878 --disable-gbz80-port Excludes the Gameboy gbz80 port
879 --disable-z80-port Excludes the z80 port
880 --disable-avr-port Excludes the AVR port
881 --disable-ds390-port Excludes the DS390 port
882 --disable-ds400-port Excludes the DS400 port
883 --disable-pic-port Excludes the PIC port
884 --disable-pic16-port Excludes the PIC port
885 --disable-xa51-port Excludes the XA51 port
886 --disable-hc08-port Excludes the HC08 port
887 --disable-ucsim Disables configuring and building of ucsim
888 --disable-device-lib-build
889 Disables automatically building device libraries
890 --disable-packihx Disables building packihx
891 --enable-libgc Use the Bohem memory allocator. Lower runtime
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CXX C++ compiler command
902 CXXFLAGS C++ compiler flags
904 sdccconf_h_dir_separator
905 needed in sdccconf.h: either "/" (default) or "\\"
907 appended to datadir to define SDCC's include directory
909 appended to datadir to define SDCC's library root directory
910 docdir documentation installation directory
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 ac_dir_suffix= ac_top_builddir=
934 .) # No --srcdir option. We are building in place.
936 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
952 .) ac_abs_builddir="$ac_dir";;
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_must_keep_next=false
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 -* ) ac_must_keep_next=true ;;
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1140 # The following way of writing the cache mishandles newlines in values,
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1163 for ac_var in $ac_subst_vars
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -n "$ac_subst_files"; then
1177 for ac_var in $ac_subst_files
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1185 if test -s confdefs.h; then
1192 sed "/^$/d" confdefs.h | sort
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 # Predefined preprocessor variables.
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1275 # Check that the precious variables saved in the cache have kept the same
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1297 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1298 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1299 echo "$as_me: former value: $ac_old_val" >&2;}
1300 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1301 echo "$as_me: current value: $ac_new_val" >&2;}
1302 ac_cache_corrupted=:
1305 # Pass precious variables to config.status.
1306 if test "$ac_new_set" = set; then
1308 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310 *) ac_arg=$ac_var=$ac_new_val ;;
1312 case " $ac_configure_args " in
1313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1318 if $ac_cache_corrupted; then
1319 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323 { (exit 1); exit 1; }; }
1327 ac_cpp='$CPP $CPPFLAGS'
1328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1351 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1354 for ac_prog in gawk mawk nawk awk
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_AWK+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 if test -n "$AWK"; then
1364 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 test -z "$as_dir" && as_dir=.
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_AWK="$ac_prog"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383 if test -n "$AWK"; then
1384 echo "$as_me:$LINENO: result: $AWK" >&5
1385 echo "${ECHO_T}$AWK" >&6
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$AWK" && break
1395 echo "$as_me:$LINENO: checking version of the package" >&5
1396 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1397 if test -f .version; then
1398 VERSION=`cat .version`
1399 elif test -f ../.version; then
1400 VERSION=`cat ../.version`
1404 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1405 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1406 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1408 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1409 echo "${ECHO_T}${VERSION}" >&6
1414 cat >>confdefs.h <<_ACEOF
1415 #define SDCC_VERSION_LO ${VERSIONLO}
1418 cat >>confdefs.h <<_ACEOF
1419 #define SDCC_VERSION_HI ${VERSIONHI}
1422 cat >>confdefs.h <<_ACEOF
1423 #define SDCC_VERSION_P ${VERSIONP}
1426 cat >>confdefs.h <<_ACEOF
1427 #define SDCC_VERSION_STR "${VERSION}"
1430 test "$program_prefix" != NONE &&
1431 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1432 # Use a double $ so make ignores it.
1433 test "$program_suffix" != NONE &&
1434 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1435 # Double any \ or $. echo might interpret backslashes.
1436 # By default was `s,x,x', remove it if useless.
1437 cat <<\_ACEOF >conftest.sed
1438 s/[\\$]/&&/g;s/;s,x,x,$//
1440 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1443 sdcc_cv_version=$VERSION
1444 sdcc_cv_versionhi=$VERSIONHI
1445 sdcc_cv_versionlo=$VERSIONLO
1446 sdcc_cv_versionp=$VERSIONP
1450 # ===========================================================================
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456 if test -n "$ac_tool_prefix"; then
1457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1459 echo "$as_me:$LINENO: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_CC+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 if test -n "$CC"; then
1465 ac_cv_prog_CC="$CC" # Let the user override the test.
1467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 test -z "$as_dir" && as_dir=.
1472 for ac_exec_ext in '' $ac_executable_extensions; do
1473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484 if test -n "$CC"; then
1485 echo "$as_me:$LINENO: result: $CC" >&5
1486 echo "${ECHO_T}$CC" >&6
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1493 if test -z "$ac_cv_prog_CC"; then
1495 # Extract the first word of "gcc", so it can be a program name with args.
1496 set dummy gcc; ac_word=$2
1497 echo "$as_me:$LINENO: checking for $ac_word" >&5
1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 if test -n "$ac_ct_CC"; then
1503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 test -z "$as_dir" && as_dir=.
1510 for ac_exec_ext in '' $ac_executable_extensions; do
1511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1512 ac_cv_prog_ac_ct_CC="gcc"
1513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1522 if test -n "$ac_ct_CC"; then
1523 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1524 echo "${ECHO_T}$ac_ct_CC" >&6
1526 echo "$as_me:$LINENO: result: no" >&5
1527 echo "${ECHO_T}no" >&6
1535 if test -z "$CC"; then
1536 if test -n "$ac_tool_prefix"; then
1537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1538 set dummy ${ac_tool_prefix}cc; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_CC+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 if test -n "$CC"; then
1545 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_CC="${ac_tool_prefix}cc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 if test -n "$CC"; then
1565 echo "$as_me:$LINENO: result: $CC" >&5
1566 echo "${ECHO_T}$CC" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1573 if test -z "$ac_cv_prog_CC"; then
1575 # Extract the first word of "cc", so it can be a program name with args.
1576 set dummy cc; ac_word=$2
1577 echo "$as_me:$LINENO: checking for $ac_word" >&5
1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 if test -n "$ac_ct_CC"; then
1583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir=.
1590 for ac_exec_ext in '' $ac_executable_extensions; do
1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_ac_ct_CC="cc"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1602 if test -n "$ac_ct_CC"; then
1603 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1604 echo "${ECHO_T}$ac_ct_CC" >&6
1606 echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 # Extract the first word of "cc", so it can be a program name with args.
1618 set dummy cc; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1636 ac_prog_rejected=yes
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 if test $ac_prog_rejected = yes; then
1647 # We found a bogon in the path, so make sure we never use it.
1648 set dummy $ac_cv_prog_CC
1650 if test $# != 0; then
1651 # We chose a different compiler from the bogus one.
1652 # However, it has the same basename, so the bogon will be chosen
1653 # first if we set CC to just the basename; use the full file name.
1655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1661 if test -n "$CC"; then
1662 echo "$as_me:$LINENO: result: $CC" >&5
1663 echo "${ECHO_T}$CC" >&6
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1670 if test -z "$CC"; then
1671 if test -n "$ac_tool_prefix"; then
1674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$CC"; then
1682 ac_cv_prog_CC="$CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 if test -n "$CC"; then
1702 echo "$as_me:$LINENO: result: $CC" >&5
1703 echo "${ECHO_T}$CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1709 test -n "$CC" && break
1712 if test -z "$CC"; then
1716 # Extract the first word of "$ac_prog", so it can be a program name with args.
1717 set dummy $ac_prog; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$ac_ct_CC"; then
1724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_ac_ct_CC="$ac_prog"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743 if test -n "$ac_ct_CC"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745 echo "${ECHO_T}$ac_ct_CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1751 test -n "$ac_ct_CC" && break
1760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1761 See \`config.log' for more details." >&5
1762 echo "$as_me: error: no acceptable C compiler found in \$PATH
1763 See \`config.log' for more details." >&2;}
1764 { (exit 1); exit 1; }; }
1766 # Provide some information about the compiler.
1767 echo "$as_me:$LINENO:" \
1768 "checking for C compiler version" >&5
1769 ac_compiler=`set X $ac_compile; echo $2`
1770 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1771 (eval $ac_compiler --version </dev/null >&5) 2>&5
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }
1775 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1776 (eval $ac_compiler -v </dev/null >&5) 2>&5
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }
1780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1781 (eval $ac_compiler -V </dev/null >&5) 2>&5
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); }
1786 cat >conftest.$ac_ext <<_ACEOF
1789 cat confdefs.h >>conftest.$ac_ext
1790 cat >>conftest.$ac_ext <<_ACEOF
1791 /* end confdefs.h. */
1801 ac_clean_files_save=$ac_clean_files
1802 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1803 # Try to create an executable without -o first, disregard a.out.
1804 # It will help us diagnose broken compilers, and finding out an intuition
1806 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1807 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1808 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1809 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1810 (eval $ac_link_default) 2>&5
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; then
1814 # Find the output, starting from the most likely. This scheme is
1815 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1818 # Be careful to initialize this variable, since it used to be cached.
1819 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1821 # b.out is created by i960 compilers.
1822 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1824 test -f "$ac_file" || continue
1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1829 # This is the source file.
1832 # We found the default executable, but exeext='' is most
1836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837 # FIXME: I believe we export ac_cv_exeext for Libtool,
1838 # but it would be cool to find out if it's true. Does anybody
1839 # maintain Libtool? --akim.
1847 echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: C compiler cannot create executables
1853 See \`config.log' for more details." >&2;}
1854 { (exit 77); exit 77; }; }
1857 ac_exeext=$ac_cv_exeext
1858 echo "$as_me:$LINENO: result: $ac_file" >&5
1859 echo "${ECHO_T}$ac_file" >&6
1861 # Check the compiler produces executables we can run. If not, either
1862 # the compiler is broken, or we cross compile.
1863 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1866 # If not cross compiling, check that we can run a simple program.
1867 if test "$cross_compiling" != yes; then
1868 if { ac_try='./$ac_file'
1869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; }; then
1876 if test "$cross_compiling" = maybe; then
1879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1880 If you meant to cross compile, use \`--host'.
1881 See \`config.log' for more details." >&5
1882 echo "$as_me: error: cannot run C compiled programs.
1883 If you meant to cross compile, use \`--host'.
1884 See \`config.log' for more details." >&2;}
1885 { (exit 1); exit 1; }; }
1889 echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1893 ac_clean_files=$ac_clean_files_save
1894 # Check the compiler produces executables we can run. If not, either
1895 # the compiler is broken, or we cross compile.
1896 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1898 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1899 echo "${ECHO_T}$cross_compiling" >&6
1901 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1904 (eval $ac_link) 2>&5
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; then
1908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1909 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1910 # work properly (i.e., refer to `conftest.exe'), while it won't with
1912 for ac_file in conftest.exe conftest conftest.*; do
1913 test -f "$ac_file" || continue
1915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1923 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1924 See \`config.log' for more details." >&5
1925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1926 See \`config.log' for more details." >&2;}
1927 { (exit 1); exit 1; }; }
1930 rm -f conftest$ac_cv_exeext
1931 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1932 echo "${ECHO_T}$ac_cv_exeext" >&6
1934 rm -f conftest.$ac_ext
1935 EXEEXT=$ac_cv_exeext
1937 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1938 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1939 if test "${ac_cv_objext+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.$ac_ext <<_ACEOF
1945 cat confdefs.h >>conftest.$ac_ext
1946 cat >>conftest.$ac_ext <<_ACEOF
1947 /* end confdefs.h. */
1957 rm -f conftest.o conftest.obj
1958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1959 (eval $ac_compile) 2>&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; then
1963 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1966 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1971 echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1977 See \`config.log' for more details." >&2;}
1978 { (exit 1); exit 1; }; }
1981 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1983 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1984 echo "${ECHO_T}$ac_cv_objext" >&6
1985 OBJEXT=$ac_cv_objext
1987 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1988 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 cat >conftest.$ac_ext <<_ACEOF
1995 cat confdefs.h >>conftest.$ac_ext
1996 cat >>conftest.$ac_ext <<_ACEOF
1997 /* end confdefs.h. */
2010 rm -f conftest.$ac_objext
2011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2012 (eval $ac_compile) 2>conftest.er1
2014 grep -v '^ *+' conftest.er1 >conftest.err
2016 cat conftest.err >&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); } &&
2019 { ac_try='test -z "$ac_c_werror_flag"
2020 || test ! -s conftest.err'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2043 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2045 GCC=`test $ac_compiler_gnu = yes && echo yes`
2046 ac_test_CFLAGS=${CFLAGS+set}
2047 ac_save_CFLAGS=$CFLAGS
2049 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2051 if test "${ac_cv_prog_cc_g+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 cat >conftest.$ac_ext <<_ACEOF
2057 cat confdefs.h >>conftest.$ac_ext
2058 cat >>conftest.$ac_ext <<_ACEOF
2059 /* end confdefs.h. */
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>conftest.er1
2073 grep -v '^ *+' conftest.er1 >conftest.err
2075 cat conftest.err >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -z "$ac_c_werror_flag"
2079 || test ! -s conftest.err'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; } &&
2085 { ac_try='test -s conftest.$ac_objext'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; }; then
2093 echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2102 if test "$ac_test_CFLAGS" = set; then
2103 CFLAGS=$ac_save_CFLAGS
2104 elif test $ac_cv_prog_cc_g = yes; then
2105 if test "$GCC" = yes; then
2111 if test "$GCC" = yes; then
2117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 ac_cv_prog_cc_stdc=no
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2132 #include <sys/types.h>
2133 #include <sys/stat.h>
2134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2135 struct buf { int x; };
2136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2137 static char *e (p, i)
2143 static char *f (char * (*g) (char **, int), char **p, ...)
2148 s = g (p, va_arg (v,int));
2153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2154 function prototypes and stuff, but not '\xHH' hex character constants.
2155 These don't provoke an error unfortunately, instead are silently treated
2156 as 'x'. The following induces an error, until -std1 is added to get
2157 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2158 array size at least. It's necessary to write '\x00'==0 to get something
2159 that's true only with -std1. */
2160 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2162 int test (int i, double x);
2163 struct s1 {int (*f) (int a);};
2164 struct s2 {int (*f) (double a);};
2165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2176 # Don't try gcc -ansi; that turns off useful extensions and
2177 # breaks some systems' header files.
2178 # AIX -qlanglvl=ansi
2179 # Ultrix and OSF/1 -std1
2180 # HP-UX 10.20 and later -Ae
2181 # HP-UX older versions -Aa -D_HPUX_SOURCE
2182 # SVR4 -Xc -D__EXTENSIONS__
2183 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2185 CC="$ac_save_CC $ac_arg"
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>conftest.er1
2190 grep -v '^ *+' conftest.er1 >conftest.err
2192 cat conftest.err >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -z "$ac_c_werror_flag"
2196 || test ! -s conftest.err'
2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; } &&
2202 { ac_try='test -s conftest.$ac_objext'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2208 ac_cv_prog_cc_stdc=$ac_arg
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2215 rm -f conftest.err conftest.$ac_objext
2217 rm -f conftest.$ac_ext conftest.$ac_objext
2222 case "x$ac_cv_prog_cc_stdc" in
2224 echo "$as_me:$LINENO: result: none needed" >&5
2225 echo "${ECHO_T}none needed" >&6 ;;
2227 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2228 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2229 CC="$CC $ac_cv_prog_cc_stdc" ;;
2232 # Some people use a C++ compiler to compile C. Since we use `exit',
2233 # in C++ we need to declare it. In case someone uses the same compiler
2234 # for both compiling C and C++ we need to have the C++ compiler decide
2235 # the declaration of exit, since it's the most demanding environment.
2236 cat >conftest.$ac_ext <<_ACEOF
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2245 grep -v '^ *+' conftest.er1 >conftest.err
2247 cat conftest.err >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 for ac_declaration in \
2265 'extern "C" void std::exit (int) throw (); using std::exit;' \
2266 'extern "C" void std::exit (int); using std::exit;' \
2267 'extern "C" void exit (int) throw ();' \
2268 'extern "C" void exit (int);' \
2271 cat >conftest.$ac_ext <<_ACEOF
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2287 rm -f conftest.$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>conftest.er1
2291 grep -v '^ *+' conftest.er1 >conftest.err
2293 cat conftest.err >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -z "$ac_c_werror_flag"
2297 || test ! -s conftest.err'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 cat >conftest.$ac_ext <<_ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2332 rm -f conftest.$ac_objext
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334 (eval $ac_compile) 2>conftest.er1
2336 grep -v '^ *+' conftest.er1 >conftest.err
2338 cat conftest.err >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try='test -z "$ac_c_werror_flag"
2342 || test ! -s conftest.err'
2343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; } &&
2348 { ac_try='test -s conftest.$ac_objext'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; }; then
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2363 if test -n "$ac_declaration"; then
2364 echo '#ifdef __cplusplus' >>confdefs.h
2365 echo $ac_declaration >>confdefs.h
2366 echo '#endif' >>confdefs.h
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382 ac_cpp='$CXXCPP $CPPFLAGS'
2383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2386 if test -n "$ac_tool_prefix"; then
2387 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391 echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2393 if test "${ac_cv_prog_CXX+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 if test -n "$CXX"; then
2397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 if test -n "$CXX"; then
2417 echo "$as_me:$LINENO: result: $CXX" >&5
2418 echo "${ECHO_T}$CXX" >&6
2420 echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2424 test -n "$CXX" && break
2427 if test -z "$CXX"; then
2429 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2431 # Extract the first word of "$ac_prog", so it can be a program name with args.
2432 set dummy $ac_prog; ac_word=$2
2433 echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CXX"; then
2439 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448 ac_cv_prog_ac_ct_CXX="$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2458 if test -n "$ac_ct_CXX"; then
2459 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2460 echo "${ECHO_T}$ac_ct_CXX" >&6
2462 echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2466 test -n "$ac_ct_CXX" && break
2468 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2474 # Provide some information about the compiler.
2475 echo "$as_me:$LINENO:" \
2476 "checking for C++ compiler version" >&5
2477 ac_compiler=`set X $ac_compile; echo $2`
2478 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2479 (eval $ac_compiler --version </dev/null >&5) 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }
2483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2484 (eval $ac_compiler -v </dev/null >&5) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2489 (eval $ac_compiler -V </dev/null >&5) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }
2494 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2495 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2496 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 cat >conftest.$ac_ext <<_ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_cxx_werror_flag"
2527 || test ! -s conftest.err'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2550 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2552 GXX=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CXXFLAGS=${CXXFLAGS+set}
2554 ac_save_CXXFLAGS=$CXXFLAGS
2556 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2557 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2558 if test "${ac_cv_prog_cxx_g+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 cat >conftest.$ac_ext <<_ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>conftest.er1
2580 grep -v '^ *+' conftest.er1 >conftest.err
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -z "$ac_cxx_werror_flag"
2586 || test ! -s conftest.err'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 ac_cv_prog_cxx_g=yes
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2608 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2609 if test "$ac_test_CXXFLAGS" = set; then
2610 CXXFLAGS=$ac_save_CXXFLAGS
2611 elif test $ac_cv_prog_cxx_g = yes; then
2612 if test "$GXX" = yes; then
2618 if test "$GXX" = yes; then
2624 for ac_declaration in \
2626 'extern "C" void std::exit (int) throw (); using std::exit;' \
2627 'extern "C" void std::exit (int); using std::exit;' \
2628 'extern "C" void exit (int) throw ();' \
2629 'extern "C" void exit (int);' \
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_cxx_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_cxx_werror_flag"
2703 || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 if test -n "$ac_declaration"; then
2725 echo '#ifdef __cplusplus' >>confdefs.h
2726 echo $ac_declaration >>confdefs.h
2727 echo '#endif' >>confdefs.h
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2742 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2743 # On Suns, sometimes $CPP names a directory.
2744 if test -n "$CPP" && test -d "$CPP"; then
2747 if test -z "$CPP"; then
2748 if test "${ac_cv_prog_CPP+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 # Double quotes because CPP needs to be expanded
2752 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2755 for ac_c_preproc_warn_flag in '' yes
2757 # Use a header file that comes with gcc, so configuring glibc
2758 # with a fresh cross-compiler works.
2759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2760 # <limits.h> exists even on freestanding compilers.
2761 # On the NeXT, cc -E runs the code through the compiler's parser,
2762 # not just through cpp. "Syntax error" is here to catch this case.
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2770 # include <limits.h>
2772 # include <assert.h>
2776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } >/dev/null; then
2784 if test -s conftest.err; then
2785 ac_cpp_err=$ac_c_preproc_warn_flag
2786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2793 if test -z "$ac_cpp_err"; then
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 # Broken: fails on valid input.
2802 rm -f conftest.err conftest.$ac_ext
2804 # OK, works on sane cases. Now check whether non-existent headers
2805 # can be detected and how.
2806 cat >conftest.$ac_ext <<_ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2812 #include <ac_nonexistent.h>
2814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2817 grep -v '^ *+' conftest.er1 >conftest.err
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } >/dev/null; then
2822 if test -s conftest.err; then
2823 ac_cpp_err=$ac_c_preproc_warn_flag
2824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2831 if test -z "$ac_cpp_err"; then
2832 # Broken: success on invalid input.
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 # Passes both tests.
2842 rm -f conftest.err conftest.$ac_ext
2845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2846 rm -f conftest.err conftest.$ac_ext
2847 if $ac_preproc_ok; then
2859 echo "$as_me:$LINENO: result: $CPP" >&5
2860 echo "${ECHO_T}$CPP" >&6
2862 for ac_c_preproc_warn_flag in '' yes
2864 # Use a header file that comes with gcc, so configuring glibc
2865 # with a fresh cross-compiler works.
2866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2867 # <limits.h> exists even on freestanding compilers.
2868 # On the NeXT, cc -E runs the code through the compiler's parser,
2869 # not just through cpp. "Syntax error" is here to catch this case.
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2877 # include <limits.h>
2879 # include <assert.h>
2883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2886 grep -v '^ *+' conftest.er1 >conftest.err
2888 cat conftest.err >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); } >/dev/null; then
2891 if test -s conftest.err; then
2892 ac_cpp_err=$ac_c_preproc_warn_flag
2893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900 if test -z "$ac_cpp_err"; then
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2906 # Broken: fails on valid input.
2909 rm -f conftest.err conftest.$ac_ext
2911 # OK, works on sane cases. Now check whether non-existent headers
2912 # can be detected and how.
2913 cat >conftest.$ac_ext <<_ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2919 #include <ac_nonexistent.h>
2921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } >/dev/null; then
2929 if test -s conftest.err; then
2930 ac_cpp_err=$ac_c_preproc_warn_flag
2931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938 if test -z "$ac_cpp_err"; then
2939 # Broken: success on invalid input.
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 # Passes both tests.
2949 rm -f conftest.err conftest.$ac_ext
2952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2953 rm -f conftest.err conftest.$ac_ext
2954 if $ac_preproc_ok; then
2957 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2965 ac_cpp='$CPP $CPPFLAGS'
2966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2972 if test -f $ac_dir/install-sh; then
2974 ac_install_sh="$ac_aux_dir/install-sh -c"
2976 elif test -f $ac_dir/install.sh; then
2978 ac_install_sh="$ac_aux_dir/install.sh -c"
2980 elif test -f $ac_dir/shtool; then
2982 ac_install_sh="$ac_aux_dir/shtool install -c"
2986 if test -z "$ac_aux_dir"; then
2987 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2988 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2989 { (exit 1); exit 1; }; }
2991 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2992 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2993 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2995 # Find a good install program. We prefer a C program (faster),
2996 # so one script is as good as another. But avoid the broken or
2997 # incompatible versions:
2998 # SysV /etc/install, /usr/sbin/install
2999 # SunOS /usr/etc/install
3000 # IRIX /sbin/install
3002 # AmigaOS /C/install, which installs bootblocks on floppy discs
3003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3006 # OS/2's system install, which has a completely different semantic
3007 # ./install, which can be erroneously created by make from ./install.sh.
3008 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3009 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3010 if test -z "$INSTALL"; then
3011 if test "${ac_cv_path_install+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 # Account for people who put trailing slashes in PATH elements.
3021 ./ | .// | /cC/* | \
3022 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3023 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3026 # OSF1 and SCO ODT 3.0 have their own names for install.
3027 # Don't use installbsd from OSF since it installs stuff as root
3029 for ac_prog in ginstall scoinst install; do
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3032 if test $ac_prog = install &&
3033 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3034 # AIX install. It has an incompatible calling convention.
3036 elif test $ac_prog = install &&
3037 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3038 # program-specific install script used by HP pwplus--don't use.
3041 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3053 if test "${ac_cv_path_install+set}" = set; then
3054 INSTALL=$ac_cv_path_install
3056 # As a last resort, use the slow shell script. We don't cache a
3057 # path for INSTALL within a source directory, because that will
3058 # break other packages using the cache if that directory is
3059 # removed, or if the path is relative.
3060 INSTALL=$ac_install_sh
3063 echo "$as_me:$LINENO: result: $INSTALL" >&5
3064 echo "${ECHO_T}$INSTALL" >&6
3066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3067 # It thinks the first close brace ends the variable substitution.
3068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3070 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3072 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3077 echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3079 if test "${ac_cv_prog_RANLIB+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 if test -n "$RANLIB"; then
3083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 RANLIB=$ac_cv_prog_RANLIB
3102 if test -n "$RANLIB"; then
3103 echo "$as_me:$LINENO: result: $RANLIB" >&5
3104 echo "${ECHO_T}$RANLIB" >&6
3106 echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6
3111 if test -z "$ac_cv_prog_RANLIB"; then
3112 ac_ct_RANLIB=$RANLIB
3113 # Extract the first word of "ranlib", so it can be a program name with args.
3114 set dummy ranlib; ac_word=$2
3115 echo "$as_me:$LINENO: checking for $ac_word" >&5
3116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 if test -n "$ac_ct_RANLIB"; then
3121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_ac_ct_RANLIB="ranlib"
3131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3141 if test -n "$ac_ct_RANLIB"; then
3142 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3143 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3145 echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3149 RANLIB=$ac_ct_RANLIB
3151 RANLIB="$ac_cv_prog_RANLIB"
3155 for ac_prog in flex lex
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 echo "$as_me:$LINENO: checking for $ac_word" >&5
3160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161 if test "${ac_cv_prog_LEX+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 if test -n "$LEX"; then
3165 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_LEX="$ac_prog"
3175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test -n "$LEX"; then
3185 echo "$as_me:$LINENO: result: $LEX" >&5
3186 echo "${ECHO_T}$LEX" >&6
3188 echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3192 test -n "$LEX" && break
3194 test -n "$LEX" || LEX=":"
3196 if test -z "$LEXLIB"
3198 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3199 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3200 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 ac_check_lib_save_LIBS=$LIBS
3205 cat >conftest.$ac_ext <<_ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3212 /* Override any gcc2 internal prototype to avoid an error. */
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3227 rm -f conftest.$ac_objext conftest$ac_exeext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229 (eval $ac_link) 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest$ac_exeext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_lib_fl_yywrap=yes
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 ac_cv_lib_fl_yywrap=no
3256 rm -f conftest.err conftest.$ac_objext \
3257 conftest$ac_exeext conftest.$ac_ext
3258 LIBS=$ac_check_lib_save_LIBS
3260 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3261 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3262 if test $ac_cv_lib_fl_yywrap = yes; then
3265 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3266 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3267 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_check_lib_save_LIBS=$LIBS
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3279 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag"
3304 || test ! -s conftest.err'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest$ac_exeext'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 ac_cv_lib_l_yywrap=yes
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 ac_cv_lib_l_yywrap=no
3323 rm -f conftest.err conftest.$ac_objext \
3324 conftest$ac_exeext conftest.$ac_ext
3325 LIBS=$ac_check_lib_save_LIBS
3327 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3328 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3329 if test $ac_cv_lib_l_yywrap = yes; then
3337 if test "x$LEX" != "x:"; then
3338 echo "$as_me:$LINENO: checking lex output file root" >&5
3339 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3340 if test "${ac_cv_prog_lex_root+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 # The minimal lex program is just a single line: %%. But some broken lexes
3344 # (Solaris, I think it was) want two %% lines, so accommodate them.
3345 cat >conftest.l <<_ACEOF
3349 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3350 (eval $LEX conftest.l) 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354 if test -f lex.yy.c; then
3355 ac_cv_prog_lex_root=lex.yy
3356 elif test -f lexyy.c; then
3357 ac_cv_prog_lex_root=lexyy
3359 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3360 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3361 { (exit 1); exit 1; }; }
3364 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3365 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3367 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3369 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3370 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3371 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 # POSIX says lex can declare yytext either as a pointer or an array; the
3375 # default is implementation-dependent. Figure out which it is, since
3376 # not all implementations provide the %pointer and %array declarations.
3377 ac_cv_prog_lex_yytext_pointer=no
3378 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3380 LIBS="$LIBS $LEXLIB"
3381 cat >conftest.$ac_ext <<_ACEOF
3382 `cat $LEX_OUTPUT_ROOT.c`
3384 rm -f conftest.$ac_objext conftest$ac_exeext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3386 (eval $ac_link) 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest$ac_exeext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_cv_prog_lex_yytext_pointer=yes
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3412 rm -f conftest.err conftest.$ac_objext \
3413 conftest$ac_exeext conftest.$ac_ext
3415 rm -f "${LEX_OUTPUT_ROOT}.c"
3418 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3419 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3420 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3422 cat >>confdefs.h <<\_ACEOF
3423 #define YYTEXT_POINTER 1
3429 for ac_prog in 'bison -y' byacc
3431 # Extract the first word of "$ac_prog", so it can be a program name with args.
3432 set dummy $ac_prog; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_YACC+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 if test -n "$YACC"; then
3439 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_YACC="$ac_prog"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 YACC=$ac_cv_prog_YACC
3458 if test -n "$YACC"; then
3459 echo "$as_me:$LINENO: result: $YACC" >&5
3460 echo "${ECHO_T}$YACC" >&6
3462 echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3466 test -n "$YACC" && break
3468 test -n "$YACC" || YACC="yacc"
3470 # Extract the first word of "autoconf", so it can be a program name with args.
3471 set dummy autoconf; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 if test -n "$AUTOCONF"; then
3478 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_AUTOCONF="autoconf"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3497 AUTOCONF=$ac_cv_prog_AUTOCONF
3498 if test -n "$AUTOCONF"; then
3499 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3500 echo "${ECHO_T}$AUTOCONF" >&6
3502 echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3506 # Extract the first word of "strip", so it can be a program name with args.
3507 set dummy strip; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_prog_STRIP+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 if test -n "$STRIP"; then
3514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_STRIP="strip"
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3533 STRIP=$ac_cv_prog_STRIP
3534 if test -n "$STRIP"; then
3535 echo "$as_me:$LINENO: result: $STRIP" >&5
3536 echo "${ECHO_T}$STRIP" >&6
3538 echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3542 # Extract the first word of "as", so it can be a program name with args.
3543 set dummy as; ac_word=$2
3544 echo "$as_me:$LINENO: checking for $ac_word" >&5
3545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3546 if test "${ac_cv_prog_AS+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 if test -n "$AS"; then
3550 ac_cv_prog_AS="$AS" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3570 if test -n "$AS"; then
3571 echo "$as_me:$LINENO: result: $AS" >&5
3572 echo "${ECHO_T}$AS" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "cp", so it can be a program name with args.
3579 set dummy cp; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_prog_CP+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test -n "$CP"; then
3586 ac_cv_prog_CP="$CP" # Let the user override the test.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3606 if test -n "$CP"; then
3607 echo "$as_me:$LINENO: result: $CP" >&5
3608 echo "${ECHO_T}$CP" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3615 # Extract the first word of "lyx", so it can be a program name with args.
3616 set dummy lyx; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_LYX+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test -n "$LYX"; then
3623 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_LYX="lyx"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3643 if test -n "$LYX"; then
3644 echo "$as_me:$LINENO: result: $LYX" >&5
3645 echo "${ECHO_T}$LYX" >&6
3647 echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6
3651 # Extract the first word of "latex", so it can be a program name with args.
3652 set dummy latex; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_LATEX+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if test -n "$LATEX"; then
3659 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_LATEX="latex"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3678 LATEX=$ac_cv_prog_LATEX
3679 if test -n "$LATEX"; then
3680 echo "$as_me:$LINENO: result: $LATEX" >&5
3681 echo "${ECHO_T}$LATEX" >&6
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3687 # Extract the first word of "latex2html", so it can be a program name with args.
3688 set dummy latex2html; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 if test -n "$LATEX2HTML"; then
3695 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_LATEX2HTML="latex2html"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3714 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3715 if test -n "$LATEX2HTML"; then
3716 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3717 echo "${ECHO_T}$LATEX2HTML" >&6
3719 echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3723 # Extract the first word of "pdflatex", so it can be a program name with args.
3724 set dummy pdflatex; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if test -n "$PDFLATEX"; then
3731 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_PDFLATEX="pdflatex"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3750 PDFLATEX=$ac_cv_prog_PDFLATEX
3751 if test -n "$PDFLATEX"; then
3752 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3753 echo "${ECHO_T}$PDFLATEX" >&6
3755 echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3759 # Extract the first word of "dvipdf", so it can be a program name with args.
3760 set dummy dvipdf; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 if test -n "$DVIPDF"; then
3767 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_DVIPDF="dvipdf"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3786 DVIPDF=$ac_cv_prog_DVIPDF
3787 if test -n "$DVIPDF"; then
3788 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3789 echo "${ECHO_T}$DVIPDF" >&6
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3798 if test "$YACC" = ":"; then
3799 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3800 echo "$as_me: error: Cannot find required program bison." >&2;}
3801 { (exit 1); exit 1; }; }
3804 if test "$LEX" = ":"; then
3805 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3806 echo "$as_me: error: Cannot find required program lex." >&2;}
3807 { (exit 1); exit 1; }; }
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819 # Checking for header files.
3820 # ===========================================================================
3822 echo "$as_me:$LINENO: checking for egrep" >&5
3823 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3824 if test "${ac_cv_prog_egrep+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3828 then ac_cv_prog_egrep='grep -E'
3829 else ac_cv_prog_egrep='egrep'
3832 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3833 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3834 EGREP=$ac_cv_prog_egrep
3837 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3838 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3839 if test "${ac_cv_header_stdc+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_header_stdc=yes
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 ac_cv_header_stdc=no
3890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3892 if test $ac_cv_header_stdc = yes; then
3893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3904 $EGREP "memchr" >/dev/null 2>&1; then
3907 ac_cv_header_stdc=no
3913 if test $ac_cv_header_stdc = yes; then
3914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925 $EGREP "free" >/dev/null 2>&1; then
3928 ac_cv_header_stdc=no
3934 if test $ac_cv_header_stdc = yes; then
3935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3936 if test "$cross_compiling" = yes; then
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3946 #if ((' ' & 0x0FF) == 0x020)
3947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3950 # define ISLOWER(c) \
3951 (('a' <= (c) && (c) <= 'i') \
3952 || ('j' <= (c) && (c) <= 'r') \
3953 || ('s' <= (c) && (c) <= 'z'))
3954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3962 for (i = 0; i < 256; i++)
3963 if (XOR (islower (i), ISLOWER (i))
3964 || toupper (i) != TOUPPER (i))
3969 rm -f conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971 (eval $ac_link) 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3982 echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_cv_header_stdc=no
3989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3993 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3994 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3995 if test $ac_cv_header_stdc = yes; then
3997 cat >>confdefs.h <<\_ACEOF
3998 #define STDC_HEADERS 1
4003 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4013 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4014 inttypes.h stdint.h unistd.h
4016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 cat >conftest.$ac_ext <<_ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 $ac_includes_default
4030 #include <$ac_header>
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 eval "$as_ac_Header=yes"
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 eval "$as_ac_Header=no"
4061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4066 cat >>confdefs.h <<_ACEOF
4067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4076 for ac_header in sys/socket.h
4078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4080 echo "$as_me:$LINENO: checking for $ac_header" >&5
4081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4088 # Is the header compilable?
4089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 $ac_includes_default
4098 #include <$ac_header>
4100 rm -f conftest.$ac_objext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102 (eval $ac_compile) 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag"
4110 || test ! -s conftest.err'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest.$ac_objext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 ac_header_compiler=yes
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 ac_header_compiler=no
4129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4131 echo "${ECHO_T}$ac_header_compiler" >&6
4133 # Is the header present?
4134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <$ac_header>
4144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } >/dev/null; then
4152 if test -s conftest.err; then
4153 ac_cpp_err=$ac_c_preproc_warn_flag
4154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4161 if test -z "$ac_cpp_err"; then
4162 ac_header_preproc=yes
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_header_preproc=no
4169 rm -f conftest.err conftest.$ac_ext
4170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4171 echo "${ECHO_T}$ac_header_preproc" >&6
4173 # So? What about this header?
4174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4180 ac_header_preproc=yes
4183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4197 ## ------------------------------------------ ##
4198 ## Report this to the AC_PACKAGE_NAME lists. ##
4199 ## ------------------------------------------ ##
4202 sed "s/^/$as_me: WARNING: /" >&2
4205 echo "$as_me:$LINENO: checking for $ac_header" >&5
4206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 eval "$as_ac_Header=\$ac_header_preproc"
4212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4217 cat >>confdefs.h <<_ACEOF
4218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4227 # Checking for functions/libs
4228 # ===========================================================================
4230 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4231 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4232 if test "${ac_cv_lib_socket_socket+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 ac_check_lib_save_LIBS=$LIBS
4236 LIBS="-lsocket $LIBS"
4237 cat >conftest.$ac_ext <<_ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4244 /* Override any gcc2 internal prototype to avoid an error. */
4248 /* We use char because int might match the return type of a gcc2
4249 builtin and then its argument prototype would still apply. */
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4261 (eval $ac_link) 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag"
4269 || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_lib_socket_socket=yes
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 ac_cv_lib_socket_socket=no
4288 rm -f conftest.err conftest.$ac_objext \
4289 conftest$ac_exeext conftest.$ac_ext
4290 LIBS=$ac_check_lib_save_LIBS
4292 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4293 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4294 if test $ac_cv_lib_socket_socket = yes; then
4295 cat >>confdefs.h <<_ACEOF
4296 #define HAVE_LIBSOCKET 1
4299 LIBS="-lsocket $LIBS"
4304 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
4305 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
4306 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 ac_check_lib_save_LIBS=$LIBS
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4318 /* Override any gcc2 internal prototype to avoid an error. */
4322 /* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4333 rm -f conftest.$ac_objext conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>conftest.er1
4337 grep -v '^ *+' conftest.er1 >conftest.err
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest$ac_exeext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_cv_lib_nsl_xdr_short=yes
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 ac_cv_lib_nsl_xdr_short=no
4362 rm -f conftest.err conftest.$ac_objext \
4363 conftest$ac_exeext conftest.$ac_ext
4364 LIBS=$ac_check_lib_save_LIBS
4366 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
4367 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
4368 if test $ac_cv_lib_nsl_xdr_short = yes; then
4369 cat >>confdefs.h <<_ACEOF
4370 #define HAVE_LIBNSL 1
4379 # Checking for functions
4380 # ===========================================================================
4382 for ac_func in strerror
4384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4385 echo "$as_me:$LINENO: checking for $ac_func" >&5
4386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4387 if eval "test \"\${$as_ac_var+set}\" = set"; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4398 #define $ac_func innocuous_$ac_func
4400 /* System header to define __stub macros and hopefully few prototypes,
4401 which can conflict with char $ac_func (); below.
4402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4403 <limits.h> exists even on freestanding compilers. */
4406 # include <limits.h>
4408 # include <assert.h>
4413 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4421 /* The GNU C library defines this for functions which it implements
4422 to always fail with ENOSYS. Some functions are actually named
4423 something starting with __ and the normal name is an alias. */
4424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4427 char (*f) () = $ac_func;
4436 return f != $ac_func;
4441 rm -f conftest.$ac_objext conftest$ac_exeext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443 (eval $ac_link) 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest$ac_exeext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 eval "$as_ac_var=yes"
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4468 eval "$as_ac_var=no"
4470 rm -f conftest.err conftest.$ac_objext \
4471 conftest$ac_exeext conftest.$ac_ext
4473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4475 if test `eval echo '${'$as_ac_var'}'` = yes; then
4476 cat >>confdefs.h <<_ACEOF
4477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4487 for ac_func in vsnprintf snprintf vsprintf mkstemp
4489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4490 echo "$as_me:$LINENO: checking for $ac_func" >&5
4491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4492 if eval "test \"\${$as_ac_var+set}\" = set"; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4503 #define $ac_func innocuous_$ac_func
4505 /* System header to define __stub macros and hopefully few prototypes,
4506 which can conflict with char $ac_func (); below.
4507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508 <limits.h> exists even on freestanding compilers. */
4511 # include <limits.h>
4513 # include <assert.h>
4518 /* Override any gcc2 internal prototype to avoid an error. */
4523 /* We use char because int might match the return type of a gcc2
4524 builtin and then its argument prototype would still apply. */
4526 /* The GNU C library defines this for functions which it implements
4527 to always fail with ENOSYS. Some functions are actually named
4528 something starting with __ and the normal name is an alias. */
4529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4532 char (*f) () = $ac_func;
4541 return f != $ac_func;
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>conftest.er1
4550 grep -v '^ *+' conftest.er1 >conftest.err
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -z "$ac_c_werror_flag"
4556 || test ! -s conftest.err'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; } &&
4562 { ac_try='test -s conftest$ac_exeext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 eval "$as_ac_var=yes"
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 eval "$as_ac_var=no"
4575 rm -f conftest.err conftest.$ac_objext \
4576 conftest$ac_exeext conftest.$ac_ext
4578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4580 if test `eval echo '${'$as_ac_var'}'` = yes; then
4581 cat >>confdefs.h <<_ACEOF
4582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4591 # ===========================================================================
4593 # DD_COPT macro checks if the compiler specified as the 1st parameter
4594 # supports option specified as the 2nd parameter
4595 # For example: DD_CPORT(CXX, fPIC)
4599 # This macro expands DIR and assigns it to RET.
4600 # If DIR is NONE, then it's replaced by DEFAULT.
4602 # Based on AC_DEFINE_DIR
4606 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
4610 # adl_NORMALIZE_PATH
4612 # - empty paths are changed to '.'
4613 # - trailing slashes are removed
4614 # - repeated slashes are squeezed except a leading doubled slash '//'
4615 # (which might indicate a networked disk on some OS).
4618 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4619 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4620 # are turned into backslashes, otherwise they are all turned into slashes.
4622 # This makes processing of DOS filenames quite easier, because you can turn a
4623 # filename to the Unix notation, make your processing, and turn it back to
4624 # original notation.
4629 # adl_COMPUTE_RELATIVE_PATH
4631 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4632 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4633 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4634 # absolute filenames for this macro to success.
4640 ## The following helper macros are too fragile to be used out
4641 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4642 ## paths are normalized), that's why I'm keeping them in the same file.
4643 ## Still, some of them maybe worth to reuse.
4657 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4662 # Checking characteristics of compilers and other programs
4663 # ===========================================================================
4664 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4665 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4666 if test "${sdcc_cv_MM+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 echo "#include <stdio.h>" >_test_.c
4671 $CPP -v -MM _test_.c 1>&5 2>&5
4672 if test "$?" = "0"; then
4679 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4680 echo "${ECHO_T}$sdcc_cv_MM" >&6
4684 # This is the first time when CFLAGS are set/modified!!
4686 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4687 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4688 if test "${sdcc_cv_CCggdb+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4696 if test "$?" = "0"; then
4697 sdcc_cv_CCggdb="yes"
4701 rm -f _test_.* a.out
4703 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4704 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4706 if test "$sdcc_cv_CCggdb" = "yes"; then
4707 CFLAGS="-ggdb ${CFLAGS}"
4711 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4712 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4713 if test "${sdcc_cv_CCpipe+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 $CC -v -pipe -c _test_.c 1>&5 2>&5
4721 if test "$?" = "0"; then
4722 sdcc_cv_CCpipe="yes"
4726 rm -f _test_.* a.out
4728 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4729 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4731 if test "$sdcc_cv_CCpipe" = "yes"; then
4732 CFLAGS="-pipe $CFLAGS"
4736 # Checks for typedefs, structures, and compiler characteristics.
4737 # ===========================================================================
4738 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4739 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4740 if test "${ac_cv_type_signal+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 cat >conftest.$ac_ext <<_ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #include <sys/types.h>
4755 extern "C" void (*signal (int, void (*)(int)))(int);
4757 void (*signal ()) ();
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_type_signal=void
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 ac_cv_type_signal=int
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4800 echo "${ECHO_T}$ac_cv_type_signal" >&6
4802 cat >>confdefs.h <<_ACEOF
4803 #define RETSIGTYPE $ac_cv_type_signal
4808 echo "$as_me:$LINENO: checking for char" >&5
4809 echo $ECHO_N "checking for char... $ECHO_C" >&6
4810 if test "${ac_cv_type_char+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 $ac_includes_default
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4863 echo "${ECHO_T}$ac_cv_type_char" >&6
4865 echo "$as_me:$LINENO: checking size of char" >&5
4866 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4867 if test "${ac_cv_sizeof_char+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test "$ac_cv_type_char" = yes; then
4871 # The cast to unsigned long works around a bug in the HP C Compiler
4872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4874 # This bug is HP SR number 8606223364.
4875 if test "$cross_compiling" = yes; then
4876 # Depending upon the size, compute the lo and hi bounds.
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 $ac_includes_default
4887 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4894 rm -f conftest.$ac_objext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896 (eval $ac_compile) 2>conftest.er1
4898 grep -v '^ *+' conftest.er1 >conftest.err
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
4903 { ac_try='test -z "$ac_c_werror_flag"
4904 || test ! -s conftest.err'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; } &&
4910 { ac_try='test -s conftest.$ac_objext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 $ac_includes_default
4928 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_hi=$ac_mid; break
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 ac_lo=`expr $ac_mid + 1`
4963 if test $ac_lo -le $ac_mid; then
4967 ac_mid=`expr 2 '*' $ac_mid + 1`
4969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4985 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5026 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag"
5043 || test ! -s conftest.err'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_lo=$ac_mid; break
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 ac_hi=`expr '(' $ac_mid ')' - 1`
5061 if test $ac_mid -le $ac_hi; then
5065 ac_mid=`expr 2 '*' $ac_mid`
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5078 # Binary search between lo and hi bounds.
5079 while test "x$ac_lo" != "x$ac_hi"; do
5080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5081 cat >conftest.$ac_ext <<_ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 $ac_includes_default
5091 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>conftest.er1
5102 grep -v '^ *+' conftest.er1 >conftest.err
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -z "$ac_c_werror_flag"
5108 || test ! -s conftest.err'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; } &&
5114 { ac_try='test -s conftest.$ac_objext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 ac_lo=`expr '(' $ac_mid ')' + 1`
5127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5130 ?*) ac_cv_sizeof_char=$ac_lo;;
5131 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5132 See \`config.log' for more details." >&5
5133 echo "$as_me: error: cannot compute sizeof (char), 77
5134 See \`config.log' for more details." >&2;}
5135 { (exit 1); exit 1; }; } ;;
5138 if test "$cross_compiling" = yes; then
5139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5140 See \`config.log' for more details." >&5
5141 echo "$as_me: error: cannot run test program while cross compiling
5142 See \`config.log' for more details." >&2;}
5143 { (exit 1); exit 1; }; }
5145 cat >conftest.$ac_ext <<_ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 $ac_includes_default
5152 long longval () { return (long) (sizeof (char)); }
5153 unsigned long ulongval () { return (long) (sizeof (char)); }
5160 FILE *f = fopen ("conftest.val", "w");
5163 if (((long) (sizeof (char))) < 0)
5165 long i = longval ();
5166 if (i != ((long) (sizeof (char))))
5168 fprintf (f, "%ld\n", i);
5172 unsigned long i = ulongval ();
5173 if (i != ((long) (sizeof (char))))
5175 fprintf (f, "%lu\n", i);
5177 exit (ferror (f) || fclose (f) != 0);
5183 rm -f conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 ac_cv_sizeof_char=`cat conftest.val`
5196 echo "$as_me: program exited with status $ac_status" >&5
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5201 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5202 See \`config.log' for more details." >&5
5203 echo "$as_me: error: cannot compute sizeof (char), 77
5204 See \`config.log' for more details." >&2;}
5205 { (exit 1); exit 1; }; }
5207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5216 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5217 cat >>confdefs.h <<_ACEOF
5218 #define SIZEOF_CHAR $ac_cv_sizeof_char
5222 echo "$as_me:$LINENO: checking for short" >&5
5223 echo $ECHO_N "checking for short... $ECHO_C" >&6
5224 if test "${ac_cv_type_short+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 cat >conftest.$ac_ext <<_ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 $ac_includes_default
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>conftest.er1
5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest.$ac_objext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_type_short=yes
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5276 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5277 echo "${ECHO_T}$ac_cv_type_short" >&6
5279 echo "$as_me:$LINENO: checking size of short" >&5
5280 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5281 if test "${ac_cv_sizeof_short+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 if test "$ac_cv_type_short" = yes; then
5285 # The cast to unsigned long works around a bug in the HP C Compiler
5286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5288 # This bug is HP SR number 8606223364.
5289 if test "$cross_compiling" = yes; then
5290 # Depending upon the size, compute the lo and hi bounds.
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5301 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 $ac_includes_default
5342 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5349 rm -f conftest.$ac_objext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351 (eval $ac_compile) 2>conftest.er1
5353 grep -v '^ *+' conftest.er1 >conftest.err
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag"
5359 || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_hi=$ac_mid; break
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 ac_lo=`expr $ac_mid + 1`
5377 if test $ac_lo -le $ac_mid; then
5381 ac_mid=`expr 2 '*' $ac_mid + 1`
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 cat >conftest.$ac_ext <<_ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5399 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>conftest.er1
5410 grep -v '^ *+' conftest.er1 >conftest.err
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -z "$ac_c_werror_flag"
5416 || test ! -s conftest.err'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5430 cat >conftest.$ac_ext <<_ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5440 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag"
5457 || test ! -s conftest.err'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; } &&
5463 { ac_try='test -s conftest.$ac_objext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5469 ac_lo=$ac_mid; break
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 ac_hi=`expr '(' $ac_mid ')' - 1`
5475 if test $ac_mid -le $ac_hi; then
5479 ac_mid=`expr 2 '*' $ac_mid`
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 # Binary search between lo and hi bounds.
5493 while test "x$ac_lo" != "x$ac_hi"; do
5494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 $ac_includes_default
5505 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5512 rm -f conftest.$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1 >conftest.err
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 ac_lo=`expr '(' $ac_mid ')' + 1`
5541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5544 ?*) ac_cv_sizeof_short=$ac_lo;;
5545 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5546 See \`config.log' for more details." >&5
5547 echo "$as_me: error: cannot compute sizeof (short), 77
5548 See \`config.log' for more details." >&2;}
5549 { (exit 1); exit 1; }; } ;;
5552 if test "$cross_compiling" = yes; then
5553 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5554 See \`config.log' for more details." >&5
5555 echo "$as_me: error: cannot run test program while cross compiling
5556 See \`config.log' for more details." >&2;}
5557 { (exit 1); exit 1; }; }
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 $ac_includes_default
5566 long longval () { return (long) (sizeof (short)); }
5567 unsigned long ulongval () { return (long) (sizeof (short)); }
5574 FILE *f = fopen ("conftest.val", "w");
5577 if (((long) (sizeof (short))) < 0)
5579 long i = longval ();
5580 if (i != ((long) (sizeof (short))))
5582 fprintf (f, "%ld\n", i);
5586 unsigned long i = ulongval ();
5587 if (i != ((long) (sizeof (short))))
5589 fprintf (f, "%lu\n", i);
5591 exit (ferror (f) || fclose (f) != 0);
5597 rm -f conftest$ac_exeext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599 (eval $ac_link) 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_sizeof_short=`cat conftest.val`
5610 echo "$as_me: program exited with status $ac_status" >&5
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5615 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5616 See \`config.log' for more details." >&5
5617 echo "$as_me: error: cannot compute sizeof (short), 77
5618 See \`config.log' for more details." >&2;}
5619 { (exit 1); exit 1; }; }
5621 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5626 ac_cv_sizeof_short=0
5629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5630 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5631 cat >>confdefs.h <<_ACEOF
5632 #define SIZEOF_SHORT $ac_cv_sizeof_short
5636 echo "$as_me:$LINENO: checking for int" >&5
5637 echo $ECHO_N "checking for int... $ECHO_C" >&6
5638 if test "${ac_cv_type_int+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_c_werror_flag"
5669 || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5691 echo "${ECHO_T}$ac_cv_type_int" >&6
5693 echo "$as_me:$LINENO: checking size of int" >&5
5694 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5695 if test "${ac_cv_sizeof_int+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 if test "$ac_cv_type_int" = yes; then
5699 # The cast to unsigned long works around a bug in the HP C Compiler
5700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5702 # This bug is HP SR number 8606223364.
5703 if test "$cross_compiling" = yes; then
5704 # Depending upon the size, compute the lo and hi bounds.
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5715 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag"
5732 || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 $ac_includes_default
5756 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag"
5773 || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_hi=$ac_mid; break
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 ac_lo=`expr $ac_mid + 1`
5791 if test $ac_lo -le $ac_mid; then
5795 ac_mid=`expr 2 '*' $ac_mid + 1`
5797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5813 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5824 grep -v '^ *+' conftest.er1 >conftest.err
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5854 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5861 rm -f conftest.$ac_objext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863 (eval $ac_compile) 2>conftest.er1
5865 grep -v '^ *+' conftest.er1 >conftest.err
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } &&
5870 { ac_try='test -z "$ac_c_werror_flag"
5871 || test ! -s conftest.err'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_lo=$ac_mid; break
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_hi=`expr '(' $ac_mid ')' - 1`
5889 if test $ac_mid -le $ac_hi; then
5893 ac_mid=`expr 2 '*' $ac_mid`
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 # Binary search between lo and hi bounds.
5907 while test "x$ac_lo" != "x$ac_hi"; do
5908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 $ac_includes_default
5919 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ?*) ac_cv_sizeof_int=$ac_lo;;
5959 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5960 See \`config.log' for more details." >&5
5961 echo "$as_me: error: cannot compute sizeof (int), 77
5962 See \`config.log' for more details." >&2;}
5963 { (exit 1); exit 1; }; } ;;
5966 if test "$cross_compiling" = yes; then
5967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5968 See \`config.log' for more details." >&5
5969 echo "$as_me: error: cannot run test program while cross compiling
5970 See \`config.log' for more details." >&2;}
5971 { (exit 1); exit 1; }; }
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 $ac_includes_default
5980 long longval () { return (long) (sizeof (int)); }
5981 unsigned long ulongval () { return (long) (sizeof (int)); }
5988 FILE *f = fopen ("conftest.val", "w");
5991 if (((long) (sizeof (int))) < 0)
5993 long i = longval ();
5994 if (i != ((long) (sizeof (int))))
5996 fprintf (f, "%ld\n", i);
6000 unsigned long i = ulongval ();
6001 if (i != ((long) (sizeof (int))))
6003 fprintf (f, "%lu\n", i);
6005 exit (ferror (f) || fclose (f) != 0);
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_sizeof_int=`cat conftest.val`
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6030 See \`config.log' for more details." >&5
6031 echo "$as_me: error: cannot compute sizeof (int), 77
6032 See \`config.log' for more details." >&2;}
6033 { (exit 1); exit 1; }; }
6035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6044 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6045 cat >>confdefs.h <<_ACEOF
6046 #define SIZEOF_INT $ac_cv_sizeof_int
6050 echo "$as_me:$LINENO: checking for long" >&5
6051 echo $ECHO_N "checking for long... $ECHO_C" >&6
6052 if test "${ac_cv_type_long+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 $ac_includes_default
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -z "$ac_c_werror_flag"
6083 || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6104 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6105 echo "${ECHO_T}$ac_cv_type_long" >&6
6107 echo "$as_me:$LINENO: checking size of long" >&5
6108 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6109 if test "${ac_cv_sizeof_long+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 if test "$ac_cv_type_long" = yes; then
6113 # The cast to unsigned long works around a bug in the HP C Compiler
6114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6116 # This bug is HP SR number 8606223364.
6117 if test "$cross_compiling" = yes; then
6118 # Depending upon the size, compute the lo and hi bounds.
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 $ac_includes_default
6129 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 $ac_includes_default
6170 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest.$ac_objext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_hi=$ac_mid; break
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_lo=`expr $ac_mid + 1`
6205 if test $ac_lo -le $ac_mid; then
6209 ac_mid=`expr 2 '*' $ac_mid + 1`
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 $ac_includes_default
6227 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6234 rm -f conftest.$ac_objext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -z "$ac_c_werror_flag"
6244 || test ! -s conftest.err'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; } &&
6250 { ac_try='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 $ac_includes_default
6268 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_lo=$ac_mid; break
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_hi=`expr '(' $ac_mid ')' - 1`
6303 if test $ac_mid -le $ac_hi; then
6307 ac_mid=`expr 2 '*' $ac_mid`
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6320 # Binary search between lo and hi bounds.
6321 while test "x$ac_lo" != "x$ac_hi"; do
6322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 $ac_includes_default
6333 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 ac_lo=`expr '(' $ac_mid ')' + 1`
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372 ?*) ac_cv_sizeof_long=$ac_lo;;
6373 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6374 See \`config.log' for more details." >&5
6375 echo "$as_me: error: cannot compute sizeof (long), 77
6376 See \`config.log' for more details." >&2;}
6377 { (exit 1); exit 1; }; } ;;
6380 if test "$cross_compiling" = yes; then
6381 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6382 See \`config.log' for more details." >&5
6383 echo "$as_me: error: cannot run test program while cross compiling
6384 See \`config.log' for more details." >&2;}
6385 { (exit 1); exit 1; }; }
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 long longval () { return (long) (sizeof (long)); }
6395 unsigned long ulongval () { return (long) (sizeof (long)); }
6402 FILE *f = fopen ("conftest.val", "w");
6405 if (((long) (sizeof (long))) < 0)
6407 long i = longval ();
6408 if (i != ((long) (sizeof (long))))
6410 fprintf (f, "%ld\n", i);
6414 unsigned long i = ulongval ();
6415 if (i != ((long) (sizeof (long))))
6417 fprintf (f, "%lu\n", i);
6419 exit (ferror (f) || fclose (f) != 0);
6425 rm -f conftest$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 ac_cv_sizeof_long=`cat conftest.val`
6438 echo "$as_me: program exited with status $ac_status" >&5
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6444 See \`config.log' for more details." >&5
6445 echo "$as_me: error: cannot compute sizeof (long), 77
6446 See \`config.log' for more details." >&2;}
6447 { (exit 1); exit 1; }; }
6449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6458 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6459 cat >>confdefs.h <<_ACEOF
6460 #define SIZEOF_LONG $ac_cv_sizeof_long
6467 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
6471 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
6475 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
6479 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
6486 echo "$as_me:$LINENO: checking type name for byte" >&5
6487 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
6488 TYPE_BYTE=`type_name 1`
6489 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6490 echo "${ECHO_T}$TYPE_BYTE" >&6
6491 echo "$as_me:$LINENO: checking type name for word" >&5
6492 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
6493 TYPE_WORD=`type_name 2`
6494 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6495 echo "${ECHO_T}$TYPE_WORD" >&6
6496 echo "$as_me:$LINENO: checking type name for dword" >&5
6497 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
6498 TYPE_DWORD=`type_name 4`
6499 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6500 echo "${ECHO_T}$TYPE_DWORD" >&6
6501 cat >>confdefs.h <<_ACEOF
6502 #define TYPE_BYTE $TYPE_BYTE
6505 cat >>confdefs.h <<_ACEOF
6506 #define TYPE_WORD $TYPE_WORD
6509 cat >>confdefs.h <<_ACEOF
6510 #define TYPE_DWORD $TYPE_DWORD
6514 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6515 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6516 if test "${ac_cv_c_bigendian+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 # See if sys/param.h defines the BYTE_ORDER macro.
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <sys/types.h>
6527 #include <sys/param.h>
6532 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest.$ac_objext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 # It does; now see whether it defined to BIG_ENDIAN or not.
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 #include <sys/types.h>
6570 #include <sys/param.h>
6575 #if BYTE_ORDER != BIG_ENDIAN
6583 rm -f conftest.$ac_objext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585 (eval $ac_compile) 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try='test -z "$ac_c_werror_flag"
6593 || test ! -s conftest.err'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; } &&
6599 { ac_try='test -s conftest.$ac_objext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 ac_cv_c_bigendian=yes
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 ac_cv_c_bigendian=no
6612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 # It does not; compile a test program.
6618 if test "$cross_compiling" = yes; then
6619 # try to guess the endianness by grepping values into an object file
6620 ac_cv_c_bigendian=unknown
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6628 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6629 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6630 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6631 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6632 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6636 _ascii (); _ebcdic ();
6641 rm -f conftest.$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6645 grep -v '^ *+' conftest.er1 >conftest.err
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest.$ac_objext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6664 ac_cv_c_bigendian=yes
6666 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6667 if test "$ac_cv_c_bigendian" = unknown; then
6668 ac_cv_c_bigendian=no
6670 # finding both strings is unlikely to happen, but who knows?
6671 ac_cv_c_bigendian=unknown
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6690 /* Are we little or big endian? From Harbison&Steele. */
6694 char c[sizeof (long)];
6697 exit (u.c[sizeof (long) - 1] == 1);
6700 rm -f conftest$ac_exeext
6701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6702 (eval $ac_link) 2>&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_c_bigendian=no
6713 echo "$as_me: program exited with status $ac_status" >&5
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cv_c_bigendian=yes
6720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6725 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6726 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6727 case $ac_cv_c_bigendian in
6730 cat >>confdefs.h <<\_ACEOF
6731 #define WORDS_BIGENDIAN 1
6737 { { echo "$as_me:$LINENO: error: unknown endianness
6738 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6739 echo "$as_me: error: unknown endianness
6740 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6741 { (exit 1); exit 1; }; } ;;
6745 # Set standard installation paths
6746 # ===========================================================================
6748 # In the Makefiles we need paths with '/' as directory separator, even if
6749 # crosscompiling for Win32.
6750 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6751 # The variables in the Makefiles are replaced by AC_SUBST()
6753 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6755 # The macros are expanded for the header.
6756 # The variables in the header are replaced by AC_*DEFINE*()
6757 # sdccconf_h_dir_separator contains a backslash.
6759 if test "${sdccconf_h_dir_separator}" = ""; then
6760 sdccconf_h_dir_separator="/"
6766 # include_dir_suffix:
6767 # *nix default: "sdcc/include"
6770 if test "${include_dir_suffix}" = ""; then
6771 include_dir_suffix="sdcc/include"
6776 # *nix default: "sdcc/lib"
6778 if test "${lib_dir_suffix}" = ""; then
6779 lib_dir_suffix="sdcc/lib"
6784 # *nix default: "${datadir}/sdcc/doc"
6786 if test "${docdir}" = ""; then
6787 docdir="\${datadir}"/sdcc/doc
6796 cat >>confdefs.h <<_ACEOF
6797 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6800 cat >>confdefs.h <<_ACEOF
6801 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6806 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6808 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6811 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6812 ac_expand=`eval echo $ac_expand`
6813 expanded_prefix=`eval echo $ac_expand`
6816 ac_ndu=$expanded_prefix
6818 # change empty paths to '.'
6820 # strip trailing slashes
6821 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6824 # squeze repeated slashes
6825 case $sdccconf_h_dir_separator in
6826 # if the path contains any backslashes, turn slashes into backslashes
6828 # Bernhard Held 2003-04-06
6829 # This was the original line. It doesn't:
6830 # - convert the first slash
6831 # - replace a slash with a double-backslash
6832 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6833 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6835 # if the path contains slashes, also turn backslashes into slashes
6836 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6838 cat >>confdefs.h <<_ACEOF
6839 #define PREFIX "${ac_ndu}"
6845 # default: "${prefix}"
6847 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6849 ac_expand=$exec_prefix
6850 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6851 ac_expand=`eval echo $ac_expand`
6852 expanded_exec_prefix=`eval echo $ac_expand`
6855 ac_ndu=$expanded_exec_prefix
6857 # change empty paths to '.'
6859 # strip trailing slashes
6860 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6863 # squeze repeated slashes
6864 case $sdccconf_h_dir_separator in
6865 # if the path contains any backslashes, turn slashes into backslashes
6867 # Bernhard Held 2003-04-06
6868 # This was the original line. It doesn't:
6869 # - convert the first slash
6870 # - replace a slash with a double-backslash
6871 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6872 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6874 # if the path contains slashes, also turn backslashes into slashes
6875 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6877 cat >>confdefs.h <<_ACEOF
6878 #define EXEC_PREFIX "${ac_ndu}"
6884 # default: "${exec_prefix}/bin"
6886 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6887 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6889 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6890 ac_expand=`eval echo $ac_expand`
6891 expanded_bindir=`eval echo $ac_expand`
6894 ac_ndu=$expanded_bindir
6896 # change empty paths to '.'
6898 # strip trailing slashes
6899 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6902 # squeze repeated slashes
6903 case $sdccconf_h_dir_separator in
6904 # if the path contains any backslashes, turn slashes into backslashes
6906 # Bernhard Held 2003-04-06
6907 # This was the original line. It doesn't:
6908 # - convert the first slash
6909 # - replace a slash with a double-backslash
6910 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6911 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6913 # if the path contains slashes, also turn backslashes into slashes
6914 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6916 cat >>confdefs.h <<_ACEOF
6917 #define BINDIR "${ac_ndu}"
6923 # default: "${prefix}/share"
6925 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6928 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6929 ac_expand=`eval echo $ac_expand`
6930 expanded_datadir=`eval echo $ac_expand`
6933 ac_ndu=$expanded_datadir
6935 # change empty paths to '.'
6937 # strip trailing slashes
6938 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6941 # squeze repeated slashes
6942 case $sdccconf_h_dir_separator in
6943 # if the path contains any backslashes, turn slashes into backslashes
6945 # Bernhard Held 2003-04-06
6946 # This was the original line. It doesn't:
6947 # - convert the first slash
6948 # - replace a slash with a double-backslash
6949 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6950 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6952 # if the path contains slashes, also turn backslashes into slashes
6953 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6955 cat >>confdefs.h <<_ACEOF
6956 #define DATADIR "${ac_ndu}"
6961 # include/lib suffix
6962 norm_inc_dir_suffix=${include_dir_suffix}
6963 case ":$norm_inc_dir_suffix:" in
6964 # change empty paths to '.'
6965 ::) norm_inc_dir_suffix='.' ;;
6966 # strip trailing slashes
6967 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6970 # squeze repeated slashes
6971 case $sdccconf_h_dir_separator in
6972 # if the path contains any backslashes, turn slashes into backslashes
6974 # Bernhard Held 2003-04-06
6975 # This was the original line. It doesn't:
6976 # - convert the first slash
6977 # - replace a slash with a double-backslash
6978 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6979 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6981 # if the path contains slashes, also turn backslashes into slashes
6982 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6984 cat >>confdefs.h <<_ACEOF
6985 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6988 norm_lib_dir_suffix=${lib_dir_suffix}
6989 case ":$norm_lib_dir_suffix:" in
6990 # change empty paths to '.'
6991 ::) norm_lib_dir_suffix='.' ;;
6992 # strip trailing slashes
6993 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6996 # squeze repeated slashes
6997 case $sdccconf_h_dir_separator in
6998 # if the path contains any backslashes, turn slashes into backslashes
7000 # Bernhard Held 2003-04-06
7001 # This was the original line. It doesn't:
7002 # - convert the first slash
7003 # - replace a slash with a double-backslash
7004 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7005 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7007 # if the path contains slashes, also turn backslashes into slashes
7008 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7010 cat >>confdefs.h <<_ACEOF
7011 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
7016 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
7017 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7018 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7019 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7020 _lcl_receval="$_lcl_from"
7021 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7022 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7024 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7025 _lcl_receval_old="$_lcl_receval"
7026 eval _lcl_receval="\"$_lcl_receval\""
7028 echo "$_lcl_receval")`
7029 _lcl_receval="$_lcl_to"
7030 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7031 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7033 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7034 _lcl_receval_old="$_lcl_receval"
7035 eval _lcl_receval="\"$_lcl_receval\""
7037 echo "$_lcl_receval")`
7038 _lcl_notation="$_lcl_from$_lcl_to"
7039 case ":$_lcl_from:" in
7040 # change empty paths to '.'
7041 ::) _lcl_from='.' ;;
7042 # strip trailing slashes
7043 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7046 # squeze repeated slashes
7048 # if the path contains any backslashes, turn slashes into backslashes
7050 # Bernhard Held 2003-04-06
7051 # This was the original line. It doesn't:
7052 # - convert the first slash
7053 # - replace a slash with a double-backslash
7054 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7055 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7057 # if the path contains slashes, also turn backslashes into slashes
7058 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7060 case ":$_lcl_to:" in
7061 # change empty paths to '.'
7063 # strip trailing slashes
7064 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7067 # squeze repeated slashes
7069 # if the path contains any backslashes, turn slashes into backslashes
7071 # Bernhard Held 2003-04-06
7072 # This was the original line. It doesn't:
7073 # - convert the first slash
7074 # - replace a slash with a double-backslash
7075 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7076 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7078 # if the path contains slashes, also turn backslashes into slashes
7079 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7081 _lcl_common_prefix=''
7082 _lcl_second_prefix_match=''
7083 while test "$_lcl_second_prefix_match" != 0; do
7084 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7085 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7086 if test "$_lcl_second_prefix_match" != 0; then
7087 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7088 _lcl_common_prefix="$_lcl_first_prefix"
7090 _lcl_second_prefix_match=0
7094 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7097 while test "$_lcl_tmp" != ''; do
7098 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7099 if test "$_lcl_first_suffix" != ''; then
7100 _lcl_first_suffix="$_lcl_tmp"
7101 _lcl_first_rel="../$_lcl_first_rel"
7104 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7105 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7106 case ":$_lcl_result_tmp:" in
7107 # change empty paths to '.'
7108 ::) _lcl_result_tmp='.' ;;
7109 # strip trailing slashes
7110 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7113 # squeze repeated slashes
7114 case "$_lcl_notation" in
7115 # if the path contains any backslashes, turn slashes into backslashes
7117 # Bernhard Held 2003-04-06
7118 # This was the original line. It doesn't:
7119 # - convert the first slash
7120 # - replace a slash with a double-backslash
7121 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7122 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7124 # if the path contains slashes, also turn backslashes into slashes
7125 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7127 eval $_lcl_result_var='$_lcl_result_tmp'
7129 case ":$bin2data_dir:" in
7130 # change empty paths to '.'
7131 ::) bin2data_dir='.' ;;
7132 # strip trailing slashes
7133 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
7136 # squeze repeated slashes
7137 case $sdccconf_h_dir_separator in
7138 # if the path contains any backslashes, turn slashes into backslashes
7140 # Bernhard Held 2003-04-06
7141 # This was the original line. It doesn't:
7142 # - convert the first slash
7143 # - replace a slash with a double-backslash
7144 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7145 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7147 # if the path contains slashes, also turn backslashes into slashes
7148 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7150 cat >>confdefs.h <<_ACEOF
7151 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
7155 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
7156 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7157 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7158 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7159 _lcl_receval="$_lcl_from"
7160 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7161 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7163 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7164 _lcl_receval_old="$_lcl_receval"
7165 eval _lcl_receval="\"$_lcl_receval\""
7167 echo "$_lcl_receval")`
7168 _lcl_receval="$_lcl_to"
7169 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7170 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7172 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7173 _lcl_receval_old="$_lcl_receval"
7174 eval _lcl_receval="\"$_lcl_receval\""
7176 echo "$_lcl_receval")`
7177 _lcl_notation="$_lcl_from$_lcl_to"
7178 case ":$_lcl_from:" in
7179 # change empty paths to '.'
7180 ::) _lcl_from='.' ;;
7181 # strip trailing slashes
7182 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7185 # squeze repeated slashes
7187 # if the path contains any backslashes, turn slashes into backslashes
7189 # Bernhard Held 2003-04-06
7190 # This was the original line. It doesn't:
7191 # - convert the first slash
7192 # - replace a slash with a double-backslash
7193 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7194 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7196 # if the path contains slashes, also turn backslashes into slashes
7197 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7199 case ":$_lcl_to:" in
7200 # change empty paths to '.'
7202 # strip trailing slashes
7203 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7206 # squeze repeated slashes
7208 # if the path contains any backslashes, turn slashes into backslashes
7210 # Bernhard Held 2003-04-06
7211 # This was the original line. It doesn't:
7212 # - convert the first slash
7213 # - replace a slash with a double-backslash
7214 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7215 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7217 # if the path contains slashes, also turn backslashes into slashes
7218 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7220 _lcl_common_prefix=''
7221 _lcl_second_prefix_match=''
7222 while test "$_lcl_second_prefix_match" != 0; do
7223 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7224 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7225 if test "$_lcl_second_prefix_match" != 0; then
7226 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7227 _lcl_common_prefix="$_lcl_first_prefix"
7229 _lcl_second_prefix_match=0
7233 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7236 while test "$_lcl_tmp" != ''; do
7237 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7238 if test "$_lcl_first_suffix" != ''; then
7239 _lcl_first_suffix="$_lcl_tmp"
7240 _lcl_first_rel="../$_lcl_first_rel"
7243 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7244 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7245 case ":$_lcl_result_tmp:" in
7246 # change empty paths to '.'
7247 ::) _lcl_result_tmp='.' ;;
7248 # strip trailing slashes
7249 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7252 # squeze repeated slashes
7253 case "$_lcl_notation" in
7254 # if the path contains any backslashes, turn slashes into backslashes
7256 # Bernhard Held 2003-04-06
7257 # This was the original line. It doesn't:
7258 # - convert the first slash
7259 # - replace a slash with a double-backslash
7260 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7261 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7263 # if the path contains slashes, also turn backslashes into slashes
7264 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7266 eval $_lcl_result_var='$_lcl_result_tmp'
7268 case ":$prefix2bin_dir:" in
7269 # change empty paths to '.'
7270 ::) prefix2bin_dir='.' ;;
7271 # strip trailing slashes
7272 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
7275 # squeze repeated slashes
7276 case $sdccconf_h_dir_separator in
7277 # if the path contains any backslashes, turn slashes into backslashes
7279 # Bernhard Held 2003-04-06
7280 # This was the original line. It doesn't:
7281 # - convert the first slash
7282 # - replace a slash with a double-backslash
7283 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7284 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7286 # if the path contains slashes, also turn backslashes into slashes
7287 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7289 cat >>confdefs.h <<_ACEOF
7290 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
7294 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
7295 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7296 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7297 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7298 _lcl_receval="$_lcl_from"
7299 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7300 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7302 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7303 _lcl_receval_old="$_lcl_receval"
7304 eval _lcl_receval="\"$_lcl_receval\""
7306 echo "$_lcl_receval")`
7307 _lcl_receval="$_lcl_to"
7308 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7309 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7311 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7312 _lcl_receval_old="$_lcl_receval"
7313 eval _lcl_receval="\"$_lcl_receval\""
7315 echo "$_lcl_receval")`
7316 _lcl_notation="$_lcl_from$_lcl_to"
7317 case ":$_lcl_from:" in
7318 # change empty paths to '.'
7319 ::) _lcl_from='.' ;;
7320 # strip trailing slashes
7321 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7324 # squeze repeated slashes
7326 # if the path contains any backslashes, turn slashes into backslashes
7328 # Bernhard Held 2003-04-06
7329 # This was the original line. It doesn't:
7330 # - convert the first slash
7331 # - replace a slash with a double-backslash
7332 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7333 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7335 # if the path contains slashes, also turn backslashes into slashes
7336 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7338 case ":$_lcl_to:" in
7339 # change empty paths to '.'
7341 # strip trailing slashes
7342 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7345 # squeze repeated slashes
7347 # if the path contains any backslashes, turn slashes into backslashes
7349 # Bernhard Held 2003-04-06
7350 # This was the original line. It doesn't:
7351 # - convert the first slash
7352 # - replace a slash with a double-backslash
7353 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7354 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7356 # if the path contains slashes, also turn backslashes into slashes
7357 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7359 _lcl_common_prefix=''
7360 _lcl_second_prefix_match=''
7361 while test "$_lcl_second_prefix_match" != 0; do
7362 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7363 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7364 if test "$_lcl_second_prefix_match" != 0; then
7365 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7366 _lcl_common_prefix="$_lcl_first_prefix"
7368 _lcl_second_prefix_match=0
7372 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7375 while test "$_lcl_tmp" != ''; do
7376 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7377 if test "$_lcl_first_suffix" != ''; then
7378 _lcl_first_suffix="$_lcl_tmp"
7379 _lcl_first_rel="../$_lcl_first_rel"
7382 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7383 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7384 case ":$_lcl_result_tmp:" in
7385 # change empty paths to '.'
7386 ::) _lcl_result_tmp='.' ;;
7387 # strip trailing slashes
7388 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7391 # squeze repeated slashes
7392 case "$_lcl_notation" in
7393 # if the path contains any backslashes, turn slashes into backslashes
7395 # Bernhard Held 2003-04-06
7396 # This was the original line. It doesn't:
7397 # - convert the first slash
7398 # - replace a slash with a double-backslash
7399 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7400 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7402 # if the path contains slashes, also turn backslashes into slashes
7403 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7405 eval $_lcl_result_var='$_lcl_result_tmp'
7407 case ":$prefix2data_dir:" in
7408 # change empty paths to '.'
7409 ::) prefix2data_dir='.' ;;
7410 # strip trailing slashes
7411 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
7414 # squeze repeated slashes
7415 case $sdccconf_h_dir_separator in
7416 # if the path contains any backslashes, turn slashes into backslashes
7418 # Bernhard Held 2003-04-06
7419 # This was the original line. It doesn't:
7420 # - convert the first slash
7421 # - replace a slash with a double-backslash
7422 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7423 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7425 # if the path contains slashes, also turn backslashes into slashes
7426 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7428 if test "${prefix2data_dir}" = "."; then
7429 # small optimization for Mingw32; otherwise Borut will complain ;-)
7430 cat >>confdefs.h <<_ACEOF
7431 #define PREFIX2DATA_DIR ""
7435 cat >>confdefs.h <<_ACEOF
7436 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
7442 cat >>confdefs.h <<_ACEOF
7443 #define STD_LIB "libsdcc"
7446 cat >>confdefs.h <<_ACEOF
7447 #define STD_INT_LIB "libint"
7450 cat >>confdefs.h <<_ACEOF
7451 #define STD_LONG_LIB "liblong"
7454 cat >>confdefs.h <<_ACEOF
7455 #define STD_FP_LIB "libfloat"
7458 cat >>confdefs.h <<_ACEOF
7459 #define STD_DS390_LIB "libds390"
7462 cat >>confdefs.h <<_ACEOF
7463 #define STD_DS400_LIB "libds400"
7466 cat >>confdefs.h <<_ACEOF
7467 #define STD_XA51_LIB "libxa51"
7471 # SDCC runtime environment variables
7472 sdcc_dir_name="SDCC_HOME"
7473 cat >>confdefs.h <<_ACEOF
7474 #define SDCC_DIR_NAME "${sdcc_dir_name}"
7478 sdcc_include_name="SDCC_INCLUDE"
7479 cat >>confdefs.h <<_ACEOF
7480 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
7484 sdcc_lib_name="SDCC_LIB"
7485 cat >>confdefs.h <<_ACEOF
7486 #define SDCC_LIB_NAME "${sdcc_lib_name}"
7490 # Now handle the port selection
7491 # ===========================================================================
7492 rm -f ports.all ports.build
7493 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
7494 if test "${enable_mcs51_port+set}" = set; then
7495 enableval="$enable_mcs51_port"
7498 echo mcs51 >>ports.all
7499 if test "$enable_mcs51_port" = "no"; then
7500 cat >>confdefs.h <<_ACEOF
7501 #define OPT_DISABLE_MCS51 1
7505 echo mcs51 >>ports.build
7506 cat >>confdefs.h <<_ACEOF
7507 #define OPT_DISABLE_MCS51 0
7512 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
7513 if test "${enable_gbz80_port+set}" = set; then
7514 enableval="$enable_gbz80_port"
7517 echo z80 >>ports.all
7518 if test "$enable_gbz80_port" = "no"; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define OPT_DISABLE_GBZ80 1
7524 echo z80 >>ports.build
7525 cat >>confdefs.h <<_ACEOF
7526 #define OPT_DISABLE_GBZ80 0
7531 # Check whether --enable-z80-port or --disable-z80-port was given.
7532 if test "${enable_z80_port+set}" = set; then
7533 enableval="$enable_z80_port"
7536 echo z80 >>ports.all
7537 if test "$enable_z80_port" = "no"; then
7538 cat >>confdefs.h <<_ACEOF
7539 #define OPT_DISABLE_Z80 1
7543 echo z80 >>ports.build
7544 cat >>confdefs.h <<_ACEOF
7545 #define OPT_DISABLE_Z80 0
7550 # Check whether --enable-avr-port or --disable-avr-port was given.
7551 if test "${enable_avr_port+set}" = set; then
7552 enableval="$enable_avr_port"
7555 echo avr >>ports.all
7556 if test "$enable_avr_port" = "no"; then
7557 cat >>confdefs.h <<_ACEOF
7558 #define OPT_DISABLE_AVR 1
7562 echo avr >>ports.build
7563 cat >>confdefs.h <<_ACEOF
7564 #define OPT_DISABLE_AVR 0
7569 # Check whether --enable-ds390-port or --disable-ds390-port was given.
7570 if test "${enable_ds390_port+set}" = set; then
7571 enableval="$enable_ds390_port"
7574 echo ds390 >>ports.all
7575 if test "$enable_ds390_port" = "no"; then
7576 cat >>confdefs.h <<_ACEOF
7577 #define OPT_DISABLE_DS390 1
7580 cat >>confdefs.h <<_ACEOF
7581 #define OPT_DISABLE_TININative 1
7585 echo ds390 >>ports.build
7586 cat >>confdefs.h <<_ACEOF
7587 #define OPT_DISABLE_DS390 0
7590 cat >>confdefs.h <<_ACEOF
7591 #define OPT_DISABLE_TININative 0
7596 # Check whether --enable-ds400-port or --disable-ds400-port was given.
7597 if test "${enable_ds400_port+set}" = set; then
7598 enableval="$enable_ds400_port"
7601 echo ds400 >>ports.all
7602 if test "$enable_ds400_port" = "no"; then
7603 cat >>confdefs.h <<_ACEOF
7604 #define OPT_DISABLE_DS400 1
7608 echo ds400 >>ports.build
7609 cat >>confdefs.h <<_ACEOF
7610 #define OPT_DISABLE_DS400 0
7615 # Check whether --enable-pic-port or --disable-pic-port was given.
7616 if test "${enable_pic_port+set}" = set; then
7617 enableval="$enable_pic_port"
7620 echo pic >>ports.all
7621 if test "$enable_pic_port" = "no"; then
7622 cat >>confdefs.h <<_ACEOF
7623 #define OPT_DISABLE_PIC 1
7627 echo pic >>ports.build
7628 cat >>confdefs.h <<_ACEOF
7629 #define OPT_DISABLE_PIC 0
7634 # Check whether --enable-pic16-port or --disable-pic16-port was given.
7635 if test "${enable_pic16_port+set}" = set; then
7636 enableval="$enable_pic16_port"
7639 echo pic16 >>ports.all
7640 if test "$enable_pic16_port" = "no"; then
7641 cat >>confdefs.h <<_ACEOF
7642 #define OPT_DISABLE_PIC16 1
7646 echo pic16 >>ports.build
7647 cat >>confdefs.h <<_ACEOF
7648 #define OPT_DISABLE_PIC16 0
7653 # Check whether --enable-xa51-port or --disable-xa51-port was given.
7654 if test "${enable_xa51_port+set}" = set; then
7655 enableval="$enable_xa51_port"
7658 echo xa51 >>ports.all
7659 if test "$enable_xa51_port" = "no"; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define OPT_DISABLE_XA51 1
7665 echo xa51 >>ports.build
7666 cat >>confdefs.h <<_ACEOF
7667 #define OPT_DISABLE_XA51 0
7672 # Check whether --enable-hc08-port or --disable-hc08-port was given.
7673 if test "${enable_hc08_port+set}" = set; then
7674 enableval="$enable_hc08_port"
7677 echo hc08 >>ports.all
7678 if test "$enable_hc08_port" = "no"; then
7679 cat >>confdefs.h <<_ACEOF
7680 #define OPT_DISABLE_HC08 1
7684 echo hc08 >>ports.build
7685 cat >>confdefs.h <<_ACEOF
7686 #define OPT_DISABLE_HC08 0
7691 # Check whether --enable-ucsim or --disable-ucsim was given.
7692 if test "${enable_ucsim+set}" = set; then
7693 enableval="$enable_ucsim"
7696 OPT_ENABLE_UCSIM=$enable_ucsim
7699 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
7700 if test "${enable_device_lib_build+set}" = set; then
7701 enableval="$enable_device_lib_build"
7704 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
7707 # Check whether --enable-packihx or --disable-packihx was given.
7708 if test "${enable_packihx+set}" = set; then
7709 enableval="$enable_packihx"
7712 OPT_ENABLE_PACKIHX=$enable_packihx
7715 # Check whether --enable-libgc or --disable-libgc was given.
7716 if test "${enable_libgc+set}" = set; then
7717 enableval="$enable_libgc"
7720 if test "$enable_libgc" = "yes"; then
7722 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7723 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7724 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_check_lib_save_LIBS=$LIBS
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7736 /* Override any gcc2 internal prototype to avoid an error. */
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest$ac_exeext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_lib_gc_GC_malloc=yes
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_lib_gc_GC_malloc=no
7780 rm -f conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 LIBS=$ac_check_lib_save_LIBS
7784 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7785 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7786 if test $ac_cv_lib_gc_GC_malloc = yes; then
7787 cat >>confdefs.h <<_ACEOF
7788 #define HAVE_LIBGC 1
7799 cat >>confdefs.h <<_ACEOF
7800 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7805 uniq ports.all ports
7807 uniq ports.build ports
7808 mv ports ports.build
7810 # Generating output files
7811 # ===========================================================================
7814 subdirs="$subdirs support/cpp2"
7818 subdirs="$subdirs packihx"
7822 subdirs="$subdirs sim/ucsim"
7826 subdirs="$subdirs device/lib/pic16"
7830 subdirs="$subdirs device/lib/pic"
7833 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"
7835 cat >confcache <<\_ACEOF
7836 # This file is a shell script that caches the results of configure
7837 # tests run on this system so they can be shared between configure
7838 # scripts and configure runs, see configure's option --config-cache.
7839 # It is not useful on other systems. If it contains results you don't
7840 # want to keep, you may remove or edit it.
7842 # config.status only pays attention to the cache file if you give it
7843 # the --recheck option to rerun configure.
7845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7851 # The following way of writing the cache mishandles newlines in values,
7852 # but we know of no workaround that is simple, portable, and efficient.
7853 # So, don't put newlines in cache variables' values.
7854 # Ultrix sh set writes to stderr and can't be redirected directly,
7855 # and sets the high bit in the cache file unless we assign to the vars.
7858 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7860 # `set' does not quote correctly, so add quotes (double-quote
7861 # substitution turns \\\\ into \\, and sed turns \\ into \).
7864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7867 # `set' quotes correctly as required by POSIX, so do not add quotes.
7869 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7876 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7878 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7880 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7881 if test -w $cache_file; then
7882 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7883 cat confcache >$cache_file
7885 echo "not updating unwritable cache $cache_file"
7890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7891 # Let make expand exec_prefix.
7892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7896 # trailing colons and then remove the whole line if VPATH becomes empty
7897 # (actually we leave an empty line to preserve line numbers).
7898 if test "x$srcdir" = x.; then
7899 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7900 s/:*\$(srcdir):*/:/;
7901 s/:*\${srcdir}:*/:/;
7903 s/^\([^=]*=[ ]*\):*/\1/;
7909 DEFS=-DHAVE_CONFIG_H
7913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7914 # 1. Remove the extension, and $U if already installed.
7915 ac_i=`echo "$ac_i" |
7916 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7918 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7919 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7923 LTLIBOBJS=$ac_ltlibobjs
7927 : ${CONFIG_STATUS=./config.status}
7928 ac_clean_files_save=$ac_clean_files
7929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7930 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7931 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7932 cat >$CONFIG_STATUS <<_ACEOF
7934 # Generated by $as_me.
7935 # Run this file to recreate the current configuration.
7936 # Compiler output produced by configure, useful for debugging
7937 # configure, is in config.log if it exists.
7942 SHELL=\${CONFIG_SHELL-$SHELL}
7945 cat >>$CONFIG_STATUS <<\_ACEOF
7946 ## --------------------- ##
7947 ## M4sh Initialization. ##
7948 ## --------------------- ##
7950 # Be Bourne compatible
7951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7954 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7955 # is contrary to our usage. Disable this feature.
7956 alias -g '${1+"$@"}'='"$@"'
7957 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7960 DUALCASE=1; export DUALCASE # for MKS sh
7962 # Support unset when possible.
7963 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7970 # Work around bugs in pre-3.0 UWIN ksh.
7971 $as_unset ENV MAIL MAILPATH
7978 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7979 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7980 LC_TELEPHONE LC_TIME
7982 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7983 eval $as_var=C; export $as_var
7989 # Required to use basename.
7990 if expr a : '\(a\)' >/dev/null 2>&1; then
7996 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7997 as_basename=basename
8003 # Name of the executable.
8004 as_me=`$as_basename "$0" ||
8005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8006 X"$0" : 'X\(//\)$' \| \
8007 X"$0" : 'X\(/\)$' \| \
8008 . : '\(.\)' 2>/dev/null ||
8010 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8011 /^X\/\(\/\/\)$/{ s//\1/; q; }
8012 /^X\/\(\/\).*/{ s//\1/; q; }
8016 # PATH needs CR, and LINENO needs CR and PATH.
8017 # Avoid depending upon Character Ranges.
8018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8021 as_cr_digits='0123456789'
8022 as_cr_alnum=$as_cr_Letters$as_cr_digits
8024 # The user is always right.
8025 if test "${PATH_SEPARATOR+set}" != set; then
8026 echo "#! /bin/sh" >conf$$.sh
8027 echo "exit 0" >>conf$$.sh
8029 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8040 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8041 test "x$as_lineno_1" != "x$as_lineno_2" &&
8042 test "x$as_lineno_3" = "x$as_lineno_2" || {
8043 # Find who we are. Look in the path if we contain no path at all
8046 *[\\/]* ) as_myself=$0 ;;
8047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 test -z "$as_dir" && as_dir=.
8052 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8057 # We did not find ourselves, most probably we were run as `sh COMMAND'
8058 # in which case we are not to be found in the path.
8059 if test "x$as_myself" = x; then
8062 if test ! -f "$as_myself"; then
8063 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8064 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8065 { (exit 1); exit 1; }; }
8067 case $CONFIG_SHELL in
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8073 test -z "$as_dir" && as_dir=.
8074 for as_base in sh bash ksh sh5; do
8077 if ("$as_dir/$as_base" -c '
8080 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8081 test "x$as_lineno_1" != "x$as_lineno_2" &&
8082 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8083 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8084 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8085 CONFIG_SHELL=$as_dir/$as_base
8087 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8095 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8096 # uniformly replaced by the line number. The first 'sed' inserts a
8097 # line-number line before each line; the second 'sed' does the real
8098 # work. The second script uses 'N' to pair each line-number line
8099 # with the numbered line, and appends trailing '-' during
8100 # substitution so that $LINENO is not a special case at line end.
8101 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8102 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8103 sed '=' <$as_myself |
8108 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8111 s,^['$as_cr_digits']*\n,,
8113 chmod +x $as_me.lineno ||
8114 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8115 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8116 { (exit 1); exit 1; }; }
8118 # Don't try to exec as it changes $[0], causing all sort of problems
8119 # (the dirname of $[0] is not the place where we might find the
8120 # original and so on. Autoconf is especially sensible to this).
8122 # Exit status is that of the last command.
8127 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8128 *c*,-n*) ECHO_N= ECHO_C='
8130 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8131 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8134 if expr a : '\(a\)' >/dev/null 2>&1; then
8140 rm -f conf$$ conf$$.exe conf$$.file
8142 if ln -s conf$$.file conf$$ 2>/dev/null; then
8143 # We could just check for DJGPP; but this test a) works b) is more generic
8144 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8145 if test -f conf$$.exe; then
8146 # Don't use ln at all; we don't have any links
8151 elif ln conf$$.file conf$$ 2>/dev/null; then
8156 rm -f conf$$ conf$$.exe conf$$.file
8158 if mkdir -p . 2>/dev/null; then
8161 test -d ./-p && rmdir ./-p
8165 as_executable_p="test -f"
8167 # Sed expression to map a string onto a valid CPP name.
8168 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8170 # Sed expression to map a string onto a valid variable name.
8171 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8175 # We need space, tab and new line, in precisely that order.
8185 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8186 # report actual input values of CONFIG_FILES etc. instead of their
8187 # values after options handling. Logging --version etc. is OK.
8191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8192 ## Running $as_me. ##
8197 This file was extended by $as_me, which was
8198 generated by GNU Autoconf 2.59. Invocation command line was
8200 CONFIG_FILES = $CONFIG_FILES
8201 CONFIG_HEADERS = $CONFIG_HEADERS
8202 CONFIG_LINKS = $CONFIG_LINKS
8203 CONFIG_COMMANDS = $CONFIG_COMMANDS
8207 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8211 # Files that config.status was made for.
8212 if test -n "$ac_config_files"; then
8213 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8216 if test -n "$ac_config_headers"; then
8217 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8220 if test -n "$ac_config_links"; then
8221 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8224 if test -n "$ac_config_commands"; then
8225 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8228 cat >>$CONFIG_STATUS <<\_ACEOF
8231 \`$as_me' instantiates files from templates according to the
8232 current configuration.
8234 Usage: $0 [OPTIONS] [FILE]...
8236 -h, --help print this help, then exit
8237 -V, --version print version number, then exit
8238 -q, --quiet do not print progress messages
8239 -d, --debug don't remove temporary files
8240 --recheck update $as_me by reconfiguring in the same conditions
8241 --file=FILE[:TEMPLATE]
8242 instantiate the configuration file FILE
8243 --header=FILE[:TEMPLATE]
8244 instantiate the configuration header FILE
8246 Configuration files:
8249 Configuration headers:
8252 Report bugs to <bug-autoconf@gnu.org>."
8255 cat >>$CONFIG_STATUS <<_ACEOF
8258 configured by $0, generated by GNU Autoconf 2.59,
8259 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8261 Copyright (C) 2003 Free Software Foundation, Inc.
8262 This config.status script is free software; the Free Software Foundation
8263 gives unlimited permission to copy, distribute and modify it."
8268 cat >>$CONFIG_STATUS <<\_ACEOF
8269 # If no file are specified by the user, then we need to provide default
8270 # value. By we need to know if files were specified by the user.
8276 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8277 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8285 *) # This is not an option, so the user has probably given explicit
8288 ac_need_defaults=false;;
8292 # Handling of the options.
8294 cat >>$CONFIG_STATUS <<\_ACEOF
8295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8297 --version | --vers* | -V )
8298 echo "$ac_cs_version"; exit 0 ;;
8300 # Conflict between --help and --header
8301 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8302 Try \`$0 --help' for more information." >&5
8303 echo "$as_me: error: ambiguous option: $1
8304 Try \`$0 --help' for more information." >&2;}
8305 { (exit 1); exit 1; }; };;
8306 --help | --hel | -h )
8307 echo "$ac_cs_usage"; exit 0 ;;
8308 --debug | --d* | -d )
8310 --file | --fil | --fi | --f )
8312 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8313 ac_need_defaults=false;;
8314 --header | --heade | --head | --hea )
8316 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8317 ac_need_defaults=false;;
8318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8323 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8324 Try \`$0 --help' for more information." >&5
8325 echo "$as_me: error: unrecognized option: $1
8326 Try \`$0 --help' for more information." >&2;}
8327 { (exit 1); exit 1; }; } ;;
8329 *) ac_config_targets="$ac_config_targets $1" ;;
8335 ac_configure_extra_args=
8337 if $ac_cs_silent; then
8339 ac_configure_extra_args="$ac_configure_extra_args --silent"
8343 cat >>$CONFIG_STATUS <<_ACEOF
8344 if \$ac_cs_recheck; then
8345 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8346 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8355 cat >>$CONFIG_STATUS <<\_ACEOF
8356 for ac_config_target in $ac_config_targets
8358 case "$ac_config_target" in
8359 # Handling of arguments.
8360 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8361 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8362 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8363 "as/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8364 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8365 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8366 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
8367 "support/regression/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8368 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8369 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8372 { (exit 1); exit 1; }; };;
8376 # If the user did not use the arguments to specify the items to instantiate,
8377 # then the envvar interface is used. Set only those that are not.
8378 # We use the long form for the default assignment because of an extremely
8379 # bizarre bug on SunOS 4.1.3.
8380 if $ac_need_defaults; then
8381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8385 # Have a temporary directory for convenience. Make it in the build tree
8386 # simply because there is no reason to put it here, and in addition,
8387 # creating and moving files from /tmp can sometimes cause problems.
8388 # Create a temporary directory, and hook for its removal unless debugging.
8391 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8392 trap '{ (exit 1); exit 1; }' 1 2 13 15
8395 # Create a (secure) tmp directory for tmp files.
8398 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8399 test -n "$tmp" && test -d "$tmp"
8402 tmp=./confstat$$-$RANDOM
8403 (umask 077 && mkdir $tmp)
8406 echo "$me: cannot create a temporary directory in ." >&2
8407 { (exit 1); exit 1; }
8412 cat >>$CONFIG_STATUS <<_ACEOF
8415 # CONFIG_FILES section.
8418 # No need to generate the scripts if there are no CONFIG_FILES.
8419 # This happens for instance when ./config.status config.h
8420 if test -n "\$CONFIG_FILES"; then
8421 # Protect against being on the right side of a sed subst in config.status.
8422 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8423 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8424 s,@SHELL@,$SHELL,;t t
8425 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8426 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8427 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8428 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8429 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8430 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8431 s,@exec_prefix@,$exec_prefix,;t t
8432 s,@prefix@,$prefix,;t t
8433 s,@program_transform_name@,$program_transform_name,;t t
8434 s,@bindir@,$bindir,;t t
8435 s,@sbindir@,$sbindir,;t t
8436 s,@libexecdir@,$libexecdir,;t t
8437 s,@datadir@,$datadir,;t t
8438 s,@sysconfdir@,$sysconfdir,;t t
8439 s,@sharedstatedir@,$sharedstatedir,;t t
8440 s,@localstatedir@,$localstatedir,;t t
8441 s,@libdir@,$libdir,;t t
8442 s,@includedir@,$includedir,;t t
8443 s,@oldincludedir@,$oldincludedir,;t t
8444 s,@infodir@,$infodir,;t t
8445 s,@mandir@,$mandir,;t t
8446 s,@build_alias@,$build_alias,;t t
8447 s,@host_alias@,$host_alias,;t t
8448 s,@target_alias@,$target_alias,;t t
8450 s,@ECHO_C@,$ECHO_C,;t t
8451 s,@ECHO_N@,$ECHO_N,;t t
8452 s,@ECHO_T@,$ECHO_T,;t t
8455 s,@VERSION@,$VERSION,;t t
8456 s,@VERSIONHI@,$VERSIONHI,;t t
8457 s,@VERSIONLO@,$VERSIONLO,;t t
8458 s,@VERSIONP@,$VERSIONP,;t t
8460 s,@CFLAGS@,$CFLAGS,;t t
8461 s,@LDFLAGS@,$LDFLAGS,;t t
8462 s,@CPPFLAGS@,$CPPFLAGS,;t t
8463 s,@ac_ct_CC@,$ac_ct_CC,;t t
8464 s,@EXEEXT@,$EXEEXT,;t t
8465 s,@OBJEXT@,$OBJEXT,;t t
8467 s,@CXXFLAGS@,$CXXFLAGS,;t t
8468 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8470 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8471 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8472 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8473 s,@RANLIB@,$RANLIB,;t t
8474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8476 s,@LEXLIB@,$LEXLIB,;t t
8477 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8479 s,@AUTOCONF@,$AUTOCONF,;t t
8480 s,@STRIP@,$STRIP,;t t
8484 s,@LATEX@,$LATEX,;t t
8485 s,@LATEX2HTML@,$LATEX2HTML,;t t
8486 s,@PDFLATEX@,$PDFLATEX,;t t
8487 s,@DVIPDF@,$DVIPDF,;t t
8488 s,@EGREP@,$EGREP,;t t
8489 s,@M_OR_MM@,$M_OR_MM,;t t
8490 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
8491 s,@include_dir_suffix@,$include_dir_suffix,;t t
8492 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
8493 s,@docdir@,$docdir,;t t
8494 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
8495 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
8496 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
8497 s,@subdirs@,$subdirs,;t t
8498 s,@LIBOBJS@,$LIBOBJS,;t t
8499 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8504 cat >>$CONFIG_STATUS <<\_ACEOF
8505 # Split the substitutions into bite-sized pieces for seds with
8506 # small command number limits, like on Digital OSF/1 and HP-UX.
8508 ac_sed_frag=1 # Number of current file.
8509 ac_beg=1 # First line for current file.
8510 ac_end=$ac_max_sed_lines # Line after last line for current file.
8513 while $ac_more_lines; do
8514 if test $ac_beg -gt 1; then
8515 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8517 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8519 if test ! -s $tmp/subs.frag; then
8522 # The purpose of the label and of the branching condition is to
8523 # speed up the sed processing (if there are no `@' at all, there
8524 # is no need to browse any of the substitutions).
8525 # These are the two extra sed commands mentioned above.
8527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8528 if test -z "$ac_sed_cmds"; then
8529 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8531 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8533 ac_sed_frag=`expr $ac_sed_frag + 1`
8535 ac_end=`expr $ac_end + $ac_max_sed_lines`
8538 if test -z "$ac_sed_cmds"; then
8541 fi # test -n "$CONFIG_FILES"
8544 cat >>$CONFIG_STATUS <<\_ACEOF
8545 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8546 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8548 - | *:- | *:-:* ) # input from stdin
8550 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8552 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8554 * ) ac_file_in=$ac_file.in ;;
8557 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8558 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8560 X"$ac_file" : 'X\(//\)[^/]' \| \
8561 X"$ac_file" : 'X\(//\)$' \| \
8562 X"$ac_file" : 'X\(/\)' \| \
8563 . : '\(.\)' 2>/dev/null ||
8565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8567 /^X\(\/\/\)$/{ s//\1/; q; }
8568 /^X\(\/\).*/{ s//\1/; q; }
8570 { if $as_mkdir_p; then
8575 while test ! -d "$as_dir"; do
8576 as_dirs="$as_dir $as_dirs"
8577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8578 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8579 X"$as_dir" : 'X\(//\)[^/]' \| \
8580 X"$as_dir" : 'X\(//\)$' \| \
8581 X"$as_dir" : 'X\(/\)' \| \
8582 . : '\(.\)' 2>/dev/null ||
8584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8586 /^X\(\/\/\)$/{ s//\1/; q; }
8587 /^X\(\/\).*/{ s//\1/; q; }
8590 test ! -n "$as_dirs" || mkdir $as_dirs
8591 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8592 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8593 { (exit 1); exit 1; }; }; }
8597 if test "$ac_dir" != .; then
8598 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8599 # A "../" for each directory in $ac_dir_suffix.
8600 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8602 ac_dir_suffix= ac_top_builddir=
8606 .) # No --srcdir option. We are building in place.
8608 if test -z "$ac_top_builddir"; then
8611 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8613 [\\/]* | ?:[\\/]* ) # Absolute path.
8614 ac_srcdir=$srcdir$ac_dir_suffix;
8615 ac_top_srcdir=$srcdir ;;
8617 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8618 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8621 # Do not use `cd foo && pwd` to compute absolute paths, because
8622 # the directories may not exist.
8624 .) ac_abs_builddir="$ac_dir";;
8627 .) ac_abs_builddir=`pwd`;;
8628 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8629 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8632 case $ac_abs_builddir in
8633 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8635 case ${ac_top_builddir}. in
8636 .) ac_abs_top_builddir=$ac_abs_builddir;;
8637 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8638 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8641 case $ac_abs_builddir in
8642 .) ac_abs_srcdir=$ac_srcdir;;
8645 .) ac_abs_srcdir=$ac_abs_builddir;;
8646 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8647 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8650 case $ac_abs_builddir in
8651 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8653 case $ac_top_srcdir in
8654 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8655 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8656 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8663 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8666 if test x"$ac_file" != x-; then
8667 { echo "$as_me:$LINENO: creating $ac_file" >&5
8668 echo "$as_me: creating $ac_file" >&6;}
8671 # Let's still pretend it is `configure' which instantiates (i.e., don't
8672 # use $as_me), people would be surprised to read:
8673 # /* config.h. Generated by config.status. */
8674 if test x"$ac_file" = x-; then
8677 configure_input="$ac_file. "
8679 configure_input=$configure_input"Generated from `echo $ac_file_in |
8680 sed 's,.*/,,'` by configure."
8682 # First look for the input files in the build tree, otherwise in the
8684 ac_file_inputs=`IFS=:
8685 for f in $ac_file_in; do
8687 -) echo $tmp/stdin ;;
8689 # Absolute (can't be DOS-style, as IFS=:)
8690 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8691 echo "$as_me: error: cannot find input file: $f" >&2;}
8692 { (exit 1); exit 1; }; }
8695 if test -f "$f"; then
8698 elif test -f "$srcdir/$f"; then
8703 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8704 echo "$as_me: error: cannot find input file: $f" >&2;}
8705 { (exit 1); exit 1; }; }
8708 done` || { (exit 1); exit 1; }
8710 cat >>$CONFIG_STATUS <<_ACEOF
8714 cat >>$CONFIG_STATUS <<\_ACEOF
8716 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8717 s,@configure_input@,$configure_input,;t t
8718 s,@srcdir@,$ac_srcdir,;t t
8719 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8720 s,@top_srcdir@,$ac_top_srcdir,;t t
8721 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8722 s,@builddir@,$ac_builddir,;t t
8723 s,@abs_builddir@,$ac_abs_builddir,;t t
8724 s,@top_builddir@,$ac_top_builddir,;t t
8725 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8726 s,@INSTALL@,$ac_INSTALL,;t t
8727 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8729 if test x"$ac_file" != x-; then
8730 mv $tmp/out $ac_file
8738 cat >>$CONFIG_STATUS <<\_ACEOF
8741 # CONFIG_HEADER section.
8744 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8745 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8747 # ac_d sets the value in "#define NAME VALUE" lines.
8748 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8749 ac_dB='[ ].*$,\1#\2'
8752 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8753 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8754 ac_uB='$,\1#\2define\3'
8758 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8759 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8761 - | *:- | *:-:* ) # input from stdin
8763 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8765 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8767 * ) ac_file_in=$ac_file.in ;;
8770 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8771 echo "$as_me: creating $ac_file" >&6;}
8773 # First look for the input files in the build tree, otherwise in the
8775 ac_file_inputs=`IFS=:
8776 for f in $ac_file_in; do
8778 -) echo $tmp/stdin ;;
8780 # Absolute (can't be DOS-style, as IFS=:)
8781 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8782 echo "$as_me: error: cannot find input file: $f" >&2;}
8783 { (exit 1); exit 1; }; }
8784 # Do quote $f, to prevent DOS paths from being IFS'd.
8787 if test -f "$f"; then
8790 elif test -f "$srcdir/$f"; then
8795 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8796 echo "$as_me: error: cannot find input file: $f" >&2;}
8797 { (exit 1); exit 1; }; }
8800 done` || { (exit 1); exit 1; }
8801 # Remove the trailing spaces.
8802 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8806 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8807 # `conftest.undefs', that substitutes the proper values into
8808 # config.h.in to produce config.h. The first handles `#define'
8809 # templates, and the second `#undef' templates.
8810 # And first: Protect against being on the right side of a sed subst in
8811 # config.status. Protect against being in an unquoted here document
8813 rm -f conftest.defines conftest.undefs
8814 # Using a here document instead of a string reduces the quoting nightmare.
8815 # Putting comments in sed scripts is not portable.
8817 # `end' is used to avoid that the second main sed command (meant for
8818 # 0-ary CPP macros) applies to n-ary macro definitions.
8819 # See the Autoconf documentation for `clear'.
8820 cat >confdef2sed.sed <<\_ACEOF
8825 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8827 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8830 # If some macros were called several times there might be several times
8831 # the same #defines, which is useless. Nevertheless, we may not want to
8832 # sort them, since we want the *last* AC-DEFINE to be honored.
8833 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8834 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8835 rm -f confdef2sed.sed
8837 # This sed command replaces #undef with comments. This is necessary, for
8838 # example, in the case of _POSIX_SOURCE, which is predefined and required
8839 # on some systems where configure will not decide to define it.
8840 cat >>conftest.undefs <<\_ACEOF
8841 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8844 # Break up conftest.defines because some shells have a limit on the size
8845 # of here documents, and old seds have small limits too (100 cmds).
8846 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8847 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8848 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8849 echo ' :' >>$CONFIG_STATUS
8851 while grep . conftest.defines >/dev/null
8853 # Write a limited-size here document to $tmp/defines.sed.
8854 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8855 # Speed up: don't consider the non `#define' lines.
8856 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8857 # Work around the forget-to-reset-the-flag bug.
8858 echo 't clr' >>$CONFIG_STATUS
8859 echo ': clr' >>$CONFIG_STATUS
8860 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8862 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8866 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8867 rm -f conftest.defines
8868 mv conftest.tail conftest.defines
8870 rm -f conftest.defines
8871 echo ' fi # grep' >>$CONFIG_STATUS
8872 echo >>$CONFIG_STATUS
8874 # Break up conftest.undefs because some shells have a limit on the size
8875 # of here documents, and old seds have small limits too (100 cmds).
8876 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8878 while grep . conftest.undefs >/dev/null
8880 # Write a limited-size here document to $tmp/undefs.sed.
8881 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8882 # Speed up: don't consider the non `#undef'
8883 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8884 # Work around the forget-to-reset-the-flag bug.
8885 echo 't clr' >>$CONFIG_STATUS
8886 echo ': clr' >>$CONFIG_STATUS
8887 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8889 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8893 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8894 rm -f conftest.undefs
8895 mv conftest.tail conftest.undefs
8897 rm -f conftest.undefs
8899 cat >>$CONFIG_STATUS <<\_ACEOF
8900 # Let's still pretend it is `configure' which instantiates (i.e., don't
8901 # use $as_me), people would be surprised to read:
8902 # /* config.h. Generated by config.status. */
8903 if test x"$ac_file" = x-; then
8904 echo "/* Generated by configure. */" >$tmp/config.h
8906 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8908 cat $tmp/in >>$tmp/config.h
8910 if test x"$ac_file" != x-; then
8911 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8912 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8913 echo "$as_me: $ac_file is unchanged" >&6;}
8915 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8917 X"$ac_file" : 'X\(//\)[^/]' \| \
8918 X"$ac_file" : 'X\(//\)$' \| \
8919 X"$ac_file" : 'X\(/\)' \| \
8920 . : '\(.\)' 2>/dev/null ||
8922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8924 /^X\(\/\/\)$/{ s//\1/; q; }
8925 /^X\(\/\).*/{ s//\1/; q; }
8927 { if $as_mkdir_p; then
8932 while test ! -d "$as_dir"; do
8933 as_dirs="$as_dir $as_dirs"
8934 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8936 X"$as_dir" : 'X\(//\)[^/]' \| \
8937 X"$as_dir" : 'X\(//\)$' \| \
8938 X"$as_dir" : 'X\(/\)' \| \
8939 . : '\(.\)' 2>/dev/null ||
8941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8943 /^X\(\/\/\)$/{ s//\1/; q; }
8944 /^X\(\/\).*/{ s//\1/; q; }
8947 test ! -n "$as_dirs" || mkdir $as_dirs
8948 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8949 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8950 { (exit 1); exit 1; }; }; }
8953 mv $tmp/config.h $ac_file
8962 cat >>$CONFIG_STATUS <<\_ACEOF
8964 { (exit 0); exit 0; }
8966 chmod +x $CONFIG_STATUS
8967 ac_clean_files=$ac_clean_files_save
8970 # configure is writing to config.log, and then calls config.status.
8971 # config.status does its own redirection, appending to config.log.
8972 # Unfortunately, on DOS this fails, as config.log is still kept open
8973 # by configure, so config.status won't be able to write to it; its
8974 # output is simply discarded. So we exec the FD to /dev/null,
8975 # effectively closing config.log, so it can be properly (re)opened and
8976 # appended to by config.status. When coming back to configure, we
8977 # need to make the FD available again.
8978 if test "$no_create" != yes; then
8980 ac_config_status_args=
8981 test "$silent" = yes &&
8982 ac_config_status_args="$ac_config_status_args --quiet"
8984 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8987 # would make configure fail if this is the last instruction.
8988 $ac_cs_success || { (exit 1); exit 1; }
8992 # CONFIG_SUBDIRS section.
8994 if test "$no_recursion" != yes; then
8996 # Remove --cache-file and --srcdir arguments so they do not pile up.
8997 ac_sub_configure_args=
8999 for ac_arg in $ac_configure_args; do
9000 if test -n "$ac_prev"; then
9005 -cache-file | --cache-file | --cache-fil | --cache-fi \
9006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9007 ac_prev=cache_file ;;
9008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9012 --config-cache | -C)
9014 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9016 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9022 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9026 # Always prepend --prefix to ensure using the same prefix
9027 # in subdir configurations.
9028 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
9031 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9033 # Do not complain, so a configure script can configure whichever
9034 # parts of a large source tree are present.
9035 test -d $srcdir/$ac_dir || continue
9037 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
9038 echo "$as_me: configuring in $ac_dir" >&6;}
9039 { if $as_mkdir_p; then
9044 while test ! -d "$as_dir"; do
9045 as_dirs="$as_dir $as_dirs"
9046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9048 X"$as_dir" : 'X\(//\)[^/]' \| \
9049 X"$as_dir" : 'X\(//\)$' \| \
9050 X"$as_dir" : 'X\(/\)' \| \
9051 . : '\(.\)' 2>/dev/null ||
9053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9055 /^X\(\/\/\)$/{ s//\1/; q; }
9056 /^X\(\/\).*/{ s//\1/; q; }
9059 test ! -n "$as_dirs" || mkdir $as_dirs
9060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9062 { (exit 1); exit 1; }; }; }
9066 if test "$ac_dir" != .; then
9067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9068 # A "../" for each directory in $ac_dir_suffix.
9069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9071 ac_dir_suffix= ac_top_builddir=
9075 .) # No --srcdir option. We are building in place.
9077 if test -z "$ac_top_builddir"; then
9080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9082 [\\/]* | ?:[\\/]* ) # Absolute path.
9083 ac_srcdir=$srcdir$ac_dir_suffix;
9084 ac_top_srcdir=$srcdir ;;
9086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9090 # Do not use `cd foo && pwd` to compute absolute paths, because
9091 # the directories may not exist.
9093 .) ac_abs_builddir="$ac_dir";;
9096 .) ac_abs_builddir=`pwd`;;
9097 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9098 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9101 case $ac_abs_builddir in
9102 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9104 case ${ac_top_builddir}. in
9105 .) ac_abs_top_builddir=$ac_abs_builddir;;
9106 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9107 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9110 case $ac_abs_builddir in
9111 .) ac_abs_srcdir=$ac_srcdir;;
9114 .) ac_abs_srcdir=$ac_abs_builddir;;
9115 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9116 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9119 case $ac_abs_builddir in
9120 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9122 case $ac_top_srcdir in
9123 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9124 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9125 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9132 # Check for guested configure; otherwise get Cygnus style configure.
9133 if test -f $ac_srcdir/configure.gnu; then
9134 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
9135 elif test -f $ac_srcdir/configure; then
9136 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
9137 elif test -f $ac_srcdir/configure.in; then
9138 ac_sub_configure=$ac_configure
9140 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9141 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9145 # The recursion is here.
9146 if test -n "$ac_sub_configure"; then
9147 # Make the cache file name correct relative to the subdirectory.
9149 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9151 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
9154 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9155 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9156 # The eval makes quoting arguments work.
9157 eval $ac_sub_configure $ac_sub_configure_args \
9158 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
9159 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9160 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9161 { (exit 1); exit 1; }; }
9169 # End of configure/configure.in