2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="Makefile"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subdirs_all="$ac_subdirs_all support/cpp2"
312 ac_subdirs_all="$ac_subdirs_all packihx"
313 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
314 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'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
783 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
784 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
785 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
786 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
787 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
788 ac_env_include_dir_suffix_value=$include_dir_suffix
789 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
790 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
791 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
792 ac_env_lib_dir_suffix_value=$lib_dir_suffix
793 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
794 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
795 ac_env_docdir_set=${docdir+set}
796 ac_env_docdir_value=$docdir
797 ac_cv_env_docdir_set=${docdir+set}
798 ac_cv_env_docdir_value=$docdir
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
807 \`configure' configures this package to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
867 if test -n "$ac_init_help"; then
872 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
873 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
874 --disable-mcs51-port Excludes the Intel mcs51 port
875 --disable-gbz80-port Excludes the Gameboy gbz80 port
876 --disable-z80-port Excludes the z80 port
877 --disable-avr-port Excludes the AVR port
878 --disable-ds390-port Excludes the DS390 port
879 --disable-pic-port Excludes the PIC port
880 --disable-xa51-port Excludes the XA51 port
881 --disable-ucsim Disables configuring and building of ucsim
882 --disable-device-lib-build
883 Disables automatically building device libraries
884 --disable-packihx Disables building packihx
885 --enable-libgc Use the Bohem memory allocator. Lower runtime
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CXX C++ compiler command
896 CXXFLAGS C++ compiler flags
898 sdccconf_h_dir_separator
899 needed in sdccconf.h: either "/" (default) or "\\"
901 appended to datadir to define SDCC's include directory
903 appended to datadir to define SDCC's library root directory
904 docdir documentation installation directory
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 ac_dir_suffix= ac_top_builddir=
928 .) # No --srcdir option. We are building in place.
930 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by $as_me, which was
985 generated by GNU Autoconf 2.57. Invocation command line was
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_must_keep_next=false
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 -* ) ac_must_keep_next=true ;;
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close' the trap.
1091 trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1102 # The following way of writing the cache mishandles newlines in values,
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1125 for ac_var in $ac_subst_vars
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -n "$ac_subst_files"; then
1139 for ac_var in $ac_subst_files
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1147 if test -s confdefs.h; then
1154 sed "/^$/d" confdefs.h | sort
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1161 rm -f core core.* *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 # Predefined preprocessor variables.
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1237 # Check that the precious variables saved in the cache have kept the same
1239 ac_cache_corrupted=false
1240 for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1316 for ac_prog in gawk mawk nawk awk
1318 # Extract the first word of "$ac_prog", so it can be a program name with args.
1319 set dummy $ac_prog; ac_word=$2
1320 echo "$as_me:$LINENO: checking for $ac_word" >&5
1321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1322 if test "${ac_cv_prog_AWK+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1325 if test -n "$AWK"; then
1326 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332 test -z "$as_dir" && as_dir=.
1333 for ac_exec_ext in '' $ac_executable_extensions; do
1334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1335 ac_cv_prog_AWK="$ac_prog"
1336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1345 if test -n "$AWK"; then
1346 echo "$as_me:$LINENO: result: $AWK" >&5
1347 echo "${ECHO_T}$AWK" >&6
1349 echo "$as_me:$LINENO: result: no" >&5
1350 echo "${ECHO_T}no" >&6
1353 test -n "$AWK" && break
1357 echo "$as_me:$LINENO: checking version of the package" >&5
1358 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1359 if test -f .version; then
1360 VERSION=`cat .version`
1361 elif test -f ../.version; then
1362 VERSION=`cat ../.version`
1366 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1367 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1368 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1370 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1371 echo "${ECHO_T}${VERSION}" >&6
1376 cat >>confdefs.h <<_ACEOF
1377 #define SDCC_VERSION_LO ${VERSIONLO}
1380 cat >>confdefs.h <<_ACEOF
1381 #define SDCC_VERSION_HI ${VERSIONHI}
1384 cat >>confdefs.h <<_ACEOF
1385 #define SDCC_VERSION_P ${VERSIONP}
1388 cat >>confdefs.h <<_ACEOF
1389 #define SDCC_VERSION_STR "${VERSION}"
1392 test "$program_prefix" != NONE &&
1393 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1394 # Use a double $ so make ignores it.
1395 test "$program_suffix" != NONE &&
1396 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1397 # Double any \ or $. echo might interpret backslashes.
1398 # By default was `s,x,x', remove it if useless.
1399 cat <<\_ACEOF >conftest.sed
1400 s/[\\$]/&&/g;s/;s,x,x,$//
1402 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1405 sdcc_cv_version=$VERSION
1406 sdcc_cv_versionhi=$VERSIONHI
1407 sdcc_cv_versionlo=$VERSIONLO
1408 sdcc_cv_versionp=$VERSIONP
1412 # ===========================================================================
1414 ac_cpp='$CPP $CPPFLAGS'
1415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1418 if test -n "$ac_tool_prefix"; then
1419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1420 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_CC+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 if test -n "$CC"; then
1427 ac_cv_prog_CC="$CC" # Let the user override the test.
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir=.
1434 for ac_exec_ext in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446 if test -n "$CC"; then
1447 echo "$as_me:$LINENO: result: $CC" >&5
1448 echo "${ECHO_T}$CC" >&6
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1455 if test -z "$ac_cv_prog_CC"; then
1457 # Extract the first word of "gcc", so it can be a program name with args.
1458 set dummy 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_ac_ct_CC+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 if test -n "$ac_ct_CC"; then
1465 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
1475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1484 if test -n "$ac_ct_CC"; then
1485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1486 echo "${ECHO_T}$ac_ct_CC" >&6
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1497 if test -z "$CC"; then
1498 if test -n "$ac_tool_prefix"; then
1499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1500 set dummy ${ac_tool_prefix}cc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 if test -n "$CC"; then
1507 ac_cv_prog_CC="$CC" # Let the user override the test.
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_CC="${ac_tool_prefix}cc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 if test -n "$CC"; then
1527 echo "$as_me:$LINENO: result: $CC" >&5
1528 echo "${ECHO_T}$CC" >&6
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1535 if test -z "$ac_cv_prog_CC"; then
1537 # Extract the first word of "cc", so it can be a program name with args.
1538 set dummy 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_ac_ct_CC+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 if test -n "$ac_ct_CC"; then
1545 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="cc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1564 if test -n "$ac_ct_CC"; then
1565 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1566 echo "${ECHO_T}$ac_ct_CC" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1578 if test -z "$CC"; then
1579 # Extract the first word of "cc", so it can be a program name with args.
1580 set dummy cc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 if test -n "$CC"; then
1587 ac_cv_prog_CC="$CC" # Let the user override the test.
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1598 ac_prog_rejected=yes
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 if test $ac_prog_rejected = yes; then
1609 # We found a bogon in the path, so make sure we never use it.
1610 set dummy $ac_cv_prog_CC
1612 if test $# != 0; then
1613 # We chose a different compiler from the bogus one.
1614 # However, it has the same basename, so the bogon will be chosen
1615 # first if we set CC to just the basename; use the full file name.
1617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1632 if test -z "$CC"; then
1633 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1671 test -n "$CC" && break
1674 if test -z "$CC"; then
1678 # Extract the first word of "$ac_prog", so it can be a program name with args.
1679 set dummy $ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$ac_ct_CC"; then
1686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_ac_ct_CC="$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1713 test -n "$ac_ct_CC" && break
1722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1723 See \`config.log' for more details." >&5
1724 echo "$as_me: error: no acceptable C compiler found in \$PATH
1725 See \`config.log' for more details." >&2;}
1726 { (exit 1); exit 1; }; }
1728 # Provide some information about the compiler.
1729 echo "$as_me:$LINENO:" \
1730 "checking for C compiler version" >&5
1731 ac_compiler=`set X $ac_compile; echo $2`
1732 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1733 (eval $ac_compiler --version </dev/null >&5) 2>&5
1735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1736 (exit $ac_status); }
1737 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1738 (eval $ac_compiler -v </dev/null >&5) 2>&5
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1743 (eval $ac_compiler -V </dev/null >&5) 2>&5
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1748 cat >conftest.$ac_ext <<_ACEOF
1749 #line $LINENO "configure"
1752 cat confdefs.h >>conftest.$ac_ext
1753 cat >>conftest.$ac_ext <<_ACEOF
1754 /* end confdefs.h. */
1764 ac_clean_files_save=$ac_clean_files
1765 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1766 # Try to create an executable without -o first, disregard a.out.
1767 # It will help us diagnose broken compilers, and finding out an intuition
1769 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1770 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1771 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1772 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1773 (eval $ac_link_default) 2>&5
1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776 (exit $ac_status); }; then
1777 # Find the output, starting from the most likely. This scheme is
1778 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1781 # Be careful to initialize this variable, since it used to be cached.
1782 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1784 # b.out is created by i960 compilers.
1785 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1787 test -f "$ac_file" || continue
1789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1792 # This is the source file.
1795 # We found the default executable, but exeext='' is most
1799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1800 # FIXME: I believe we export ac_cv_exeext for Libtool,
1801 # but it would be cool to find out if it's true. Does anybody
1802 # maintain Libtool? --akim.
1810 echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1814 See \`config.log' for more details." >&5
1815 echo "$as_me: error: C compiler cannot create executables
1816 See \`config.log' for more details." >&2;}
1817 { (exit 77); exit 77; }; }
1820 ac_exeext=$ac_cv_exeext
1821 echo "$as_me:$LINENO: result: $ac_file" >&5
1822 echo "${ECHO_T}$ac_file" >&6
1824 # Check the compiler produces executables we can run. If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1829 # If not cross compiling, check that we can run a simple program.
1830 if test "$cross_compiling" != yes; then
1831 if { ac_try='./$ac_file'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1839 if test "$cross_compiling" = maybe; then
1842 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1843 If you meant to cross compile, use \`--host'.
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: cannot run C compiled programs.
1846 If you meant to cross compile, use \`--host'.
1847 See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1852 echo "$as_me:$LINENO: result: yes" >&5
1853 echo "${ECHO_T}yes" >&6
1855 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1856 ac_clean_files=$ac_clean_files_save
1857 # Check the compiler produces executables we can run. If not, either
1858 # the compiler is broken, or we cross compile.
1859 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1860 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1861 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1862 echo "${ECHO_T}$cross_compiling" >&6
1864 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1865 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1867 (eval $ac_link) 2>&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }; then
1871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1872 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1873 # work properly (i.e., refer to `conftest.exe'), while it won't with
1875 for ac_file in conftest.exe conftest conftest.*; do
1876 test -f "$ac_file" || continue
1878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1889 See \`config.log' for more details." >&2;}
1890 { (exit 1); exit 1; }; }
1893 rm -f conftest$ac_cv_exeext
1894 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1895 echo "${ECHO_T}$ac_cv_exeext" >&6
1897 rm -f conftest.$ac_ext
1898 EXEEXT=$ac_cv_exeext
1900 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1901 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1902 if test "${ac_cv_objext+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 cat >conftest.$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1909 cat confdefs.h >>conftest.$ac_ext
1910 cat >>conftest.$ac_ext <<_ACEOF
1911 /* end confdefs.h. */
1921 rm -f conftest.o conftest.obj
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1935 echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1947 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1948 echo "${ECHO_T}$ac_cv_objext" >&6
1949 OBJEXT=$ac_cv_objext
1951 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1952 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1953 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1960 cat confdefs.h >>conftest.$ac_ext
1961 cat >>conftest.$ac_ext <<_ACEOF
1962 /* end confdefs.h. */
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1989 echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 rm -f conftest.$ac_objext conftest.$ac_ext
1995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1998 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1999 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2000 GCC=`test $ac_compiler_gnu = yes && echo yes`
2001 ac_test_CFLAGS=${CFLAGS+set}
2002 ac_save_CFLAGS=$CFLAGS
2004 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2005 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2006 if test "${ac_cv_prog_cc_g+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line $LINENO "configure"
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2044 rm -f conftest.$ac_objext conftest.$ac_ext
2046 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2047 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2048 if test "$ac_test_CFLAGS" = set; then
2049 CFLAGS=$ac_save_CFLAGS
2050 elif test $ac_cv_prog_cc_g = yes; then
2051 if test "$GCC" = yes; then
2057 if test "$GCC" = yes; then
2063 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2064 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 ac_cv_prog_cc_stdc=no
2070 cat >conftest.$ac_ext <<_ACEOF
2071 #line $LINENO "configure"
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h. */
2079 #include <sys/types.h>
2080 #include <sys/stat.h>
2081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2082 struct buf { int x; };
2083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2084 static char *e (p, i)
2090 static char *f (char * (*g) (char **, int), char **p, ...)
2095 s = g (p, va_arg (v,int));
2099 int test (int i, double x);
2100 struct s1 {int (*f) (int a);};
2101 struct s2 {int (*f) (double a);};
2102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2113 # Don't try gcc -ansi; that turns off useful extensions and
2114 # breaks some systems' header files.
2115 # AIX -qlanglvl=ansi
2116 # Ultrix and OSF/1 -std1
2117 # HP-UX 10.20 and later -Ae
2118 # HP-UX older versions -Aa -D_HPUX_SOURCE
2119 # SVR4 -Xc -D__EXTENSIONS__
2120 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2122 CC="$ac_save_CC $ac_arg"
2123 rm -f conftest.$ac_objext
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -s conftest.$ac_objext'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2135 ac_cv_prog_cc_stdc=$ac_arg
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2142 rm -f conftest.$ac_objext
2144 rm -f conftest.$ac_ext conftest.$ac_objext
2149 case "x$ac_cv_prog_cc_stdc" in
2151 echo "$as_me:$LINENO: result: none needed" >&5
2152 echo "${ECHO_T}none needed" >&6 ;;
2154 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2155 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2156 CC="$CC $ac_cv_prog_cc_stdc" ;;
2159 # Some people use a C++ compiler to compile C. Since we use `exit',
2160 # in C++ we need to declare it. In case someone uses the same compiler
2161 # for both compiling C and C++ we need to have the C++ compiler decide
2162 # the declaration of exit, since it's the most demanding environment.
2163 cat >conftest.$ac_ext <<_ACEOF
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 for ac_declaration in \
2182 '#include <stdlib.h>' \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2189 cat >conftest.$ac_ext <<_ACEOF
2190 #line $LINENO "configure"
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h. */
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2225 rm -f conftest.$ac_objext conftest.$ac_ext
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2242 rm -f conftest.$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2260 rm -f conftest.$ac_objext conftest.$ac_ext
2263 if test -n "$ac_declaration"; then
2264 echo '#ifdef __cplusplus' >>confdefs.h
2265 echo $ac_declaration >>confdefs.h
2266 echo '#endif' >>confdefs.h
2270 echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2274 rm -f conftest.$ac_objext conftest.$ac_ext
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 ac_cpp='$CXXCPP $CPPFLAGS'
2283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2286 if test -n "$ac_tool_prefix"; then
2287 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2291 echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_CXX+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 if test -n "$CXX"; then
2297 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 if test -n "$CXX"; then
2317 echo "$as_me:$LINENO: result: $CXX" >&5
2318 echo "${ECHO_T}$CXX" >&6
2320 echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2324 test -n "$CXX" && break
2327 if test -z "$CXX"; then
2329 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2331 # Extract the first word of "$ac_prog", so it can be a program name with args.
2332 set dummy $ac_prog; ac_word=$2
2333 echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 if test -n "$ac_ct_CXX"; then
2339 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348 ac_cv_prog_ac_ct_CXX="$ac_prog"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2358 if test -n "$ac_ct_CXX"; then
2359 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2360 echo "${ECHO_T}$ac_ct_CXX" >&6
2362 echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2366 test -n "$ac_ct_CXX" && break
2368 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2374 # Provide some information about the compiler.
2375 echo "$as_me:$LINENO:" \
2376 "checking for C++ compiler version" >&5
2377 ac_compiler=`set X $ac_compile; echo $2`
2378 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2379 (eval $ac_compiler --version </dev/null >&5) 2>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2384 (eval $ac_compiler -v </dev/null >&5) 2>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }
2388 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2389 (eval $ac_compiler -V </dev/null >&5) 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }
2394 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2395 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2396 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.$ac_ext <<_ACEOF
2400 #line $LINENO "configure"
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2437 rm -f conftest.$ac_objext conftest.$ac_ext
2438 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2441 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2442 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2443 GXX=`test $ac_compiler_gnu = yes && echo yes`
2444 ac_test_CXXFLAGS=${CXXFLAGS+set}
2445 ac_save_CXXFLAGS=$CXXFLAGS
2447 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2448 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cxx_g+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_prog_cxx_g=yes
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2487 rm -f conftest.$ac_objext conftest.$ac_ext
2489 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2490 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2491 if test "$ac_test_CXXFLAGS" = set; then
2492 CXXFLAGS=$ac_save_CXXFLAGS
2493 elif test $ac_cv_prog_cxx_g = yes; then
2494 if test "$GXX" = yes; then
2500 if test "$GXX" = yes; then
2506 for ac_declaration in \
2508 '#include <stdlib.h>' \
2509 'extern "C" void std::exit (int) throw (); using std::exit;' \
2510 'extern "C" void std::exit (int); using std::exit;' \
2511 'extern "C" void exit (int) throw ();' \
2512 'extern "C" void exit (int);' \
2515 cat >conftest.$ac_ext <<_ACEOF
2516 #line $LINENO "configure"
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2551 rm -f conftest.$ac_objext conftest.$ac_ext
2552 cat >conftest.$ac_ext <<_ACEOF
2553 #line $LINENO "configure"
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2589 if test -n "$ac_declaration"; then
2590 echo '#ifdef __cplusplus' >>confdefs.h
2591 echo $ac_declaration >>confdefs.h
2592 echo '#endif' >>confdefs.h
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2607 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2608 # On Suns, sometimes $CPP names a directory.
2609 if test -n "$CPP" && test -d "$CPP"; then
2612 if test -z "$CPP"; then
2613 if test "${ac_cv_prog_CPP+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 # Double quotes because CPP needs to be expanded
2617 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2620 for ac_c_preproc_warn_flag in '' yes
2622 # Use a header file that comes with gcc, so configuring glibc
2623 # with a fresh cross-compiler works.
2624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2625 # <limits.h> exists even on freestanding compilers.
2626 # On the NeXT, cc -E runs the code through the compiler's parser,
2627 # not just through cpp. "Syntax error" is here to catch this case.
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2636 # include <limits.h>
2638 # include <assert.h>
2642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1 >conftest.err
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } >/dev/null; then
2650 if test -s conftest.err; then
2651 ac_cpp_err=$ac_c_preproc_warn_flag
2658 if test -z "$ac_cpp_err"; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 # Broken: fails on valid input.
2667 rm -f conftest.err conftest.$ac_ext
2669 # OK, works on sane cases. Now check whether non-existent headers
2670 # can be detected and how.
2671 cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2678 #include <ac_nonexistent.h>
2680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2683 grep -v '^ *+' conftest.er1 >conftest.err
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } >/dev/null; then
2688 if test -s conftest.err; then
2689 ac_cpp_err=$ac_c_preproc_warn_flag
2696 if test -z "$ac_cpp_err"; then
2697 # Broken: success on invalid input.
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2703 # Passes both tests.
2707 rm -f conftest.err conftest.$ac_ext
2710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2711 rm -f conftest.err conftest.$ac_ext
2712 if $ac_preproc_ok; then
2724 echo "$as_me:$LINENO: result: $CPP" >&5
2725 echo "${ECHO_T}$CPP" >&6
2727 for ac_c_preproc_warn_flag in '' yes
2729 # Use a header file that comes with gcc, so configuring glibc
2730 # with a fresh cross-compiler works.
2731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2732 # <limits.h> exists even on freestanding compilers.
2733 # On the NeXT, cc -E runs the code through the compiler's parser,
2734 # not just through cpp. "Syntax error" is here to catch this case.
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #line $LINENO "configure"
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2743 # include <limits.h>
2745 # include <assert.h>
2749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2752 grep -v '^ *+' conftest.er1 >conftest.err
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } >/dev/null; then
2757 if test -s conftest.err; then
2758 ac_cpp_err=$ac_c_preproc_warn_flag
2765 if test -z "$ac_cpp_err"; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 # Broken: fails on valid input.
2774 rm -f conftest.err conftest.$ac_ext
2776 # OK, works on sane cases. Now check whether non-existent headers
2777 # can be detected and how.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 #include <ac_nonexistent.h>
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790 grep -v '^ *+' conftest.er1 >conftest.err
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev/null; then
2795 if test -s conftest.err; then
2796 ac_cpp_err=$ac_c_preproc_warn_flag
2803 if test -z "$ac_cpp_err"; then
2804 # Broken: success on invalid input.
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 # Passes both tests.
2814 rm -f conftest.err conftest.$ac_ext
2817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2818 rm -f conftest.err conftest.$ac_ext
2819 if $ac_preproc_ok; then
2822 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2825 See \`config.log' for more details." >&2;}
2826 { (exit 1); exit 1; }; }
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2837 if test -f $ac_dir/install-sh; then
2839 ac_install_sh="$ac_aux_dir/install-sh -c"
2841 elif test -f $ac_dir/install.sh; then
2843 ac_install_sh="$ac_aux_dir/install.sh -c"
2845 elif test -f $ac_dir/shtool; then
2847 ac_install_sh="$ac_aux_dir/shtool install -c"
2851 if test -z "$ac_aux_dir"; then
2852 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2853 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2854 { (exit 1); exit 1; }; }
2856 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2857 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2858 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2860 # Find a good install program. We prefer a C program (faster),
2861 # so one script is as good as another. But avoid the broken or
2862 # incompatible versions:
2863 # SysV /etc/install, /usr/sbin/install
2864 # SunOS /usr/etc/install
2865 # IRIX /sbin/install
2867 # AmigaOS /C/install, which installs bootblocks on floppy discs
2868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2871 # ./install, which can be erroneously created by make from ./install.sh.
2872 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2873 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2874 if test -z "$INSTALL"; then
2875 if test "${ac_cv_path_install+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 # Account for people who put trailing slashes in PATH elements.
2885 ./ | .// | /cC/* | \
2886 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2889 # OSF1 and SCO ODT 3.0 have their own names for install.
2890 # Don't use installbsd from OSF since it installs stuff as root
2892 for ac_prog in ginstall scoinst install; do
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2895 if test $ac_prog = install &&
2896 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897 # AIX install. It has an incompatible calling convention.
2899 elif test $ac_prog = install &&
2900 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2901 # program-specific install script used by HP pwplus--don't use.
2904 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2916 if test "${ac_cv_path_install+set}" = set; then
2917 INSTALL=$ac_cv_path_install
2919 # As a last resort, use the slow shell script. We don't cache a
2920 # path for INSTALL within a source directory, because that will
2921 # break other packages using the cache if that directory is
2922 # removed, or if the path is relative.
2923 INSTALL=$ac_install_sh
2926 echo "$as_me:$LINENO: result: $INSTALL" >&5
2927 echo "${ECHO_T}$INSTALL" >&6
2929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2930 # It thinks the first close brace ends the variable substitution.
2931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2940 echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 if test "${ac_cv_prog_RANLIB+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 if test -n "$RANLIB"; then
2946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 RANLIB=$ac_cv_prog_RANLIB
2965 if test -n "$RANLIB"; then
2966 echo "$as_me:$LINENO: result: $RANLIB" >&5
2967 echo "${ECHO_T}$RANLIB" >&6
2969 echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2974 if test -z "$ac_cv_prog_RANLIB"; then
2975 ac_ct_RANLIB=$RANLIB
2976 # Extract the first word of "ranlib", so it can be a program name with args.
2977 set dummy ranlib; ac_word=$2
2978 echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 if test -n "$ac_ct_RANLIB"; then
2984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_ac_ct_RANLIB="ranlib"
2994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3004 if test -n "$ac_ct_RANLIB"; then
3005 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3006 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3008 echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3012 RANLIB=$ac_ct_RANLIB
3014 RANLIB="$ac_cv_prog_RANLIB"
3018 for ac_prog in flex lex
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3024 if test "${ac_cv_prog_LEX+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 if test -n "$LEX"; then
3028 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_LEX="$ac_prog"
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test -n "$LEX"; then
3048 echo "$as_me:$LINENO: result: $LEX" >&5
3049 echo "${ECHO_T}$LEX" >&6
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3055 test -n "$LEX" && break
3057 test -n "$LEX" || LEX=":"
3059 if test -z "$LEXLIB"
3061 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3062 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3063 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 ac_check_lib_save_LIBS=$LIBS
3068 cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3076 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3091 rm -f conftest.$ac_objext conftest$ac_exeext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3093 (eval $ac_link) 2>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -s conftest$ac_exeext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 ac_cv_lib_fl_yywrap=yes
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 ac_cv_lib_fl_yywrap=no
3110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3111 LIBS=$ac_check_lib_save_LIBS
3113 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3114 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3115 if test $ac_cv_lib_fl_yywrap = yes; then
3118 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3119 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3120 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 ac_check_lib_save_LIBS=$LIBS
3125 cat >conftest.$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3133 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3148 rm -f conftest.$ac_objext conftest$ac_exeext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3150 (eval $ac_link) 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -s conftest$ac_exeext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_lib_l_yywrap=yes
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 ac_cv_lib_l_yywrap=no
3167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3168 LIBS=$ac_check_lib_save_LIBS
3170 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3171 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3172 if test $ac_cv_lib_l_yywrap = yes; then
3180 if test "x$LEX" != "x:"; then
3181 echo "$as_me:$LINENO: checking lex output file root" >&5
3182 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3183 if test "${ac_cv_prog_lex_root+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 # The minimal lex program is just a single line: %%. But some broken lexes
3187 # (Solaris, I think it was) want two %% lines, so accommodate them.
3188 cat >conftest.l <<_ACEOF
3192 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3193 (eval $LEX conftest.l) 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197 if test -f lex.yy.c; then
3198 ac_cv_prog_lex_root=lex.yy
3199 elif test -f lexyy.c; then
3200 ac_cv_prog_lex_root=lexyy
3202 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3203 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3204 { (exit 1); exit 1; }; }
3207 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3208 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3210 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3212 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3213 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3214 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 # POSIX says lex can declare yytext either as a pointer or an array; the
3218 # default is implementation-dependent. Figure out which it is, since
3219 # not all implementations provide the %pointer and %array declarations.
3220 ac_cv_prog_lex_yytext_pointer=no
3221 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3223 LIBS="$LIBS $LEXLIB"
3224 cat >conftest.$ac_ext <<_ACEOF
3225 `cat $LEX_OUTPUT_ROOT.c`
3227 rm -f conftest.$ac_objext conftest$ac_exeext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229 (eval $ac_link) 2>&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest$ac_exeext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_prog_lex_yytext_pointer=yes
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3247 rm -f "${LEX_OUTPUT_ROOT}.c"
3250 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3251 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3252 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3254 cat >>confdefs.h <<\_ACEOF
3255 #define YYTEXT_POINTER 1
3261 for ac_prog in 'bison -y' byacc
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy $ac_prog; ac_word=$2
3265 echo "$as_me:$LINENO: checking for $ac_word" >&5
3266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3267 if test "${ac_cv_prog_YACC+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 if test -n "$YACC"; then
3271 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_YACC="$ac_prog"
3281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 YACC=$ac_cv_prog_YACC
3290 if test -n "$YACC"; then
3291 echo "$as_me:$LINENO: result: $YACC" >&5
3292 echo "${ECHO_T}$YACC" >&6
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3298 test -n "$YACC" && break
3300 test -n "$YACC" || YACC="yacc"
3302 # Extract the first word of "autoconf", so it can be a program name with args.
3303 set dummy autoconf; ac_word=$2
3304 echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 if test -n "$AUTOCONF"; then
3310 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_AUTOCONF="autoconf"
3320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3329 AUTOCONF=$ac_cv_prog_AUTOCONF
3330 if test -n "$AUTOCONF"; then
3331 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3332 echo "${ECHO_T}$AUTOCONF" >&6
3334 echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3338 # Extract the first word of "strip", so it can be a program name with args.
3339 set dummy strip; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_STRIP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 if test -n "$STRIP"; then
3346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_STRIP="strip"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3365 STRIP=$ac_cv_prog_STRIP
3366 if test -n "$STRIP"; then
3367 echo "$as_me:$LINENO: result: $STRIP" >&5
3368 echo "${ECHO_T}$STRIP" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 # Extract the first word of "as", so it can be a program name with args.
3375 set dummy as; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_prog_AS+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 if test -n "$AS"; then
3382 ac_cv_prog_AS="$AS" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3402 if test -n "$AS"; then
3403 echo "$as_me:$LINENO: result: $AS" >&5
3404 echo "${ECHO_T}$AS" >&6
3406 echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3410 # Extract the first word of "cp", so it can be a program name with args.
3411 set dummy cp; ac_word=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_CP+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test -n "$CP"; then
3418 ac_cv_prog_CP="$CP" # Let the user override the test.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3438 if test -n "$CP"; then
3439 echo "$as_me:$LINENO: result: $CP" >&5
3440 echo "${ECHO_T}$CP" >&6
3442 echo "$as_me:$LINENO: result: no" >&5
3443 echo "${ECHO_T}no" >&6
3447 # Extract the first word of "lyx", so it can be a program name with args.
3448 set dummy lyx; ac_word=$2
3449 echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3451 if test "${ac_cv_prog_LYX+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 if test -n "$LYX"; then
3455 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_LYX="lyx"
3465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3475 if test -n "$LYX"; then
3476 echo "$as_me:$LINENO: result: $LYX" >&5
3477 echo "${ECHO_T}$LYX" >&6
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3483 # Extract the first word of "latex", so it can be a program name with args.
3484 set dummy latex; ac_word=$2
3485 echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_prog_LATEX+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -n "$LATEX"; then
3491 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500 ac_cv_prog_LATEX="latex"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3510 LATEX=$ac_cv_prog_LATEX
3511 if test -n "$LATEX"; then
3512 echo "$as_me:$LINENO: result: $LATEX" >&5
3513 echo "${ECHO_T}$LATEX" >&6
3515 echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3519 # Extract the first word of "latex2html", so it can be a program name with args.
3520 set dummy latex2html; ac_word=$2
3521 echo "$as_me:$LINENO: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 if test -n "$LATEX2HTML"; then
3527 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_LATEX2HTML="latex2html"
3537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3546 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3547 if test -n "$LATEX2HTML"; then
3548 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3549 echo "${ECHO_T}$LATEX2HTML" >&6
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3555 # Extract the first word of "pdflatex", so it can be a program name with args.
3556 set dummy pdflatex; ac_word=$2
3557 echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3559 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 if test -n "$PDFLATEX"; then
3563 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_prog_PDFLATEX="pdflatex"
3573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3582 PDFLATEX=$ac_cv_prog_PDFLATEX
3583 if test -n "$PDFLATEX"; then
3584 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3585 echo "${ECHO_T}$PDFLATEX" >&6
3587 echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6
3591 # Extract the first word of "dvipdf", so it can be a program name with args.
3592 set dummy dvipdf; ac_word=$2
3593 echo "$as_me:$LINENO: checking for $ac_word" >&5
3594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 if test -n "$DVIPDF"; then
3599 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_DVIPDF="dvipdf"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3618 DVIPDF=$ac_cv_prog_DVIPDF
3619 if test -n "$DVIPDF"; then
3620 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3621 echo "${ECHO_T}$DVIPDF" >&6
3623 echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3630 if test "$YACC" = ":"; then
3631 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3632 echo "$as_me: error: Cannot find required program bison." >&2;}
3633 { (exit 1); exit 1; }; }
3636 if test "$LEX" = ":"; then
3637 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3638 echo "$as_me: error: Cannot find required program lex." >&2;}
3639 { (exit 1); exit 1; }; }
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 # Checking for header files.
3652 # ===========================================================================
3654 echo "$as_me:$LINENO: checking for egrep" >&5
3655 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3656 if test "${ac_cv_prog_egrep+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3660 then ac_cv_prog_egrep='grep -E'
3661 else ac_cv_prog_egrep='egrep'
3664 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3665 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3666 EGREP=$ac_cv_prog_egrep
3669 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3671 if test "${ac_cv_header_stdc+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.$ac_ext <<_ACEOF
3675 #line $LINENO "configure"
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3694 rm -f conftest.$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 ac_cv_header_stdc=yes
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 ac_cv_header_stdc=no
3713 rm -f conftest.$ac_objext conftest.$ac_ext
3715 if test $ac_cv_header_stdc = yes; then
3716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line $LINENO "configure"
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 $EGREP "memchr" >/dev/null 2>&1; then
3731 ac_cv_header_stdc=no
3737 if test $ac_cv_header_stdc = yes; then
3738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3739 cat >conftest.$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3750 $EGREP "free" >/dev/null 2>&1; then
3753 ac_cv_header_stdc=no
3759 if test $ac_cv_header_stdc = yes; then
3760 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3761 if test "$cross_compiling" = yes; then
3764 cat >conftest.$ac_ext <<_ACEOF
3765 #line $LINENO "configure"
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3772 #if ((' ' & 0x0FF) == 0x020)
3773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3776 # define ISLOWER(c) \
3777 (('a' <= (c) && (c) <= 'i') \
3778 || ('j' <= (c) && (c) <= 'r') \
3779 || ('s' <= (c) && (c) <= 'z'))
3780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3788 for (i = 0; i < 256; i++)
3789 if (XOR (islower (i), ISLOWER (i))
3790 || toupper (i) != TOUPPER (i))
3795 rm -f conftest$ac_exeext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797 (eval $ac_link) 2>&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3808 echo "$as_me: program exited with status $ac_status" >&5
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3813 ac_cv_header_stdc=no
3815 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3820 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3821 if test $ac_cv_header_stdc = yes; then
3823 cat >>confdefs.h <<\_ACEOF
3824 #define STDC_HEADERS 1
3829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3839 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3840 inttypes.h stdint.h unistd.h
3842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3843 echo "$as_me:$LINENO: checking for $ac_header" >&5
3844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 $ac_includes_default
3857 #include <$ac_header>
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -s conftest.$ac_objext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 eval "$as_ac_Header=yes"
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 eval "$as_ac_Header=no"
3878 rm -f conftest.$ac_objext conftest.$ac_ext
3880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3883 cat >>confdefs.h <<_ACEOF
3884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3893 for ac_header in sys/socket.h
3895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 # Is the header compilable?
3906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3915 $ac_includes_default
3916 #include <$ac_header>
3918 rm -f conftest.$ac_objext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920 (eval $ac_compile) 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 ac_header_compiler=yes
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 ac_header_compiler=no
3937 rm -f conftest.$ac_objext conftest.$ac_ext
3938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3939 echo "${ECHO_T}$ac_header_compiler" >&6
3941 # Is the header present?
3942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3944 cat >conftest.$ac_ext <<_ACEOF
3945 #line $LINENO "configure"
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <$ac_header>
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } >/dev/null; then
3961 if test -s conftest.err; then
3962 ac_cpp_err=$ac_c_preproc_warn_flag
3969 if test -z "$ac_cpp_err"; then
3970 ac_header_preproc=yes
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_header_preproc=no
3977 rm -f conftest.err conftest.$ac_ext
3978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3979 echo "${ECHO_T}$ac_header_preproc" >&6
3981 # So? What about this header?
3982 case $ac_header_compiler:$ac_header_preproc in
3984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3990 ## ------------------------------------ ##
3991 ## Report this to bug-autoconf@gnu.org. ##
3992 ## ------------------------------------ ##
3995 sed "s/^/$as_me: WARNING: /" >&2
3998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4006 ## ------------------------------------ ##
4007 ## Report this to bug-autoconf@gnu.org. ##
4008 ## ------------------------------------ ##
4011 sed "s/^/$as_me: WARNING: /" >&2
4014 echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 eval "$as_ac_Header=$ac_header_preproc"
4021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4026 cat >>confdefs.h <<_ACEOF
4027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4036 # Checking for functions
4037 # ===========================================================================
4039 for ac_func in strerror
4041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4042 echo "$as_me:$LINENO: checking for $ac_func" >&5
4043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4044 if eval "test \"\${$as_ac_var+set}\" = set"; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line $LINENO "configure"
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 /* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char $ac_func (); below.
4056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 <limits.h> exists even on freestanding compilers. */
4059 # include <limits.h>
4061 # include <assert.h>
4063 /* Override any gcc2 internal prototype to avoid an error. */
4068 /* We use char because int might match the return type of a gcc2
4069 builtin and then its argument prototype would still apply. */
4071 /* The GNU C library defines this for functions which it implements
4072 to always fail with ENOSYS. Some functions are actually named
4073 something starting with __ and the normal name is an alias. */
4074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4077 char (*f) () = $ac_func;
4086 return f != $ac_func;
4091 rm -f conftest.$ac_objext conftest$ac_exeext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093 (eval $ac_link) 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -s conftest$ac_exeext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 eval "$as_ac_var=yes"
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 eval "$as_ac_var=no"
4110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4114 if test `eval echo '${'$as_ac_var'}'` = yes; then
4115 cat >>confdefs.h <<_ACEOF
4116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4126 for ac_func in vsnprintf snprintf vsprintf mkstemp
4128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4129 echo "$as_me:$LINENO: checking for $ac_func" >&5
4130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4131 if eval "test \"\${$as_ac_var+set}\" = set"; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 cat >conftest.$ac_ext <<_ACEOF
4135 #line $LINENO "configure"
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 /* System header to define __stub macros and hopefully few prototypes,
4142 which can conflict with char $ac_func (); below.
4143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 <limits.h> exists even on freestanding compilers. */
4146 # include <limits.h>
4148 # include <assert.h>
4150 /* Override any gcc2 internal prototype to avoid an error. */
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4158 /* The GNU C library defines this for functions which it implements
4159 to always fail with ENOSYS. Some functions are actually named
4160 something starting with __ and the normal name is an alias. */
4161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4164 char (*f) () = $ac_func;
4173 return f != $ac_func;
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 eval "$as_ac_var=yes"
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 eval "$as_ac_var=no"
4197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4201 if test `eval echo '${'$as_ac_var'}'` = yes; then
4202 cat >>confdefs.h <<_ACEOF
4203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4212 # ===========================================================================
4214 # DD_COPT macro checks if the compiler specified as the 1st parameter
4215 # supports option specified as the 2nd parameter
4216 # For example: DD_CPORT(CXX, fPIC)
4220 # This macro expands DIR and assigns it to RET.
4221 # If DIR is NONE, then it's replaced by DEFAULT.
4223 # Based on AC_DEFINE_DIR
4227 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
4231 # adl_NORMALIZE_PATH
4233 # - empty paths are changed to '.'
4234 # - trailing slashes are removed
4235 # - repeated slashes are squeezed except a leading doubled slash '//'
4236 # (which might indicate a networked disk on some OS).
4239 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4240 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4241 # are turned into backslashes, otherwise they are all turned into slashes.
4243 # This makes processing of DOS filenames quite easier, because you can turn a
4244 # filename to the Unix notation, make your processing, and turn it back to
4245 # original notation.
4250 # adl_COMPUTE_RELATIVE_PATH
4252 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4253 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4254 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4255 # absolute filenames for this macro to success.
4261 ## The following helper macros are too fragile to be used out
4262 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4263 ## paths are normalized), that's why I'm keeping them in the same file.
4264 ## Still, some of them maybe worth to reuse.
4278 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4283 # Checking characteristics of compilers and other programs
4284 # ===========================================================================
4285 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4286 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4287 if test "${sdcc_cv_MM+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 echo "#include <stdio.h>" >_test_.c
4292 $CPP -v -MM _test_.c 1>&5 2>&5
4293 if test "$?" = "0"; then
4300 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4301 echo "${ECHO_T}$sdcc_cv_MM" >&6
4305 # This is the first time when CFLAGS are set/modified!!
4307 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4308 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4309 if test "${sdcc_cv_CCggdb+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4317 if test "$?" = "0"; then
4318 sdcc_cv_CCggdb="yes"
4322 rm -f _test_.* a.out
4324 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4325 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4327 if test "$sdcc_cv_CCggdb" = "yes"; then
4328 CFLAGS="-ggdb ${CFLAGS}"
4332 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4333 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4334 if test "${sdcc_cv_CCpipe+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 $CC -v -pipe -c _test_.c 1>&5 2>&5
4342 if test "$?" = "0"; then
4343 sdcc_cv_CCpipe="yes"
4347 rm -f _test_.* a.out
4349 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4350 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4352 if test "$sdcc_cv_CCpipe" = "yes"; then
4353 CFLAGS="-pipe $CFLAGS"
4357 # Checks for typedefs, structures, and compiler characteristics.
4358 # ===========================================================================
4359 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4360 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4361 if test "${ac_cv_type_signal+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4365 #line $LINENO "configure"
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <sys/types.h>
4377 extern "C" void (*signal (int, void (*)(int)))(int);
4379 void (*signal ()) ();
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 ac_cv_type_signal=void
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 ac_cv_type_signal=int
4409 rm -f conftest.$ac_objext conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4412 echo "${ECHO_T}$ac_cv_type_signal" >&6
4414 cat >>confdefs.h <<_ACEOF
4415 #define RETSIGTYPE $ac_cv_type_signal
4420 echo "$as_me:$LINENO: checking for char" >&5
4421 echo $ECHO_N "checking for char... $ECHO_C" >&6
4422 if test "${ac_cv_type_char+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 cat >conftest.$ac_ext <<_ACEOF
4426 #line $LINENO "configure"
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 $ac_includes_default
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4463 rm -f conftest.$ac_objext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4466 echo "${ECHO_T}$ac_cv_type_char" >&6
4468 echo "$as_me:$LINENO: checking size of char" >&5
4469 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4470 if test "${ac_cv_sizeof_char+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test "$ac_cv_type_char" = yes; then
4474 # The cast to unsigned long works around a bug in the HP C Compiler
4475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4477 # This bug is HP SR number 8606223364.
4478 if test "$cross_compiling" = yes; then
4479 # Depending upon the size, compute the lo and hi bounds.
4480 cat >conftest.$ac_ext <<_ACEOF
4481 #line $LINENO "configure"
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 $ac_includes_default
4491 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4498 rm -f conftest.$ac_objext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4512 cat >conftest.$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 $ac_includes_default
4523 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4530 rm -f conftest.$ac_objext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532 (eval $ac_compile) 2>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -s conftest.$ac_objext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 ac_hi=$ac_mid; break
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 ac_lo=`expr $ac_mid + 1`
4548 if test $ac_lo -le $ac_mid; then
4552 ac_mid=`expr 2 '*' $ac_mid + 1`
4554 rm -f conftest.$ac_objext conftest.$ac_ext
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4560 cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 $ac_includes_default
4571 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4592 cat >conftest.$ac_ext <<_ACEOF
4593 #line $LINENO "configure"
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 $ac_includes_default
4603 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_lo=$ac_mid; break
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_hi=`expr '(' $ac_mid ')' - 1`
4628 if test $ac_mid -le $ac_hi; then
4632 ac_mid=`expr 2 '*' $ac_mid`
4634 rm -f conftest.$ac_objext conftest.$ac_ext
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4642 rm -f conftest.$ac_objext conftest.$ac_ext
4644 rm -f conftest.$ac_objext conftest.$ac_ext
4645 # Binary search between lo and hi bounds.
4646 while test "x$ac_lo" != "x$ac_hi"; do
4647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4648 cat >conftest.$ac_ext <<_ACEOF
4649 #line $LINENO "configure"
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 $ac_includes_default
4659 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4683 ac_lo=`expr '(' $ac_mid ')' + 1`
4685 rm -f conftest.$ac_objext conftest.$ac_ext
4688 ?*) ac_cv_sizeof_char=$ac_lo;;
4689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4690 See \`config.log' for more details." >&5
4691 echo "$as_me: error: cannot compute sizeof (char), 77
4692 See \`config.log' for more details." >&2;}
4693 { (exit 1); exit 1; }; } ;;
4696 if test "$cross_compiling" = yes; then
4697 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4698 See \`config.log' for more details." >&5
4699 echo "$as_me: error: cannot run test program while cross compiling
4700 See \`config.log' for more details." >&2;}
4701 { (exit 1); exit 1; }; }
4703 cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 $ac_includes_default
4711 long longval () { return (long) (sizeof (char)); }
4712 unsigned long ulongval () { return (long) (sizeof (char)); }
4719 FILE *f = fopen ("conftest.val", "w");
4722 if (((long) (sizeof (char))) < 0)
4724 long i = longval ();
4725 if (i != ((long) (sizeof (char))))
4727 fprintf (f, "%ld\n", i);
4731 unsigned long i = ulongval ();
4732 if (i != ((long) (sizeof (char))))
4734 fprintf (f, "%lu\n", i);
4736 exit (ferror (f) || fclose (f) != 0);
4742 rm -f conftest$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 ac_cv_sizeof_char=`cat conftest.val`
4755 echo "$as_me: program exited with status $ac_status" >&5
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4761 See \`config.log' for more details." >&5
4762 echo "$as_me: error: cannot compute sizeof (char), 77
4763 See \`config.log' for more details." >&2;}
4764 { (exit 1); exit 1; }; }
4766 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4774 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4775 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4776 cat >>confdefs.h <<_ACEOF
4777 #define SIZEOF_CHAR $ac_cv_sizeof_char
4781 echo "$as_me:$LINENO: checking for short" >&5
4782 echo $ECHO_N "checking for short... $ECHO_C" >&6
4783 if test "${ac_cv_type_short+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 cat >conftest.$ac_ext <<_ACEOF
4787 #line $LINENO "configure"
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4805 rm -f conftest.$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -s conftest.$ac_objext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_cv_type_short=yes
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4824 rm -f conftest.$ac_objext conftest.$ac_ext
4826 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4827 echo "${ECHO_T}$ac_cv_type_short" >&6
4829 echo "$as_me:$LINENO: checking size of short" >&5
4830 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4831 if test "${ac_cv_sizeof_short+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 if test "$ac_cv_type_short" = yes; then
4835 # The cast to unsigned long works around a bug in the HP C Compiler
4836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4838 # This bug is HP SR number 8606223364.
4839 if test "$cross_compiling" = yes; then
4840 # Depending upon the size, compute the lo and hi bounds.
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 $ac_includes_default
4852 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4859 rm -f conftest.$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861 (eval $ac_compile) 2>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4873 cat >conftest.$ac_ext <<_ACEOF
4874 #line $LINENO "configure"
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 $ac_includes_default
4884 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4891 rm -f conftest.$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_hi=$ac_mid; break
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_lo=`expr $ac_mid + 1`
4909 if test $ac_lo -le $ac_mid; then
4913 ac_mid=`expr 2 '*' $ac_mid + 1`
4915 rm -f conftest.$ac_objext conftest.$ac_ext
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 cat >conftest.$ac_ext <<_ACEOF
4922 #line $LINENO "configure"
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 $ac_includes_default
4932 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4939 rm -f conftest.$ac_objext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -s conftest.$ac_objext'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4953 cat >conftest.$ac_ext <<_ACEOF
4954 #line $LINENO "configure"
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 $ac_includes_default
4964 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973 (eval $ac_compile) 2>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_lo=$ac_mid; break
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 ac_hi=`expr '(' $ac_mid ')' - 1`
4989 if test $ac_mid -le $ac_hi; then
4993 ac_mid=`expr 2 '*' $ac_mid`
4995 rm -f conftest.$ac_objext conftest.$ac_ext
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5003 rm -f conftest.$ac_objext conftest.$ac_ext
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5006 # Binary search between lo and hi bounds.
5007 while test "x$ac_lo" != "x$ac_hi"; do
5008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5020 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 ac_lo=`expr '(' $ac_mid ')' + 1`
5046 rm -f conftest.$ac_objext conftest.$ac_ext
5049 ?*) ac_cv_sizeof_short=$ac_lo;;
5050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5051 See \`config.log' for more details." >&5
5052 echo "$as_me: error: cannot compute sizeof (short), 77
5053 See \`config.log' for more details." >&2;}
5054 { (exit 1); exit 1; }; } ;;
5057 if test "$cross_compiling" = yes; then
5058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5059 See \`config.log' for more details." >&5
5060 echo "$as_me: error: cannot run test program while cross compiling
5061 See \`config.log' for more details." >&2;}
5062 { (exit 1); exit 1; }; }
5064 cat >conftest.$ac_ext <<_ACEOF
5065 #line $LINENO "configure"
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 $ac_includes_default
5072 long longval () { return (long) (sizeof (short)); }
5073 unsigned long ulongval () { return (long) (sizeof (short)); }
5080 FILE *f = fopen ("conftest.val", "w");
5083 if (((long) (sizeof (short))) < 0)
5085 long i = longval ();
5086 if (i != ((long) (sizeof (short))))
5088 fprintf (f, "%ld\n", i);
5092 unsigned long i = ulongval ();
5093 if (i != ((long) (sizeof (short))))
5095 fprintf (f, "%lu\n", i);
5097 exit (ferror (f) || fclose (f) != 0);
5103 rm -f conftest$ac_exeext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5105 (eval $ac_link) 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_sizeof_short=`cat conftest.val`
5116 echo "$as_me: program exited with status $ac_status" >&5
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: cannot compute sizeof (short), 77
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; }
5127 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5132 ac_cv_sizeof_short=0
5135 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5136 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5137 cat >>confdefs.h <<_ACEOF
5138 #define SIZEOF_SHORT $ac_cv_sizeof_short
5142 echo "$as_me:$LINENO: checking for int" >&5
5143 echo $ECHO_N "checking for int... $ECHO_C" >&6
5144 if test "${ac_cv_type_int+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.$ac_ext <<_ACEOF
5148 #line $LINENO "configure"
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5166 rm -f conftest.$ac_objext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168 (eval $ac_compile) 2>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -s conftest.$ac_objext'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5185 rm -f conftest.$ac_objext conftest.$ac_ext
5187 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5188 echo "${ECHO_T}$ac_cv_type_int" >&6
5190 echo "$as_me:$LINENO: checking size of int" >&5
5191 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5192 if test "${ac_cv_sizeof_int+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 if test "$ac_cv_type_int" = yes; then
5196 # The cast to unsigned long works around a bug in the HP C Compiler
5197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5199 # This bug is HP SR number 8606223364.
5200 if test "$cross_compiling" = yes; then
5201 # Depending upon the size, compute the lo and hi bounds.
5202 cat >conftest.$ac_ext <<_ACEOF
5203 #line $LINENO "configure"
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 $ac_includes_default
5213 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5234 cat >conftest.$ac_ext <<_ACEOF
5235 #line $LINENO "configure"
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5241 $ac_includes_default
5245 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254 (eval $ac_compile) 2>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_hi=$ac_mid; break
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_lo=`expr $ac_mid + 1`
5270 if test $ac_lo -le $ac_mid; then
5274 ac_mid=`expr 2 '*' $ac_mid + 1`
5276 rm -f conftest.$ac_objext conftest.$ac_ext
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 $ac_includes_default
5293 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5325 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_lo=$ac_mid; break
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_hi=`expr '(' $ac_mid ')' - 1`
5350 if test $ac_mid -le $ac_hi; then
5354 ac_mid=`expr 2 '*' $ac_mid`
5356 rm -f conftest.$ac_objext conftest.$ac_ext
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5364 rm -f conftest.$ac_objext conftest.$ac_ext
5366 rm -f conftest.$ac_objext conftest.$ac_ext
5367 # Binary search between lo and hi bounds.
5368 while test "x$ac_lo" != "x$ac_hi"; do
5369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5370 cat >conftest.$ac_ext <<_ACEOF
5371 #line $LINENO "configure"
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 $ac_includes_default
5381 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 ac_lo=`expr '(' $ac_mid ')' + 1`
5407 rm -f conftest.$ac_objext conftest.$ac_ext
5410 ?*) ac_cv_sizeof_int=$ac_lo;;
5411 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5412 See \`config.log' for more details." >&5
5413 echo "$as_me: error: cannot compute sizeof (int), 77
5414 See \`config.log' for more details." >&2;}
5415 { (exit 1); exit 1; }; } ;;
5418 if test "$cross_compiling" = yes; then
5419 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5420 See \`config.log' for more details." >&5
5421 echo "$as_me: error: cannot run test program while cross compiling
5422 See \`config.log' for more details." >&2;}
5423 { (exit 1); exit 1; }; }
5425 cat >conftest.$ac_ext <<_ACEOF
5426 #line $LINENO "configure"
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 $ac_includes_default
5433 long longval () { return (long) (sizeof (int)); }
5434 unsigned long ulongval () { return (long) (sizeof (int)); }
5441 FILE *f = fopen ("conftest.val", "w");
5444 if (((long) (sizeof (int))) < 0)
5446 long i = longval ();
5447 if (i != ((long) (sizeof (int))))
5449 fprintf (f, "%ld\n", i);
5453 unsigned long i = ulongval ();
5454 if (i != ((long) (sizeof (int))))
5456 fprintf (f, "%lu\n", i);
5458 exit (ferror (f) || fclose (f) != 0);
5464 rm -f conftest$ac_exeext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_sizeof_int=`cat conftest.val`
5477 echo "$as_me: program exited with status $ac_status" >&5
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot compute sizeof (int), 77
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5488 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5497 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5498 cat >>confdefs.h <<_ACEOF
5499 #define SIZEOF_INT $ac_cv_sizeof_int
5503 echo "$as_me:$LINENO: checking for long" >&5
5504 echo $ECHO_N "checking for long... $ECHO_C" >&6
5505 if test "${ac_cv_type_long+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 cat >conftest.$ac_ext <<_ACEOF
5509 #line $LINENO "configure"
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 $ac_includes_default
5527 rm -f conftest.$ac_objext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529 (eval $ac_compile) 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -s conftest.$ac_objext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5546 rm -f conftest.$ac_objext conftest.$ac_ext
5548 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5549 echo "${ECHO_T}$ac_cv_type_long" >&6
5551 echo "$as_me:$LINENO: checking size of long" >&5
5552 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5553 if test "${ac_cv_sizeof_long+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 if test "$ac_cv_type_long" = yes; then
5557 # The cast to unsigned long works around a bug in the HP C Compiler
5558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5560 # This bug is HP SR number 8606223364.
5561 if test "$cross_compiling" = yes; then
5562 # Depending upon the size, compute the lo and hi bounds.
5563 cat >conftest.$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 $ac_includes_default
5574 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -s conftest.$ac_objext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5595 cat >conftest.$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 $ac_includes_default
5606 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5613 rm -f conftest.$ac_objext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_hi=$ac_mid; break
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630 ac_lo=`expr $ac_mid + 1`
5631 if test $ac_lo -le $ac_mid; then
5635 ac_mid=`expr 2 '*' $ac_mid + 1`
5637 rm -f conftest.$ac_objext conftest.$ac_ext
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 $ac_includes_default
5654 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -s conftest.$ac_objext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5675 cat >conftest.$ac_ext <<_ACEOF
5676 #line $LINENO "configure"
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 $ac_includes_default
5686 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_lo=$ac_mid; break
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 ac_hi=`expr '(' $ac_mid ')' - 1`
5711 if test $ac_mid -le $ac_hi; then
5715 ac_mid=`expr 2 '*' $ac_mid`
5717 rm -f conftest.$ac_objext conftest.$ac_ext
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5725 rm -f conftest.$ac_objext conftest.$ac_ext
5727 rm -f conftest.$ac_objext conftest.$ac_ext
5728 # Binary search between lo and hi bounds.
5729 while test "x$ac_lo" != "x$ac_hi"; do
5730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5731 cat >conftest.$ac_ext <<_ACEOF
5732 #line $LINENO "configure"
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 $ac_includes_default
5742 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -s conftest.$ac_objext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5766 ac_lo=`expr '(' $ac_mid ')' + 1`
5768 rm -f conftest.$ac_objext conftest.$ac_ext
5771 ?*) ac_cv_sizeof_long=$ac_lo;;
5772 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5773 See \`config.log' for more details." >&5
5774 echo "$as_me: error: cannot compute sizeof (long), 77
5775 See \`config.log' for more details." >&2;}
5776 { (exit 1); exit 1; }; } ;;
5779 if test "$cross_compiling" = yes; then
5780 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5781 See \`config.log' for more details." >&5
5782 echo "$as_me: error: cannot run test program while cross compiling
5783 See \`config.log' for more details." >&2;}
5784 { (exit 1); exit 1; }; }
5786 cat >conftest.$ac_ext <<_ACEOF
5787 #line $LINENO "configure"
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794 long longval () { return (long) (sizeof (long)); }
5795 unsigned long ulongval () { return (long) (sizeof (long)); }
5802 FILE *f = fopen ("conftest.val", "w");
5805 if (((long) (sizeof (long))) < 0)
5807 long i = longval ();
5808 if (i != ((long) (sizeof (long))))
5810 fprintf (f, "%ld\n", i);
5814 unsigned long i = ulongval ();
5815 if (i != ((long) (sizeof (long))))
5817 fprintf (f, "%lu\n", i);
5819 exit (ferror (f) || fclose (f) != 0);
5825 rm -f conftest$ac_exeext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5827 (eval $ac_link) 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_sizeof_long=`cat conftest.val`
5838 echo "$as_me: program exited with status $ac_status" >&5
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5844 See \`config.log' for more details." >&5
5845 echo "$as_me: error: cannot compute sizeof (long), 77
5846 See \`config.log' for more details." >&2;}
5847 { (exit 1); exit 1; }; }
5849 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5857 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5858 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5859 cat >>confdefs.h <<_ACEOF
5860 #define SIZEOF_LONG $ac_cv_sizeof_long
5867 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5871 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5875 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5879 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5886 echo "$as_me:$LINENO: checking type name for byte" >&5
5887 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5888 TYPE_BYTE=`type_name 1`
5889 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5890 echo "${ECHO_T}$TYPE_BYTE" >&6
5891 echo "$as_me:$LINENO: checking type name for word" >&5
5892 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5893 TYPE_WORD=`type_name 2`
5894 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5895 echo "${ECHO_T}$TYPE_WORD" >&6
5896 echo "$as_me:$LINENO: checking type name for dword" >&5
5897 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5898 TYPE_DWORD=`type_name 4`
5899 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5900 echo "${ECHO_T}$TYPE_DWORD" >&6
5901 cat >>confdefs.h <<_ACEOF
5902 #define TYPE_BYTE $TYPE_BYTE
5905 cat >>confdefs.h <<_ACEOF
5906 #define TYPE_WORD $TYPE_WORD
5909 cat >>confdefs.h <<_ACEOF
5910 #define TYPE_DWORD $TYPE_DWORD
5914 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5915 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5916 if test "${ac_cv_c_bigendian+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 # See if sys/param.h defines the BYTE_ORDER macro.
5920 cat >conftest.$ac_ext <<_ACEOF
5921 #line $LINENO "configure"
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 #include <sys/types.h>
5928 #include <sys/param.h>
5933 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5941 rm -f conftest.$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 # It does; now see whether it defined to BIG_ENDIAN or not.
5954 cat >conftest.$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <sys/types.h>
5962 #include <sys/param.h>
5967 #if BYTE_ORDER != BIG_ENDIAN
5975 rm -f conftest.$ac_objext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_c_bigendian=yes
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cv_c_bigendian=no
5994 rm -f conftest.$ac_objext conftest.$ac_ext
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 # It does not; compile a test program.
6000 if test "$cross_compiling" = yes; then
6001 # try to guess the endianness by grepping values into an object file
6002 ac_cv_c_bigendian=unknown
6003 cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6011 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6012 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6013 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6014 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6015 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6019 _ascii (); _ebcdic ();
6024 rm -f conftest.$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -s conftest.$ac_objext'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
6036 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6037 ac_cv_c_bigendian=yes
6039 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6040 if test "$ac_cv_c_bigendian" = unknown; then
6041 ac_cv_c_bigendian=no
6043 # finding both strings is unlikely to happen, but who knows?
6044 ac_cv_c_bigendian=unknown
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6052 rm -f conftest.$ac_objext conftest.$ac_ext
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6064 /* Are we little or big endian? From Harbison&Steele. */
6068 char c[sizeof (long)];
6071 exit (u.c[sizeof (long) - 1] == 1);
6074 rm -f conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_c_bigendian=no
6087 echo "$as_me: program exited with status $ac_status" >&5
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_c_bigendian=yes
6094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6097 rm -f conftest.$ac_objext conftest.$ac_ext
6099 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6100 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6101 case $ac_cv_c_bigendian in
6104 cat >>confdefs.h <<\_ACEOF
6105 #define WORDS_BIGENDIAN 1
6111 { { echo "$as_me:$LINENO: error: unknown endianness
6112 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6113 echo "$as_me: error: unknown endianness
6114 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6115 { (exit 1); exit 1; }; } ;;
6119 # Set standard installation paths
6120 # ===========================================================================
6122 # In the Makefiles we need paths with '/' as directory separator, even if
6123 # crosscompiling for Win32.
6124 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6125 # The variables in the Makefiles are replaced by AC_SUBST()
6127 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6129 # The macros are expanded for the header.
6130 # The variables in the header are replaced by AC_*DEFINE*()
6131 # sdccconf_h_dir_separator contains a backslash.
6133 if test "${sdccconf_h_dir_separator}" = ""; then
6134 sdccconf_h_dir_separator="/"
6140 # include_dir_suffix:
6141 # *nix default: "sdcc/include"
6144 if test "${include_dir_suffix}" = ""; then
6145 include_dir_suffix="sdcc/include"
6150 # *nix default: "sdcc/lib"
6152 if test "${lib_dir_suffix}" = ""; then
6153 lib_dir_suffix="sdcc/lib"
6158 # *nix default: "${datadir}/sdcc/doc"
6160 if test "${docdir}" = ""; then
6161 docdir="\${datadir}"/sdcc/doc
6170 cat >>confdefs.h <<_ACEOF
6171 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6174 cat >>confdefs.h <<_ACEOF
6175 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6180 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6182 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6183 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6185 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6186 ac_expand=`eval echo $ac_expand`
6187 expanded_prefix=`eval echo $ac_expand`
6190 ac_ndu=$expanded_prefix
6192 # change empty paths to '.'
6194 # strip trailing slashes
6195 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6198 # squeze repeated slashes
6199 case $sdccconf_h_dir_separator in
6200 # if the path contains any backslashes, turn slashes into backslashes
6202 # Bernhard Held 2003-04-06
6203 # This was the original line. It doesn't:
6204 # - convert the first slash
6205 # - replace a slash with a double-backslash
6206 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6207 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6209 # if the path contains slashes, also turn backslashes into slashes
6210 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6212 cat >>confdefs.h <<_ACEOF
6213 #define PREFIX "${ac_ndu}"
6219 # default: "${prefix}"
6221 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6223 ac_expand=$exec_prefix
6224 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6225 ac_expand=`eval echo $ac_expand`
6226 expanded_exec_prefix=`eval echo $ac_expand`
6229 ac_ndu=$expanded_exec_prefix
6231 # change empty paths to '.'
6233 # strip trailing slashes
6234 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6237 # squeze repeated slashes
6238 case $sdccconf_h_dir_separator in
6239 # if the path contains any backslashes, turn slashes into backslashes
6241 # Bernhard Held 2003-04-06
6242 # This was the original line. It doesn't:
6243 # - convert the first slash
6244 # - replace a slash with a double-backslash
6245 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6246 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6248 # if the path contains slashes, also turn backslashes into slashes
6249 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6251 cat >>confdefs.h <<_ACEOF
6252 #define EXEC_PREFIX "${ac_ndu}"
6258 # default: "${exec_prefix}/bin"
6260 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6263 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6264 ac_expand=`eval echo $ac_expand`
6265 expanded_bindir=`eval echo $ac_expand`
6268 ac_ndu=$expanded_bindir
6270 # change empty paths to '.'
6272 # strip trailing slashes
6273 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6276 # squeze repeated slashes
6277 case $sdccconf_h_dir_separator in
6278 # if the path contains any backslashes, turn slashes into backslashes
6280 # Bernhard Held 2003-04-06
6281 # This was the original line. It doesn't:
6282 # - convert the first slash
6283 # - replace a slash with a double-backslash
6284 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6285 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6287 # if the path contains slashes, also turn backslashes into slashes
6288 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6290 cat >>confdefs.h <<_ACEOF
6291 #define BINDIR "${ac_ndu}"
6297 # default: "${prefix}/share"
6299 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6302 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6303 ac_expand=`eval echo $ac_expand`
6304 expanded_datadir=`eval echo $ac_expand`
6307 ac_ndu=$expanded_datadir
6309 # change empty paths to '.'
6311 # strip trailing slashes
6312 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6315 # squeze repeated slashes
6316 case $sdccconf_h_dir_separator in
6317 # if the path contains any backslashes, turn slashes into backslashes
6319 # Bernhard Held 2003-04-06
6320 # This was the original line. It doesn't:
6321 # - convert the first slash
6322 # - replace a slash with a double-backslash
6323 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6324 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6326 # if the path contains slashes, also turn backslashes into slashes
6327 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6329 cat >>confdefs.h <<_ACEOF
6330 #define DATADIR "${ac_ndu}"
6335 # include/lib suffix
6336 norm_inc_dir_suffix=${include_dir_suffix}
6337 case ":$norm_inc_dir_suffix:" in
6338 # change empty paths to '.'
6339 ::) norm_inc_dir_suffix='.' ;;
6340 # strip trailing slashes
6341 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6344 # squeze repeated slashes
6345 case $sdccconf_h_dir_separator in
6346 # if the path contains any backslashes, turn slashes into backslashes
6348 # Bernhard Held 2003-04-06
6349 # This was the original line. It doesn't:
6350 # - convert the first slash
6351 # - replace a slash with a double-backslash
6352 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6353 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6355 # if the path contains slashes, also turn backslashes into slashes
6356 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6358 cat >>confdefs.h <<_ACEOF
6359 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6362 norm_lib_dir_suffix=${lib_dir_suffix}
6363 case ":$norm_lib_dir_suffix:" in
6364 # change empty paths to '.'
6365 ::) norm_lib_dir_suffix='.' ;;
6366 # strip trailing slashes
6367 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6370 # squeze repeated slashes
6371 case $sdccconf_h_dir_separator in
6372 # if the path contains any backslashes, turn slashes into backslashes
6374 # Bernhard Held 2003-04-06
6375 # This was the original line. It doesn't:
6376 # - convert the first slash
6377 # - replace a slash with a double-backslash
6378 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6379 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6381 # if the path contains slashes, also turn backslashes into slashes
6382 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6384 cat >>confdefs.h <<_ACEOF
6385 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6390 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6391 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6392 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6393 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6394 _lcl_receval="$_lcl_from"
6395 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6396 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6398 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6399 _lcl_receval_old="$_lcl_receval"
6400 eval _lcl_receval="\"$_lcl_receval\""
6402 echo "$_lcl_receval")`
6403 _lcl_receval="$_lcl_to"
6404 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6405 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6407 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6408 _lcl_receval_old="$_lcl_receval"
6409 eval _lcl_receval="\"$_lcl_receval\""
6411 echo "$_lcl_receval")`
6412 _lcl_notation="$_lcl_from$_lcl_to"
6413 case ":$_lcl_from:" in
6414 # change empty paths to '.'
6415 ::) _lcl_from='.' ;;
6416 # strip trailing slashes
6417 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6420 # squeze repeated slashes
6422 # if the path contains any backslashes, turn slashes into backslashes
6424 # Bernhard Held 2003-04-06
6425 # This was the original line. It doesn't:
6426 # - convert the first slash
6427 # - replace a slash with a double-backslash
6428 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6429 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6431 # if the path contains slashes, also turn backslashes into slashes
6432 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6434 case ":$_lcl_to:" in
6435 # change empty paths to '.'
6437 # strip trailing slashes
6438 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6441 # squeze repeated slashes
6443 # if the path contains any backslashes, turn slashes into backslashes
6445 # Bernhard Held 2003-04-06
6446 # This was the original line. It doesn't:
6447 # - convert the first slash
6448 # - replace a slash with a double-backslash
6449 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6450 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6452 # if the path contains slashes, also turn backslashes into slashes
6453 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6455 _lcl_common_prefix=''
6456 _lcl_second_prefix_match=''
6457 while test "$_lcl_second_prefix_match" != 0; do
6458 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6459 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6460 if test "$_lcl_second_prefix_match" != 0; then
6461 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6462 _lcl_common_prefix="$_lcl_first_prefix"
6464 _lcl_second_prefix_match=0
6468 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6471 while test "$_lcl_tmp" != ''; do
6472 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6473 if test "$_lcl_first_suffix" != ''; then
6474 _lcl_first_suffix="$_lcl_tmp"
6475 _lcl_first_rel="../$_lcl_first_rel"
6478 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6479 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6480 case ":$_lcl_result_tmp:" in
6481 # change empty paths to '.'
6482 ::) _lcl_result_tmp='.' ;;
6483 # strip trailing slashes
6484 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6487 # squeze repeated slashes
6488 case "$_lcl_notation" in
6489 # if the path contains any backslashes, turn slashes into backslashes
6491 # Bernhard Held 2003-04-06
6492 # This was the original line. It doesn't:
6493 # - convert the first slash
6494 # - replace a slash with a double-backslash
6495 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6496 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6498 # if the path contains slashes, also turn backslashes into slashes
6499 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6501 eval $_lcl_result_var='$_lcl_result_tmp'
6503 case ":$bin2data_dir:" in
6504 # change empty paths to '.'
6505 ::) bin2data_dir='.' ;;
6506 # strip trailing slashes
6507 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6510 # squeze repeated slashes
6511 case $sdccconf_h_dir_separator in
6512 # if the path contains any backslashes, turn slashes into backslashes
6514 # Bernhard Held 2003-04-06
6515 # This was the original line. It doesn't:
6516 # - convert the first slash
6517 # - replace a slash with a double-backslash
6518 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6519 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6521 # if the path contains slashes, also turn backslashes into slashes
6522 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6524 cat >>confdefs.h <<_ACEOF
6525 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6529 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6530 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6531 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6532 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6533 _lcl_receval="$_lcl_from"
6534 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6535 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6537 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6538 _lcl_receval_old="$_lcl_receval"
6539 eval _lcl_receval="\"$_lcl_receval\""
6541 echo "$_lcl_receval")`
6542 _lcl_receval="$_lcl_to"
6543 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6544 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6546 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6547 _lcl_receval_old="$_lcl_receval"
6548 eval _lcl_receval="\"$_lcl_receval\""
6550 echo "$_lcl_receval")`
6551 _lcl_notation="$_lcl_from$_lcl_to"
6552 case ":$_lcl_from:" in
6553 # change empty paths to '.'
6554 ::) _lcl_from='.' ;;
6555 # strip trailing slashes
6556 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6559 # squeze repeated slashes
6561 # if the path contains any backslashes, turn slashes into backslashes
6563 # Bernhard Held 2003-04-06
6564 # This was the original line. It doesn't:
6565 # - convert the first slash
6566 # - replace a slash with a double-backslash
6567 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6568 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6570 # if the path contains slashes, also turn backslashes into slashes
6571 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6573 case ":$_lcl_to:" in
6574 # change empty paths to '.'
6576 # strip trailing slashes
6577 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6580 # squeze repeated slashes
6582 # if the path contains any backslashes, turn slashes into backslashes
6584 # Bernhard Held 2003-04-06
6585 # This was the original line. It doesn't:
6586 # - convert the first slash
6587 # - replace a slash with a double-backslash
6588 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6589 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6591 # if the path contains slashes, also turn backslashes into slashes
6592 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6594 _lcl_common_prefix=''
6595 _lcl_second_prefix_match=''
6596 while test "$_lcl_second_prefix_match" != 0; do
6597 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6598 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6599 if test "$_lcl_second_prefix_match" != 0; then
6600 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6601 _lcl_common_prefix="$_lcl_first_prefix"
6603 _lcl_second_prefix_match=0
6607 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6610 while test "$_lcl_tmp" != ''; do
6611 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6612 if test "$_lcl_first_suffix" != ''; then
6613 _lcl_first_suffix="$_lcl_tmp"
6614 _lcl_first_rel="../$_lcl_first_rel"
6617 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6618 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6619 case ":$_lcl_result_tmp:" in
6620 # change empty paths to '.'
6621 ::) _lcl_result_tmp='.' ;;
6622 # strip trailing slashes
6623 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6626 # squeze repeated slashes
6627 case "$_lcl_notation" in
6628 # if the path contains any backslashes, turn slashes into backslashes
6630 # Bernhard Held 2003-04-06
6631 # This was the original line. It doesn't:
6632 # - convert the first slash
6633 # - replace a slash with a double-backslash
6634 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6635 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6637 # if the path contains slashes, also turn backslashes into slashes
6638 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6640 eval $_lcl_result_var='$_lcl_result_tmp'
6642 case ":$prefix2bin_dir:" in
6643 # change empty paths to '.'
6644 ::) prefix2bin_dir='.' ;;
6645 # strip trailing slashes
6646 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6649 # squeze repeated slashes
6650 case $sdccconf_h_dir_separator in
6651 # if the path contains any backslashes, turn slashes into backslashes
6653 # Bernhard Held 2003-04-06
6654 # This was the original line. It doesn't:
6655 # - convert the first slash
6656 # - replace a slash with a double-backslash
6657 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6658 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6660 # if the path contains slashes, also turn backslashes into slashes
6661 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6663 cat >>confdefs.h <<_ACEOF
6664 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6668 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6669 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6670 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6671 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6672 _lcl_receval="$_lcl_from"
6673 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6674 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6676 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6677 _lcl_receval_old="$_lcl_receval"
6678 eval _lcl_receval="\"$_lcl_receval\""
6680 echo "$_lcl_receval")`
6681 _lcl_receval="$_lcl_to"
6682 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6683 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6685 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6686 _lcl_receval_old="$_lcl_receval"
6687 eval _lcl_receval="\"$_lcl_receval\""
6689 echo "$_lcl_receval")`
6690 _lcl_notation="$_lcl_from$_lcl_to"
6691 case ":$_lcl_from:" in
6692 # change empty paths to '.'
6693 ::) _lcl_from='.' ;;
6694 # strip trailing slashes
6695 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6698 # squeze repeated slashes
6700 # if the path contains any backslashes, turn slashes into backslashes
6702 # Bernhard Held 2003-04-06
6703 # This was the original line. It doesn't:
6704 # - convert the first slash
6705 # - replace a slash with a double-backslash
6706 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6707 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6709 # if the path contains slashes, also turn backslashes into slashes
6710 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6712 case ":$_lcl_to:" in
6713 # change empty paths to '.'
6715 # strip trailing slashes
6716 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6719 # squeze repeated slashes
6721 # if the path contains any backslashes, turn slashes into backslashes
6723 # Bernhard Held 2003-04-06
6724 # This was the original line. It doesn't:
6725 # - convert the first slash
6726 # - replace a slash with a double-backslash
6727 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6728 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6730 # if the path contains slashes, also turn backslashes into slashes
6731 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6733 _lcl_common_prefix=''
6734 _lcl_second_prefix_match=''
6735 while test "$_lcl_second_prefix_match" != 0; do
6736 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6737 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6738 if test "$_lcl_second_prefix_match" != 0; then
6739 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6740 _lcl_common_prefix="$_lcl_first_prefix"
6742 _lcl_second_prefix_match=0
6746 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6749 while test "$_lcl_tmp" != ''; do
6750 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6751 if test "$_lcl_first_suffix" != ''; then
6752 _lcl_first_suffix="$_lcl_tmp"
6753 _lcl_first_rel="../$_lcl_first_rel"
6756 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6757 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6758 case ":$_lcl_result_tmp:" in
6759 # change empty paths to '.'
6760 ::) _lcl_result_tmp='.' ;;
6761 # strip trailing slashes
6762 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6765 # squeze repeated slashes
6766 case "$_lcl_notation" in
6767 # if the path contains any backslashes, turn slashes into backslashes
6769 # Bernhard Held 2003-04-06
6770 # This was the original line. It doesn't:
6771 # - convert the first slash
6772 # - replace a slash with a double-backslash
6773 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6774 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6776 # if the path contains slashes, also turn backslashes into slashes
6777 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6779 eval $_lcl_result_var='$_lcl_result_tmp'
6781 case ":$prefix2data_dir:" in
6782 # change empty paths to '.'
6783 ::) prefix2data_dir='.' ;;
6784 # strip trailing slashes
6785 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6788 # squeze repeated slashes
6789 case $sdccconf_h_dir_separator in
6790 # if the path contains any backslashes, turn slashes into backslashes
6792 # Bernhard Held 2003-04-06
6793 # This was the original line. It doesn't:
6794 # - convert the first slash
6795 # - replace a slash with a double-backslash
6796 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6797 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6799 # if the path contains slashes, also turn backslashes into slashes
6800 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6802 if test "${prefix2data_dir}" = "."; then
6803 # small optimization for Mingw32; otherwise Borut will complain ;-)
6804 cat >>confdefs.h <<_ACEOF
6805 #define PREFIX2DATA_DIR ""
6809 cat >>confdefs.h <<_ACEOF
6810 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6816 cat >>confdefs.h <<_ACEOF
6817 #define STD_LIB "libsdcc"
6820 cat >>confdefs.h <<_ACEOF
6821 #define STD_INT_LIB "libint"
6824 cat >>confdefs.h <<_ACEOF
6825 #define STD_LONG_LIB "liblong"
6828 cat >>confdefs.h <<_ACEOF
6829 #define STD_FP_LIB "libfloat"
6832 cat >>confdefs.h <<_ACEOF
6833 #define STD_DS390_LIB "libds390"
6836 cat >>confdefs.h <<_ACEOF
6837 #define STD_XA51_LIB "libxa51"
6841 # SDCC runtime environment variables
6842 sdcc_dir_name="SDCC_HOME"
6843 cat >>confdefs.h <<_ACEOF
6844 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6848 sdcc_include_name="SDCC_INCLUDE"
6849 cat >>confdefs.h <<_ACEOF
6850 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6854 sdcc_lib_name="SDCC_LIB"
6855 cat >>confdefs.h <<_ACEOF
6856 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6860 # Now handle the port selection
6861 # ===========================================================================
6862 rm -f ports.all ports.build
6863 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6864 if test "${enable_mcs51_port+set}" = set; then
6865 enableval="$enable_mcs51_port"
6868 echo mcs51 >>ports.all
6869 if test "$enable_mcs51_port" = "no"; then
6870 cat >>confdefs.h <<_ACEOF
6871 #define OPT_DISABLE_MCS51 1
6875 echo mcs51 >>ports.build
6876 cat >>confdefs.h <<_ACEOF
6877 #define OPT_DISABLE_MCS51 0
6882 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6883 if test "${enable_gbz80_port+set}" = set; then
6884 enableval="$enable_gbz80_port"
6887 echo z80 >>ports.all
6888 if test "$enable_gbz80_port" = "no"; then
6889 cat >>confdefs.h <<_ACEOF
6890 #define OPT_DISABLE_GBZ80 1
6894 echo z80 >>ports.build
6895 cat >>confdefs.h <<_ACEOF
6896 #define OPT_DISABLE_GBZ80 0
6901 # Check whether --enable-z80-port or --disable-z80-port was given.
6902 if test "${enable_z80_port+set}" = set; then
6903 enableval="$enable_z80_port"
6906 echo z80 >>ports.all
6907 if test "$enable_z80_port" = "no"; then
6908 cat >>confdefs.h <<_ACEOF
6909 #define OPT_DISABLE_Z80 1
6913 echo z80 >>ports.build
6914 cat >>confdefs.h <<_ACEOF
6915 #define OPT_DISABLE_Z80 0
6920 # Check whether --enable-avr-port or --disable-avr-port was given.
6921 if test "${enable_avr_port+set}" = set; then
6922 enableval="$enable_avr_port"
6925 echo avr >>ports.all
6926 if test "$enable_avr_port" = "no"; then
6927 cat >>confdefs.h <<_ACEOF
6928 #define OPT_DISABLE_AVR 1
6932 echo avr >>ports.build
6933 cat >>confdefs.h <<_ACEOF
6934 #define OPT_DISABLE_AVR 0
6939 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6940 if test "${enable_ds390_port+set}" = set; then
6941 enableval="$enable_ds390_port"
6944 echo ds390 >>ports.all
6945 if test "$enable_ds390_port" = "no"; then
6946 cat >>confdefs.h <<_ACEOF
6947 #define OPT_DISABLE_DS390 1
6950 cat >>confdefs.h <<_ACEOF
6951 #define OPT_DISABLE_TININative 1
6955 echo ds390 >>ports.build
6956 cat >>confdefs.h <<_ACEOF
6957 #define OPT_DISABLE_DS390 0
6960 cat >>confdefs.h <<_ACEOF
6961 #define OPT_DISABLE_TININative 0
6966 # Check whether --enable-pic-port or --disable-pic-port was given.
6967 if test "${enable_pic_port+set}" = set; then
6968 enableval="$enable_pic_port"
6971 echo pic >>ports.all
6972 if test "$enable_pic_port" = "no"; then
6973 cat >>confdefs.h <<_ACEOF
6974 #define OPT_DISABLE_PIC 1
6978 echo pic >>ports.build
6979 cat >>confdefs.h <<_ACEOF
6980 #define OPT_DISABLE_PIC 0
6985 # Check whether --enable-xa51-port or --disable-xa51-port was given.
6986 if test "${enable_xa51_port+set}" = set; then
6987 enableval="$enable_xa51_port"
6990 echo xa51 >>ports.all
6991 if test "$enable_xa51_port" = "no"; then
6992 cat >>confdefs.h <<_ACEOF
6993 #define OPT_DISABLE_XA51 1
6997 echo xa51 >>ports.build
6998 cat >>confdefs.h <<_ACEOF
6999 #define OPT_DISABLE_XA51 0
7004 # Check whether --enable-ucsim or --disable-ucsim was given.
7005 if test "${enable_ucsim+set}" = set; then
7006 enableval="$enable_ucsim"
7009 OPT_ENABLE_UCSIM=$enable_ucsim
7012 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
7013 if test "${enable_device_lib_build+set}" = set; then
7014 enableval="$enable_device_lib_build"
7017 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
7020 # Check whether --enable-packihx or --disable-packihx was given.
7021 if test "${enable_packihx+set}" = set; then
7022 enableval="$enable_packihx"
7025 OPT_ENABLE_PACKIHX=$enable_packihx
7028 # Check whether --enable-libgc or --disable-libgc was given.
7029 if test "${enable_libgc+set}" = set; then
7030 enableval="$enable_libgc"
7033 if test "$enable_libgc" = "yes"; then
7035 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7036 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7037 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 ac_check_lib_save_LIBS=$LIBS
7042 cat >conftest.$ac_ext <<_ACEOF
7043 #line $LINENO "configure"
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7050 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7065 rm -f conftest.$ac_objext conftest$ac_exeext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7067 (eval $ac_link) 2>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -s conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_lib_gc_GC_malloc=yes
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7082 ac_cv_lib_gc_GC_malloc=no
7084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7085 LIBS=$ac_check_lib_save_LIBS
7087 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7088 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7089 if test $ac_cv_lib_gc_GC_malloc = yes; then
7090 cat >>confdefs.h <<_ACEOF
7091 #define HAVE_LIBGC 1
7102 cat >>confdefs.h <<_ACEOF
7103 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7108 uniq ports.all ports
7110 uniq ports.build ports
7111 mv ports ports.build
7113 # Generating output files
7114 # ===========================================================================
7117 subdirs="$subdirs support/cpp2"
7121 subdirs="$subdirs packihx"
7125 subdirs="$subdirs sim/ucsim"
7127 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile as/mcs51/Makefile device/include/Makefile device/lib/Makefile debugger/mcs51/Makefile Makefile.common:Makefile.common.in"
7129 cat >confcache <<\_ACEOF
7130 # This file is a shell script that caches the results of configure
7131 # tests run on this system so they can be shared between configure
7132 # scripts and configure runs, see configure's option --config-cache.
7133 # It is not useful on other systems. If it contains results you don't
7134 # want to keep, you may remove or edit it.
7136 # config.status only pays attention to the cache file if you give it
7137 # the --recheck option to rerun configure.
7139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7145 # The following way of writing the cache mishandles newlines in values,
7146 # but we know of no workaround that is simple, portable, and efficient.
7147 # So, don't put newlines in cache variables' values.
7148 # Ultrix sh set writes to stderr and can't be redirected directly,
7149 # and sets the high bit in the cache file unless we assign to the vars.
7152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7154 # `set' does not quote correctly, so add quotes (double-quote
7155 # substitution turns \\\\ into \\, and sed turns \\ into \).
7158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7161 # `set' quotes correctly as required by POSIX, so do not add quotes.
7163 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7172 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7174 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7175 if test -w $cache_file; then
7176 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7177 cat confcache >$cache_file
7179 echo "not updating unwritable cache $cache_file"
7184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7185 # Let make expand exec_prefix.
7186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7190 # trailing colons and then remove the whole line if VPATH becomes empty
7191 # (actually we leave an empty line to preserve line numbers).
7192 if test "x$srcdir" = x.; then
7193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7194 s/:*\$(srcdir):*/:/;
7195 s/:*\${srcdir}:*/:/;
7197 s/^\([^=]*=[ ]*\):*/\1/;
7203 DEFS=-DHAVE_CONFIG_H
7207 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7208 # 1. Remove the extension, and $U if already installed.
7209 ac_i=`echo "$ac_i" |
7210 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7212 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7213 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7217 LTLIBOBJS=$ac_ltlibobjs
7221 : ${CONFIG_STATUS=./config.status}
7222 ac_clean_files_save=$ac_clean_files
7223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7226 cat >$CONFIG_STATUS <<_ACEOF
7228 # Generated by $as_me.
7229 # Run this file to recreate the current configuration.
7230 # Compiler output produced by configure, useful for debugging
7231 # configure, is in config.log if it exists.
7236 SHELL=\${CONFIG_SHELL-$SHELL}
7239 cat >>$CONFIG_STATUS <<\_ACEOF
7240 ## --------------------- ##
7241 ## M4sh Initialization. ##
7242 ## --------------------- ##
7244 # Be Bourne compatible
7245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7249 # is contrary to our usage. Disable this feature.
7250 alias -g '${1+"$@"}'='"$@"'
7251 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7255 # Support unset when possible.
7256 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7263 # Work around bugs in pre-3.0 UWIN ksh.
7264 $as_unset ENV MAIL MAILPATH
7271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7273 LC_TELEPHONE LC_TIME
7275 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7276 eval $as_var=C; export $as_var
7282 # Required to use basename.
7283 if expr a : '\(a\)' >/dev/null 2>&1; then
7289 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7290 as_basename=basename
7296 # Name of the executable.
7297 as_me=`$as_basename "$0" ||
7298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7299 X"$0" : 'X\(//\)$' \| \
7300 X"$0" : 'X\(/\)$' \| \
7301 . : '\(.\)' 2>/dev/null ||
7303 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7304 /^X\/\(\/\/\)$/{ s//\1/; q; }
7305 /^X\/\(\/\).*/{ s//\1/; q; }
7309 # PATH needs CR, and LINENO needs CR and PATH.
7310 # Avoid depending upon Character Ranges.
7311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7314 as_cr_digits='0123456789'
7315 as_cr_alnum=$as_cr_Letters$as_cr_digits
7317 # The user is always right.
7318 if test "${PATH_SEPARATOR+set}" != set; then
7319 echo "#! /bin/sh" >conf$$.sh
7320 echo "exit 0" >>conf$$.sh
7322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7334 test "x$as_lineno_1" != "x$as_lineno_2" &&
7335 test "x$as_lineno_3" = "x$as_lineno_2" || {
7336 # Find who we are. Look in the path if we contain no path at all
7339 *[\\/]* ) as_myself=$0 ;;
7340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7350 # We did not find ourselves, most probably we were run as `sh COMMAND'
7351 # in which case we are not to be found in the path.
7352 if test "x$as_myself" = x; then
7355 if test ! -f "$as_myself"; then
7356 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7357 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7358 { (exit 1); exit 1; }; }
7360 case $CONFIG_SHELL in
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7366 test -z "$as_dir" && as_dir=.
7367 for as_base in sh bash ksh sh5; do
7370 if ("$as_dir/$as_base" -c '
7373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7374 test "x$as_lineno_1" != "x$as_lineno_2" &&
7375 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7376 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7377 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7378 CONFIG_SHELL=$as_dir/$as_base
7380 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7389 # uniformly replaced by the line number. The first 'sed' inserts a
7390 # line-number line before each line; the second 'sed' does the real
7391 # work. The second script uses 'N' to pair each line-number line
7392 # with the numbered line, and appends trailing '-' during
7393 # substitution so that $LINENO is not a special case at line end.
7394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7395 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7396 sed '=' <$as_myself |
7401 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7404 s,^['$as_cr_digits']*\n,,
7406 chmod +x $as_me.lineno ||
7407 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7408 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7409 { (exit 1); exit 1; }; }
7411 # Don't try to exec as it changes $[0], causing all sort of problems
7412 # (the dirname of $[0] is not the place where we might find the
7413 # original and so on. Autoconf is especially sensible to this).
7415 # Exit status is that of the last command.
7420 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7421 *c*,-n*) ECHO_N= ECHO_C='
7423 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7424 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7427 if expr a : '\(a\)' >/dev/null 2>&1; then
7433 rm -f conf$$ conf$$.exe conf$$.file
7435 if ln -s conf$$.file conf$$ 2>/dev/null; then
7436 # We could just check for DJGPP; but this test a) works b) is more generic
7437 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7438 if test -f conf$$.exe; then
7439 # Don't use ln at all; we don't have any links
7444 elif ln conf$$.file conf$$ 2>/dev/null; then
7449 rm -f conf$$ conf$$.exe conf$$.file
7451 if mkdir -p . 2>/dev/null; then
7457 as_executable_p="test -f"
7459 # Sed expression to map a string onto a valid CPP name.
7460 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7462 # Sed expression to map a string onto a valid variable name.
7463 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7467 # We need space, tab and new line, in precisely that order.
7477 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7478 # report actual input values of CONFIG_FILES etc. instead of their
7479 # values after options handling. Logging --version etc. is OK.
7483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7484 ## Running $as_me. ##
7489 This file was extended by $as_me, which was
7490 generated by GNU Autoconf 2.57. Invocation command line was
7492 CONFIG_FILES = $CONFIG_FILES
7493 CONFIG_HEADERS = $CONFIG_HEADERS
7494 CONFIG_LINKS = $CONFIG_LINKS
7495 CONFIG_COMMANDS = $CONFIG_COMMANDS
7499 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7503 # Files that config.status was made for.
7504 if test -n "$ac_config_files"; then
7505 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7508 if test -n "$ac_config_headers"; then
7509 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7512 if test -n "$ac_config_links"; then
7513 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7516 if test -n "$ac_config_commands"; then
7517 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7520 cat >>$CONFIG_STATUS <<\_ACEOF
7523 \`$as_me' instantiates files from templates according to the
7524 current configuration.
7526 Usage: $0 [OPTIONS] [FILE]...
7528 -h, --help print this help, then exit
7529 -V, --version print version number, then exit
7530 -q, --quiet do not print progress messages
7531 -d, --debug don't remove temporary files
7532 --recheck update $as_me by reconfiguring in the same conditions
7533 --file=FILE[:TEMPLATE]
7534 instantiate the configuration file FILE
7535 --header=FILE[:TEMPLATE]
7536 instantiate the configuration header FILE
7538 Configuration files:
7541 Configuration headers:
7544 Report bugs to <bug-autoconf@gnu.org>."
7547 cat >>$CONFIG_STATUS <<_ACEOF
7550 configured by $0, generated by GNU Autoconf 2.57,
7551 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7553 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7554 Free Software Foundation, Inc.
7555 This config.status script is free software; the Free Software Foundation
7556 gives unlimited permission to copy, distribute and modify it."
7561 cat >>$CONFIG_STATUS <<\_ACEOF
7562 # If no file are specified by the user, then we need to provide default
7563 # value. By we need to know if files were specified by the user.
7569 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7570 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7578 *) # This is not an option, so the user has probably given explicit
7581 ac_need_defaults=false;;
7585 # Handling of the options.
7587 cat >>$CONFIG_STATUS <<\_ACEOF
7588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7590 --version | --vers* | -V )
7591 echo "$ac_cs_version"; exit 0 ;;
7593 # Conflict between --help and --header
7594 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7595 Try \`$0 --help' for more information." >&5
7596 echo "$as_me: error: ambiguous option: $1
7597 Try \`$0 --help' for more information." >&2;}
7598 { (exit 1); exit 1; }; };;
7599 --help | --hel | -h )
7600 echo "$ac_cs_usage"; exit 0 ;;
7601 --debug | --d* | -d )
7603 --file | --fil | --fi | --f )
7605 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7606 ac_need_defaults=false;;
7607 --header | --heade | --head | --hea )
7609 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7610 ac_need_defaults=false;;
7611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7616 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7617 Try \`$0 --help' for more information." >&5
7618 echo "$as_me: error: unrecognized option: $1
7619 Try \`$0 --help' for more information." >&2;}
7620 { (exit 1); exit 1; }; } ;;
7622 *) ac_config_targets="$ac_config_targets $1" ;;
7628 ac_configure_extra_args=
7630 if $ac_cs_silent; then
7632 ac_configure_extra_args="$ac_configure_extra_args --silent"
7636 cat >>$CONFIG_STATUS <<_ACEOF
7637 if \$ac_cs_recheck; then
7638 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7639 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7648 cat >>$CONFIG_STATUS <<\_ACEOF
7649 for ac_config_target in $ac_config_targets
7651 case "$ac_config_target" in
7652 # Handling of arguments.
7653 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7654 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7655 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7656 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7657 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7658 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
7659 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7660 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7661 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7662 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7663 { (exit 1); exit 1; }; };;
7667 # If the user did not use the arguments to specify the items to instantiate,
7668 # then the envvar interface is used. Set only those that are not.
7669 # We use the long form for the default assignment because of an extremely
7670 # bizarre bug on SunOS 4.1.3.
7671 if $ac_need_defaults; then
7672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7676 # Have a temporary directory for convenience. Make it in the build tree
7677 # simply because there is no reason to put it here, and in addition,
7678 # creating and moving files from /tmp can sometimes cause problems.
7679 # Create a temporary directory, and hook for its removal unless debugging.
7682 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7683 trap '{ (exit 1); exit 1; }' 1 2 13 15
7686 # Create a (secure) tmp directory for tmp files.
7689 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7690 test -n "$tmp" && test -d "$tmp"
7693 tmp=./confstat$$-$RANDOM
7694 (umask 077 && mkdir $tmp)
7697 echo "$me: cannot create a temporary directory in ." >&2
7698 { (exit 1); exit 1; }
7703 cat >>$CONFIG_STATUS <<_ACEOF
7706 # CONFIG_FILES section.
7709 # No need to generate the scripts if there are no CONFIG_FILES.
7710 # This happens for instance when ./config.status config.h
7711 if test -n "\$CONFIG_FILES"; then
7712 # Protect against being on the right side of a sed subst in config.status.
7713 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7714 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7715 s,@SHELL@,$SHELL,;t t
7716 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7717 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7718 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7719 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7720 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7721 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7722 s,@exec_prefix@,$exec_prefix,;t t
7723 s,@prefix@,$prefix,;t t
7724 s,@program_transform_name@,$program_transform_name,;t t
7725 s,@bindir@,$bindir,;t t
7726 s,@sbindir@,$sbindir,;t t
7727 s,@libexecdir@,$libexecdir,;t t
7728 s,@datadir@,$datadir,;t t
7729 s,@sysconfdir@,$sysconfdir,;t t
7730 s,@sharedstatedir@,$sharedstatedir,;t t
7731 s,@localstatedir@,$localstatedir,;t t
7732 s,@libdir@,$libdir,;t t
7733 s,@includedir@,$includedir,;t t
7734 s,@oldincludedir@,$oldincludedir,;t t
7735 s,@infodir@,$infodir,;t t
7736 s,@mandir@,$mandir,;t t
7737 s,@build_alias@,$build_alias,;t t
7738 s,@host_alias@,$host_alias,;t t
7739 s,@target_alias@,$target_alias,;t t
7741 s,@ECHO_C@,$ECHO_C,;t t
7742 s,@ECHO_N@,$ECHO_N,;t t
7743 s,@ECHO_T@,$ECHO_T,;t t
7746 s,@VERSION@,$VERSION,;t t
7747 s,@VERSIONHI@,$VERSIONHI,;t t
7748 s,@VERSIONLO@,$VERSIONLO,;t t
7749 s,@VERSIONP@,$VERSIONP,;t t
7751 s,@CFLAGS@,$CFLAGS,;t t
7752 s,@LDFLAGS@,$LDFLAGS,;t t
7753 s,@CPPFLAGS@,$CPPFLAGS,;t t
7754 s,@ac_ct_CC@,$ac_ct_CC,;t t
7755 s,@EXEEXT@,$EXEEXT,;t t
7756 s,@OBJEXT@,$OBJEXT,;t t
7758 s,@CXXFLAGS@,$CXXFLAGS,;t t
7759 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7761 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7762 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7763 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7764 s,@RANLIB@,$RANLIB,;t t
7765 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7767 s,@LEXLIB@,$LEXLIB,;t t
7768 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7770 s,@AUTOCONF@,$AUTOCONF,;t t
7771 s,@STRIP@,$STRIP,;t t
7775 s,@LATEX@,$LATEX,;t t
7776 s,@LATEX2HTML@,$LATEX2HTML,;t t
7777 s,@PDFLATEX@,$PDFLATEX,;t t
7778 s,@DVIPDF@,$DVIPDF,;t t
7779 s,@EGREP@,$EGREP,;t t
7780 s,@M_OR_MM@,$M_OR_MM,;t t
7781 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
7782 s,@include_dir_suffix@,$include_dir_suffix,;t t
7783 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
7784 s,@docdir@,$docdir,;t t
7785 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
7786 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
7787 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
7788 s,@subdirs@,$subdirs,;t t
7789 s,@LIBOBJS@,$LIBOBJS,;t t
7790 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7795 cat >>$CONFIG_STATUS <<\_ACEOF
7796 # Split the substitutions into bite-sized pieces for seds with
7797 # small command number limits, like on Digital OSF/1 and HP-UX.
7799 ac_sed_frag=1 # Number of current file.
7800 ac_beg=1 # First line for current file.
7801 ac_end=$ac_max_sed_lines # Line after last line for current file.
7804 while $ac_more_lines; do
7805 if test $ac_beg -gt 1; then
7806 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7808 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7810 if test ! -s $tmp/subs.frag; then
7813 # The purpose of the label and of the branching condition is to
7814 # speed up the sed processing (if there are no `@' at all, there
7815 # is no need to browse any of the substitutions).
7816 # These are the two extra sed commands mentioned above.
7818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7819 if test -z "$ac_sed_cmds"; then
7820 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7822 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7824 ac_sed_frag=`expr $ac_sed_frag + 1`
7826 ac_end=`expr $ac_end + $ac_max_sed_lines`
7829 if test -z "$ac_sed_cmds"; then
7832 fi # test -n "$CONFIG_FILES"
7835 cat >>$CONFIG_STATUS <<\_ACEOF
7836 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7839 - | *:- | *:-:* ) # input from stdin
7841 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7843 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7845 * ) ac_file_in=$ac_file.in ;;
7848 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7849 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7851 X"$ac_file" : 'X\(//\)[^/]' \| \
7852 X"$ac_file" : 'X\(//\)$' \| \
7853 X"$ac_file" : 'X\(/\)' \| \
7854 . : '\(.\)' 2>/dev/null ||
7856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7858 /^X\(\/\/\)$/{ s//\1/; q; }
7859 /^X\(\/\).*/{ s//\1/; q; }
7861 { if $as_mkdir_p; then
7866 while test ! -d "$as_dir"; do
7867 as_dirs="$as_dir $as_dirs"
7868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7870 X"$as_dir" : 'X\(//\)[^/]' \| \
7871 X"$as_dir" : 'X\(//\)$' \| \
7872 X"$as_dir" : 'X\(/\)' \| \
7873 . : '\(.\)' 2>/dev/null ||
7875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7877 /^X\(\/\/\)$/{ s//\1/; q; }
7878 /^X\(\/\).*/{ s//\1/; q; }
7881 test ! -n "$as_dirs" || mkdir $as_dirs
7882 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7884 { (exit 1); exit 1; }; }; }
7888 if test "$ac_dir" != .; then
7889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7890 # A "../" for each directory in $ac_dir_suffix.
7891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7893 ac_dir_suffix= ac_top_builddir=
7897 .) # No --srcdir option. We are building in place.
7899 if test -z "$ac_top_builddir"; then
7902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7904 [\\/]* | ?:[\\/]* ) # Absolute path.
7905 ac_srcdir=$srcdir$ac_dir_suffix;
7906 ac_top_srcdir=$srcdir ;;
7908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7911 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7913 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7914 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7915 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7916 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7921 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7924 if test x"$ac_file" != x-; then
7925 { echo "$as_me:$LINENO: creating $ac_file" >&5
7926 echo "$as_me: creating $ac_file" >&6;}
7929 # Let's still pretend it is `configure' which instantiates (i.e., don't
7930 # use $as_me), people would be surprised to read:
7931 # /* config.h. Generated by config.status. */
7932 if test x"$ac_file" = x-; then
7935 configure_input="$ac_file. "
7937 configure_input=$configure_input"Generated from `echo $ac_file_in |
7938 sed 's,.*/,,'` by configure."
7940 # First look for the input files in the build tree, otherwise in the
7942 ac_file_inputs=`IFS=:
7943 for f in $ac_file_in; do
7945 -) echo $tmp/stdin ;;
7947 # Absolute (can't be DOS-style, as IFS=:)
7948 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7949 echo "$as_me: error: cannot find input file: $f" >&2;}
7950 { (exit 1); exit 1; }; }
7953 if test -f "$f"; then
7956 elif test -f "$srcdir/$f"; then
7961 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7962 echo "$as_me: error: cannot find input file: $f" >&2;}
7963 { (exit 1); exit 1; }; }
7966 done` || { (exit 1); exit 1; }
7968 cat >>$CONFIG_STATUS <<_ACEOF
7972 cat >>$CONFIG_STATUS <<\_ACEOF
7974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7975 s,@configure_input@,$configure_input,;t t
7976 s,@srcdir@,$ac_srcdir,;t t
7977 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7978 s,@top_srcdir@,$ac_top_srcdir,;t t
7979 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7980 s,@builddir@,$ac_builddir,;t t
7981 s,@abs_builddir@,$ac_abs_builddir,;t t
7982 s,@top_builddir@,$ac_top_builddir,;t t
7983 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7984 s,@INSTALL@,$ac_INSTALL,;t t
7985 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7987 if test x"$ac_file" != x-; then
7988 mv $tmp/out $ac_file
7996 cat >>$CONFIG_STATUS <<\_ACEOF
7999 # CONFIG_HEADER section.
8002 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8003 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8005 # ac_d sets the value in "#define NAME VALUE" lines.
8006 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8007 ac_dB='[ ].*$,\1#\2'
8010 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8011 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8012 ac_uB='$,\1#\2define\3'
8016 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8017 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8019 - | *:- | *:-:* ) # input from stdin
8021 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8022 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8023 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8025 * ) ac_file_in=$ac_file.in ;;
8028 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8029 echo "$as_me: creating $ac_file" >&6;}
8031 # First look for the input files in the build tree, otherwise in the
8033 ac_file_inputs=`IFS=:
8034 for f in $ac_file_in; do
8036 -) echo $tmp/stdin ;;
8038 # Absolute (can't be DOS-style, as IFS=:)
8039 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8040 echo "$as_me: error: cannot find input file: $f" >&2;}
8041 { (exit 1); exit 1; }; }
8044 if test -f "$f"; then
8047 elif test -f "$srcdir/$f"; then
8052 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8053 echo "$as_me: error: cannot find input file: $f" >&2;}
8054 { (exit 1); exit 1; }; }
8057 done` || { (exit 1); exit 1; }
8058 # Remove the trailing spaces.
8059 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8063 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8064 # `conftest.undefs', that substitutes the proper values into
8065 # config.h.in to produce config.h. The first handles `#define'
8066 # templates, and the second `#undef' templates.
8067 # And first: Protect against being on the right side of a sed subst in
8068 # config.status. Protect against being in an unquoted here document
8070 rm -f conftest.defines conftest.undefs
8071 # Using a here document instead of a string reduces the quoting nightmare.
8072 # Putting comments in sed scripts is not portable.
8074 # `end' is used to avoid that the second main sed command (meant for
8075 # 0-ary CPP macros) applies to n-ary macro definitions.
8076 # See the Autoconf documentation for `clear'.
8077 cat >confdef2sed.sed <<\_ACEOF
8082 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8084 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8087 # If some macros were called several times there might be several times
8088 # the same #defines, which is useless. Nevertheless, we may not want to
8089 # sort them, since we want the *last* AC-DEFINE to be honored.
8090 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8091 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8092 rm -f confdef2sed.sed
8094 # This sed command replaces #undef with comments. This is necessary, for
8095 # example, in the case of _POSIX_SOURCE, which is predefined and required
8096 # on some systems where configure will not decide to define it.
8097 cat >>conftest.undefs <<\_ACEOF
8098 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8101 # Break up conftest.defines because some shells have a limit on the size
8102 # of here documents, and old seds have small limits too (100 cmds).
8103 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8104 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8105 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8106 echo ' :' >>$CONFIG_STATUS
8108 while grep . conftest.defines >/dev/null
8110 # Write a limited-size here document to $tmp/defines.sed.
8111 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8112 # Speed up: don't consider the non `#define' lines.
8113 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8114 # Work around the forget-to-reset-the-flag bug.
8115 echo 't clr' >>$CONFIG_STATUS
8116 echo ': clr' >>$CONFIG_STATUS
8117 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8119 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8123 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8124 rm -f conftest.defines
8125 mv conftest.tail conftest.defines
8127 rm -f conftest.defines
8128 echo ' fi # grep' >>$CONFIG_STATUS
8129 echo >>$CONFIG_STATUS
8131 # Break up conftest.undefs because some shells have a limit on the size
8132 # of here documents, and old seds have small limits too (100 cmds).
8133 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8135 while grep . conftest.undefs >/dev/null
8137 # Write a limited-size here document to $tmp/undefs.sed.
8138 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8139 # Speed up: don't consider the non `#undef'
8140 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8141 # Work around the forget-to-reset-the-flag bug.
8142 echo 't clr' >>$CONFIG_STATUS
8143 echo ': clr' >>$CONFIG_STATUS
8144 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8146 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8150 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8151 rm -f conftest.undefs
8152 mv conftest.tail conftest.undefs
8154 rm -f conftest.undefs
8156 cat >>$CONFIG_STATUS <<\_ACEOF
8157 # Let's still pretend it is `configure' which instantiates (i.e., don't
8158 # use $as_me), people would be surprised to read:
8159 # /* config.h. Generated by config.status. */
8160 if test x"$ac_file" = x-; then
8161 echo "/* Generated by configure. */" >$tmp/config.h
8163 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8165 cat $tmp/in >>$tmp/config.h
8167 if test x"$ac_file" != x-; then
8168 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8169 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8170 echo "$as_me: $ac_file is unchanged" >&6;}
8172 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8174 X"$ac_file" : 'X\(//\)[^/]' \| \
8175 X"$ac_file" : 'X\(//\)$' \| \
8176 X"$ac_file" : 'X\(/\)' \| \
8177 . : '\(.\)' 2>/dev/null ||
8179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8181 /^X\(\/\/\)$/{ s//\1/; q; }
8182 /^X\(\/\).*/{ s//\1/; q; }
8184 { if $as_mkdir_p; then
8189 while test ! -d "$as_dir"; do
8190 as_dirs="$as_dir $as_dirs"
8191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8193 X"$as_dir" : 'X\(//\)[^/]' \| \
8194 X"$as_dir" : 'X\(//\)$' \| \
8195 X"$as_dir" : 'X\(/\)' \| \
8196 . : '\(.\)' 2>/dev/null ||
8198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8200 /^X\(\/\/\)$/{ s//\1/; q; }
8201 /^X\(\/\).*/{ s//\1/; q; }
8204 test ! -n "$as_dirs" || mkdir $as_dirs
8205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8207 { (exit 1); exit 1; }; }; }
8210 mv $tmp/config.h $ac_file
8219 cat >>$CONFIG_STATUS <<\_ACEOF
8221 { (exit 0); exit 0; }
8223 chmod +x $CONFIG_STATUS
8224 ac_clean_files=$ac_clean_files_save
8227 # configure is writing to config.log, and then calls config.status.
8228 # config.status does its own redirection, appending to config.log.
8229 # Unfortunately, on DOS this fails, as config.log is still kept open
8230 # by configure, so config.status won't be able to write to it; its
8231 # output is simply discarded. So we exec the FD to /dev/null,
8232 # effectively closing config.log, so it can be properly (re)opened and
8233 # appended to by config.status. When coming back to configure, we
8234 # need to make the FD available again.
8235 if test "$no_create" != yes; then
8237 ac_config_status_args=
8238 test "$silent" = yes &&
8239 ac_config_status_args="$ac_config_status_args --quiet"
8241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8244 # would make configure fail if this is the last instruction.
8245 $ac_cs_success || { (exit 1); exit 1; }
8249 # CONFIG_SUBDIRS section.
8251 if test "$no_recursion" != yes; then
8253 # Remove --cache-file and --srcdir arguments so they do not pile up.
8254 ac_sub_configure_args=
8256 for ac_arg in $ac_configure_args; do
8257 if test -n "$ac_prev"; then
8262 -cache-file | --cache-file | --cache-fil | --cache-fi \
8263 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8264 ac_prev=cache_file ;;
8265 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8266 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8269 --config-cache | -C)
8271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8279 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8283 # Always prepend --prefix to ensure using the same prefix
8284 # in subdir configurations.
8285 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8288 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8290 # Do not complain, so a configure script can configure whichever
8291 # parts of a large source tree are present.
8292 test -d $srcdir/$ac_dir || continue
8294 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8295 echo "$as_me: configuring in $ac_dir" >&6;}
8296 { if $as_mkdir_p; then
8301 while test ! -d "$as_dir"; do
8302 as_dirs="$as_dir $as_dirs"
8303 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8305 X"$as_dir" : 'X\(//\)[^/]' \| \
8306 X"$as_dir" : 'X\(//\)$' \| \
8307 X"$as_dir" : 'X\(/\)' \| \
8308 . : '\(.\)' 2>/dev/null ||
8310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8312 /^X\(\/\/\)$/{ s//\1/; q; }
8313 /^X\(\/\).*/{ s//\1/; q; }
8316 test ! -n "$as_dirs" || mkdir $as_dirs
8317 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8318 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8319 { (exit 1); exit 1; }; }; }
8323 if test "$ac_dir" != .; then
8324 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8325 # A "../" for each directory in $ac_dir_suffix.
8326 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8328 ac_dir_suffix= ac_top_builddir=
8332 .) # No --srcdir option. We are building in place.
8334 if test -z "$ac_top_builddir"; then
8337 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8339 [\\/]* | ?:[\\/]* ) # Absolute path.
8340 ac_srcdir=$srcdir$ac_dir_suffix;
8341 ac_top_srcdir=$srcdir ;;
8343 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8344 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8346 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8348 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8349 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8350 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8351 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8356 # Check for guested configure; otherwise get Cygnus style configure.
8357 if test -f $ac_srcdir/configure.gnu; then
8358 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8359 elif test -f $ac_srcdir/configure; then
8360 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8361 elif test -f $ac_srcdir/configure.in; then
8362 ac_sub_configure=$ac_configure
8364 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8365 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8369 # The recursion is here.
8370 if test -n "$ac_sub_configure"; then
8371 # Make the cache file name correct relative to the subdirectory.
8373 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8375 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8378 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8379 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8380 # The eval makes quoting arguments work.
8381 eval $ac_sub_configure $ac_sub_configure_args \
8382 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8383 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8384 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8385 { (exit 1); exit 1; }; }
8393 # End of configure/configure.in