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 support/librarian"
313 ac_subdirs_all="$ac_subdirs_all packihx"
314 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
315 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 OPT_ENABLE_LIBRARIAN subdirs LIBOBJS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CXX_set=${CXX+set}
773 ac_env_CXX_value=$CXX
774 ac_cv_env_CXX_set=${CXX+set}
775 ac_cv_env_CXX_value=$CXX
776 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_env_CXXFLAGS_value=$CXXFLAGS
778 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
780 ac_env_CPP_set=${CPP+set}
781 ac_env_CPP_value=$CPP
782 ac_cv_env_CPP_set=${CPP+set}
783 ac_cv_env_CPP_value=$CPP
784 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
785 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
786 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
787 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
788 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
789 ac_env_include_dir_suffix_value=$include_dir_suffix
790 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
791 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
792 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
793 ac_env_lib_dir_suffix_value=$lib_dir_suffix
794 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
795 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
796 ac_env_docdir_set=${docdir+set}
797 ac_env_docdir_value=$docdir
798 ac_cv_env_docdir_set=${docdir+set}
799 ac_cv_env_docdir_value=$docdir
802 # Report the --help message.
804 if test "$ac_init_help" = "long"; then
805 # Omit some internal or obsolete options to make the list less imposing.
806 # This message is too long to be a string in the A/UX 3.1 sh.
808 \`configure' configures this package to adapt to many kinds of systems.
810 Usage: $0 [OPTION]... [VAR=VALUE]...
812 To assign environment variables (e.g., CC, CFLAGS...), specify them as
813 VAR=VALUE. See below for descriptions of some of the useful variables.
815 Defaults for the options are specified in brackets.
818 -h, --help display this help and exit
819 --help=short display options specific to this package
820 --help=recursive display the short help of all the included packages
821 -V, --version display version information and exit
822 -q, --quiet, --silent do not print \`checking...' messages
823 --cache-file=FILE cache test results in FILE [disabled]
824 -C, --config-cache alias for \`--cache-file=config.cache'
825 -n, --no-create do not create output files
826 --srcdir=DIR find the sources in DIR [configure dir or \`..']
831 Installation directories:
832 --prefix=PREFIX install architecture-independent files in PREFIX
834 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
837 By default, \`make install' will install all the files in
838 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
839 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
840 for instance \`--prefix=\$HOME'.
842 For better control, use the options below.
844 Fine tuning of the installation directories:
845 --bindir=DIR user executables [EPREFIX/bin]
846 --sbindir=DIR system admin executables [EPREFIX/sbin]
847 --libexecdir=DIR program executables [EPREFIX/libexec]
848 --datadir=DIR read-only architecture-independent data [PREFIX/share]
849 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
850 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
851 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
852 --libdir=DIR object code libraries [EPREFIX/lib]
853 --includedir=DIR C header files [PREFIX/include]
854 --oldincludedir=DIR C header files for non-gcc [/usr/include]
855 --infodir=DIR info documentation [PREFIX/info]
856 --mandir=DIR man documentation [PREFIX/man]
862 --program-prefix=PREFIX prepend PREFIX to installed program names
863 --program-suffix=SUFFIX append SUFFIX to installed program names
864 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
868 if test -n "$ac_init_help"; then
873 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
874 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
875 --disable-mcs51-port Excludes the Intel mcs51 port
876 --disable-gbz80-port Excludes the Gameboy gbz80 port
877 --disable-z80-port Excludes the z80 port
878 --disable-avr-port Excludes the AVR port
879 --disable-ds390-port Excludes the DS390 port
880 --disable-ds400-port Excludes the DS400 port
881 --disable-pic-port Excludes the PIC port
882 --disable-pic16-port Excludes the PIC port
883 --disable-xa51-port Excludes the XA51 port
884 --disable-ucsim Disables configuring and building of ucsim
885 --disable-device-lib-build
886 Disables automatically building device libraries
887 --disable-packihx Disables building packihx
888 --disable-librarian Disables building librarian
889 --enable-libgc Use the Bohem memory allocator. Lower runtime
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
899 CXX C++ compiler command
900 CXXFLAGS C++ compiler flags
902 sdccconf_h_dir_separator
903 needed in sdccconf.h: either "/" (default) or "\\"
905 appended to datadir to define SDCC's include directory
907 appended to datadir to define SDCC's library root directory
908 docdir documentation installation directory
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
916 if test "$ac_init_help" = "recursive"; then
917 # If there are subdirs, report their specific --help.
919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920 test -d $ac_dir || continue
923 if test "$ac_dir" != .; then
924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925 # A "../" for each directory in $ac_dir_suffix.
926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 ac_dir_suffix= ac_top_builddir=
932 .) # No --srcdir option. We are building in place.
934 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 [\\/]* | ?:[\\/]* ) # Absolute path.
940 ac_srcdir=$srcdir$ac_dir_suffix;
941 ac_top_srcdir=$srcdir ;;
943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
948 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
949 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
950 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
951 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
976 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
977 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.57. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_must_keep_next=false
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 -* ) ac_must_keep_next=true ;;
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1106 # The following way of writing the cache mishandles newlines in values,
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -n "$ac_subst_files"; then
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -s confdefs.h; then
1158 sed "/^$/d" confdefs.h | sort
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1165 rm -f core core.* *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1241 # Check that the precious variables saved in the cache have kept the same
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1320 for ac_prog in gawk mawk nawk awk
1322 # Extract the first word of "$ac_prog", so it can be a program name with args.
1323 set dummy $ac_prog; ac_word=$2
1324 echo "$as_me:$LINENO: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_AWK+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 if test -n "$AWK"; then
1330 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1336 test -z "$as_dir" && as_dir=.
1337 for ac_exec_ext in '' $ac_executable_extensions; do
1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 ac_cv_prog_AWK="$ac_prog"
1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1349 if test -n "$AWK"; then
1350 echo "$as_me:$LINENO: result: $AWK" >&5
1351 echo "${ECHO_T}$AWK" >&6
1353 echo "$as_me:$LINENO: result: no" >&5
1354 echo "${ECHO_T}no" >&6
1357 test -n "$AWK" && break
1361 echo "$as_me:$LINENO: checking version of the package" >&5
1362 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1363 if test -f .version; then
1364 VERSION=`cat .version`
1365 elif test -f ../.version; then
1366 VERSION=`cat ../.version`
1370 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1371 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1372 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1374 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1375 echo "${ECHO_T}${VERSION}" >&6
1380 cat >>confdefs.h <<_ACEOF
1381 #define SDCC_VERSION_LO ${VERSIONLO}
1384 cat >>confdefs.h <<_ACEOF
1385 #define SDCC_VERSION_HI ${VERSIONHI}
1388 cat >>confdefs.h <<_ACEOF
1389 #define SDCC_VERSION_P ${VERSIONP}
1392 cat >>confdefs.h <<_ACEOF
1393 #define SDCC_VERSION_STR "${VERSION}"
1396 test "$program_prefix" != NONE &&
1397 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1398 # Use a double $ so make ignores it.
1399 test "$program_suffix" != NONE &&
1400 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1401 # Double any \ or $. echo might interpret backslashes.
1402 # By default was `s,x,x', remove it if useless.
1403 cat <<\_ACEOF >conftest.sed
1404 s/[\\$]/&&/g;s/;s,x,x,$//
1406 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1409 sdcc_cv_version=$VERSION
1410 sdcc_cv_versionhi=$VERSIONHI
1411 sdcc_cv_versionlo=$VERSIONLO
1412 sdcc_cv_versionp=$VERSIONP
1416 # ===========================================================================
1418 ac_cpp='$CPP $CPPFLAGS'
1419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1422 if test -n "$ac_tool_prefix"; then
1423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_prog_CC+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 if test -n "$CC"; then
1431 ac_cv_prog_CC="$CC" # Let the user override the test.
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir=.
1438 for ac_exec_ext in '' $ac_executable_extensions; do
1439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 if test -n "$CC"; then
1451 echo "$as_me:$LINENO: result: $CC" >&5
1452 echo "${ECHO_T}$CC" >&6
1454 echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1459 if test -z "$ac_cv_prog_CC"; then
1461 # Extract the first word of "gcc", so it can be a program name with args.
1462 set dummy gcc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 if test -n "$ac_ct_CC"; then
1469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_ac_ct_CC="gcc"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1488 if test -n "$ac_ct_CC"; then
1489 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1490 echo "${ECHO_T}$ac_ct_CC" >&6
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1501 if test -z "$CC"; then
1502 if test -n "$ac_tool_prefix"; then
1503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1504 set dummy ${ac_tool_prefix}cc; ac_word=$2
1505 echo "$as_me:$LINENO: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_CC+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test.
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 test -z "$as_dir" && as_dir=.
1518 for ac_exec_ext in '' $ac_executable_extensions; do
1519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1520 ac_cv_prog_CC="${ac_tool_prefix}cc"
1521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 if test -n "$CC"; then
1531 echo "$as_me:$LINENO: result: $CC" >&5
1532 echo "${ECHO_T}$CC" >&6
1534 echo "$as_me:$LINENO: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1539 if test -z "$ac_cv_prog_CC"; then
1541 # Extract the first word of "cc", so it can be a program name with args.
1542 set dummy cc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 if test -n "$ac_ct_CC"; then
1549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_ac_ct_CC="cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1568 if test -n "$ac_ct_CC"; then
1569 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1570 echo "${ECHO_T}$ac_ct_CC" >&6
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1582 if test -z "$CC"; then
1583 # Extract the first word of "cc", so it can be a program name with args.
1584 set dummy cc; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 if test -n "$CC"; then
1591 ac_cv_prog_CC="$CC" # Let the user override the test.
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1602 ac_prog_rejected=yes
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 if test $ac_prog_rejected = yes; then
1613 # We found a bogon in the path, so make sure we never use it.
1614 set dummy $ac_cv_prog_CC
1616 if test $# != 0; then
1617 # We chose a different compiler from the bogus one.
1618 # However, it has the same basename, so the bogon will be chosen
1619 # first if we set CC to just the basename; use the full file name.
1621 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1627 if test -n "$CC"; then
1628 echo "$as_me:$LINENO: result: $CC" >&5
1629 echo "${ECHO_T}$CC" >&6
1631 echo "$as_me:$LINENO: result: no" >&5
1632 echo "${ECHO_T}no" >&6
1636 if test -z "$CC"; then
1637 if test -n "$ac_tool_prefix"; then
1640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test -n "$CC"; then
1668 echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$CC" && break
1678 if test -z "$CC"; then
1682 # Extract the first word of "$ac_prog", so it can be a program name with args.
1683 set dummy $ac_prog; ac_word=$2
1684 echo "$as_me:$LINENO: checking for $ac_word" >&5
1685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 if test -n "$ac_ct_CC"; then
1690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_ac_ct_CC="$ac_prog"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1709 if test -n "$ac_ct_CC"; then
1710 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1711 echo "${ECHO_T}$ac_ct_CC" >&6
1713 echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1717 test -n "$ac_ct_CC" && break
1726 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1727 See \`config.log' for more details." >&5
1728 echo "$as_me: error: no acceptable C compiler found in \$PATH
1729 See \`config.log' for more details." >&2;}
1730 { (exit 1); exit 1; }; }
1732 # Provide some information about the compiler.
1733 echo "$as_me:$LINENO:" \
1734 "checking for C compiler version" >&5
1735 ac_compiler=`set X $ac_compile; echo $2`
1736 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1737 (eval $ac_compiler --version </dev/null >&5) 2>&5
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }
1741 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1742 (eval $ac_compiler -v </dev/null >&5) 2>&5
1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745 (exit $ac_status); }
1746 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1747 (eval $ac_compiler -V </dev/null >&5) 2>&5
1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }
1752 cat >conftest.$ac_ext <<_ACEOF
1753 #line $LINENO "configure"
1756 cat confdefs.h >>conftest.$ac_ext
1757 cat >>conftest.$ac_ext <<_ACEOF
1758 /* end confdefs.h. */
1768 ac_clean_files_save=$ac_clean_files
1769 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1770 # Try to create an executable without -o first, disregard a.out.
1771 # It will help us diagnose broken compilers, and finding out an intuition
1773 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1774 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1775 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1776 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1777 (eval $ac_link_default) 2>&5
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }; then
1781 # Find the output, starting from the most likely. This scheme is
1782 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1785 # Be careful to initialize this variable, since it used to be cached.
1786 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1788 # b.out is created by i960 compilers.
1789 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1791 test -f "$ac_file" || continue
1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1796 # This is the source file.
1799 # We found the default executable, but exeext='' is most
1803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804 # FIXME: I believe we export ac_cv_exeext for Libtool,
1805 # but it would be cool to find out if it's true. Does anybody
1806 # maintain Libtool? --akim.
1814 echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818 See \`config.log' for more details." >&5
1819 echo "$as_me: error: C compiler cannot create executables
1820 See \`config.log' for more details." >&2;}
1821 { (exit 77); exit 77; }; }
1824 ac_exeext=$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_file" >&5
1826 echo "${ECHO_T}$ac_file" >&6
1828 # Check the compiler produces executables we can run. If not, either
1829 # the compiler is broken, or we cross compile.
1830 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833 # If not cross compiling, check that we can run a simple program.
1834 if test "$cross_compiling" != yes; then
1835 if { ac_try='./$ac_file'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1843 if test "$cross_compiling" = maybe; then
1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847 If you meant to cross compile, use \`--host'.
1848 See \`config.log' for more details." >&5
1849 echo "$as_me: error: cannot run C compiled programs.
1850 If you meant to cross compile, use \`--host'.
1851 See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
1856 echo "$as_me:$LINENO: result: yes" >&5
1857 echo "${ECHO_T}yes" >&6
1859 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1860 ac_clean_files=$ac_clean_files_save
1861 # Check the compiler produces executables we can run. If not, either
1862 # the compiler is broken, or we cross compile.
1863 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1865 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1866 echo "${ECHO_T}$cross_compiling" >&6
1868 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1871 (eval $ac_link) 2>&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1877 # work properly (i.e., refer to `conftest.exe'), while it won't with
1879 for ac_file in conftest.exe conftest conftest.*; do
1880 test -f "$ac_file" || continue
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1891 See \`config.log' for more details." >&5
1892 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1893 See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
1897 rm -f conftest$ac_cv_exeext
1898 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1899 echo "${ECHO_T}$ac_cv_exeext" >&6
1901 rm -f conftest.$ac_ext
1902 EXEEXT=$ac_cv_exeext
1904 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1905 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1906 if test "${ac_cv_objext+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 cat >conftest.$ac_ext <<_ACEOF
1910 #line $LINENO "configure"
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h. */
1925 rm -f conftest.o conftest.obj
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }; then
1931 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1939 echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1945 See \`config.log' for more details." >&2;}
1946 { (exit 1); exit 1; }; }
1949 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1951 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1952 echo "${ECHO_T}$ac_cv_objext" >&6
1953 OBJEXT=$ac_cv_objext
1955 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1956 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1957 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h. */
1979 rm -f conftest.$ac_objext
1980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1981 (eval $ac_compile) 2>&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); } &&
1985 { ac_try='test -s conftest.$ac_objext'
1986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }; }; then
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1998 rm -f conftest.$ac_objext conftest.$ac_ext
1999 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2002 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2003 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2004 GCC=`test $ac_compiler_gnu = yes && echo yes`
2005 ac_test_CFLAGS=${CFLAGS+set}
2006 ac_save_CFLAGS=$CFLAGS
2008 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2009 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2010 if test "${ac_cv_prog_cc_g+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 cat >conftest.$ac_ext <<_ACEOF
2014 #line $LINENO "configure"
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2048 rm -f conftest.$ac_objext conftest.$ac_ext
2050 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2051 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2052 if test "$ac_test_CFLAGS" = set; then
2053 CFLAGS=$ac_save_CFLAGS
2054 elif test $ac_cv_prog_cc_g = yes; then
2055 if test "$GCC" = yes; then
2061 if test "$GCC" = yes; then
2067 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2068 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2069 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 ac_cv_prog_cc_stdc=no
2074 cat >conftest.$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2083 #include <sys/types.h>
2084 #include <sys/stat.h>
2085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2086 struct buf { int x; };
2087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2088 static char *e (p, i)
2094 static char *f (char * (*g) (char **, int), char **p, ...)
2099 s = g (p, va_arg (v,int));
2103 int test (int i, double x);
2104 struct s1 {int (*f) (int a);};
2105 struct s2 {int (*f) (double a);};
2106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2112 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2117 # Don't try gcc -ansi; that turns off useful extensions and
2118 # breaks some systems' header files.
2119 # AIX -qlanglvl=ansi
2120 # Ultrix and OSF/1 -std1
2121 # HP-UX 10.20 and later -Ae
2122 # HP-UX older versions -Aa -D_HPUX_SOURCE
2123 # SVR4 -Xc -D__EXTENSIONS__
2124 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2126 CC="$ac_save_CC $ac_arg"
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); } &&
2133 { ac_try='test -s conftest.$ac_objext'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; }; then
2139 ac_cv_prog_cc_stdc=$ac_arg
2142 echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2146 rm -f conftest.$ac_objext
2148 rm -f conftest.$ac_ext conftest.$ac_objext
2153 case "x$ac_cv_prog_cc_stdc" in
2155 echo "$as_me:$LINENO: result: none needed" >&5
2156 echo "${ECHO_T}none needed" >&6 ;;
2158 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2159 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2160 CC="$CC $ac_cv_prog_cc_stdc" ;;
2163 # Some people use a C++ compiler to compile C. Since we use `exit',
2164 # in C++ we need to declare it. In case someone uses the same compiler
2165 # for both compiling C and C++ we need to have the C++ compiler decide
2166 # the declaration of exit, since it's the most demanding environment.
2167 cat >conftest.$ac_ext <<_ACEOF
2172 rm -f conftest.$ac_objext
2173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174 (eval $ac_compile) 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 for ac_declaration in \
2186 '#include <stdlib.h>' \
2187 'extern "C" void std::exit (int) throw (); using std::exit;' \
2188 'extern "C" void std::exit (int); using std::exit;' \
2189 'extern "C" void exit (int) throw ();' \
2190 'extern "C" void exit (int);' \
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2210 rm -f conftest.$ac_objext
2211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2229 rm -f conftest.$ac_objext conftest.$ac_ext
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line $LINENO "configure"
2234 cat confdefs.h >>conftest.$ac_ext
2235 cat >>conftest.$ac_ext <<_ACEOF
2236 /* end confdefs.h. */
2246 rm -f conftest.$ac_objext
2247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2264 rm -f conftest.$ac_objext conftest.$ac_ext
2267 if test -n "$ac_declaration"; then
2268 echo '#ifdef __cplusplus' >>confdefs.h
2269 echo $ac_declaration >>confdefs.h
2270 echo '#endif' >>confdefs.h
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2278 rm -f conftest.$ac_objext conftest.$ac_ext
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286 ac_cpp='$CXXCPP $CPPFLAGS'
2287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2290 if test -n "$ac_tool_prefix"; then
2291 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CXX+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CXX"; then
2301 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 if test -n "$CXX"; then
2321 echo "$as_me:$LINENO: result: $CXX" >&5
2322 echo "${ECHO_T}$CXX" >&6
2324 echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2328 test -n "$CXX" && break
2331 if test -z "$CXX"; then
2333 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$ac_ct_CXX"; then
2343 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352 ac_cv_prog_ac_ct_CXX="$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2362 if test -n "$ac_ct_CXX"; then
2363 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2364 echo "${ECHO_T}$ac_ct_CXX" >&6
2366 echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2370 test -n "$ac_ct_CXX" && break
2372 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2378 # Provide some information about the compiler.
2379 echo "$as_me:$LINENO:" \
2380 "checking for C++ compiler version" >&5
2381 ac_compiler=`set X $ac_compile; echo $2`
2382 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2383 (eval $ac_compiler --version </dev/null >&5) 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }
2387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2388 (eval $ac_compiler -v </dev/null >&5) 2>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }
2392 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2393 (eval $ac_compiler -V </dev/null >&5) 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2398 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2399 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2400 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.$ac_ext <<_ACEOF
2404 #line $LINENO "configure"
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f conftest.$ac_objext conftest.$ac_ext
2442 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2445 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2446 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2447 GXX=`test $ac_compiler_gnu = yes && echo yes`
2448 ac_test_CXXFLAGS=${CXXFLAGS+set}
2449 ac_save_CXXFLAGS=$CXXFLAGS
2451 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2452 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2453 if test "${ac_cv_prog_cxx_g+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2484 ac_cv_prog_cxx_g=yes
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2491 rm -f conftest.$ac_objext conftest.$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2495 if test "$ac_test_CXXFLAGS" = set; then
2496 CXXFLAGS=$ac_save_CXXFLAGS
2497 elif test $ac_cv_prog_cxx_g = yes; then
2498 if test "$GXX" = yes; then
2504 if test "$GXX" = yes; then
2510 for ac_declaration in \
2512 '#include <stdlib.h>' \
2513 'extern "C" void std::exit (int) throw (); using std::exit;' \
2514 'extern "C" void std::exit (int); using std::exit;' \
2515 'extern "C" void exit (int) throw ();' \
2516 'extern "C" void exit (int);' \
2519 cat >conftest.$ac_ext <<_ACEOF
2520 #line $LINENO "configure"
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f conftest.$ac_objext conftest.$ac_ext
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2593 if test -n "$ac_declaration"; then
2594 echo '#ifdef __cplusplus' >>confdefs.h
2595 echo $ac_declaration >>confdefs.h
2596 echo '#endif' >>confdefs.h
2600 ac_cpp='$CPP $CPPFLAGS'
2601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2611 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2612 # On Suns, sometimes $CPP names a directory.
2613 if test -n "$CPP" && test -d "$CPP"; then
2616 if test -z "$CPP"; then
2617 if test "${ac_cv_prog_CPP+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 # Double quotes because CPP needs to be expanded
2621 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2624 for ac_c_preproc_warn_flag in '' yes
2626 # Use a header file that comes with gcc, so configuring glibc
2627 # with a fresh cross-compiler works.
2628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2629 # <limits.h> exists even on freestanding compilers.
2630 # On the NeXT, cc -E runs the code through the compiler's parser,
2631 # not just through cpp. "Syntax error" is here to catch this case.
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #line $LINENO "configure"
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2640 # include <limits.h>
2642 # include <assert.h>
2646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } >/dev/null; then
2654 if test -s conftest.err; then
2655 ac_cpp_err=$ac_c_preproc_warn_flag
2662 if test -z "$ac_cpp_err"; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 # Broken: fails on valid input.
2671 rm -f conftest.err conftest.$ac_ext
2673 # OK, works on sane cases. Now check whether non-existent headers
2674 # can be detected and how.
2675 cat >conftest.$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 #include <ac_nonexistent.h>
2684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2687 grep -v '^ *+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } >/dev/null; then
2692 if test -s conftest.err; then
2693 ac_cpp_err=$ac_c_preproc_warn_flag
2700 if test -z "$ac_cpp_err"; then
2701 # Broken: success on invalid input.
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2707 # Passes both tests.
2711 rm -f conftest.err conftest.$ac_ext
2714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2715 rm -f conftest.err conftest.$ac_ext
2716 if $ac_preproc_ok; then
2728 echo "$as_me:$LINENO: result: $CPP" >&5
2729 echo "${ECHO_T}$CPP" >&6
2731 for ac_c_preproc_warn_flag in '' yes
2733 # Use a header file that comes with gcc, so configuring glibc
2734 # with a fresh cross-compiler works.
2735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2736 # <limits.h> exists even on freestanding compilers.
2737 # On the NeXT, cc -E runs the code through the compiler's parser,
2738 # not just through cpp. "Syntax error" is here to catch this case.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #line $LINENO "configure"
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2747 # include <limits.h>
2749 # include <assert.h>
2753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756 grep -v '^ *+' conftest.er1 >conftest.err
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } >/dev/null; then
2761 if test -s conftest.err; then
2762 ac_cpp_err=$ac_c_preproc_warn_flag
2769 if test -z "$ac_cpp_err"; then
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 # Broken: fails on valid input.
2778 rm -f conftest.err conftest.$ac_ext
2780 # OK, works on sane cases. Now check whether non-existent headers
2781 # can be detected and how.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2789 #include <ac_nonexistent.h>
2791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794 grep -v '^ *+' conftest.er1 >conftest.err
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } >/dev/null; then
2799 if test -s conftest.err; then
2800 ac_cpp_err=$ac_c_preproc_warn_flag
2807 if test -z "$ac_cpp_err"; then
2808 # Broken: success on invalid input.
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 # Passes both tests.
2818 rm -f conftest.err conftest.$ac_ext
2821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2822 rm -f conftest.err conftest.$ac_ext
2823 if $ac_preproc_ok; then
2826 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2829 See \`config.log' for more details." >&2;}
2830 { (exit 1); exit 1; }; }
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2841 if test -f $ac_dir/install-sh; then
2843 ac_install_sh="$ac_aux_dir/install-sh -c"
2845 elif test -f $ac_dir/install.sh; then
2847 ac_install_sh="$ac_aux_dir/install.sh -c"
2849 elif test -f $ac_dir/shtool; then
2851 ac_install_sh="$ac_aux_dir/shtool install -c"
2855 if test -z "$ac_aux_dir"; then
2856 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2857 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2858 { (exit 1); exit 1; }; }
2860 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2861 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2862 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2864 # Find a good install program. We prefer a C program (faster),
2865 # so one script is as good as another. But avoid the broken or
2866 # incompatible versions:
2867 # SysV /etc/install, /usr/sbin/install
2868 # SunOS /usr/etc/install
2869 # IRIX /sbin/install
2871 # AmigaOS /C/install, which installs bootblocks on floppy discs
2872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2875 # ./install, which can be erroneously created by make from ./install.sh.
2876 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2877 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2878 if test -z "$INSTALL"; then
2879 if test "${ac_cv_path_install+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir=.
2887 # Account for people who put trailing slashes in PATH elements.
2889 ./ | .// | /cC/* | \
2890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2893 # OSF1 and SCO ODT 3.0 have their own names for install.
2894 # Don't use installbsd from OSF since it installs stuff as root
2896 for ac_prog in ginstall scoinst install; do
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2899 if test $ac_prog = install &&
2900 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2901 # AIX install. It has an incompatible calling convention.
2903 elif test $ac_prog = install &&
2904 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2905 # program-specific install script used by HP pwplus--don't use.
2908 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2920 if test "${ac_cv_path_install+set}" = set; then
2921 INSTALL=$ac_cv_path_install
2923 # As a last resort, use the slow shell script. We don't cache a
2924 # path for INSTALL within a source directory, because that will
2925 # break other packages using the cache if that directory is
2926 # removed, or if the path is relative.
2927 INSTALL=$ac_install_sh
2930 echo "$as_me:$LINENO: result: $INSTALL" >&5
2931 echo "${ECHO_T}$INSTALL" >&6
2933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2934 # It thinks the first close brace ends the variable substitution.
2935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2944 echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946 if test "${ac_cv_prog_RANLIB+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -n "$RANLIB"; then
2950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 RANLIB=$ac_cv_prog_RANLIB
2969 if test -n "$RANLIB"; then
2970 echo "$as_me:$LINENO: result: $RANLIB" >&5
2971 echo "${ECHO_T}$RANLIB" >&6
2973 echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2978 if test -z "$ac_cv_prog_RANLIB"; then
2979 ac_ct_RANLIB=$RANLIB
2980 # Extract the first word of "ranlib", so it can be a program name with args.
2981 set dummy ranlib; ac_word=$2
2982 echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if test -n "$ac_ct_RANLIB"; then
2988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_RANLIB="ranlib"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3008 if test -n "$ac_ct_RANLIB"; then
3009 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3010 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3016 RANLIB=$ac_ct_RANLIB
3018 RANLIB="$ac_cv_prog_RANLIB"
3022 for ac_prog in flex lex
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028 if test "${ac_cv_prog_LEX+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 if test -n "$LEX"; then
3032 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_LEX="$ac_prog"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 if test -n "$LEX"; then
3052 echo "$as_me:$LINENO: result: $LEX" >&5
3053 echo "${ECHO_T}$LEX" >&6
3055 echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3059 test -n "$LEX" && break
3061 test -n "$LEX" || LEX=":"
3063 if test -z "$LEXLIB"
3065 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3066 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3067 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 ac_check_lib_save_LIBS=$LIBS
3072 cat >conftest.$ac_ext <<_ACEOF
3073 #line $LINENO "configure"
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3080 /* Override any gcc2 internal prototype to avoid an error. */
3084 /* We use char because int might match the return type of a gcc2
3085 builtin and then its argument prototype would still apply. */
3095 rm -f conftest.$ac_objext conftest$ac_exeext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3097 (eval $ac_link) 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -s conftest$ac_exeext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 ac_cv_lib_fl_yywrap=yes
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 ac_cv_lib_fl_yywrap=no
3114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3115 LIBS=$ac_check_lib_save_LIBS
3117 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3118 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3119 if test $ac_cv_lib_fl_yywrap = yes; then
3122 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3123 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3124 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 ac_check_lib_save_LIBS=$LIBS
3129 cat >conftest.$ac_ext <<_ACEOF
3130 #line $LINENO "configure"
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3137 /* Override any gcc2 internal prototype to avoid an error. */
3141 /* We use char because int might match the return type of a gcc2
3142 builtin and then its argument prototype would still apply. */
3152 rm -f conftest.$ac_objext conftest$ac_exeext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3154 (eval $ac_link) 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -s conftest$ac_exeext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 ac_cv_lib_l_yywrap=yes
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_cv_lib_l_yywrap=no
3171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3172 LIBS=$ac_check_lib_save_LIBS
3174 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3175 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3176 if test $ac_cv_lib_l_yywrap = yes; then
3184 if test "x$LEX" != "x:"; then
3185 echo "$as_me:$LINENO: checking lex output file root" >&5
3186 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3187 if test "${ac_cv_prog_lex_root+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 # The minimal lex program is just a single line: %%. But some broken lexes
3191 # (Solaris, I think it was) want two %% lines, so accommodate them.
3192 cat >conftest.l <<_ACEOF
3196 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3197 (eval $LEX conftest.l) 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3201 if test -f lex.yy.c; then
3202 ac_cv_prog_lex_root=lex.yy
3203 elif test -f lexyy.c; then
3204 ac_cv_prog_lex_root=lexyy
3206 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3207 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3208 { (exit 1); exit 1; }; }
3211 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3212 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3214 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3216 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3217 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3218 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # POSIX says lex can declare yytext either as a pointer or an array; the
3222 # default is implementation-dependent. Figure out which it is, since
3223 # not all implementations provide the %pointer and %array declarations.
3224 ac_cv_prog_lex_yytext_pointer=no
3225 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3227 LIBS="$LIBS $LEXLIB"
3228 cat >conftest.$ac_ext <<_ACEOF
3229 `cat $LEX_OUTPUT_ROOT.c`
3231 rm -f conftest.$ac_objext conftest$ac_exeext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3233 (eval $ac_link) 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -s conftest$ac_exeext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 ac_cv_prog_lex_yytext_pointer=yes
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3251 rm -f "${LEX_OUTPUT_ROOT}.c"
3254 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3255 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3256 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3258 cat >>confdefs.h <<\_ACEOF
3259 #define YYTEXT_POINTER 1
3265 for ac_prog in 'bison -y' byacc
3267 # Extract the first word of "$ac_prog", so it can be a program name with args.
3268 set dummy $ac_prog; ac_word=$2
3269 echo "$as_me:$LINENO: checking for $ac_word" >&5
3270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3271 if test "${ac_cv_prog_YACC+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 if test -n "$YACC"; then
3275 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_YACC="$ac_prog"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 YACC=$ac_cv_prog_YACC
3294 if test -n "$YACC"; then
3295 echo "$as_me:$LINENO: result: $YACC" >&5
3296 echo "${ECHO_T}$YACC" >&6
3298 echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3302 test -n "$YACC" && break
3304 test -n "$YACC" || YACC="yacc"
3306 # Extract the first word of "autoconf", so it can be a program name with args.
3307 set dummy autoconf; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$AUTOCONF"; then
3314 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_AUTOCONF="autoconf"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3333 AUTOCONF=$ac_cv_prog_AUTOCONF
3334 if test -n "$AUTOCONF"; then
3335 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3336 echo "${ECHO_T}$AUTOCONF" >&6
3338 echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3342 # Extract the first word of "strip", so it can be a program name with args.
3343 set dummy strip; ac_word=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_STRIP+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 if test -n "$STRIP"; then
3350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_STRIP="strip"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3369 STRIP=$ac_cv_prog_STRIP
3370 if test -n "$STRIP"; then
3371 echo "$as_me:$LINENO: result: $STRIP" >&5
3372 echo "${ECHO_T}$STRIP" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3378 # Extract the first word of "as", so it can be a program name with args.
3379 set dummy as; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_prog_AS+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 if test -n "$AS"; then
3386 ac_cv_prog_AS="$AS" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3406 if test -n "$AS"; then
3407 echo "$as_me:$LINENO: result: $AS" >&5
3408 echo "${ECHO_T}$AS" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 # Extract the first word of "cp", so it can be a program name with args.
3415 set dummy cp; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_prog_CP+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 if test -n "$CP"; then
3422 ac_cv_prog_CP="$CP" # Let the user override the test.
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3442 if test -n "$CP"; then
3443 echo "$as_me:$LINENO: result: $CP" >&5
3444 echo "${ECHO_T}$CP" >&6
3446 echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6
3451 # Extract the first word of "lyx", so it can be a program name with args.
3452 set dummy lyx; ac_word=$2
3453 echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3455 if test "${ac_cv_prog_LYX+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 if test -n "$LYX"; then
3459 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_LYX="lyx"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3479 if test -n "$LYX"; then
3480 echo "$as_me:$LINENO: result: $LYX" >&5
3481 echo "${ECHO_T}$LYX" >&6
3483 echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6
3487 # Extract the first word of "latex", so it can be a program name with args.
3488 set dummy latex; ac_word=$2
3489 echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491 if test "${ac_cv_prog_LATEX+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 if test -n "$LATEX"; then
3495 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_LATEX="latex"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3514 LATEX=$ac_cv_prog_LATEX
3515 if test -n "$LATEX"; then
3516 echo "$as_me:$LINENO: result: $LATEX" >&5
3517 echo "${ECHO_T}$LATEX" >&6
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3523 # Extract the first word of "latex2html", so it can be a program name with args.
3524 set dummy latex2html; ac_word=$2
3525 echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 if test -n "$LATEX2HTML"; then
3531 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 ac_cv_prog_LATEX2HTML="latex2html"
3541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3550 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3551 if test -n "$LATEX2HTML"; then
3552 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3553 echo "${ECHO_T}$LATEX2HTML" >&6
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3559 # Extract the first word of "pdflatex", so it can be a program name with args.
3560 set dummy pdflatex; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 if test -n "$PDFLATEX"; then
3567 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_PDFLATEX="pdflatex"
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3586 PDFLATEX=$ac_cv_prog_PDFLATEX
3587 if test -n "$PDFLATEX"; then
3588 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3589 echo "${ECHO_T}$PDFLATEX" >&6
3591 echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3595 # Extract the first word of "dvipdf", so it can be a program name with args.
3596 set dummy dvipdf; ac_word=$2
3597 echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 if test -n "$DVIPDF"; then
3603 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_DVIPDF="dvipdf"
3613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3622 DVIPDF=$ac_cv_prog_DVIPDF
3623 if test -n "$DVIPDF"; then
3624 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3625 echo "${ECHO_T}$DVIPDF" >&6
3627 echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3634 if test "$YACC" = ":"; then
3635 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3636 echo "$as_me: error: Cannot find required program bison." >&2;}
3637 { (exit 1); exit 1; }; }
3640 if test "$LEX" = ":"; then
3641 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3642 echo "$as_me: error: Cannot find required program lex." >&2;}
3643 { (exit 1); exit 1; }; }
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 # Checking for header files.
3656 # ===========================================================================
3658 echo "$as_me:$LINENO: checking for egrep" >&5
3659 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3660 if test "${ac_cv_prog_egrep+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3664 then ac_cv_prog_egrep='grep -E'
3665 else ac_cv_prog_egrep='egrep'
3668 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3669 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3670 EGREP=$ac_cv_prog_egrep
3673 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3674 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3675 if test "${ac_cv_header_stdc+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 cat >conftest.$ac_ext <<_ACEOF
3679 #line $LINENO "configure"
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_header_stdc=yes
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 ac_cv_header_stdc=no
3717 rm -f conftest.$ac_objext conftest.$ac_ext
3719 if test $ac_cv_header_stdc = yes; then
3720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3721 cat >conftest.$ac_ext <<_ACEOF
3722 #line $LINENO "configure"
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 $EGREP "memchr" >/dev/null 2>&1; then
3735 ac_cv_header_stdc=no
3741 if test $ac_cv_header_stdc = yes; then
3742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3743 cat >conftest.$ac_ext <<_ACEOF
3744 #line $LINENO "configure"
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754 $EGREP "free" >/dev/null 2>&1; then
3757 ac_cv_header_stdc=no
3763 if test $ac_cv_header_stdc = yes; then
3764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3765 if test "$cross_compiling" = yes; then
3768 cat >conftest.$ac_ext <<_ACEOF
3769 #line $LINENO "configure"
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3776 #if ((' ' & 0x0FF) == 0x020)
3777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3780 # define ISLOWER(c) \
3781 (('a' <= (c) && (c) <= 'i') \
3782 || ('j' <= (c) && (c) <= 'r') \
3783 || ('s' <= (c) && (c) <= 'z'))
3784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3792 for (i = 0; i < 256; i++)
3793 if (XOR (islower (i), ISLOWER (i))
3794 || toupper (i) != TOUPPER (i))
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3812 echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3817 ac_cv_header_stdc=no
3819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3823 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3824 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3825 if test $ac_cv_header_stdc = yes; then
3827 cat >>confdefs.h <<\_ACEOF
3828 #define STDC_HEADERS 1
3833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844 inttypes.h stdint.h unistd.h
3846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 echo "$as_me:$LINENO: checking for $ac_header" >&5
3848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #line $LINENO "configure"
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 $ac_includes_default
3861 #include <$ac_header>
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 eval "$as_ac_Header=yes"
3877 echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 eval "$as_ac_Header=no"
3882 rm -f conftest.$ac_objext conftest.$ac_ext
3884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h <<_ACEOF
3888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897 for ac_header in sys/socket.h
3899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901 echo "$as_me:$LINENO: checking for $ac_header" >&5
3902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3909 # Is the header compilable?
3910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 $ac_includes_default
3920 #include <$ac_header>
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_header_compiler=yes
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_header_compiler=no
3941 rm -f conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3943 echo "${ECHO_T}$ac_header_compiler" >&6
3945 # Is the header present?
3946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3948 cat >conftest.$ac_ext <<_ACEOF
3949 #line $LINENO "configure"
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #include <$ac_header>
3957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960 grep -v '^ *+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev/null; then
3965 if test -s conftest.err; then
3966 ac_cpp_err=$ac_c_preproc_warn_flag
3973 if test -z "$ac_cpp_err"; then
3974 ac_header_preproc=yes
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 ac_header_preproc=no
3981 rm -f conftest.err conftest.$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3983 echo "${ECHO_T}$ac_header_preproc" >&6
3985 # So? What about this header?
3986 case $ac_header_compiler:$ac_header_preproc in
3988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3994 ## ------------------------------------ ##
3995 ## Report this to bug-autoconf@gnu.org. ##
3996 ## ------------------------------------ ##
3999 sed "s/^/$as_me: WARNING: /" >&2
4002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4010 ## ------------------------------------ ##
4011 ## Report this to bug-autoconf@gnu.org. ##
4012 ## ------------------------------------ ##
4015 sed "s/^/$as_me: WARNING: /" >&2
4018 echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 eval "$as_ac_Header=$ac_header_preproc"
4025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4030 cat >>confdefs.h <<_ACEOF
4031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4040 # Checking for functions
4041 # ===========================================================================
4043 for ac_func in strerror
4045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4046 echo "$as_me:$LINENO: checking for $ac_func" >&5
4047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4048 if eval "test \"\${$as_ac_var+set}\" = set"; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line $LINENO "configure"
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 /* System header to define __stub macros and hopefully few prototypes,
4059 which can conflict with char $ac_func (); below.
4060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 <limits.h> exists even on freestanding compilers. */
4063 # include <limits.h>
4065 # include <assert.h>
4067 /* Override any gcc2 internal prototype to avoid an error. */
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4075 /* The GNU C library defines this for functions which it implements
4076 to always fail with ENOSYS. Some functions are actually named
4077 something starting with __ and the normal name is an alias. */
4078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4081 char (*f) () = $ac_func;
4090 return f != $ac_func;
4095 rm -f conftest.$ac_objext conftest$ac_exeext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097 (eval $ac_link) 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -s conftest$ac_exeext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 eval "$as_ac_var=yes"
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 eval "$as_ac_var=no"
4114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4118 if test `eval echo '${'$as_ac_var'}'` = yes; then
4119 cat >>confdefs.h <<_ACEOF
4120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4130 for ac_func in vsnprintf snprintf vsprintf mkstemp
4132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4133 echo "$as_me:$LINENO: checking for $ac_func" >&5
4134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4135 if eval "test \"\${$as_ac_var+set}\" = set"; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 cat >conftest.$ac_ext <<_ACEOF
4139 #line $LINENO "configure"
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 /* System header to define __stub macros and hopefully few prototypes,
4146 which can conflict with char $ac_func (); below.
4147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 <limits.h> exists even on freestanding compilers. */
4150 # include <limits.h>
4152 # include <assert.h>
4154 /* Override any gcc2 internal prototype to avoid an error. */
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4162 /* The GNU C library defines this for functions which it implements
4163 to always fail with ENOSYS. Some functions are actually named
4164 something starting with __ and the normal name is an alias. */
4165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4168 char (*f) () = $ac_func;
4177 return f != $ac_func;
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -s conftest$ac_exeext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 eval "$as_ac_var=yes"
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 eval "$as_ac_var=no"
4201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4205 if test `eval echo '${'$as_ac_var'}'` = yes; then
4206 cat >>confdefs.h <<_ACEOF
4207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4216 # ===========================================================================
4218 # DD_COPT macro checks if the compiler specified as the 1st parameter
4219 # supports option specified as the 2nd parameter
4220 # For example: DD_CPORT(CXX, fPIC)
4224 # This macro expands DIR and assigns it to RET.
4225 # If DIR is NONE, then it's replaced by DEFAULT.
4227 # Based on AC_DEFINE_DIR
4231 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
4235 # adl_NORMALIZE_PATH
4237 # - empty paths are changed to '.'
4238 # - trailing slashes are removed
4239 # - repeated slashes are squeezed except a leading doubled slash '//'
4240 # (which might indicate a networked disk on some OS).
4243 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4244 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4245 # are turned into backslashes, otherwise they are all turned into slashes.
4247 # This makes processing of DOS filenames quite easier, because you can turn a
4248 # filename to the Unix notation, make your processing, and turn it back to
4249 # original notation.
4254 # adl_COMPUTE_RELATIVE_PATH
4256 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4257 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4258 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4259 # absolute filenames for this macro to success.
4265 ## The following helper macros are too fragile to be used out
4266 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4267 ## paths are normalized), that's why I'm keeping them in the same file.
4268 ## Still, some of them maybe worth to reuse.
4282 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4287 # Checking characteristics of compilers and other programs
4288 # ===========================================================================
4289 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4290 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4291 if test "${sdcc_cv_MM+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 echo "#include <stdio.h>" >_test_.c
4296 $CPP -v -MM _test_.c 1>&5 2>&5
4297 if test "$?" = "0"; then
4304 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4305 echo "${ECHO_T}$sdcc_cv_MM" >&6
4309 # This is the first time when CFLAGS are set/modified!!
4311 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4312 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4313 if test "${sdcc_cv_CCggdb+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4321 if test "$?" = "0"; then
4322 sdcc_cv_CCggdb="yes"
4326 rm -f _test_.* a.out
4328 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4329 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4331 if test "$sdcc_cv_CCggdb" = "yes"; then
4332 CFLAGS="-ggdb ${CFLAGS}"
4336 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4337 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4338 if test "${sdcc_cv_CCpipe+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 $CC -v -pipe -c _test_.c 1>&5 2>&5
4346 if test "$?" = "0"; then
4347 sdcc_cv_CCpipe="yes"
4351 rm -f _test_.* a.out
4353 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4354 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4356 if test "$sdcc_cv_CCpipe" = "yes"; then
4357 CFLAGS="-pipe $CFLAGS"
4361 # Checks for typedefs, structures, and compiler characteristics.
4362 # ===========================================================================
4363 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4364 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4365 if test "${ac_cv_type_signal+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 cat >conftest.$ac_ext <<_ACEOF
4369 #line $LINENO "configure"
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375 #include <sys/types.h>
4381 extern "C" void (*signal (int, void (*)(int)))(int);
4383 void (*signal ()) ();
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_type_signal=void
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_cv_type_signal=int
4413 rm -f conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4416 echo "${ECHO_T}$ac_cv_type_signal" >&6
4418 cat >>confdefs.h <<_ACEOF
4419 #define RETSIGTYPE $ac_cv_type_signal
4424 echo "$as_me:$LINENO: checking for char" >&5
4425 echo $ECHO_N "checking for char... $ECHO_C" >&6
4426 if test "${ac_cv_type_char+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 cat >conftest.$ac_ext <<_ACEOF
4430 #line $LINENO "configure"
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 $ac_includes_default
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4470 echo "${ECHO_T}$ac_cv_type_char" >&6
4472 echo "$as_me:$LINENO: checking size of char" >&5
4473 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4474 if test "${ac_cv_sizeof_char+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test "$ac_cv_type_char" = yes; then
4478 # The cast to unsigned long works around a bug in the HP C Compiler
4479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4481 # This bug is HP SR number 8606223364.
4482 if test "$cross_compiling" = yes; then
4483 # Depending upon the size, compute the lo and hi bounds.
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line $LINENO "configure"
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 $ac_includes_default
4495 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4502 rm -f conftest.$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try='test -s conftest.$ac_objext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4516 cat >conftest.$ac_ext <<_ACEOF
4517 #line $LINENO "configure"
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4527 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_hi=$ac_mid; break
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 ac_lo=`expr $ac_mid + 1`
4552 if test $ac_lo -le $ac_mid; then
4556 ac_mid=`expr 2 '*' $ac_mid + 1`
4558 rm -f conftest.$ac_objext conftest.$ac_ext
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4575 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4607 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_lo=$ac_mid; break
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 ac_hi=`expr '(' $ac_mid ')' - 1`
4632 if test $ac_mid -le $ac_hi; then
4636 ac_mid=`expr 2 '*' $ac_mid`
4638 rm -f conftest.$ac_objext conftest.$ac_ext
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4646 rm -f conftest.$ac_objext conftest.$ac_ext
4648 rm -f conftest.$ac_objext conftest.$ac_ext
4649 # Binary search between lo and hi bounds.
4650 while test "x$ac_lo" != "x$ac_hi"; do
4651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4652 cat >conftest.$ac_ext <<_ACEOF
4653 #line $LINENO "configure"
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 $ac_includes_default
4663 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ac_lo=`expr '(' $ac_mid ')' + 1`
4689 rm -f conftest.$ac_objext conftest.$ac_ext
4692 ?*) ac_cv_sizeof_char=$ac_lo;;
4693 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute sizeof (char), 77
4696 See \`config.log' for more details." >&2;}
4697 { (exit 1); exit 1; }; } ;;
4700 if test "$cross_compiling" = yes; then
4701 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4702 See \`config.log' for more details." >&5
4703 echo "$as_me: error: cannot run test program while cross compiling
4704 See \`config.log' for more details." >&2;}
4705 { (exit 1); exit 1; }; }
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4715 long longval () { return (long) (sizeof (char)); }
4716 unsigned long ulongval () { return (long) (sizeof (char)); }
4723 FILE *f = fopen ("conftest.val", "w");
4726 if (((long) (sizeof (char))) < 0)
4728 long i = longval ();
4729 if (i != ((long) (sizeof (char))))
4731 fprintf (f, "%ld\n", i);
4735 unsigned long i = ulongval ();
4736 if (i != ((long) (sizeof (char))))
4738 fprintf (f, "%lu\n", i);
4740 exit (ferror (f) || fclose (f) != 0);
4746 rm -f conftest$ac_exeext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748 (eval $ac_link) 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_sizeof_char=`cat conftest.val`
4759 echo "$as_me: program exited with status $ac_status" >&5
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4765 See \`config.log' for more details." >&5
4766 echo "$as_me: error: cannot compute sizeof (char), 77
4767 See \`config.log' for more details." >&2;}
4768 { (exit 1); exit 1; }; }
4770 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4779 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4780 cat >>confdefs.h <<_ACEOF
4781 #define SIZEOF_CHAR $ac_cv_sizeof_char
4785 echo "$as_me:$LINENO: checking for short" >&5
4786 echo $ECHO_N "checking for short... $ECHO_C" >&6
4787 if test "${ac_cv_type_short+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_cv_type_short=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4830 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4831 echo "${ECHO_T}$ac_cv_type_short" >&6
4833 echo "$as_me:$LINENO: checking size of short" >&5
4834 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4835 if test "${ac_cv_sizeof_short+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 if test "$ac_cv_type_short" = yes; then
4839 # The cast to unsigned long works around a bug in the HP C Compiler
4840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4842 # This bug is HP SR number 8606223364.
4843 if test "$cross_compiling" = yes; then
4844 # Depending upon the size, compute the lo and hi bounds.
4845 cat >conftest.$ac_ext <<_ACEOF
4846 #line $LINENO "configure"
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4856 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4863 rm -f conftest.$ac_objext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865 (eval $ac_compile) 2>&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4877 cat >conftest.$ac_ext <<_ACEOF
4878 #line $LINENO "configure"
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 $ac_includes_default
4888 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try='test -s conftest.$ac_objext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_hi=$ac_mid; break
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4912 ac_lo=`expr $ac_mid + 1`
4913 if test $ac_lo -le $ac_mid; then
4917 ac_mid=`expr 2 '*' $ac_mid + 1`
4919 rm -f conftest.$ac_objext conftest.$ac_ext
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 cat >conftest.$ac_ext <<_ACEOF
4926 #line $LINENO "configure"
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4936 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4943 rm -f conftest.$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4968 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_lo=$ac_mid; break
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 ac_hi=`expr '(' $ac_mid ')' - 1`
4993 if test $ac_mid -le $ac_hi; then
4997 ac_mid=`expr 2 '*' $ac_mid`
4999 rm -f conftest.$ac_objext conftest.$ac_ext
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5007 rm -f conftest.$ac_objext conftest.$ac_ext
5009 rm -f conftest.$ac_objext conftest.$ac_ext
5010 # Binary search between lo and hi bounds.
5011 while test "x$ac_lo" != "x$ac_hi"; do
5012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5013 cat >conftest.$ac_ext <<_ACEOF
5014 #line $LINENO "configure"
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 $ac_includes_default
5024 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5031 rm -f conftest.$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033 (eval $ac_compile) 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 ac_lo=`expr '(' $ac_mid ')' + 1`
5050 rm -f conftest.$ac_objext conftest.$ac_ext
5053 ?*) ac_cv_sizeof_short=$ac_lo;;
5054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5055 See \`config.log' for more details." >&5
5056 echo "$as_me: error: cannot compute sizeof (short), 77
5057 See \`config.log' for more details." >&2;}
5058 { (exit 1); exit 1; }; } ;;
5061 if test "$cross_compiling" = yes; then
5062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5063 See \`config.log' for more details." >&5
5064 echo "$as_me: error: cannot run test program while cross compiling
5065 See \`config.log' for more details." >&2;}
5066 { (exit 1); exit 1; }; }
5068 cat >conftest.$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5076 long longval () { return (long) (sizeof (short)); }
5077 unsigned long ulongval () { return (long) (sizeof (short)); }
5084 FILE *f = fopen ("conftest.val", "w");
5087 if (((long) (sizeof (short))) < 0)
5089 long i = longval ();
5090 if (i != ((long) (sizeof (short))))
5092 fprintf (f, "%ld\n", i);
5096 unsigned long i = ulongval ();
5097 if (i != ((long) (sizeof (short))))
5099 fprintf (f, "%lu\n", i);
5101 exit (ferror (f) || fclose (f) != 0);
5107 rm -f conftest$ac_exeext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_sizeof_short=`cat conftest.val`
5120 echo "$as_me: program exited with status $ac_status" >&5
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5126 See \`config.log' for more details." >&5
5127 echo "$as_me: error: cannot compute sizeof (short), 77
5128 See \`config.log' for more details." >&2;}
5129 { (exit 1); exit 1; }; }
5131 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5136 ac_cv_sizeof_short=0
5139 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5140 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5141 cat >>confdefs.h <<_ACEOF
5142 #define SIZEOF_SHORT $ac_cv_sizeof_short
5146 echo "$as_me:$LINENO: checking for int" >&5
5147 echo $ECHO_N "checking for int... $ECHO_C" >&6
5148 if test "${ac_cv_type_int+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 cat >conftest.$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 $ac_includes_default
5170 rm -f conftest.$ac_objext
5171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5192 echo "${ECHO_T}$ac_cv_type_int" >&6
5194 echo "$as_me:$LINENO: checking size of int" >&5
5195 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5196 if test "${ac_cv_sizeof_int+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test "$ac_cv_type_int" = yes; then
5200 # The cast to unsigned long works around a bug in the HP C Compiler
5201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5203 # This bug is HP SR number 8606223364.
5204 if test "$cross_compiling" = yes; then
5205 # Depending upon the size, compute the lo and hi bounds.
5206 cat >conftest.$ac_ext <<_ACEOF
5207 #line $LINENO "configure"
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 $ac_includes_default
5217 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5224 rm -f conftest.$ac_objext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226 (eval $ac_compile) 2>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -s conftest.$ac_objext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5238 cat >conftest.$ac_ext <<_ACEOF
5239 #line $LINENO "configure"
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 $ac_includes_default
5249 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 ac_hi=$ac_mid; break
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_lo=`expr $ac_mid + 1`
5274 if test $ac_lo -le $ac_mid; then
5278 ac_mid=`expr 2 '*' $ac_mid + 1`
5280 rm -f conftest.$ac_objext conftest.$ac_ext
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 $ac_includes_default
5297 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5329 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_lo=$ac_mid; break
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ac_hi=`expr '(' $ac_mid ')' - 1`
5354 if test $ac_mid -le $ac_hi; then
5358 ac_mid=`expr 2 '*' $ac_mid`
5360 rm -f conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5368 rm -f conftest.$ac_objext conftest.$ac_ext
5370 rm -f conftest.$ac_objext conftest.$ac_ext
5371 # Binary search between lo and hi bounds.
5372 while test "x$ac_lo" != "x$ac_hi"; do
5373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5374 cat >conftest.$ac_ext <<_ACEOF
5375 #line $LINENO "configure"
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5381 $ac_includes_default
5385 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5392 rm -f conftest.$ac_objext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394 (eval $ac_compile) 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 ac_lo=`expr '(' $ac_mid ')' + 1`
5411 rm -f conftest.$ac_objext conftest.$ac_ext
5414 ?*) ac_cv_sizeof_int=$ac_lo;;
5415 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5416 See \`config.log' for more details." >&5
5417 echo "$as_me: error: cannot compute sizeof (int), 77
5418 See \`config.log' for more details." >&2;}
5419 { (exit 1); exit 1; }; } ;;
5422 if test "$cross_compiling" = yes; then
5423 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5424 See \`config.log' for more details." >&5
5425 echo "$as_me: error: cannot run test program while cross compiling
5426 See \`config.log' for more details." >&2;}
5427 { (exit 1); exit 1; }; }
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 long longval () { return (long) (sizeof (int)); }
5438 unsigned long ulongval () { return (long) (sizeof (int)); }
5445 FILE *f = fopen ("conftest.val", "w");
5448 if (((long) (sizeof (int))) < 0)
5450 long i = longval ();
5451 if (i != ((long) (sizeof (int))))
5453 fprintf (f, "%ld\n", i);
5457 unsigned long i = ulongval ();
5458 if (i != ((long) (sizeof (int))))
5460 fprintf (f, "%lu\n", i);
5462 exit (ferror (f) || fclose (f) != 0);
5468 rm -f conftest$ac_exeext
5469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470 (eval $ac_link) 2>&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_cv_sizeof_int=`cat conftest.val`
5481 echo "$as_me: program exited with status $ac_status" >&5
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5486 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot compute sizeof (int), 77
5489 See \`config.log' for more details." >&2;}
5490 { (exit 1); exit 1; }; }
5492 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5501 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5502 cat >>confdefs.h <<_ACEOF
5503 #define SIZEOF_INT $ac_cv_sizeof_int
5507 echo "$as_me:$LINENO: checking for long" >&5
5508 echo $ECHO_N "checking for long... $ECHO_C" >&6
5509 if test "${ac_cv_type_long+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5553 echo "${ECHO_T}$ac_cv_type_long" >&6
5555 echo "$as_me:$LINENO: checking size of long" >&5
5556 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5557 if test "${ac_cv_sizeof_long+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 if test "$ac_cv_type_long" = yes; then
5561 # The cast to unsigned long works around a bug in the HP C Compiler
5562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5564 # This bug is HP SR number 8606223364.
5565 if test "$cross_compiling" = yes; then
5566 # Depending upon the size, compute the lo and hi bounds.
5567 cat >conftest.$ac_ext <<_ACEOF
5568 #line $LINENO "configure"
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 $ac_includes_default
5578 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5585 rm -f conftest.$ac_objext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -s conftest.$ac_objext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5599 cat >conftest.$ac_ext <<_ACEOF
5600 #line $LINENO "configure"
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5610 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -s conftest.$ac_objext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_hi=$ac_mid; break
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_lo=`expr $ac_mid + 1`
5635 if test $ac_lo -le $ac_mid; then
5639 ac_mid=`expr 2 '*' $ac_mid + 1`
5641 rm -f conftest.$ac_objext conftest.$ac_ext
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 $ac_includes_default
5658 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5690 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5697 rm -f conftest.$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_lo=$ac_mid; break
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5714 ac_hi=`expr '(' $ac_mid ')' - 1`
5715 if test $ac_mid -le $ac_hi; then
5719 ac_mid=`expr 2 '*' $ac_mid`
5721 rm -f conftest.$ac_objext conftest.$ac_ext
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5729 rm -f conftest.$ac_objext conftest.$ac_ext
5731 rm -f conftest.$ac_objext conftest.$ac_ext
5732 # Binary search between lo and hi bounds.
5733 while test "x$ac_lo" != "x$ac_hi"; do
5734 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5746 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 ac_lo=`expr '(' $ac_mid ')' + 1`
5772 rm -f conftest.$ac_objext conftest.$ac_ext
5775 ?*) ac_cv_sizeof_long=$ac_lo;;
5776 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5777 See \`config.log' for more details." >&5
5778 echo "$as_me: error: cannot compute sizeof (long), 77
5779 See \`config.log' for more details." >&2;}
5780 { (exit 1); exit 1; }; } ;;
5783 if test "$cross_compiling" = yes; then
5784 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5785 See \`config.log' for more details." >&5
5786 echo "$as_me: error: cannot run test program while cross compiling
5787 See \`config.log' for more details." >&2;}
5788 { (exit 1); exit 1; }; }
5790 cat >conftest.$ac_ext <<_ACEOF
5791 #line $LINENO "configure"
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5798 long longval () { return (long) (sizeof (long)); }
5799 unsigned long ulongval () { return (long) (sizeof (long)); }
5806 FILE *f = fopen ("conftest.val", "w");
5809 if (((long) (sizeof (long))) < 0)
5811 long i = longval ();
5812 if (i != ((long) (sizeof (long))))
5814 fprintf (f, "%ld\n", i);
5818 unsigned long i = ulongval ();
5819 if (i != ((long) (sizeof (long))))
5821 fprintf (f, "%lu\n", i);
5823 exit (ferror (f) || fclose (f) != 0);
5829 rm -f conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_cv_sizeof_long=`cat conftest.val`
5842 echo "$as_me: program exited with status $ac_status" >&5
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5848 See \`config.log' for more details." >&5
5849 echo "$as_me: error: cannot compute sizeof (long), 77
5850 See \`config.log' for more details." >&2;}
5851 { (exit 1); exit 1; }; }
5853 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5861 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5862 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5863 cat >>confdefs.h <<_ACEOF
5864 #define SIZEOF_LONG $ac_cv_sizeof_long
5871 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5875 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5879 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5883 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5890 echo "$as_me:$LINENO: checking type name for byte" >&5
5891 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5892 TYPE_BYTE=`type_name 1`
5893 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5894 echo "${ECHO_T}$TYPE_BYTE" >&6
5895 echo "$as_me:$LINENO: checking type name for word" >&5
5896 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5897 TYPE_WORD=`type_name 2`
5898 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5899 echo "${ECHO_T}$TYPE_WORD" >&6
5900 echo "$as_me:$LINENO: checking type name for dword" >&5
5901 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5902 TYPE_DWORD=`type_name 4`
5903 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5904 echo "${ECHO_T}$TYPE_DWORD" >&6
5905 cat >>confdefs.h <<_ACEOF
5906 #define TYPE_BYTE $TYPE_BYTE
5909 cat >>confdefs.h <<_ACEOF
5910 #define TYPE_WORD $TYPE_WORD
5913 cat >>confdefs.h <<_ACEOF
5914 #define TYPE_DWORD $TYPE_DWORD
5918 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5919 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5920 if test "${ac_cv_c_bigendian+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 # See if sys/param.h defines the BYTE_ORDER macro.
5924 cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 #include <sys/types.h>
5932 #include <sys/param.h>
5937 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5945 rm -f conftest.$ac_objext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -s conftest.$ac_objext'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; }; then
5957 # It does; now see whether it defined to BIG_ENDIAN or not.
5958 cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #include <sys/types.h>
5966 #include <sys/param.h>
5971 #if BYTE_ORDER != BIG_ENDIAN
5979 rm -f conftest.$ac_objext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 ac_cv_c_bigendian=yes
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_cv_c_bigendian=no
5998 rm -f conftest.$ac_objext conftest.$ac_ext
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 # It does not; compile a test program.
6004 if test "$cross_compiling" = yes; then
6005 # try to guess the endianness by grepping values into an object file
6006 ac_cv_c_bigendian=unknown
6007 cat >conftest.$ac_ext <<_ACEOF
6008 #line $LINENO "configure"
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6015 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6016 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6017 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6018 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6019 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6023 _ascii (); _ebcdic ();
6028 rm -f conftest.$ac_objext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030 (eval $ac_compile) 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -s conftest.$ac_objext'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6041 ac_cv_c_bigendian=yes
6043 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6044 if test "$ac_cv_c_bigendian" = unknown; then
6045 ac_cv_c_bigendian=no
6047 # finding both strings is unlikely to happen, but who knows?
6048 ac_cv_c_bigendian=unknown
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.$ac_objext conftest.$ac_ext
6058 cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6068 /* Are we little or big endian? From Harbison&Steele. */
6072 char c[sizeof (long)];
6075 exit (u.c[sizeof (long) - 1] == 1);
6078 rm -f conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080 (eval $ac_link) 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_c_bigendian=no
6091 echo "$as_me: program exited with status $ac_status" >&5
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_cv_c_bigendian=yes
6098 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6101 rm -f conftest.$ac_objext conftest.$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6104 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6105 case $ac_cv_c_bigendian in
6108 cat >>confdefs.h <<\_ACEOF
6109 #define WORDS_BIGENDIAN 1
6115 { { echo "$as_me:$LINENO: error: unknown endianness
6116 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6117 echo "$as_me: error: unknown endianness
6118 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6119 { (exit 1); exit 1; }; } ;;
6123 # Set standard installation paths
6124 # ===========================================================================
6126 # In the Makefiles we need paths with '/' as directory separator, even if
6127 # crosscompiling for Win32.
6128 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6129 # The variables in the Makefiles are replaced by AC_SUBST()
6131 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6133 # The macros are expanded for the header.
6134 # The variables in the header are replaced by AC_*DEFINE*()
6135 # sdccconf_h_dir_separator contains a backslash.
6137 if test "${sdccconf_h_dir_separator}" = ""; then
6138 sdccconf_h_dir_separator="/"
6144 # include_dir_suffix:
6145 # *nix default: "sdcc/include"
6148 if test "${include_dir_suffix}" = ""; then
6149 include_dir_suffix="sdcc/include"
6154 # *nix default: "sdcc/lib"
6156 if test "${lib_dir_suffix}" = ""; then
6157 lib_dir_suffix="sdcc/lib"
6162 # *nix default: "${datadir}/sdcc/doc"
6164 if test "${docdir}" = ""; then
6165 docdir="\${datadir}"/sdcc/doc
6174 cat >>confdefs.h <<_ACEOF
6175 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6178 cat >>confdefs.h <<_ACEOF
6179 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6184 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6186 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6189 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6190 ac_expand=`eval echo $ac_expand`
6191 expanded_prefix=`eval echo $ac_expand`
6194 ac_ndu=$expanded_prefix
6196 # change empty paths to '.'
6198 # strip trailing slashes
6199 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6202 # squeze repeated slashes
6203 case $sdccconf_h_dir_separator in
6204 # if the path contains any backslashes, turn slashes into backslashes
6206 # Bernhard Held 2003-04-06
6207 # This was the original line. It doesn't:
6208 # - convert the first slash
6209 # - replace a slash with a double-backslash
6210 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6211 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6213 # if the path contains slashes, also turn backslashes into slashes
6214 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6216 cat >>confdefs.h <<_ACEOF
6217 #define PREFIX "${ac_ndu}"
6223 # default: "${prefix}"
6225 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6227 ac_expand=$exec_prefix
6228 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6229 ac_expand=`eval echo $ac_expand`
6230 expanded_exec_prefix=`eval echo $ac_expand`
6233 ac_ndu=$expanded_exec_prefix
6235 # change empty paths to '.'
6237 # strip trailing slashes
6238 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6241 # squeze repeated slashes
6242 case $sdccconf_h_dir_separator in
6243 # if the path contains any backslashes, turn slashes into backslashes
6245 # Bernhard Held 2003-04-06
6246 # This was the original line. It doesn't:
6247 # - convert the first slash
6248 # - replace a slash with a double-backslash
6249 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6250 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6252 # if the path contains slashes, also turn backslashes into slashes
6253 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6255 cat >>confdefs.h <<_ACEOF
6256 #define EXEC_PREFIX "${ac_ndu}"
6262 # default: "${exec_prefix}/bin"
6264 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6267 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6268 ac_expand=`eval echo $ac_expand`
6269 expanded_bindir=`eval echo $ac_expand`
6272 ac_ndu=$expanded_bindir
6274 # change empty paths to '.'
6276 # strip trailing slashes
6277 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6280 # squeze repeated slashes
6281 case $sdccconf_h_dir_separator in
6282 # if the path contains any backslashes, turn slashes into backslashes
6284 # Bernhard Held 2003-04-06
6285 # This was the original line. It doesn't:
6286 # - convert the first slash
6287 # - replace a slash with a double-backslash
6288 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6289 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6291 # if the path contains slashes, also turn backslashes into slashes
6292 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6294 cat >>confdefs.h <<_ACEOF
6295 #define BINDIR "${ac_ndu}"
6301 # default: "${prefix}/share"
6303 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6306 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6307 ac_expand=`eval echo $ac_expand`
6308 expanded_datadir=`eval echo $ac_expand`
6311 ac_ndu=$expanded_datadir
6313 # change empty paths to '.'
6315 # strip trailing slashes
6316 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6319 # squeze repeated slashes
6320 case $sdccconf_h_dir_separator in
6321 # if the path contains any backslashes, turn slashes into backslashes
6323 # Bernhard Held 2003-04-06
6324 # This was the original line. It doesn't:
6325 # - convert the first slash
6326 # - replace a slash with a double-backslash
6327 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6328 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6330 # if the path contains slashes, also turn backslashes into slashes
6331 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6333 cat >>confdefs.h <<_ACEOF
6334 #define DATADIR "${ac_ndu}"
6339 # include/lib suffix
6340 norm_inc_dir_suffix=${include_dir_suffix}
6341 case ":$norm_inc_dir_suffix:" in
6342 # change empty paths to '.'
6343 ::) norm_inc_dir_suffix='.' ;;
6344 # strip trailing slashes
6345 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6348 # squeze repeated slashes
6349 case $sdccconf_h_dir_separator in
6350 # if the path contains any backslashes, turn slashes into backslashes
6352 # Bernhard Held 2003-04-06
6353 # This was the original line. It doesn't:
6354 # - convert the first slash
6355 # - replace a slash with a double-backslash
6356 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6357 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6359 # if the path contains slashes, also turn backslashes into slashes
6360 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6362 cat >>confdefs.h <<_ACEOF
6363 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6366 norm_lib_dir_suffix=${lib_dir_suffix}
6367 case ":$norm_lib_dir_suffix:" in
6368 # change empty paths to '.'
6369 ::) norm_lib_dir_suffix='.' ;;
6370 # strip trailing slashes
6371 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6374 # squeze repeated slashes
6375 case $sdccconf_h_dir_separator in
6376 # if the path contains any backslashes, turn slashes into backslashes
6378 # Bernhard Held 2003-04-06
6379 # This was the original line. It doesn't:
6380 # - convert the first slash
6381 # - replace a slash with a double-backslash
6382 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6383 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6385 # if the path contains slashes, also turn backslashes into slashes
6386 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6388 cat >>confdefs.h <<_ACEOF
6389 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6394 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6395 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6396 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6397 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6398 _lcl_receval="$_lcl_from"
6399 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6400 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6402 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6403 _lcl_receval_old="$_lcl_receval"
6404 eval _lcl_receval="\"$_lcl_receval\""
6406 echo "$_lcl_receval")`
6407 _lcl_receval="$_lcl_to"
6408 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6409 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6411 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6412 _lcl_receval_old="$_lcl_receval"
6413 eval _lcl_receval="\"$_lcl_receval\""
6415 echo "$_lcl_receval")`
6416 _lcl_notation="$_lcl_from$_lcl_to"
6417 case ":$_lcl_from:" in
6418 # change empty paths to '.'
6419 ::) _lcl_from='.' ;;
6420 # strip trailing slashes
6421 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6424 # squeze repeated slashes
6426 # if the path contains any backslashes, turn slashes into backslashes
6428 # Bernhard Held 2003-04-06
6429 # This was the original line. It doesn't:
6430 # - convert the first slash
6431 # - replace a slash with a double-backslash
6432 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6433 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6435 # if the path contains slashes, also turn backslashes into slashes
6436 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6438 case ":$_lcl_to:" in
6439 # change empty paths to '.'
6441 # strip trailing slashes
6442 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6445 # squeze repeated slashes
6447 # if the path contains any backslashes, turn slashes into backslashes
6449 # Bernhard Held 2003-04-06
6450 # This was the original line. It doesn't:
6451 # - convert the first slash
6452 # - replace a slash with a double-backslash
6453 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6454 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6456 # if the path contains slashes, also turn backslashes into slashes
6457 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6459 _lcl_common_prefix=''
6460 _lcl_second_prefix_match=''
6461 while test "$_lcl_second_prefix_match" != 0; do
6462 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6463 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6464 if test "$_lcl_second_prefix_match" != 0; then
6465 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6466 _lcl_common_prefix="$_lcl_first_prefix"
6468 _lcl_second_prefix_match=0
6472 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6475 while test "$_lcl_tmp" != ''; do
6476 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6477 if test "$_lcl_first_suffix" != ''; then
6478 _lcl_first_suffix="$_lcl_tmp"
6479 _lcl_first_rel="../$_lcl_first_rel"
6482 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6483 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6484 case ":$_lcl_result_tmp:" in
6485 # change empty paths to '.'
6486 ::) _lcl_result_tmp='.' ;;
6487 # strip trailing slashes
6488 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6491 # squeze repeated slashes
6492 case "$_lcl_notation" in
6493 # if the path contains any backslashes, turn slashes into backslashes
6495 # Bernhard Held 2003-04-06
6496 # This was the original line. It doesn't:
6497 # - convert the first slash
6498 # - replace a slash with a double-backslash
6499 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6500 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6502 # if the path contains slashes, also turn backslashes into slashes
6503 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6505 eval $_lcl_result_var='$_lcl_result_tmp'
6507 case ":$bin2data_dir:" in
6508 # change empty paths to '.'
6509 ::) bin2data_dir='.' ;;
6510 # strip trailing slashes
6511 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6514 # squeze repeated slashes
6515 case $sdccconf_h_dir_separator in
6516 # if the path contains any backslashes, turn slashes into backslashes
6518 # Bernhard Held 2003-04-06
6519 # This was the original line. It doesn't:
6520 # - convert the first slash
6521 # - replace a slash with a double-backslash
6522 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6523 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6525 # if the path contains slashes, also turn backslashes into slashes
6526 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6528 cat >>confdefs.h <<_ACEOF
6529 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6533 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6534 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6535 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6536 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6537 _lcl_receval="$_lcl_from"
6538 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6539 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6541 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6542 _lcl_receval_old="$_lcl_receval"
6543 eval _lcl_receval="\"$_lcl_receval\""
6545 echo "$_lcl_receval")`
6546 _lcl_receval="$_lcl_to"
6547 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6548 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6550 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6551 _lcl_receval_old="$_lcl_receval"
6552 eval _lcl_receval="\"$_lcl_receval\""
6554 echo "$_lcl_receval")`
6555 _lcl_notation="$_lcl_from$_lcl_to"
6556 case ":$_lcl_from:" in
6557 # change empty paths to '.'
6558 ::) _lcl_from='.' ;;
6559 # strip trailing slashes
6560 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6563 # squeze repeated slashes
6565 # if the path contains any backslashes, turn slashes into backslashes
6567 # Bernhard Held 2003-04-06
6568 # This was the original line. It doesn't:
6569 # - convert the first slash
6570 # - replace a slash with a double-backslash
6571 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6572 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6574 # if the path contains slashes, also turn backslashes into slashes
6575 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6577 case ":$_lcl_to:" in
6578 # change empty paths to '.'
6580 # strip trailing slashes
6581 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6584 # squeze repeated slashes
6586 # if the path contains any backslashes, turn slashes into backslashes
6588 # Bernhard Held 2003-04-06
6589 # This was the original line. It doesn't:
6590 # - convert the first slash
6591 # - replace a slash with a double-backslash
6592 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6593 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6595 # if the path contains slashes, also turn backslashes into slashes
6596 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6598 _lcl_common_prefix=''
6599 _lcl_second_prefix_match=''
6600 while test "$_lcl_second_prefix_match" != 0; do
6601 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6602 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6603 if test "$_lcl_second_prefix_match" != 0; then
6604 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6605 _lcl_common_prefix="$_lcl_first_prefix"
6607 _lcl_second_prefix_match=0
6611 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6614 while test "$_lcl_tmp" != ''; do
6615 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6616 if test "$_lcl_first_suffix" != ''; then
6617 _lcl_first_suffix="$_lcl_tmp"
6618 _lcl_first_rel="../$_lcl_first_rel"
6621 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6622 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6623 case ":$_lcl_result_tmp:" in
6624 # change empty paths to '.'
6625 ::) _lcl_result_tmp='.' ;;
6626 # strip trailing slashes
6627 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6630 # squeze repeated slashes
6631 case "$_lcl_notation" in
6632 # if the path contains any backslashes, turn slashes into backslashes
6634 # Bernhard Held 2003-04-06
6635 # This was the original line. It doesn't:
6636 # - convert the first slash
6637 # - replace a slash with a double-backslash
6638 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6639 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6641 # if the path contains slashes, also turn backslashes into slashes
6642 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6644 eval $_lcl_result_var='$_lcl_result_tmp'
6646 case ":$prefix2bin_dir:" in
6647 # change empty paths to '.'
6648 ::) prefix2bin_dir='.' ;;
6649 # strip trailing slashes
6650 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6653 # squeze repeated slashes
6654 case $sdccconf_h_dir_separator in
6655 # if the path contains any backslashes, turn slashes into backslashes
6657 # Bernhard Held 2003-04-06
6658 # This was the original line. It doesn't:
6659 # - convert the first slash
6660 # - replace a slash with a double-backslash
6661 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6662 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6664 # if the path contains slashes, also turn backslashes into slashes
6665 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6667 cat >>confdefs.h <<_ACEOF
6668 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6672 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6673 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6674 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6675 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6676 _lcl_receval="$_lcl_from"
6677 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6678 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6680 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6681 _lcl_receval_old="$_lcl_receval"
6682 eval _lcl_receval="\"$_lcl_receval\""
6684 echo "$_lcl_receval")`
6685 _lcl_receval="$_lcl_to"
6686 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6687 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6689 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6690 _lcl_receval_old="$_lcl_receval"
6691 eval _lcl_receval="\"$_lcl_receval\""
6693 echo "$_lcl_receval")`
6694 _lcl_notation="$_lcl_from$_lcl_to"
6695 case ":$_lcl_from:" in
6696 # change empty paths to '.'
6697 ::) _lcl_from='.' ;;
6698 # strip trailing slashes
6699 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6702 # squeze repeated slashes
6704 # if the path contains any backslashes, turn slashes into backslashes
6706 # Bernhard Held 2003-04-06
6707 # This was the original line. It doesn't:
6708 # - convert the first slash
6709 # - replace a slash with a double-backslash
6710 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6711 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6713 # if the path contains slashes, also turn backslashes into slashes
6714 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6716 case ":$_lcl_to:" in
6717 # change empty paths to '.'
6719 # strip trailing slashes
6720 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6723 # squeze repeated slashes
6725 # if the path contains any backslashes, turn slashes into backslashes
6727 # Bernhard Held 2003-04-06
6728 # This was the original line. It doesn't:
6729 # - convert the first slash
6730 # - replace a slash with a double-backslash
6731 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6732 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6734 # if the path contains slashes, also turn backslashes into slashes
6735 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6737 _lcl_common_prefix=''
6738 _lcl_second_prefix_match=''
6739 while test "$_lcl_second_prefix_match" != 0; do
6740 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6741 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6742 if test "$_lcl_second_prefix_match" != 0; then
6743 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6744 _lcl_common_prefix="$_lcl_first_prefix"
6746 _lcl_second_prefix_match=0
6750 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6753 while test "$_lcl_tmp" != ''; do
6754 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6755 if test "$_lcl_first_suffix" != ''; then
6756 _lcl_first_suffix="$_lcl_tmp"
6757 _lcl_first_rel="../$_lcl_first_rel"
6760 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6761 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6762 case ":$_lcl_result_tmp:" in
6763 # change empty paths to '.'
6764 ::) _lcl_result_tmp='.' ;;
6765 # strip trailing slashes
6766 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6769 # squeze repeated slashes
6770 case "$_lcl_notation" in
6771 # if the path contains any backslashes, turn slashes into backslashes
6773 # Bernhard Held 2003-04-06
6774 # This was the original line. It doesn't:
6775 # - convert the first slash
6776 # - replace a slash with a double-backslash
6777 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6778 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6780 # if the path contains slashes, also turn backslashes into slashes
6781 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6783 eval $_lcl_result_var='$_lcl_result_tmp'
6785 case ":$prefix2data_dir:" in
6786 # change empty paths to '.'
6787 ::) prefix2data_dir='.' ;;
6788 # strip trailing slashes
6789 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6792 # squeze repeated slashes
6793 case $sdccconf_h_dir_separator in
6794 # if the path contains any backslashes, turn slashes into backslashes
6796 # Bernhard Held 2003-04-06
6797 # This was the original line. It doesn't:
6798 # - convert the first slash
6799 # - replace a slash with a double-backslash
6800 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6801 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6803 # if the path contains slashes, also turn backslashes into slashes
6804 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6806 if test "${prefix2data_dir}" = "."; then
6807 # small optimization for Mingw32; otherwise Borut will complain ;-)
6808 cat >>confdefs.h <<_ACEOF
6809 #define PREFIX2DATA_DIR ""
6813 cat >>confdefs.h <<_ACEOF
6814 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6820 cat >>confdefs.h <<_ACEOF
6821 #define STD_LIB "libsdcc"
6824 cat >>confdefs.h <<_ACEOF
6825 #define STD_INT_LIB "libint"
6828 cat >>confdefs.h <<_ACEOF
6829 #define STD_LONG_LIB "liblong"
6832 cat >>confdefs.h <<_ACEOF
6833 #define STD_FP_LIB "libfloat"
6836 cat >>confdefs.h <<_ACEOF
6837 #define STD_DS390_LIB "libds390"
6840 cat >>confdefs.h <<_ACEOF
6841 #define STD_DS400_LIB "libds400"
6844 cat >>confdefs.h <<_ACEOF
6845 #define STD_XA51_LIB "libxa51"
6849 # SDCC runtime environment variables
6850 sdcc_dir_name="SDCC_HOME"
6851 cat >>confdefs.h <<_ACEOF
6852 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6856 sdcc_include_name="SDCC_INCLUDE"
6857 cat >>confdefs.h <<_ACEOF
6858 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6862 sdcc_lib_name="SDCC_LIB"
6863 cat >>confdefs.h <<_ACEOF
6864 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6868 # Now handle the port selection
6869 # ===========================================================================
6870 rm -f ports.all ports.build
6871 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6872 if test "${enable_mcs51_port+set}" = set; then
6873 enableval="$enable_mcs51_port"
6876 echo mcs51 >>ports.all
6877 if test "$enable_mcs51_port" = "no"; then
6878 cat >>confdefs.h <<_ACEOF
6879 #define OPT_DISABLE_MCS51 1
6883 echo mcs51 >>ports.build
6884 cat >>confdefs.h <<_ACEOF
6885 #define OPT_DISABLE_MCS51 0
6890 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6891 if test "${enable_gbz80_port+set}" = set; then
6892 enableval="$enable_gbz80_port"
6895 echo z80 >>ports.all
6896 if test "$enable_gbz80_port" = "no"; then
6897 cat >>confdefs.h <<_ACEOF
6898 #define OPT_DISABLE_GBZ80 1
6902 echo z80 >>ports.build
6903 cat >>confdefs.h <<_ACEOF
6904 #define OPT_DISABLE_GBZ80 0
6909 # Check whether --enable-z80-port or --disable-z80-port was given.
6910 if test "${enable_z80_port+set}" = set; then
6911 enableval="$enable_z80_port"
6914 echo z80 >>ports.all
6915 if test "$enable_z80_port" = "no"; then
6916 cat >>confdefs.h <<_ACEOF
6917 #define OPT_DISABLE_Z80 1
6921 echo z80 >>ports.build
6922 cat >>confdefs.h <<_ACEOF
6923 #define OPT_DISABLE_Z80 0
6928 # Check whether --enable-avr-port or --disable-avr-port was given.
6929 if test "${enable_avr_port+set}" = set; then
6930 enableval="$enable_avr_port"
6933 echo avr >>ports.all
6934 if test "$enable_avr_port" = "no"; then
6935 cat >>confdefs.h <<_ACEOF
6936 #define OPT_DISABLE_AVR 1
6940 echo avr >>ports.build
6941 cat >>confdefs.h <<_ACEOF
6942 #define OPT_DISABLE_AVR 0
6947 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6948 if test "${enable_ds390_port+set}" = set; then
6949 enableval="$enable_ds390_port"
6952 echo ds390 >>ports.all
6953 if test "$enable_ds390_port" = "no"; then
6954 cat >>confdefs.h <<_ACEOF
6955 #define OPT_DISABLE_DS390 1
6958 cat >>confdefs.h <<_ACEOF
6959 #define OPT_DISABLE_TININative 1
6963 echo ds390 >>ports.build
6964 cat >>confdefs.h <<_ACEOF
6965 #define OPT_DISABLE_DS390 0
6968 cat >>confdefs.h <<_ACEOF
6969 #define OPT_DISABLE_TININative 0
6974 # Check whether --enable-ds400-port or --disable-ds400-port was given.
6975 if test "${enable_ds400_port+set}" = set; then
6976 enableval="$enable_ds400_port"
6979 echo ds400 >>ports.all
6980 if test "$enable_ds400_port" = "no"; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define OPT_DISABLE_DS400 1
6986 echo ds400 >>ports.build
6987 cat >>confdefs.h <<_ACEOF
6988 #define OPT_DISABLE_DS400 0
6993 # Check whether --enable-pic-port or --disable-pic-port was given.
6994 if test "${enable_pic_port+set}" = set; then
6995 enableval="$enable_pic_port"
6998 echo pic >>ports.all
6999 if test "$enable_pic_port" = "no"; then
7000 cat >>confdefs.h <<_ACEOF
7001 #define OPT_DISABLE_PIC 1
7005 echo pic >>ports.build
7006 cat >>confdefs.h <<_ACEOF
7007 #define OPT_DISABLE_PIC 0
7012 # Check whether --enable-pic16-port or --disable-pic16-port was given.
7013 if test "${enable_pic16_port+set}" = set; then
7014 enableval="$enable_pic16_port"
7017 echo pic16 >>ports.all
7018 if test "$enable_pic16_port" = "no"; then
7019 cat >>confdefs.h <<_ACEOF
7020 #define OPT_DISABLE_PIC16 1
7024 echo pic16 >>ports.build
7025 cat >>confdefs.h <<_ACEOF
7026 #define OPT_DISABLE_PIC16 0
7031 # Check whether --enable-xa51-port or --disable-xa51-port was given.
7032 if test "${enable_xa51_port+set}" = set; then
7033 enableval="$enable_xa51_port"
7036 echo xa51 >>ports.all
7037 if test "$enable_xa51_port" = "no"; then
7038 cat >>confdefs.h <<_ACEOF
7039 #define OPT_DISABLE_XA51 1
7043 echo xa51 >>ports.build
7044 cat >>confdefs.h <<_ACEOF
7045 #define OPT_DISABLE_XA51 0
7050 # Check whether --enable-ucsim or --disable-ucsim was given.
7051 if test "${enable_ucsim+set}" = set; then
7052 enableval="$enable_ucsim"
7055 OPT_ENABLE_UCSIM=$enable_ucsim
7058 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
7059 if test "${enable_device_lib_build+set}" = set; then
7060 enableval="$enable_device_lib_build"
7063 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
7066 # Check whether --enable-packihx or --disable-packihx was given.
7067 if test "${enable_packihx+set}" = set; then
7068 enableval="$enable_packihx"
7071 OPT_ENABLE_PACKIHX=$enable_packihx
7074 # Check whether --enable-librarian or --disable-librarian was given.
7075 if test "${enable_librarian+set}" = set; then
7076 enableval="$enable_librarian"
7079 OPT_ENABLE_LIBRARIAN=$enable_librarian
7082 # Check whether --enable-libgc or --disable-libgc was given.
7083 if test "${enable_libgc+set}" = set; then
7084 enableval="$enable_libgc"
7087 if test "$enable_libgc" = "yes"; then
7089 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7090 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7091 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_check_lib_save_LIBS=$LIBS
7096 cat >conftest.$ac_ext <<_ACEOF
7097 #line $LINENO "configure"
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7104 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_lib_gc_GC_malloc=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_lib_gc_GC_malloc=no
7138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7139 LIBS=$ac_check_lib_save_LIBS
7141 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7142 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7143 if test $ac_cv_lib_gc_GC_malloc = yes; then
7144 cat >>confdefs.h <<_ACEOF
7145 #define HAVE_LIBGC 1
7156 cat >>confdefs.h <<_ACEOF
7157 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7162 uniq ports.all ports
7164 uniq ports.build ports
7165 mv ports ports.build
7167 # Generating output files
7168 # ===========================================================================
7171 subdirs="$subdirs support/cpp2"
7175 subdirs="$subdirs support/librarian"
7179 subdirs="$subdirs packihx"
7183 subdirs="$subdirs sim/ucsim"
7185 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"
7187 cat >confcache <<\_ACEOF
7188 # This file is a shell script that caches the results of configure
7189 # tests run on this system so they can be shared between configure
7190 # scripts and configure runs, see configure's option --config-cache.
7191 # It is not useful on other systems. If it contains results you don't
7192 # want to keep, you may remove or edit it.
7194 # config.status only pays attention to the cache file if you give it
7195 # the --recheck option to rerun configure.
7197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7203 # The following way of writing the cache mishandles newlines in values,
7204 # but we know of no workaround that is simple, portable, and efficient.
7205 # So, don't put newlines in cache variables' values.
7206 # Ultrix sh set writes to stderr and can't be redirected directly,
7207 # and sets the high bit in the cache file unless we assign to the vars.
7210 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7212 # `set' does not quote correctly, so add quotes (double-quote
7213 # substitution turns \\\\ into \\, and sed turns \\ into \).
7216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7219 # `set' quotes correctly as required by POSIX, so do not add quotes.
7221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7230 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7232 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7233 if test -w $cache_file; then
7234 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7235 cat confcache >$cache_file
7237 echo "not updating unwritable cache $cache_file"
7242 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7243 # Let make expand exec_prefix.
7244 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7248 # trailing colons and then remove the whole line if VPATH becomes empty
7249 # (actually we leave an empty line to preserve line numbers).
7250 if test "x$srcdir" = x.; then
7251 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7252 s/:*\$(srcdir):*/:/;
7253 s/:*\${srcdir}:*/:/;
7255 s/^\([^=]*=[ ]*\):*/\1/;
7261 DEFS=-DHAVE_CONFIG_H
7265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7266 # 1. Remove the extension, and $U if already installed.
7267 ac_i=`echo "$ac_i" |
7268 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7270 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7271 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7275 LTLIBOBJS=$ac_ltlibobjs
7279 : ${CONFIG_STATUS=./config.status}
7280 ac_clean_files_save=$ac_clean_files
7281 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7282 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7283 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7284 cat >$CONFIG_STATUS <<_ACEOF
7286 # Generated by $as_me.
7287 # Run this file to recreate the current configuration.
7288 # Compiler output produced by configure, useful for debugging
7289 # configure, is in config.log if it exists.
7294 SHELL=\${CONFIG_SHELL-$SHELL}
7297 cat >>$CONFIG_STATUS <<\_ACEOF
7298 ## --------------------- ##
7299 ## M4sh Initialization. ##
7300 ## --------------------- ##
7302 # Be Bourne compatible
7303 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7306 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7307 # is contrary to our usage. Disable this feature.
7308 alias -g '${1+"$@"}'='"$@"'
7309 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7313 # Support unset when possible.
7314 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7321 # Work around bugs in pre-3.0 UWIN ksh.
7322 $as_unset ENV MAIL MAILPATH
7329 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7330 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7331 LC_TELEPHONE LC_TIME
7333 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7334 eval $as_var=C; export $as_var
7340 # Required to use basename.
7341 if expr a : '\(a\)' >/dev/null 2>&1; then
7347 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7348 as_basename=basename
7354 # Name of the executable.
7355 as_me=`$as_basename "$0" ||
7356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7357 X"$0" : 'X\(//\)$' \| \
7358 X"$0" : 'X\(/\)$' \| \
7359 . : '\(.\)' 2>/dev/null ||
7361 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7362 /^X\/\(\/\/\)$/{ s//\1/; q; }
7363 /^X\/\(\/\).*/{ s//\1/; q; }
7367 # PATH needs CR, and LINENO needs CR and PATH.
7368 # Avoid depending upon Character Ranges.
7369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7372 as_cr_digits='0123456789'
7373 as_cr_alnum=$as_cr_Letters$as_cr_digits
7375 # The user is always right.
7376 if test "${PATH_SEPARATOR+set}" != set; then
7377 echo "#! /bin/sh" >conf$$.sh
7378 echo "exit 0" >>conf$$.sh
7380 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7391 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7392 test "x$as_lineno_1" != "x$as_lineno_2" &&
7393 test "x$as_lineno_3" = "x$as_lineno_2" || {
7394 # Find who we are. Look in the path if we contain no path at all
7397 *[\\/]* ) as_myself=$0 ;;
7398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7408 # We did not find ourselves, most probably we were run as `sh COMMAND'
7409 # in which case we are not to be found in the path.
7410 if test "x$as_myself" = x; then
7413 if test ! -f "$as_myself"; then
7414 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7415 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7416 { (exit 1); exit 1; }; }
7418 case $CONFIG_SHELL in
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7424 test -z "$as_dir" && as_dir=.
7425 for as_base in sh bash ksh sh5; do
7428 if ("$as_dir/$as_base" -c '
7431 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7432 test "x$as_lineno_1" != "x$as_lineno_2" &&
7433 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7434 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7435 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7436 CONFIG_SHELL=$as_dir/$as_base
7438 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7447 # uniformly replaced by the line number. The first 'sed' inserts a
7448 # line-number line before each line; the second 'sed' does the real
7449 # work. The second script uses 'N' to pair each line-number line
7450 # with the numbered line, and appends trailing '-' during
7451 # substitution so that $LINENO is not a special case at line end.
7452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7453 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7454 sed '=' <$as_myself |
7459 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7462 s,^['$as_cr_digits']*\n,,
7464 chmod +x $as_me.lineno ||
7465 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7466 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7467 { (exit 1); exit 1; }; }
7469 # Don't try to exec as it changes $[0], causing all sort of problems
7470 # (the dirname of $[0] is not the place where we might find the
7471 # original and so on. Autoconf is especially sensible to this).
7473 # Exit status is that of the last command.
7478 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7479 *c*,-n*) ECHO_N= ECHO_C='
7481 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7482 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7485 if expr a : '\(a\)' >/dev/null 2>&1; then
7491 rm -f conf$$ conf$$.exe conf$$.file
7493 if ln -s conf$$.file conf$$ 2>/dev/null; then
7494 # We could just check for DJGPP; but this test a) works b) is more generic
7495 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7496 if test -f conf$$.exe; then
7497 # Don't use ln at all; we don't have any links
7502 elif ln conf$$.file conf$$ 2>/dev/null; then
7507 rm -f conf$$ conf$$.exe conf$$.file
7509 if mkdir -p . 2>/dev/null; then
7515 as_executable_p="test -f"
7517 # Sed expression to map a string onto a valid CPP name.
7518 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7520 # Sed expression to map a string onto a valid variable name.
7521 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7525 # We need space, tab and new line, in precisely that order.
7535 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7536 # report actual input values of CONFIG_FILES etc. instead of their
7537 # values after options handling. Logging --version etc. is OK.
7541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7542 ## Running $as_me. ##
7547 This file was extended by $as_me, which was
7548 generated by GNU Autoconf 2.57. Invocation command line was
7550 CONFIG_FILES = $CONFIG_FILES
7551 CONFIG_HEADERS = $CONFIG_HEADERS
7552 CONFIG_LINKS = $CONFIG_LINKS
7553 CONFIG_COMMANDS = $CONFIG_COMMANDS
7557 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7561 # Files that config.status was made for.
7562 if test -n "$ac_config_files"; then
7563 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7566 if test -n "$ac_config_headers"; then
7567 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7570 if test -n "$ac_config_links"; then
7571 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7574 if test -n "$ac_config_commands"; then
7575 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7578 cat >>$CONFIG_STATUS <<\_ACEOF
7581 \`$as_me' instantiates files from templates according to the
7582 current configuration.
7584 Usage: $0 [OPTIONS] [FILE]...
7586 -h, --help print this help, then exit
7587 -V, --version print version number, then exit
7588 -q, --quiet do not print progress messages
7589 -d, --debug don't remove temporary files
7590 --recheck update $as_me by reconfiguring in the same conditions
7591 --file=FILE[:TEMPLATE]
7592 instantiate the configuration file FILE
7593 --header=FILE[:TEMPLATE]
7594 instantiate the configuration header FILE
7596 Configuration files:
7599 Configuration headers:
7602 Report bugs to <bug-autoconf@gnu.org>."
7605 cat >>$CONFIG_STATUS <<_ACEOF
7608 configured by $0, generated by GNU Autoconf 2.57,
7609 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7611 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7612 Free Software Foundation, Inc.
7613 This config.status script is free software; the Free Software Foundation
7614 gives unlimited permission to copy, distribute and modify it."
7619 cat >>$CONFIG_STATUS <<\_ACEOF
7620 # If no file are specified by the user, then we need to provide default
7621 # value. By we need to know if files were specified by the user.
7627 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7628 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7636 *) # This is not an option, so the user has probably given explicit
7639 ac_need_defaults=false;;
7643 # Handling of the options.
7645 cat >>$CONFIG_STATUS <<\_ACEOF
7646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7648 --version | --vers* | -V )
7649 echo "$ac_cs_version"; exit 0 ;;
7651 # Conflict between --help and --header
7652 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7653 Try \`$0 --help' for more information." >&5
7654 echo "$as_me: error: ambiguous option: $1
7655 Try \`$0 --help' for more information." >&2;}
7656 { (exit 1); exit 1; }; };;
7657 --help | --hel | -h )
7658 echo "$ac_cs_usage"; exit 0 ;;
7659 --debug | --d* | -d )
7661 --file | --fil | --fi | --f )
7663 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7664 ac_need_defaults=false;;
7665 --header | --heade | --head | --hea )
7667 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7668 ac_need_defaults=false;;
7669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7674 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7675 Try \`$0 --help' for more information." >&5
7676 echo "$as_me: error: unrecognized option: $1
7677 Try \`$0 --help' for more information." >&2;}
7678 { (exit 1); exit 1; }; } ;;
7680 *) ac_config_targets="$ac_config_targets $1" ;;
7686 ac_configure_extra_args=
7688 if $ac_cs_silent; then
7690 ac_configure_extra_args="$ac_configure_extra_args --silent"
7694 cat >>$CONFIG_STATUS <<_ACEOF
7695 if \$ac_cs_recheck; then
7696 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7697 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7706 cat >>$CONFIG_STATUS <<\_ACEOF
7707 for ac_config_target in $ac_config_targets
7709 case "$ac_config_target" in
7710 # Handling of arguments.
7711 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7712 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7713 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7714 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7715 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7716 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
7717 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7718 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7719 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7720 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7721 { (exit 1); exit 1; }; };;
7725 # If the user did not use the arguments to specify the items to instantiate,
7726 # then the envvar interface is used. Set only those that are not.
7727 # We use the long form for the default assignment because of an extremely
7728 # bizarre bug on SunOS 4.1.3.
7729 if $ac_need_defaults; then
7730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7731 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7734 # Have a temporary directory for convenience. Make it in the build tree
7735 # simply because there is no reason to put it here, and in addition,
7736 # creating and moving files from /tmp can sometimes cause problems.
7737 # Create a temporary directory, and hook for its removal unless debugging.
7740 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7741 trap '{ (exit 1); exit 1; }' 1 2 13 15
7744 # Create a (secure) tmp directory for tmp files.
7747 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7748 test -n "$tmp" && test -d "$tmp"
7751 tmp=./confstat$$-$RANDOM
7752 (umask 077 && mkdir $tmp)
7755 echo "$me: cannot create a temporary directory in ." >&2
7756 { (exit 1); exit 1; }
7761 cat >>$CONFIG_STATUS <<_ACEOF
7764 # CONFIG_FILES section.
7767 # No need to generate the scripts if there are no CONFIG_FILES.
7768 # This happens for instance when ./config.status config.h
7769 if test -n "\$CONFIG_FILES"; then
7770 # Protect against being on the right side of a sed subst in config.status.
7771 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7772 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7773 s,@SHELL@,$SHELL,;t t
7774 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7775 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7776 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7777 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7778 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7779 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7780 s,@exec_prefix@,$exec_prefix,;t t
7781 s,@prefix@,$prefix,;t t
7782 s,@program_transform_name@,$program_transform_name,;t t
7783 s,@bindir@,$bindir,;t t
7784 s,@sbindir@,$sbindir,;t t
7785 s,@libexecdir@,$libexecdir,;t t
7786 s,@datadir@,$datadir,;t t
7787 s,@sysconfdir@,$sysconfdir,;t t
7788 s,@sharedstatedir@,$sharedstatedir,;t t
7789 s,@localstatedir@,$localstatedir,;t t
7790 s,@libdir@,$libdir,;t t
7791 s,@includedir@,$includedir,;t t
7792 s,@oldincludedir@,$oldincludedir,;t t
7793 s,@infodir@,$infodir,;t t
7794 s,@mandir@,$mandir,;t t
7795 s,@build_alias@,$build_alias,;t t
7796 s,@host_alias@,$host_alias,;t t
7797 s,@target_alias@,$target_alias,;t t
7799 s,@ECHO_C@,$ECHO_C,;t t
7800 s,@ECHO_N@,$ECHO_N,;t t
7801 s,@ECHO_T@,$ECHO_T,;t t
7804 s,@VERSION@,$VERSION,;t t
7805 s,@VERSIONHI@,$VERSIONHI,;t t
7806 s,@VERSIONLO@,$VERSIONLO,;t t
7807 s,@VERSIONP@,$VERSIONP,;t t
7809 s,@CFLAGS@,$CFLAGS,;t t
7810 s,@LDFLAGS@,$LDFLAGS,;t t
7811 s,@CPPFLAGS@,$CPPFLAGS,;t t
7812 s,@ac_ct_CC@,$ac_ct_CC,;t t
7813 s,@EXEEXT@,$EXEEXT,;t t
7814 s,@OBJEXT@,$OBJEXT,;t t
7816 s,@CXXFLAGS@,$CXXFLAGS,;t t
7817 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7819 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7820 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7821 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7822 s,@RANLIB@,$RANLIB,;t t
7823 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7825 s,@LEXLIB@,$LEXLIB,;t t
7826 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7828 s,@AUTOCONF@,$AUTOCONF,;t t
7829 s,@STRIP@,$STRIP,;t t
7833 s,@LATEX@,$LATEX,;t t
7834 s,@LATEX2HTML@,$LATEX2HTML,;t t
7835 s,@PDFLATEX@,$PDFLATEX,;t t
7836 s,@DVIPDF@,$DVIPDF,;t t
7837 s,@EGREP@,$EGREP,;t t
7838 s,@M_OR_MM@,$M_OR_MM,;t t
7839 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
7840 s,@include_dir_suffix@,$include_dir_suffix,;t t
7841 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
7842 s,@docdir@,$docdir,;t t
7843 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
7844 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
7845 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
7846 s,@OPT_ENABLE_LIBRARIAN@,$OPT_ENABLE_LIBRARIAN,;t t
7847 s,@subdirs@,$subdirs,;t t
7848 s,@LIBOBJS@,$LIBOBJS,;t t
7849 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7854 cat >>$CONFIG_STATUS <<\_ACEOF
7855 # Split the substitutions into bite-sized pieces for seds with
7856 # small command number limits, like on Digital OSF/1 and HP-UX.
7858 ac_sed_frag=1 # Number of current file.
7859 ac_beg=1 # First line for current file.
7860 ac_end=$ac_max_sed_lines # Line after last line for current file.
7863 while $ac_more_lines; do
7864 if test $ac_beg -gt 1; then
7865 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7867 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7869 if test ! -s $tmp/subs.frag; then
7872 # The purpose of the label and of the branching condition is to
7873 # speed up the sed processing (if there are no `@' at all, there
7874 # is no need to browse any of the substitutions).
7875 # These are the two extra sed commands mentioned above.
7877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7878 if test -z "$ac_sed_cmds"; then
7879 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7881 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7883 ac_sed_frag=`expr $ac_sed_frag + 1`
7885 ac_end=`expr $ac_end + $ac_max_sed_lines`
7888 if test -z "$ac_sed_cmds"; then
7891 fi # test -n "$CONFIG_FILES"
7894 cat >>$CONFIG_STATUS <<\_ACEOF
7895 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7896 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7898 - | *:- | *:-:* ) # input from stdin
7900 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7901 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7902 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7904 * ) ac_file_in=$ac_file.in ;;
7907 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7908 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7910 X"$ac_file" : 'X\(//\)[^/]' \| \
7911 X"$ac_file" : 'X\(//\)$' \| \
7912 X"$ac_file" : 'X\(/\)' \| \
7913 . : '\(.\)' 2>/dev/null ||
7915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7917 /^X\(\/\/\)$/{ s//\1/; q; }
7918 /^X\(\/\).*/{ s//\1/; q; }
7920 { if $as_mkdir_p; then
7925 while test ! -d "$as_dir"; do
7926 as_dirs="$as_dir $as_dirs"
7927 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7928 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7929 X"$as_dir" : 'X\(//\)[^/]' \| \
7930 X"$as_dir" : 'X\(//\)$' \| \
7931 X"$as_dir" : 'X\(/\)' \| \
7932 . : '\(.\)' 2>/dev/null ||
7934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7936 /^X\(\/\/\)$/{ s//\1/; q; }
7937 /^X\(\/\).*/{ s//\1/; q; }
7940 test ! -n "$as_dirs" || mkdir $as_dirs
7941 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7942 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7943 { (exit 1); exit 1; }; }; }
7947 if test "$ac_dir" != .; then
7948 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7949 # A "../" for each directory in $ac_dir_suffix.
7950 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7952 ac_dir_suffix= ac_top_builddir=
7956 .) # No --srcdir option. We are building in place.
7958 if test -z "$ac_top_builddir"; then
7961 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7963 [\\/]* | ?:[\\/]* ) # Absolute path.
7964 ac_srcdir=$srcdir$ac_dir_suffix;
7965 ac_top_srcdir=$srcdir ;;
7967 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7968 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7970 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7972 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7973 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7974 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7975 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7979 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7980 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7983 if test x"$ac_file" != x-; then
7984 { echo "$as_me:$LINENO: creating $ac_file" >&5
7985 echo "$as_me: creating $ac_file" >&6;}
7988 # Let's still pretend it is `configure' which instantiates (i.e., don't
7989 # use $as_me), people would be surprised to read:
7990 # /* config.h. Generated by config.status. */
7991 if test x"$ac_file" = x-; then
7994 configure_input="$ac_file. "
7996 configure_input=$configure_input"Generated from `echo $ac_file_in |
7997 sed 's,.*/,,'` by configure."
7999 # First look for the input files in the build tree, otherwise in the
8001 ac_file_inputs=`IFS=:
8002 for f in $ac_file_in; do
8004 -) echo $tmp/stdin ;;
8006 # Absolute (can't be DOS-style, as IFS=:)
8007 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8008 echo "$as_me: error: cannot find input file: $f" >&2;}
8009 { (exit 1); exit 1; }; }
8012 if test -f "$f"; then
8015 elif test -f "$srcdir/$f"; then
8020 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8021 echo "$as_me: error: cannot find input file: $f" >&2;}
8022 { (exit 1); exit 1; }; }
8025 done` || { (exit 1); exit 1; }
8027 cat >>$CONFIG_STATUS <<_ACEOF
8031 cat >>$CONFIG_STATUS <<\_ACEOF
8033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8034 s,@configure_input@,$configure_input,;t t
8035 s,@srcdir@,$ac_srcdir,;t t
8036 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8037 s,@top_srcdir@,$ac_top_srcdir,;t t
8038 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8039 s,@builddir@,$ac_builddir,;t t
8040 s,@abs_builddir@,$ac_abs_builddir,;t t
8041 s,@top_builddir@,$ac_top_builddir,;t t
8042 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8043 s,@INSTALL@,$ac_INSTALL,;t t
8044 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8046 if test x"$ac_file" != x-; then
8047 mv $tmp/out $ac_file
8055 cat >>$CONFIG_STATUS <<\_ACEOF
8058 # CONFIG_HEADER section.
8061 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8062 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8064 # ac_d sets the value in "#define NAME VALUE" lines.
8065 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8066 ac_dB='[ ].*$,\1#\2'
8069 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8070 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8071 ac_uB='$,\1#\2define\3'
8075 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8076 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8078 - | *:- | *:-:* ) # input from stdin
8080 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8082 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8083 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8084 * ) ac_file_in=$ac_file.in ;;
8087 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8088 echo "$as_me: creating $ac_file" >&6;}
8090 # First look for the input files in the build tree, otherwise in the
8092 ac_file_inputs=`IFS=:
8093 for f in $ac_file_in; do
8095 -) echo $tmp/stdin ;;
8097 # Absolute (can't be DOS-style, as IFS=:)
8098 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8099 echo "$as_me: error: cannot find input file: $f" >&2;}
8100 { (exit 1); exit 1; }; }
8103 if test -f "$f"; then
8106 elif test -f "$srcdir/$f"; then
8111 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8112 echo "$as_me: error: cannot find input file: $f" >&2;}
8113 { (exit 1); exit 1; }; }
8116 done` || { (exit 1); exit 1; }
8117 # Remove the trailing spaces.
8118 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8122 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8123 # `conftest.undefs', that substitutes the proper values into
8124 # config.h.in to produce config.h. The first handles `#define'
8125 # templates, and the second `#undef' templates.
8126 # And first: Protect against being on the right side of a sed subst in
8127 # config.status. Protect against being in an unquoted here document
8129 rm -f conftest.defines conftest.undefs
8130 # Using a here document instead of a string reduces the quoting nightmare.
8131 # Putting comments in sed scripts is not portable.
8133 # `end' is used to avoid that the second main sed command (meant for
8134 # 0-ary CPP macros) applies to n-ary macro definitions.
8135 # See the Autoconf documentation for `clear'.
8136 cat >confdef2sed.sed <<\_ACEOF
8141 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8143 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8146 # If some macros were called several times there might be several times
8147 # the same #defines, which is useless. Nevertheless, we may not want to
8148 # sort them, since we want the *last* AC-DEFINE to be honored.
8149 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8150 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8151 rm -f confdef2sed.sed
8153 # This sed command replaces #undef with comments. This is necessary, for
8154 # example, in the case of _POSIX_SOURCE, which is predefined and required
8155 # on some systems where configure will not decide to define it.
8156 cat >>conftest.undefs <<\_ACEOF
8157 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8160 # Break up conftest.defines because some shells have a limit on the size
8161 # of here documents, and old seds have small limits too (100 cmds).
8162 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8163 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8164 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8165 echo ' :' >>$CONFIG_STATUS
8167 while grep . conftest.defines >/dev/null
8169 # Write a limited-size here document to $tmp/defines.sed.
8170 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8171 # Speed up: don't consider the non `#define' lines.
8172 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8173 # Work around the forget-to-reset-the-flag bug.
8174 echo 't clr' >>$CONFIG_STATUS
8175 echo ': clr' >>$CONFIG_STATUS
8176 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8178 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8182 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8183 rm -f conftest.defines
8184 mv conftest.tail conftest.defines
8186 rm -f conftest.defines
8187 echo ' fi # grep' >>$CONFIG_STATUS
8188 echo >>$CONFIG_STATUS
8190 # Break up conftest.undefs because some shells have a limit on the size
8191 # of here documents, and old seds have small limits too (100 cmds).
8192 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8194 while grep . conftest.undefs >/dev/null
8196 # Write a limited-size here document to $tmp/undefs.sed.
8197 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8198 # Speed up: don't consider the non `#undef'
8199 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8200 # Work around the forget-to-reset-the-flag bug.
8201 echo 't clr' >>$CONFIG_STATUS
8202 echo ': clr' >>$CONFIG_STATUS
8203 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8205 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8209 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8210 rm -f conftest.undefs
8211 mv conftest.tail conftest.undefs
8213 rm -f conftest.undefs
8215 cat >>$CONFIG_STATUS <<\_ACEOF
8216 # Let's still pretend it is `configure' which instantiates (i.e., don't
8217 # use $as_me), people would be surprised to read:
8218 # /* config.h. Generated by config.status. */
8219 if test x"$ac_file" = x-; then
8220 echo "/* Generated by configure. */" >$tmp/config.h
8222 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8224 cat $tmp/in >>$tmp/config.h
8226 if test x"$ac_file" != x-; then
8227 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8228 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8229 echo "$as_me: $ac_file is unchanged" >&6;}
8231 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8233 X"$ac_file" : 'X\(//\)[^/]' \| \
8234 X"$ac_file" : 'X\(//\)$' \| \
8235 X"$ac_file" : 'X\(/\)' \| \
8236 . : '\(.\)' 2>/dev/null ||
8238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8240 /^X\(\/\/\)$/{ s//\1/; q; }
8241 /^X\(\/\).*/{ s//\1/; q; }
8243 { if $as_mkdir_p; then
8248 while test ! -d "$as_dir"; do
8249 as_dirs="$as_dir $as_dirs"
8250 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8252 X"$as_dir" : 'X\(//\)[^/]' \| \
8253 X"$as_dir" : 'X\(//\)$' \| \
8254 X"$as_dir" : 'X\(/\)' \| \
8255 . : '\(.\)' 2>/dev/null ||
8257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8259 /^X\(\/\/\)$/{ s//\1/; q; }
8260 /^X\(\/\).*/{ s//\1/; q; }
8263 test ! -n "$as_dirs" || mkdir $as_dirs
8264 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8265 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8266 { (exit 1); exit 1; }; }; }
8269 mv $tmp/config.h $ac_file
8278 cat >>$CONFIG_STATUS <<\_ACEOF
8280 { (exit 0); exit 0; }
8282 chmod +x $CONFIG_STATUS
8283 ac_clean_files=$ac_clean_files_save
8286 # configure is writing to config.log, and then calls config.status.
8287 # config.status does its own redirection, appending to config.log.
8288 # Unfortunately, on DOS this fails, as config.log is still kept open
8289 # by configure, so config.status won't be able to write to it; its
8290 # output is simply discarded. So we exec the FD to /dev/null,
8291 # effectively closing config.log, so it can be properly (re)opened and
8292 # appended to by config.status. When coming back to configure, we
8293 # need to make the FD available again.
8294 if test "$no_create" != yes; then
8296 ac_config_status_args=
8297 test "$silent" = yes &&
8298 ac_config_status_args="$ac_config_status_args --quiet"
8300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8303 # would make configure fail if this is the last instruction.
8304 $ac_cs_success || { (exit 1); exit 1; }
8308 # CONFIG_SUBDIRS section.
8310 if test "$no_recursion" != yes; then
8312 # Remove --cache-file and --srcdir arguments so they do not pile up.
8313 ac_sub_configure_args=
8315 for ac_arg in $ac_configure_args; do
8316 if test -n "$ac_prev"; then
8321 -cache-file | --cache-file | --cache-fil | --cache-fi \
8322 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8323 ac_prev=cache_file ;;
8324 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8325 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8328 --config-cache | -C)
8330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8338 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8342 # Always prepend --prefix to ensure using the same prefix
8343 # in subdir configurations.
8344 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8347 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8349 # Do not complain, so a configure script can configure whichever
8350 # parts of a large source tree are present.
8351 test -d $srcdir/$ac_dir || continue
8353 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8354 echo "$as_me: configuring in $ac_dir" >&6;}
8355 { if $as_mkdir_p; then
8360 while test ! -d "$as_dir"; do
8361 as_dirs="$as_dir $as_dirs"
8362 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8363 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8364 X"$as_dir" : 'X\(//\)[^/]' \| \
8365 X"$as_dir" : 'X\(//\)$' \| \
8366 X"$as_dir" : 'X\(/\)' \| \
8367 . : '\(.\)' 2>/dev/null ||
8369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8371 /^X\(\/\/\)$/{ s//\1/; q; }
8372 /^X\(\/\).*/{ s//\1/; q; }
8375 test ! -n "$as_dirs" || mkdir $as_dirs
8376 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8377 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8378 { (exit 1); exit 1; }; }; }
8382 if test "$ac_dir" != .; then
8383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8384 # A "../" for each directory in $ac_dir_suffix.
8385 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8387 ac_dir_suffix= ac_top_builddir=
8391 .) # No --srcdir option. We are building in place.
8393 if test -z "$ac_top_builddir"; then
8396 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8398 [\\/]* | ?:[\\/]* ) # Absolute path.
8399 ac_srcdir=$srcdir$ac_dir_suffix;
8400 ac_top_srcdir=$srcdir ;;
8402 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8403 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8405 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8407 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8408 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8409 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8410 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8415 # Check for guested configure; otherwise get Cygnus style configure.
8416 if test -f $ac_srcdir/configure.gnu; then
8417 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8418 elif test -f $ac_srcdir/configure; then
8419 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8420 elif test -f $ac_srcdir/configure.in; then
8421 ac_sub_configure=$ac_configure
8423 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8424 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8428 # The recursion is here.
8429 if test -n "$ac_sub_configure"; then
8430 # Make the cache file name correct relative to the subdirectory.
8432 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8434 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8437 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8438 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8439 # The eval makes quoting arguments work.
8440 eval $ac_sub_configure $ac_sub_configure_args \
8441 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8442 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8443 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8444 { (exit 1); exit 1; }; }
8452 # End of configure/configure.in