* configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
[fw/sdcc] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sdcc 2.7.2.
4 #
5 # Report bugs to <sdcc-devel@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='sdcc'
576 PACKAGE_TARNAME='sdcc'
577 PACKAGE_VERSION='2.7.2'
578 PACKAGE_STRING='sdcc 2.7.2'
579 PACKAGE_BUGREPORT='sdcc-devel@lists.sourceforge.net'
580
581 ac_unique_file="Makefile.in"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 AWK
656 VERSION
657 VERSIONHI
658 VERSIONLO
659 VERSIONP
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CPP
668 INSTALL_PROGRAM
669 INSTALL_SCRIPT
670 INSTALL_DATA
671 RANLIB
672 AUTOCONF
673 STRIP
674 AS
675 CP
676 LEX
677 YACC
678 M_OR_MM
679 GREP
680 EGREP
681 sdccconf_h_dir_separator
682 include_dir_suffix
683 lib_dir_suffix
684 OPT_DISABLE_MCS51
685 OPT_DISABLE_GBZ80
686 OPT_DISABLE_Z80
687 OPT_DISABLE_AVR
688 OPT_DISABLE_DS390
689 OPT_DISABLE_DS400
690 OPT_DISABLE_PIC
691 OPT_DISABLE_PIC16
692 OPT_DISABLE_XA51
693 OPT_DISABLE_HC08
694 OPT_DISABLE_UCSIM
695 OPT_DISABLE_DEVICE_LIB
696 OPT_DISABLE_PACKIHX
697 OPT_DISABLE_SDCPP
698 OPT_DISABLE_SDCDB
699 OPT_ENABLE_DOC
700 LYX
701 LATEX2HTML
702 PDFLATEX
703 PDFOPT
704 MAKEINDEX
705 OPT_ENABLE_LIBGC
706 subdirs
707 LIBOBJS
708 LTLIBOBJS'
709 ac_subst_files=''
710       ac_precious_vars='build_alias
711 host_alias
712 target_alias
713 CC
714 CFLAGS
715 LDFLAGS
716 LIBS
717 CPPFLAGS
718 CPP
719 sdccconf_h_dir_separator
720 include_dir_suffix
721 lib_dir_suffix
722 docdir'
723 ac_subdirs_all='support/cpp2
724 support/packihx
725 sim/ucsim
726 debugger/mcs51
727 device/lib/pic
728 device/lib/pic16'
729
730 # Initialize some variables set by options.
731 ac_init_help=
732 ac_init_version=false
733 # The variables have the same names as the options, with
734 # dashes changed to underlines.
735 cache_file=/dev/null
736 exec_prefix=NONE
737 no_create=
738 no_recursion=
739 prefix=NONE
740 program_prefix=NONE
741 program_suffix=NONE
742 program_transform_name=s,x,x,
743 silent=
744 site=
745 srcdir=
746 verbose=
747 x_includes=NONE
748 x_libraries=NONE
749
750 # Installation directory options.
751 # These are left unexpanded so users can "make install exec_prefix=/foo"
752 # and all the variables that are supposed to be based on exec_prefix
753 # by default will actually change.
754 # Use braces instead of parens because sh, perl, etc. also accept them.
755 # (The list follows the same order as the GNU Coding Standards.)
756 bindir='${exec_prefix}/bin'
757 sbindir='${exec_prefix}/sbin'
758 libexecdir='${exec_prefix}/libexec'
759 datarootdir='${prefix}/share'
760 datadir='${datarootdir}'
761 sysconfdir='${prefix}/etc'
762 sharedstatedir='${prefix}/com'
763 localstatedir='${prefix}/var'
764 includedir='${prefix}/include'
765 oldincludedir='/usr/include'
766 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
767 infodir='${datarootdir}/info'
768 htmldir='${docdir}'
769 dvidir='${docdir}'
770 pdfdir='${docdir}'
771 psdir='${docdir}'
772 libdir='${exec_prefix}/lib'
773 localedir='${datarootdir}/locale'
774 mandir='${datarootdir}/man'
775
776 ac_prev=
777 ac_dashdash=
778 for ac_option
779 do
780   # If the previous option needs an argument, assign it.
781   if test -n "$ac_prev"; then
782     eval $ac_prev=\$ac_option
783     ac_prev=
784     continue
785   fi
786
787   case $ac_option in
788   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789   *)    ac_optarg=yes ;;
790   esac
791
792   # Accept the important Cygnus configure options, so we can diagnose typos.
793
794   case $ac_dashdash$ac_option in
795   --)
796     ac_dashdash=yes ;;
797
798   -bindir | --bindir | --bindi | --bind | --bin | --bi)
799     ac_prev=bindir ;;
800   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
801     bindir=$ac_optarg ;;
802
803   -build | --build | --buil | --bui | --bu)
804     ac_prev=build_alias ;;
805   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
806     build_alias=$ac_optarg ;;
807
808   -cache-file | --cache-file | --cache-fil | --cache-fi \
809   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
810     ac_prev=cache_file ;;
811   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
812   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
813     cache_file=$ac_optarg ;;
814
815   --config-cache | -C)
816     cache_file=config.cache ;;
817
818   -datadir | --datadir | --datadi | --datad)
819     ac_prev=datadir ;;
820   -datadir=* | --datadir=* | --datadi=* | --datad=*)
821     datadir=$ac_optarg ;;
822
823   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
824   | --dataroo | --dataro | --datar)
825     ac_prev=datarootdir ;;
826   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
827   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
828     datarootdir=$ac_optarg ;;
829
830   -disable-* | --disable-*)
831     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
832     # Reject names that are not valid shell variable names.
833     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
834       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
835    { (exit 1); exit 1; }; }
836     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
837     eval enable_$ac_feature=no ;;
838
839   -docdir | --docdir | --docdi | --doc | --do)
840     ac_prev=docdir ;;
841   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842     docdir=$ac_optarg ;;
843
844   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845     ac_prev=dvidir ;;
846   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847     dvidir=$ac_optarg ;;
848
849   -enable-* | --enable-*)
850     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851     # Reject names that are not valid shell variable names.
852     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854    { (exit 1); exit 1; }; }
855     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856     eval enable_$ac_feature=\$ac_optarg ;;
857
858   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860   | --exec | --exe | --ex)
861     ac_prev=exec_prefix ;;
862   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864   | --exec=* | --exe=* | --ex=*)
865     exec_prefix=$ac_optarg ;;
866
867   -gas | --gas | --ga | --g)
868     # Obsolete; use --with-gas.
869     with_gas=yes ;;
870
871   -help | --help | --hel | --he | -h)
872     ac_init_help=long ;;
873   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874     ac_init_help=recursive ;;
875   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876     ac_init_help=short ;;
877
878   -host | --host | --hos | --ho)
879     ac_prev=host_alias ;;
880   -host=* | --host=* | --hos=* | --ho=*)
881     host_alias=$ac_optarg ;;
882
883   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884     ac_prev=htmldir ;;
885   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886   | --ht=*)
887     htmldir=$ac_optarg ;;
888
889   -includedir | --includedir | --includedi | --included | --include \
890   | --includ | --inclu | --incl | --inc)
891     ac_prev=includedir ;;
892   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893   | --includ=* | --inclu=* | --incl=* | --inc=*)
894     includedir=$ac_optarg ;;
895
896   -infodir | --infodir | --infodi | --infod | --info | --inf)
897     ac_prev=infodir ;;
898   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899     infodir=$ac_optarg ;;
900
901   -libdir | --libdir | --libdi | --libd)
902     ac_prev=libdir ;;
903   -libdir=* | --libdir=* | --libdi=* | --libd=*)
904     libdir=$ac_optarg ;;
905
906   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907   | --libexe | --libex | --libe)
908     ac_prev=libexecdir ;;
909   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910   | --libexe=* | --libex=* | --libe=*)
911     libexecdir=$ac_optarg ;;
912
913   -localedir | --localedir | --localedi | --localed | --locale)
914     ac_prev=localedir ;;
915   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916     localedir=$ac_optarg ;;
917
918   -localstatedir | --localstatedir | --localstatedi | --localstated \
919   | --localstate | --localstat | --localsta | --localst | --locals)
920     ac_prev=localstatedir ;;
921   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
922   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
923     localstatedir=$ac_optarg ;;
924
925   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926     ac_prev=mandir ;;
927   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928     mandir=$ac_optarg ;;
929
930   -nfp | --nfp | --nf)
931     # Obsolete; use --without-fp.
932     with_fp=no ;;
933
934   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935   | --no-cr | --no-c | -n)
936     no_create=yes ;;
937
938   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940     no_recursion=yes ;;
941
942   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944   | --oldin | --oldi | --old | --ol | --o)
945     ac_prev=oldincludedir ;;
946   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949     oldincludedir=$ac_optarg ;;
950
951   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952     ac_prev=prefix ;;
953   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954     prefix=$ac_optarg ;;
955
956   -program-prefix | --program-prefix | --program-prefi | --program-pref \
957   | --program-pre | --program-pr | --program-p)
958     ac_prev=program_prefix ;;
959   -program-prefix=* | --program-prefix=* | --program-prefi=* \
960   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961     program_prefix=$ac_optarg ;;
962
963   -program-suffix | --program-suffix | --program-suffi | --program-suff \
964   | --program-suf | --program-su | --program-s)
965     ac_prev=program_suffix ;;
966   -program-suffix=* | --program-suffix=* | --program-suffi=* \
967   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968     program_suffix=$ac_optarg ;;
969
970   -program-transform-name | --program-transform-name \
971   | --program-transform-nam | --program-transform-na \
972   | --program-transform-n | --program-transform- \
973   | --program-transform | --program-transfor \
974   | --program-transfo | --program-transf \
975   | --program-trans | --program-tran \
976   | --progr-tra | --program-tr | --program-t)
977     ac_prev=program_transform_name ;;
978   -program-transform-name=* | --program-transform-name=* \
979   | --program-transform-nam=* | --program-transform-na=* \
980   | --program-transform-n=* | --program-transform-=* \
981   | --program-transform=* | --program-transfor=* \
982   | --program-transfo=* | --program-transf=* \
983   | --program-trans=* | --program-tran=* \
984   | --progr-tra=* | --program-tr=* | --program-t=*)
985     program_transform_name=$ac_optarg ;;
986
987   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988     ac_prev=pdfdir ;;
989   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990     pdfdir=$ac_optarg ;;
991
992   -psdir | --psdir | --psdi | --psd | --ps)
993     ac_prev=psdir ;;
994   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995     psdir=$ac_optarg ;;
996
997   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998   | -silent | --silent | --silen | --sile | --sil)
999     silent=yes ;;
1000
1001   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002     ac_prev=sbindir ;;
1003   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004   | --sbi=* | --sb=*)
1005     sbindir=$ac_optarg ;;
1006
1007   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009   | --sharedst | --shareds | --shared | --share | --shar \
1010   | --sha | --sh)
1011     ac_prev=sharedstatedir ;;
1012   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015   | --sha=* | --sh=*)
1016     sharedstatedir=$ac_optarg ;;
1017
1018   -site | --site | --sit)
1019     ac_prev=site ;;
1020   -site=* | --site=* | --sit=*)
1021     site=$ac_optarg ;;
1022
1023   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024     ac_prev=srcdir ;;
1025   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026     srcdir=$ac_optarg ;;
1027
1028   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029   | --syscon | --sysco | --sysc | --sys | --sy)
1030     ac_prev=sysconfdir ;;
1031   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033     sysconfdir=$ac_optarg ;;
1034
1035   -target | --target | --targe | --targ | --tar | --ta | --t)
1036     ac_prev=target_alias ;;
1037   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038     target_alias=$ac_optarg ;;
1039
1040   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041     verbose=yes ;;
1042
1043   -version | --version | --versio | --versi | --vers | -V)
1044     ac_init_version=: ;;
1045
1046   -with-* | --with-*)
1047     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1048     # Reject names that are not valid shell variable names.
1049     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050       { echo "$as_me: error: invalid package name: $ac_package" >&2
1051    { (exit 1); exit 1; }; }
1052     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1053     eval with_$ac_package=\$ac_optarg ;;
1054
1055   -without-* | --without-*)
1056     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059       { echo "$as_me: error: invalid package name: $ac_package" >&2
1060    { (exit 1); exit 1; }; }
1061     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1062     eval with_$ac_package=no ;;
1063
1064   --x)
1065     # Obsolete; use --with-x.
1066     with_x=yes ;;
1067
1068   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1069   | --x-incl | --x-inc | --x-in | --x-i)
1070     ac_prev=x_includes ;;
1071   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1072   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1073     x_includes=$ac_optarg ;;
1074
1075   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1076   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1077     ac_prev=x_libraries ;;
1078   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1079   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1080     x_libraries=$ac_optarg ;;
1081
1082   -*) { echo "$as_me: error: unrecognized option: $ac_option
1083 Try \`$0 --help' for more information." >&2
1084    { (exit 1); exit 1; }; }
1085     ;;
1086
1087   *=*)
1088     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1089     # Reject names that are not valid shell variable names.
1090     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1091       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1092    { (exit 1); exit 1; }; }
1093     eval $ac_envvar=\$ac_optarg
1094     export $ac_envvar ;;
1095
1096   *)
1097     # FIXME: should be removed in autoconf 3.0.
1098     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1099     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1101     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1102     ;;
1103
1104   esac
1105 done
1106
1107 if test -n "$ac_prev"; then
1108   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1109   { echo "$as_me: error: missing argument to $ac_option" >&2
1110    { (exit 1); exit 1; }; }
1111 fi
1112
1113 # Be sure to have absolute directory names.
1114 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1115                 datadir sysconfdir sharedstatedir localstatedir includedir \
1116                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1117                 libdir localedir mandir
1118 do
1119   eval ac_val=\$$ac_var
1120   case $ac_val in
1121     [\\/$]* | ?:[\\/]* )  continue;;
1122     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123   esac
1124   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1125    { (exit 1); exit 1; }; }
1126 done
1127
1128 # There might be people who depend on the old broken behavior: `$host'
1129 # used to hold the argument of --host etc.
1130 # FIXME: To remove some day.
1131 build=$build_alias
1132 host=$host_alias
1133 target=$target_alias
1134
1135 # FIXME: To remove some day.
1136 if test "x$host_alias" != x; then
1137   if test "x$build_alias" = x; then
1138     cross_compiling=maybe
1139     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1140     If a cross compiler is detected then cross compile mode will be used." >&2
1141   elif test "x$build_alias" != "x$host_alias"; then
1142     cross_compiling=yes
1143   fi
1144 fi
1145
1146 ac_tool_prefix=
1147 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1148
1149 test "$silent" = yes && exec 6>/dev/null
1150
1151
1152 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1153 ac_ls_di=`ls -di .` &&
1154 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1155   { echo "$as_me: error: Working directory cannot be determined" >&2
1156    { (exit 1); exit 1; }; }
1157 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158   { echo "$as_me: error: pwd does not report name of working directory" >&2
1159    { (exit 1); exit 1; }; }
1160
1161
1162 # Find the source files, if location was not specified.
1163 if test -z "$srcdir"; then
1164   ac_srcdir_defaulted=yes
1165   # Try the directory containing this script, then the parent directory.
1166   ac_confdir=`$as_dirname -- "$0" ||
1167 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1168          X"$0" : 'X\(//\)[^/]' \| \
1169          X"$0" : 'X\(//\)$' \| \
1170          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1171 echo X"$0" |
1172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173             s//\1/
1174             q
1175           }
1176           /^X\(\/\/\)[^/].*/{
1177             s//\1/
1178             q
1179           }
1180           /^X\(\/\/\)$/{
1181             s//\1/
1182             q
1183           }
1184           /^X\(\/\).*/{
1185             s//\1/
1186             q
1187           }
1188           s/.*/./; q'`
1189   srcdir=$ac_confdir
1190   if test ! -r "$srcdir/$ac_unique_file"; then
1191     srcdir=..
1192   fi
1193 else
1194   ac_srcdir_defaulted=no
1195 fi
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1198   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1201 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1202 ac_abs_confdir=`(
1203         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1204    { (exit 1); exit 1; }; }
1205         pwd)`
1206 # When building in place, set srcdir=.
1207 if test "$ac_abs_confdir" = "$ac_pwd"; then
1208   srcdir=.
1209 fi
1210 # Remove unnecessary trailing slashes from srcdir.
1211 # Double slashes in file names in object file debugging info
1212 # mess up M-x gdb in Emacs.
1213 case $srcdir in
1214 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1215 esac
1216 for ac_var in $ac_precious_vars; do
1217   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1218   eval ac_env_${ac_var}_value=\$${ac_var}
1219   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1220   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1221 done
1222
1223 #
1224 # Report the --help message.
1225 #
1226 if test "$ac_init_help" = "long"; then
1227   # Omit some internal or obsolete options to make the list less imposing.
1228   # This message is too long to be a string in the A/UX 3.1 sh.
1229   cat <<_ACEOF
1230 \`configure' configures sdcc 2.7.2 to adapt to many kinds of systems.
1231
1232 Usage: $0 [OPTION]... [VAR=VALUE]...
1233
1234 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1235 VAR=VALUE.  See below for descriptions of some of the useful variables.
1236
1237 Defaults for the options are specified in brackets.
1238
1239 Configuration:
1240   -h, --help              display this help and exit
1241       --help=short        display options specific to this package
1242       --help=recursive    display the short help of all the included packages
1243   -V, --version           display version information and exit
1244   -q, --quiet, --silent   do not print \`checking...' messages
1245       --cache-file=FILE   cache test results in FILE [disabled]
1246   -C, --config-cache      alias for \`--cache-file=config.cache'
1247   -n, --no-create         do not create output files
1248       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1249
1250 Installation directories:
1251   --prefix=PREFIX         install architecture-independent files in PREFIX
1252                           [$ac_default_prefix]
1253   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1254                           [PREFIX]
1255
1256 By default, \`make install' will install all the files in
1257 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1258 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1259 for instance \`--prefix=\$HOME'.
1260
1261 For better control, use the options below.
1262
1263 Fine tuning of the installation directories:
1264   --bindir=DIR           user executables [EPREFIX/bin]
1265   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1266   --libexecdir=DIR       program executables [EPREFIX/libexec]
1267   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1268   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1269   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1270   --libdir=DIR           object code libraries [EPREFIX/lib]
1271   --includedir=DIR       C header files [PREFIX/include]
1272   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1273   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1274   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1275   --infodir=DIR          info documentation [DATAROOTDIR/info]
1276   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1277   --mandir=DIR           man documentation [DATAROOTDIR/man]
1278   --docdir=DIR           documentation root [DATAROOTDIR/doc/sdcc]
1279   --htmldir=DIR          html documentation [DOCDIR]
1280   --dvidir=DIR           dvi documentation [DOCDIR]
1281   --pdfdir=DIR           pdf documentation [DOCDIR]
1282   --psdir=DIR            ps documentation [DOCDIR]
1283 _ACEOF
1284
1285   cat <<\_ACEOF
1286
1287 Program names:
1288   --program-prefix=PREFIX            prepend PREFIX to installed program names
1289   --program-suffix=SUFFIX            append SUFFIX to installed program names
1290   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1291 _ACEOF
1292 fi
1293
1294 if test -n "$ac_init_help"; then
1295   case $ac_init_help in
1296      short | recursive ) echo "Configuration of sdcc 2.7.2:";;
1297    esac
1298   cat <<\_ACEOF
1299
1300 Optional Features:
1301   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1302   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1303   --disable-mcs51-port    Excludes the Intel mcs51 port
1304   --disable-gbz80-port    Excludes the Gameboy gbz80 port
1305   --disable-z80-port      Excludes the z80 port
1306   --disable-avr-port      Excludes the AVR port
1307   --disable-ds390-port    Excludes the DS390 port
1308   --disable-ds400-port    Excludes the DS400 port
1309   --disable-pic-port      Excludes the PIC port
1310   --disable-pic16-port    Excludes the PIC16 port
1311   --disable-xa51-port     Excludes the XA51 port
1312   --disable-hc08-port     Excludes the HC08 port
1313   --disable-ucsim         Disables configuring and building of ucsim
1314   --disable-device-lib    Disables building device libraries
1315   --disable-packihx       Disables building packihx
1316   --disable-sdcpp         Disables building sdcpp
1317   --disable-sdcdb         Disables building sdcdb
1318   --enable-doc            Enables building the documentation
1319   --enable-libgc          Use the Bohem memory allocator. Lower runtime
1320                           footprint.
1321
1322 Some influential environment variables:
1323   CC          C compiler command
1324   CFLAGS      C compiler flags
1325   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1326               nonstandard directory <lib dir>
1327   LIBS        libraries to pass to the linker, e.g. -l<library>
1328   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329               you have headers in a nonstandard directory <include dir>
1330   CPP         C preprocessor
1331   sdccconf_h_dir_separator
1332               needed in sdccconf.h: either "/" (default) or "\\"
1333   include_dir_suffix
1334               appended to datadir to define SDCC's include directory
1335   lib_dir_suffix
1336               appended to datadir to define SDCC's library root directory
1337   docdir      documentation installation directory
1338
1339 Use these variables to override the choices made by `configure' or to help
1340 it to find libraries and programs with nonstandard names/locations.
1341
1342 Report bugs to <sdcc-devel@lists.sourceforge.net>.
1343 _ACEOF
1344 ac_status=$?
1345 fi
1346
1347 if test "$ac_init_help" = "recursive"; then
1348   # If there are subdirs, report their specific --help.
1349   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1350     test -d "$ac_dir" || continue
1351     ac_builddir=.
1352
1353 case "$ac_dir" in
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *)
1356   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1357   # A ".." for each directory in $ac_dir_suffix.
1358   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1359   case $ac_top_builddir_sub in
1360   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362   esac ;;
1363 esac
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1368
1369 case $srcdir in
1370   .)  # We are building in place.
1371     ac_srcdir=.
1372     ac_top_srcdir=$ac_top_builddir_sub
1373     ac_abs_top_srcdir=$ac_pwd ;;
1374   [\\/]* | ?:[\\/]* )  # Absolute name.
1375     ac_srcdir=$srcdir$ac_dir_suffix;
1376     ac_top_srcdir=$srcdir
1377     ac_abs_top_srcdir=$srcdir ;;
1378   *) # Relative name.
1379     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380     ac_top_srcdir=$ac_top_build_prefix$srcdir
1381     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382 esac
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1384
1385     cd "$ac_dir" || { ac_status=$?; continue; }
1386     # Check for guested configure.
1387     if test -f "$ac_srcdir/configure.gnu"; then
1388       echo &&
1389       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390     elif test -f "$ac_srcdir/configure"; then
1391       echo &&
1392       $SHELL "$ac_srcdir/configure" --help=recursive
1393     else
1394       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395     fi || ac_status=$?
1396     cd "$ac_pwd" || { ac_status=$?; break; }
1397   done
1398 fi
1399
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1402   cat <<\_ACEOF
1403 sdcc configure 2.7.2
1404 generated by GNU Autoconf 2.61
1405
1406 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1407 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1410 _ACEOF
1411   exit
1412 fi
1413 cat >config.log <<_ACEOF
1414 This file contains any messages produced by compilers while
1415 running configure, to aid debugging if configure makes a mistake.
1416
1417 It was created by sdcc $as_me 2.7.2, which was
1418 generated by GNU Autoconf 2.61.  Invocation command line was
1419
1420   $ $0 $@
1421
1422 _ACEOF
1423 exec 5>>config.log
1424 {
1425 cat <<_ASUNAME
1426 ## --------- ##
1427 ## Platform. ##
1428 ## --------- ##
1429
1430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1435
1436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1437 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1438
1439 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1440 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1442 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1443 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1444 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1445 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1446
1447 _ASUNAME
1448
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452   IFS=$as_save_IFS
1453   test -z "$as_dir" && as_dir=.
1454   echo "PATH: $as_dir"
1455 done
1456 IFS=$as_save_IFS
1457
1458 } >&5
1459
1460 cat >&5 <<_ACEOF
1461
1462
1463 ## ----------- ##
1464 ## Core tests. ##
1465 ## ----------- ##
1466
1467 _ACEOF
1468
1469
1470 # Keep a trace of the command line.
1471 # Strip out --no-create and --no-recursion so they do not pile up.
1472 # Strip out --silent because we don't want to record it for future runs.
1473 # Also quote any args containing shell meta-characters.
1474 # Make two passes to allow for proper duplicate-argument suppression.
1475 ac_configure_args=
1476 ac_configure_args0=
1477 ac_configure_args1=
1478 ac_must_keep_next=false
1479 for ac_pass in 1 2
1480 do
1481   for ac_arg
1482   do
1483     case $ac_arg in
1484     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1485     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1486     | -silent | --silent | --silen | --sile | --sil)
1487       continue ;;
1488     *\'*)
1489       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1490     esac
1491     case $ac_pass in
1492     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1493     2)
1494       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1495       if test $ac_must_keep_next = true; then
1496         ac_must_keep_next=false # Got value, back to normal.
1497       else
1498         case $ac_arg in
1499           *=* | --config-cache | -C | -disable-* | --disable-* \
1500           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1501           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1502           | -with-* | --with-* | -without-* | --without-* | --x)
1503             case "$ac_configure_args0 " in
1504               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1505             esac
1506             ;;
1507           -* ) ac_must_keep_next=true ;;
1508         esac
1509       fi
1510       ac_configure_args="$ac_configure_args '$ac_arg'"
1511       ;;
1512     esac
1513   done
1514 done
1515 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1516 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1517
1518 # When interrupted or exit'd, cleanup temporary files, and complete
1519 # config.log.  We remove comments because anyway the quotes in there
1520 # would cause problems or look ugly.
1521 # WARNING: Use '\'' to represent an apostrophe within the trap.
1522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1523 trap 'exit_status=$?
1524   # Save into config.log some information that might help in debugging.
1525   {
1526     echo
1527
1528     cat <<\_ASBOX
1529 ## ---------------- ##
1530 ## Cache variables. ##
1531 ## ---------------- ##
1532 _ASBOX
1533     echo
1534     # The following way of writing the cache mishandles newlines in values,
1535 (
1536   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1537     eval ac_val=\$$ac_var
1538     case $ac_val in #(
1539     *${as_nl}*)
1540       case $ac_var in #(
1541       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1542 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1543       esac
1544       case $ac_var in #(
1545       _ | IFS | as_nl) ;; #(
1546       *) $as_unset $ac_var ;;
1547       esac ;;
1548     esac
1549   done
1550   (set) 2>&1 |
1551     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1552     *${as_nl}ac_space=\ *)
1553       sed -n \
1554         "s/'\''/'\''\\\\'\'''\''/g;
1555           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1556       ;; #(
1557     *)
1558       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1559       ;;
1560     esac |
1561     sort
1562 )
1563     echo
1564
1565     cat <<\_ASBOX
1566 ## ----------------- ##
1567 ## Output variables. ##
1568 ## ----------------- ##
1569 _ASBOX
1570     echo
1571     for ac_var in $ac_subst_vars
1572     do
1573       eval ac_val=\$$ac_var
1574       case $ac_val in
1575       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576       esac
1577       echo "$ac_var='\''$ac_val'\''"
1578     done | sort
1579     echo
1580
1581     if test -n "$ac_subst_files"; then
1582       cat <<\_ASBOX
1583 ## ------------------- ##
1584 ## File substitutions. ##
1585 ## ------------------- ##
1586 _ASBOX
1587       echo
1588       for ac_var in $ac_subst_files
1589       do
1590         eval ac_val=\$$ac_var
1591         case $ac_val in
1592         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1593         esac
1594         echo "$ac_var='\''$ac_val'\''"
1595       done | sort
1596       echo
1597     fi
1598
1599     if test -s confdefs.h; then
1600       cat <<\_ASBOX
1601 ## ----------- ##
1602 ## confdefs.h. ##
1603 ## ----------- ##
1604 _ASBOX
1605       echo
1606       cat confdefs.h
1607       echo
1608     fi
1609     test "$ac_signal" != 0 &&
1610       echo "$as_me: caught signal $ac_signal"
1611     echo "$as_me: exit $exit_status"
1612   } >&5
1613   rm -f core *.core core.conftest.* &&
1614     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1615     exit $exit_status
1616 ' 0
1617 for ac_signal in 1 2 13 15; do
1618   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1619 done
1620 ac_signal=0
1621
1622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1623 rm -f -r conftest* confdefs.h
1624
1625 # Predefined preprocessor variables.
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_NAME "$PACKAGE_NAME"
1629 _ACEOF
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1634 _ACEOF
1635
1636
1637 cat >>confdefs.h <<_ACEOF
1638 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1639 _ACEOF
1640
1641
1642 cat >>confdefs.h <<_ACEOF
1643 #define PACKAGE_STRING "$PACKAGE_STRING"
1644 _ACEOF
1645
1646
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1649 _ACEOF
1650
1651
1652 # Let the site file select an alternate cache file if it wants to.
1653 # Prefer explicitly selected file to automatically selected ones.
1654 if test -n "$CONFIG_SITE"; then
1655   set x "$CONFIG_SITE"
1656 elif test "x$prefix" != xNONE; then
1657   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1658 else
1659   set x "$ac_default_prefix/share/config.site" \
1660         "$ac_default_prefix/etc/config.site"
1661 fi
1662 shift
1663 for ac_site_file
1664 do
1665   if test -r "$ac_site_file"; then
1666     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1667 echo "$as_me: loading site script $ac_site_file" >&6;}
1668     sed 's/^/| /' "$ac_site_file" >&5
1669     . "$ac_site_file"
1670   fi
1671 done
1672
1673 if test -r "$cache_file"; then
1674   # Some versions of bash will fail to source /dev/null (special
1675   # files actually), so we avoid doing that.
1676   if test -f "$cache_file"; then
1677     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1678 echo "$as_me: loading cache $cache_file" >&6;}
1679     case $cache_file in
1680       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1681       *)                      . "./$cache_file";;
1682     esac
1683   fi
1684 else
1685   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1686 echo "$as_me: creating cache $cache_file" >&6;}
1687   >$cache_file
1688 fi
1689
1690 # Check that the precious variables saved in the cache have kept the same
1691 # value.
1692 ac_cache_corrupted=false
1693 for ac_var in $ac_precious_vars; do
1694   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1695   eval ac_new_set=\$ac_env_${ac_var}_set
1696   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1697   eval ac_new_val=\$ac_env_${ac_var}_value
1698   case $ac_old_set,$ac_new_set in
1699     set,)
1700       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1702       ac_cache_corrupted=: ;;
1703     ,set)
1704       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1705 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1706       ac_cache_corrupted=: ;;
1707     ,);;
1708     *)
1709       if test "x$ac_old_val" != "x$ac_new_val"; then
1710         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1711 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1712         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1713 echo "$as_me:   former value:  $ac_old_val" >&2;}
1714         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1715 echo "$as_me:   current value: $ac_new_val" >&2;}
1716         ac_cache_corrupted=:
1717       fi;;
1718   esac
1719   # Pass precious variables to config.status.
1720   if test "$ac_new_set" = set; then
1721     case $ac_new_val in
1722     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1723     *) ac_arg=$ac_var=$ac_new_val ;;
1724     esac
1725     case " $ac_configure_args " in
1726       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1727       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1728     esac
1729   fi
1730 done
1731 if $ac_cache_corrupted; then
1732   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1733 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1734   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1735 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1736    { (exit 1); exit 1; }; }
1737 fi
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763 ac_ext=c
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768
1769
1770
1771 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1772
1773
1774 for ac_prog in gawk mawk nawk awk
1775 do
1776   # Extract the first word of "$ac_prog", so it can be a program name with args.
1777 set dummy $ac_prog; ac_word=$2
1778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1780 if test "${ac_cv_prog_AWK+set}" = set; then
1781   echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783   if test -n "$AWK"; then
1784   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1785 else
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
1789   IFS=$as_save_IFS
1790   test -z "$as_dir" && as_dir=.
1791   for ac_exec_ext in '' $ac_executable_extensions; do
1792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1793     ac_cv_prog_AWK="$ac_prog"
1794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795     break 2
1796   fi
1797 done
1798 done
1799 IFS=$as_save_IFS
1800
1801 fi
1802 fi
1803 AWK=$ac_cv_prog_AWK
1804 if test -n "$AWK"; then
1805   { echo "$as_me:$LINENO: result: $AWK" >&5
1806 echo "${ECHO_T}$AWK" >&6; }
1807 else
1808   { echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6; }
1810 fi
1811
1812
1813   test -n "$AWK" && break
1814 done
1815
1816
1817 VERSION=$PACKAGE_VERSION
1818 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1819 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1820 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1821
1822 { echo "$as_me:$LINENO: result: ${VERSION}" >&5
1823 echo "${ECHO_T}${VERSION}" >&6; }
1824
1825
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define SDCC_VERSION_LO ${VERSIONLO}
1830 _ACEOF
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define SDCC_VERSION_HI ${VERSIONHI}
1834 _ACEOF
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define SDCC_VERSION_P ${VERSIONP}
1838 _ACEOF
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define SDCC_VERSION_STR "${VERSION}"
1842 _ACEOF
1843
1844 test "$program_prefix" != NONE &&
1845   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1846 # Use a double $ so make ignores it.
1847 test "$program_suffix" != NONE &&
1848   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1849 # Double any \ or $.  echo might interpret backslashes.
1850 # By default was `s,x,x', remove it if useless.
1851 cat <<\_ACEOF >conftest.sed
1852 s/[\\$]/&&/g;s/;s,x,x,$//
1853 _ACEOF
1854 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1855 rm -f conftest.sed
1856
1857 sdcc_cv_version=$VERSION
1858 sdcc_cv_versionhi=$VERSIONHI
1859 sdcc_cv_versionlo=$VERSIONLO
1860 sdcc_cv_versionp=$VERSIONP
1861
1862
1863 # Required programs
1864 # ===========================================================================
1865 ac_ext=c
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$CC"; then
1879   ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1888     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894 IFS=$as_save_IFS
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900   { echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6; }
1902 else
1903   { echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6; }
1905 fi
1906
1907
1908 fi
1909 if test -z "$ac_cv_prog_CC"; then
1910   ac_ct_CC=$CC
1911   # Extract the first word of "gcc", so it can be a program name with args.
1912 set dummy gcc; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   if test -n "$ac_ct_CC"; then
1919   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928     ac_cv_prog_ac_ct_CC="gcc"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1934 IFS=$as_save_IFS
1935
1936 fi
1937 fi
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6; }
1942 else
1943   { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1945 fi
1946
1947   if test "x$ac_ct_CC" = x; then
1948     CC=""
1949   else
1950     case $cross_compiling:$ac_tool_warned in
1951 yes:)
1952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1953 whose name does not start with the host triplet.  If you think this
1954 configuration is useful to you, please write to autoconf@gnu.org." >&5
1955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1956 whose name does not start with the host triplet.  If you think this
1957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1958 ac_tool_warned=yes ;;
1959 esac
1960     CC=$ac_ct_CC
1961   fi
1962 else
1963   CC="$ac_cv_prog_CC"
1964 fi
1965
1966 if test -z "$CC"; then
1967           if test -n "$ac_tool_prefix"; then
1968     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}cc; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   if test -n "$CC"; then
1976   ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981   IFS=$as_save_IFS
1982   test -z "$as_dir" && as_dir=.
1983   for ac_exec_ext in '' $ac_executable_extensions; do
1984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985     ac_cv_prog_CC="${ac_tool_prefix}cc"
1986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988   fi
1989 done
1990 done
1991 IFS=$as_save_IFS
1992
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997   { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
1999 else
2000   { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2002 fi
2003
2004
2005   fi
2006 fi
2007 if test -z "$CC"; then
2008   # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$CC"; then
2016   ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018   ac_prog_rejected=no
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2026     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2027        ac_prog_rejected=yes
2028        continue
2029      fi
2030     ac_cv_prog_CC="cc"
2031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032     break 2
2033   fi
2034 done
2035 done
2036 IFS=$as_save_IFS
2037
2038 if test $ac_prog_rejected = yes; then
2039   # We found a bogon in the path, so make sure we never use it.
2040   set dummy $ac_cv_prog_CC
2041   shift
2042   if test $# != 0; then
2043     # We chose a different compiler from the bogus one.
2044     # However, it has the same basename, so the bogon will be chosen
2045     # first if we set CC to just the basename; use the full file name.
2046     shift
2047     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2048   fi
2049 fi
2050 fi
2051 fi
2052 CC=$ac_cv_prog_CC
2053 if test -n "$CC"; then
2054   { echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6; }
2056 else
2057   { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2059 fi
2060
2061
2062 fi
2063 if test -z "$CC"; then
2064   if test -n "$ac_tool_prefix"; then
2065   for ac_prog in cl.exe
2066   do
2067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$CC"; then
2075   ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104     test -n "$CC" && break
2105   done
2106 fi
2107 if test -z "$CC"; then
2108   ac_ct_CC=$CC
2109   for ac_prog in cl.exe
2110 do
2111   # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$ac_ct_CC"; then
2119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_ac_ct_CC="$ac_prog"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148   test -n "$ac_ct_CC" && break
2149 done
2150
2151   if test "x$ac_ct_CC" = x; then
2152     CC=""
2153   else
2154     case $cross_compiling:$ac_tool_warned in
2155 yes:)
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet.  If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet.  If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2163 esac
2164     CC=$ac_ct_CC
2165   fi
2166 fi
2167
2168 fi
2169
2170
2171 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details." >&2;}
2175    { (exit 1); exit 1; }; }
2176
2177 # Provide some information about the compiler.
2178 echo "$as_me:$LINENO: checking for C compiler version" >&5
2179 ac_compiler=`set X $ac_compile; echo $2`
2180 { (ac_try="$ac_compiler --version >&5"
2181 case "(($ac_try" in
2182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183   *) ac_try_echo=$ac_try;;
2184 esac
2185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2186   (eval "$ac_compiler --version >&5") 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }
2190 { (ac_try="$ac_compiler -v >&5"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196   (eval "$ac_compiler -v >&5") 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2201 case "(($ac_try" in
2202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203   *) ac_try_echo=$ac_try;;
2204 esac
2205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2206   (eval "$ac_compiler -V >&5") 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }
2210
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h.  */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h.  */
2217
2218 int
2219 main ()
2220 {
2221
2222   ;
2223   return 0;
2224 }
2225 _ACEOF
2226 ac_clean_files_save=$ac_clean_files
2227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2230 # of exeext.
2231 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2234 #
2235 # List of possible output files, starting from the most likely.
2236 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2237 # only as a last resort.  b.out is created by i960 compilers.
2238 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2239 #
2240 # The IRIX 6 linker writes into existing files which may not be
2241 # executable, retaining their permissions.  Remove them first so a
2242 # subsequent execution test works.
2243 ac_rmfiles=
2244 for ac_file in $ac_files
2245 do
2246   case $ac_file in
2247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2248     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2249   esac
2250 done
2251 rm -f $ac_rmfiles
2252
2253 if { (ac_try="$ac_link_default"
2254 case "(($ac_try" in
2255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256   *) ac_try_echo=$ac_try;;
2257 esac
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259   (eval "$ac_link_default") 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; then
2263   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2265 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2266 # so that the user can short-circuit this test for compilers unknown to
2267 # Autoconf.
2268 for ac_file in $ac_files ''
2269 do
2270   test -f "$ac_file" || continue
2271   case $ac_file in
2272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2273         ;;
2274     [ab].out )
2275         # We found the default executable, but exeext='' is most
2276         # certainly right.
2277         break;;
2278     *.* )
2279         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2280         then :; else
2281            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282         fi
2283         # We set ac_cv_exeext here because the later test for it is not
2284         # safe: cross compilers may not add the suffix if given an `-o'
2285         # argument, so we may need to know it at that point already.
2286         # Even if this section looks crufty: it has the advantage of
2287         # actually working.
2288         break;;
2289     * )
2290         break;;
2291   esac
2292 done
2293 test "$ac_cv_exeext" = no && ac_cv_exeext=
2294
2295 else
2296   ac_file=''
2297 fi
2298
2299 { echo "$as_me:$LINENO: result: $ac_file" >&5
2300 echo "${ECHO_T}$ac_file" >&6; }
2301 if test -z "$ac_file"; then
2302   echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2304
2305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&2;}
2309    { (exit 77); exit 77; }; }
2310 fi
2311
2312 ac_exeext=$ac_cv_exeext
2313
2314 # Check that the compiler produces executables we can run.  If not, either
2315 # the compiler is broken, or we cross compile.
2316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2319 # If not cross compiling, check that we can run a simple program.
2320 if test "$cross_compiling" != yes; then
2321   if { ac_try='./$ac_file'
2322   { (case "(($ac_try" in
2323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324   *) ac_try_echo=$ac_try;;
2325 esac
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327   (eval "$ac_try") 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331     cross_compiling=no
2332   else
2333     if test "$cross_compiling" = maybe; then
2334         cross_compiling=yes
2335     else
2336         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'.
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&2;}
2342    { (exit 1); exit 1; }; }
2343     fi
2344   fi
2345 fi
2346 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2348
2349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2350 ac_clean_files=$ac_clean_files_save
2351 # Check that the compiler produces executables we can run.  If not, either
2352 # the compiler is broken, or we cross compile.
2353 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2355 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2356 echo "${ECHO_T}$cross_compiling" >&6; }
2357
2358 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2360 if { (ac_try="$ac_link"
2361 case "(($ac_try" in
2362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363   *) ac_try_echo=$ac_try;;
2364 esac
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366   (eval "$ac_link") 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; then
2370   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2371 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2372 # work properly (i.e., refer to `conftest.exe'), while it won't with
2373 # `rm'.
2374 for ac_file in conftest.exe conftest conftest.*; do
2375   test -f "$ac_file" || continue
2376   case $ac_file in
2377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2378     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379           break;;
2380     * ) break;;
2381   esac
2382 done
2383 else
2384   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2385 See \`config.log' for more details." >&5
2386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log' for more details." >&2;}
2388    { (exit 1); exit 1; }; }
2389 fi
2390
2391 rm -f conftest$ac_cv_exeext
2392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2394
2395 rm -f conftest.$ac_ext
2396 EXEEXT=$ac_cv_exeext
2397 ac_exeext=$EXEEXT
2398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2400 if test "${ac_cv_objext+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h.  */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h.  */
2409
2410 int
2411 main ()
2412 {
2413
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 rm -f conftest.o conftest.obj
2419 if { (ac_try="$ac_compile"
2420 case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_compile") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; then
2429   for ac_file in conftest.o conftest.obj conftest.*; do
2430   test -f "$ac_file" || continue;
2431   case $ac_file in
2432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2433     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2434        break;;
2435   esac
2436 done
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&2;}
2445    { (exit 1); exit 1; }; }
2446 fi
2447
2448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2449 fi
2450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2451 echo "${ECHO_T}$ac_cv_objext" >&6; }
2452 OBJEXT=$ac_cv_objext
2453 ac_objext=$OBJEXT
2454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469 #ifndef __GNUC__
2470        choke me
2471 #endif
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2479 case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484   (eval "$ac_compile") 2>conftest.er1
2485   ac_status=$?
2486   grep -v '^ *+' conftest.er1 >conftest.err
2487   rm -f conftest.er1
2488   cat conftest.err >&5
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); } && {
2491          test -z "$ac_c_werror_flag" ||
2492          test ! -s conftest.err
2493        } && test -s conftest.$ac_objext; then
2494   ac_compiler_gnu=yes
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499         ac_compiler_gnu=no
2500 fi
2501
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2504
2505 fi
2506 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2508 GCC=`test $ac_compiler_gnu = yes && echo yes`
2509 ac_test_CFLAGS=${CFLAGS+set}
2510 ac_save_CFLAGS=$CFLAGS
2511 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_cc_g+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   ac_save_c_werror_flag=$ac_c_werror_flag
2517    ac_c_werror_flag=yes
2518    ac_cv_prog_cc_g=no
2519    CFLAGS="-g"
2520    cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } && {
2549          test -z "$ac_c_werror_flag" ||
2550          test ! -s conftest.err
2551        } && test -s conftest.$ac_objext; then
2552   ac_cv_prog_cc_g=yes
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557         CFLAGS=""
2558       cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568
2569   ;
2570   return 0;
2571 }
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (ac_try="$ac_compile"
2575 case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580   (eval "$ac_compile") 2>conftest.er1
2581   ac_status=$?
2582   grep -v '^ *+' conftest.er1 >conftest.err
2583   rm -f conftest.er1
2584   cat conftest.err >&5
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); } && {
2587          test -z "$ac_c_werror_flag" ||
2588          test ! -s conftest.err
2589        } && test -s conftest.$ac_objext; then
2590   :
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595         ac_c_werror_flag=$ac_save_c_werror_flag
2596          CFLAGS="-g"
2597          cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603
2604 int
2605 main ()
2606 {
2607
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (ac_try="$ac_compile"
2614 case "(($ac_try" in
2615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616   *) ac_try_echo=$ac_try;;
2617 esac
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619   (eval "$ac_compile") 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } && {
2626          test -z "$ac_c_werror_flag" ||
2627          test ! -s conftest.err
2628        } && test -s conftest.$ac_objext; then
2629   ac_cv_prog_cc_g=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634
2635 fi
2636
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644    ac_c_werror_flag=$ac_save_c_werror_flag
2645 fi
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649   CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651   if test "$GCC" = yes; then
2652     CFLAGS="-g -O2"
2653   else
2654     CFLAGS="-g"
2655   fi
2656 else
2657   if test "$GCC" = yes; then
2658     CFLAGS="-O2"
2659   else
2660     CFLAGS=
2661   fi
2662 fi
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   ac_cv_prog_cc_c89=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684      char **p;
2685      int i;
2686 {
2687   return p[i];
2688 }
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2690 {
2691   char *s;
2692   va_list v;
2693   va_start (v,p);
2694   s = g (p, va_arg (v,int));
2695   va_end (v);
2696   return s;
2697 }
2698
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2700    function prototypes and stuff, but not '\xHH' hex character constants.
2701    These don't provoke an error unfortunately, instead are silently treated
2702    as 'x'.  The following induces an error, until -std is added to get
2703    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2704    array size at least.  It's necessary to write '\x00'==0 to get something
2705    that's true only with -std.  */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709    inside strings and character constants.  */
2710 #define FOO(x) 'x'
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2712
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2717 int argc;
2718 char **argv;
2719 int
2720 main ()
2721 {
2722 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 do
2730   CC="$ac_save_CC $ac_arg"
2731   rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compile") 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } && {
2745          test -z "$ac_c_werror_flag" ||
2746          test ! -s conftest.err
2747        } && test -s conftest.$ac_objext; then
2748   ac_cv_prog_cc_c89=$ac_arg
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753
2754 fi
2755
2756 rm -f core conftest.err conftest.$ac_objext
2757   test "x$ac_cv_prog_cc_c89" != "xno" && break
2758 done
2759 rm -f conftest.$ac_ext
2760 CC=$ac_save_CC
2761
2762 fi
2763 # AC_CACHE_VAL
2764 case "x$ac_cv_prog_cc_c89" in
2765   x)
2766     { echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6; } ;;
2768   xno)
2769     { echo "$as_me:$LINENO: result: unsupported" >&5
2770 echo "${ECHO_T}unsupported" >&6; } ;;
2771   *)
2772     CC="$CC $ac_cv_prog_cc_c89"
2773     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2775 esac
2776
2777
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2790 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2791 # On Suns, sometimes $CPP names a directory.
2792 if test -n "$CPP" && test -d "$CPP"; then
2793   CPP=
2794 fi
2795 if test -z "$CPP"; then
2796   if test "${ac_cv_prog_CPP+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799       # Double quotes because CPP needs to be expanded
2800     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2801     do
2802       ac_preproc_ok=false
2803 for ac_c_preproc_warn_flag in '' yes
2804 do
2805   # Use a header file that comes with gcc, so configuring glibc
2806   # with a fresh cross-compiler works.
2807   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2808   # <limits.h> exists even on freestanding compilers.
2809   # On the NeXT, cc -E runs the code through the compiler's parser,
2810   # not just through cpp. "Syntax error" is here to catch this case.
2811   cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817 #ifdef __STDC__
2818 # include <limits.h>
2819 #else
2820 # include <assert.h>
2821 #endif
2822                      Syntax error
2823 _ACEOF
2824 if { (ac_try="$ac_cpp conftest.$ac_ext"
2825 case "(($ac_try" in
2826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827   *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2831   ac_status=$?
2832   grep -v '^ *+' conftest.er1 >conftest.err
2833   rm -f conftest.er1
2834   cat conftest.err >&5
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); } >/dev/null && {
2837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2838          test ! -s conftest.err
2839        }; then
2840   :
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845   # Broken: fails on valid input.
2846 continue
2847 fi
2848
2849 rm -f conftest.err conftest.$ac_ext
2850
2851   # OK, works on sane cases.  Now check whether nonexistent headers
2852   # can be detected and how.
2853   cat >conftest.$ac_ext <<_ACEOF
2854 /* confdefs.h.  */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h.  */
2859 #include <ac_nonexistent.h>
2860 _ACEOF
2861 if { (ac_try="$ac_cpp conftest.$ac_ext"
2862 case "(($ac_try" in
2863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864   *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2868   ac_status=$?
2869   grep -v '^ *+' conftest.er1 >conftest.err
2870   rm -f conftest.er1
2871   cat conftest.err >&5
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); } >/dev/null && {
2874          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2875          test ! -s conftest.err
2876        }; then
2877   # Broken: success on invalid input.
2878 continue
2879 else
2880   echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883   # Passes both tests.
2884 ac_preproc_ok=:
2885 break
2886 fi
2887
2888 rm -f conftest.err conftest.$ac_ext
2889
2890 done
2891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2892 rm -f conftest.err conftest.$ac_ext
2893 if $ac_preproc_ok; then
2894   break
2895 fi
2896
2897     done
2898     ac_cv_prog_CPP=$CPP
2899
2900 fi
2901   CPP=$ac_cv_prog_CPP
2902 else
2903   ac_cv_prog_CPP=$CPP
2904 fi
2905 { echo "$as_me:$LINENO: result: $CPP" >&5
2906 echo "${ECHO_T}$CPP" >&6; }
2907 ac_preproc_ok=false
2908 for ac_c_preproc_warn_flag in '' yes
2909 do
2910   # Use a header file that comes with gcc, so configuring glibc
2911   # with a fresh cross-compiler works.
2912   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2913   # <limits.h> exists even on freestanding compilers.
2914   # On the NeXT, cc -E runs the code through the compiler's parser,
2915   # not just through cpp. "Syntax error" is here to catch this case.
2916   cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h.  */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h.  */
2922 #ifdef __STDC__
2923 # include <limits.h>
2924 #else
2925 # include <assert.h>
2926 #endif
2927                      Syntax error
2928 _ACEOF
2929 if { (ac_try="$ac_cpp conftest.$ac_ext"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } >/dev/null && {
2942          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2943          test ! -s conftest.err
2944        }; then
2945   :
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950   # Broken: fails on valid input.
2951 continue
2952 fi
2953
2954 rm -f conftest.err conftest.$ac_ext
2955
2956   # OK, works on sane cases.  Now check whether nonexistent headers
2957   # can be detected and how.
2958   cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964 #include <ac_nonexistent.h>
2965 _ACEOF
2966 if { (ac_try="$ac_cpp conftest.$ac_ext"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } >/dev/null && {
2979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2980          test ! -s conftest.err
2981        }; then
2982   # Broken: success on invalid input.
2983 continue
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988   # Passes both tests.
2989 ac_preproc_ok=:
2990 break
2991 fi
2992
2993 rm -f conftest.err conftest.$ac_ext
2994
2995 done
2996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2997 rm -f conftest.err conftest.$ac_ext
2998 if $ac_preproc_ok; then
2999   :
3000 else
3001   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3004 See \`config.log' for more details." >&2;}
3005    { (exit 1); exit 1; }; }
3006 fi
3007
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013
3014 ac_aux_dir=
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016   if test -f "$ac_dir/install-sh"; then
3017     ac_aux_dir=$ac_dir
3018     ac_install_sh="$ac_aux_dir/install-sh -c"
3019     break
3020   elif test -f "$ac_dir/install.sh"; then
3021     ac_aux_dir=$ac_dir
3022     ac_install_sh="$ac_aux_dir/install.sh -c"
3023     break
3024   elif test -f "$ac_dir/shtool"; then
3025     ac_aux_dir=$ac_dir
3026     ac_install_sh="$ac_aux_dir/shtool install -c"
3027     break
3028   fi
3029 done
3030 if test -z "$ac_aux_dir"; then
3031   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3033    { (exit 1); exit 1; }; }
3034 fi
3035
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3043
3044
3045 # Find a good install program.  We prefer a C program (faster),
3046 # so one script is as good as another.  But avoid the broken or
3047 # incompatible versions:
3048 # SysV /etc/install, /usr/sbin/install
3049 # SunOS /usr/etc/install
3050 # IRIX /sbin/install
3051 # AIX /bin/install
3052 # AmigaOS /C/install, which installs bootblocks on floppy discs
3053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3056 # OS/2's system install, which has a completely different semantic
3057 # ./install, which can be erroneously created by make from ./install.sh.
3058 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3059 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3060 if test -z "$INSTALL"; then
3061 if test "${ac_cv_path_install+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069   # Account for people who put trailing slashes in PATH elements.
3070 case $as_dir/ in
3071   ./ | .// | /cC/* | \
3072   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3073   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3074   /usr/ucb/* ) ;;
3075   *)
3076     # OSF1 and SCO ODT 3.0 have their own names for install.
3077     # Don't use installbsd from OSF since it installs stuff as root
3078     # by default.
3079     for ac_prog in ginstall scoinst install; do
3080       for ac_exec_ext in '' $ac_executable_extensions; do
3081         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3082           if test $ac_prog = install &&
3083             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3084             # AIX install.  It has an incompatible calling convention.
3085             :
3086           elif test $ac_prog = install &&
3087             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088             # program-specific install script used by HP pwplus--don't use.
3089             :
3090           else
3091             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3092             break 3
3093           fi
3094         fi
3095       done
3096     done
3097     ;;
3098 esac
3099 done
3100 IFS=$as_save_IFS
3101
3102
3103 fi
3104   if test "${ac_cv_path_install+set}" = set; then
3105     INSTALL=$ac_cv_path_install
3106   else
3107     # As a last resort, use the slow shell script.  Don't cache a
3108     # value for INSTALL within a source directory, because that will
3109     # break other packages using the cache if that directory is
3110     # removed, or if the value is a relative name.
3111     INSTALL=$ac_install_sh
3112   fi
3113 fi
3114 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3115 echo "${ECHO_T}$INSTALL" >&6; }
3116
3117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3118 # It thinks the first close brace ends the variable substitution.
3119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3120
3121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3122
3123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3124
3125 if test -n "$ac_tool_prefix"; then
3126   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3130 if test "${ac_cv_prog_RANLIB+set}" = set; then
3131   echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133   if test -n "$RANLIB"; then
3134   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141   for ac_exec_ext in '' $ac_executable_extensions; do
3142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 RANLIB=$ac_cv_prog_RANLIB
3154 if test -n "$RANLIB"; then
3155   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3156 echo "${ECHO_T}$RANLIB" >&6; }
3157 else
3158   { echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6; }
3160 fi
3161
3162
3163 fi
3164 if test -z "$ac_cv_prog_RANLIB"; then
3165   ac_ct_RANLIB=$RANLIB
3166   # Extract the first word of "ranlib", so it can be a program name with args.
3167 set dummy ranlib; ac_word=$2
3168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3170 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   if test -n "$ac_ct_RANLIB"; then
3174   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
3180   test -z "$as_dir" && as_dir=.
3181   for ac_exec_ext in '' $ac_executable_extensions; do
3182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183     ac_cv_prog_ac_ct_RANLIB="ranlib"
3184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185     break 2
3186   fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3194 if test -n "$ac_ct_RANLIB"; then
3195   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3196 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3197 else
3198   { echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6; }
3200 fi
3201
3202   if test "x$ac_ct_RANLIB" = x; then
3203     RANLIB=":"
3204   else
3205     case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3208 whose name does not start with the host triplet.  If you think this
3209 configuration is useful to you, please write to autoconf@gnu.org." >&5
3210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3211 whose name does not start with the host triplet.  If you think this
3212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3213 ac_tool_warned=yes ;;
3214 esac
3215     RANLIB=$ac_ct_RANLIB
3216   fi
3217 else
3218   RANLIB="$ac_cv_prog_RANLIB"
3219 fi
3220
3221 # Extract the first word of "autoconf", so it can be a program name with args.
3222 set dummy autoconf; ac_word=$2
3223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   if test -n "$AUTOCONF"; then
3229   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236   for ac_exec_ext in '' $ac_executable_extensions; do
3237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238     ac_cv_prog_AUTOCONF="autoconf"
3239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240     break 2
3241   fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246   test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3247 fi
3248 fi
3249 AUTOCONF=$ac_cv_prog_AUTOCONF
3250 if test -n "$AUTOCONF"; then
3251   { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3252 echo "${ECHO_T}$AUTOCONF" >&6; }
3253 else
3254   { echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6; }
3256 fi
3257
3258
3259 # Extract the first word of "strip", so it can be a program name with args.
3260 set dummy strip; ac_word=$2
3261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3263 if test "${ac_cv_prog_STRIP+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266   if test -n "$STRIP"; then
3267   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274   for ac_exec_ext in '' $ac_executable_extensions; do
3275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276     ac_cv_prog_STRIP="strip"
3277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278     break 2
3279   fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3285 fi
3286 fi
3287 STRIP=$ac_cv_prog_STRIP
3288 if test -n "$STRIP"; then
3289   { echo "$as_me:$LINENO: result: $STRIP" >&5
3290 echo "${ECHO_T}$STRIP" >&6; }
3291 else
3292   { echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6; }
3294 fi
3295
3296
3297 # Extract the first word of "as", so it can be a program name with args.
3298 set dummy as; ac_word=$2
3299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_AS+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   if test -n "$AS"; then
3305   ac_cv_prog_AS="$AS" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312   for ac_exec_ext in '' $ac_executable_extensions; do
3313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314     ac_cv_prog_AS="as"
3315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3323 fi
3324 fi
3325 AS=$ac_cv_prog_AS
3326 if test -n "$AS"; then
3327   { echo "$as_me:$LINENO: result: $AS" >&5
3328 echo "${ECHO_T}$AS" >&6; }
3329 else
3330   { echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6; }
3332 fi
3333
3334
3335 # Extract the first word of "cp", so it can be a program name with args.
3336 set dummy cp; ac_word=$2
3337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3339 if test "${ac_cv_prog_CP+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   if test -n "$CP"; then
3343   ac_cv_prog_CP="$CP" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350   for ac_exec_ext in '' $ac_executable_extensions; do
3351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352     ac_cv_prog_CP="cp"
3353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360   test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3361 fi
3362 fi
3363 CP=$ac_cv_prog_CP
3364 if test -n "$CP"; then
3365   { echo "$as_me:$LINENO: result: $CP" >&5
3366 echo "${ECHO_T}$CP" >&6; }
3367 else
3368   { echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6; }
3370 fi
3371
3372
3373
3374 for ac_prog in flex lex
3375 do
3376   # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_LEX+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   if test -n "$LEX"; then
3384   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393     ac_cv_prog_LEX="$ac_prog"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 LEX=$ac_cv_prog_LEX
3404 if test -n "$LEX"; then
3405   { echo "$as_me:$LINENO: result: $LEX" >&5
3406 echo "${ECHO_T}$LEX" >&6; }
3407 else
3408   { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3410 fi
3411
3412
3413   test -n "$LEX" && break
3414 done
3415 test -n "$LEX" || LEX=":"
3416
3417
3418 for ac_prog in 'bison -y' byacc yacc
3419 do
3420   # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_YACC+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   if test -n "$YACC"; then
3428   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437     ac_cv_prog_YACC="$ac_prog"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 YACC=$ac_cv_prog_YACC
3448 if test -n "$YACC"; then
3449   { echo "$as_me:$LINENO: result: $YACC" >&5
3450 echo "${ECHO_T}$YACC" >&6; }
3451 else
3452   { echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6; }
3454 fi
3455
3456
3457   test -n "$YACC" && break
3458 done
3459 test -n "$YACC" || YACC=":"
3460
3461
3462
3463
3464 if test "$YACC" = ":"; then
3465   { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3466 echo "$as_me: error: Cannot find required program bison." >&2;}
3467    { (exit 1); exit 1; }; }
3468  fi
3469
3470 if test "$LEX" = ":"; then
3471   { { echo "$as_me:$LINENO: error: Cannot find required program flex." >&5
3472 echo "$as_me: error: Cannot find required program flex." >&2;}
3473    { (exit 1); exit 1; }; }
3474  fi
3475
3476
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483
3484
3485 # Checking for functions
3486 # ===========================================================================
3487
3488
3489 for ac_func in strerror
3490 do
3491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3505 #define $ac_func innocuous_$ac_func
3506
3507 /* System header to define __stub macros and hopefully few prototypes,
3508     which can conflict with char $ac_func (); below.
3509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3510     <limits.h> exists even on freestanding compilers.  */
3511
3512 #ifdef __STDC__
3513 # include <limits.h>
3514 #else
3515 # include <assert.h>
3516 #endif
3517
3518 #undef $ac_func
3519
3520 /* Override any GCC internal prototype to avoid an error.
3521    Use char because int might match the return type of a GCC
3522    builtin and then its argument prototype would still apply.  */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 char $ac_func ();
3527 /* The GNU C library defines this for functions which it implements
3528     to always fail with ENOSYS.  Some functions are actually named
3529     something starting with __ and the normal name is an alias.  */
3530 #if defined __stub_$ac_func || defined __stub___$ac_func
3531 choke me
3532 #endif
3533
3534 int
3535 main ()
3536 {
3537 return $ac_func ();
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext conftest$ac_exeext
3543 if { (ac_try="$ac_link"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_link") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } && {
3556          test -z "$ac_c_werror_flag" ||
3557          test ! -s conftest.err
3558        } && test -s conftest$ac_exeext &&
3559        $as_test_x conftest$ac_exeext; then
3560   eval "$as_ac_var=yes"
3561 else
3562   echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565         eval "$as_ac_var=no"
3566 fi
3567
3568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3569       conftest$ac_exeext conftest.$ac_ext
3570 fi
3571 ac_res=`eval echo '${'$as_ac_var'}'`
3572                { echo "$as_me:$LINENO: result: $ac_res" >&5
3573 echo "${ECHO_T}$ac_res" >&6; }
3574 if test `eval echo '${'$as_ac_var'}'` = yes; then
3575   cat >>confdefs.h <<_ACEOF
3576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3577 _ACEOF
3578
3579 fi
3580 done
3581
3582
3583
3584
3585
3586 for ac_func in vsnprintf snprintf vsprintf mkstemp
3587 do
3588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3602 #define $ac_func innocuous_$ac_func
3603
3604 /* System header to define __stub macros and hopefully few prototypes,
3605     which can conflict with char $ac_func (); below.
3606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3607     <limits.h> exists even on freestanding compilers.  */
3608
3609 #ifdef __STDC__
3610 # include <limits.h>
3611 #else
3612 # include <assert.h>
3613 #endif
3614
3615 #undef $ac_func
3616
3617 /* Override any GCC internal prototype to avoid an error.
3618    Use char because int might match the return type of a GCC
3619    builtin and then its argument prototype would still apply.  */
3620 #ifdef __cplusplus
3621 extern "C"
3622 #endif
3623 char $ac_func ();
3624 /* The GNU C library defines this for functions which it implements
3625     to always fail with ENOSYS.  Some functions are actually named
3626     something starting with __ and the normal name is an alias.  */
3627 #if defined __stub_$ac_func || defined __stub___$ac_func
3628 choke me
3629 #endif
3630
3631 int
3632 main ()
3633 {
3634 return $ac_func ();
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.$ac_objext conftest$ac_exeext
3640 if { (ac_try="$ac_link"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646   (eval "$ac_link") 2>conftest.er1
3647   ac_status=$?
3648   grep -v '^ *+' conftest.er1 >conftest.err
3649   rm -f conftest.er1
3650   cat conftest.err >&5
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); } && {
3653          test -z "$ac_c_werror_flag" ||
3654          test ! -s conftest.err
3655        } && test -s conftest$ac_exeext &&
3656        $as_test_x conftest$ac_exeext; then
3657   eval "$as_ac_var=yes"
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662         eval "$as_ac_var=no"
3663 fi
3664
3665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3666       conftest$ac_exeext conftest.$ac_ext
3667 fi
3668 ac_res=`eval echo '${'$as_ac_var'}'`
3669                { echo "$as_me:$LINENO: result: $ac_res" >&5
3670 echo "${ECHO_T}$ac_res" >&6; }
3671 if test `eval echo '${'$as_ac_var'}'` = yes; then
3672   cat >>confdefs.h <<_ACEOF
3673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3674 _ACEOF
3675
3676 fi
3677 done
3678
3679
3680
3681 # Macro definitions
3682 # ===========================================================================
3683
3684 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3685 # supports option specified as the 2nd parameter
3686 # For example: DD_CPORT(CXX, fPIC)
3687
3688
3689
3690 # This macro expands DIR and assigns it to RET.
3691 # If DIR is NONE, then it's replaced by DEFAULT.
3692 #
3693 # Based on AC_DEFINE_DIR
3694 #
3695 # Examples:
3696 #
3697 #  adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3698
3699
3700
3701 # adl_NORMALIZE_PATH
3702 #
3703 #  - empty paths are changed to '.'
3704 #  - trailing slashes are removed
3705 #  - repeated slashes are squeezed except a leading doubled slash '//'
3706 #    (which might indicate a networked disk on some OS).
3707 #
3708 #
3709 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3710 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3711 # are turned into backslashes, otherwise they are all turned into slashes.
3712 #
3713 # This makes processing of DOS filenames quite easier, because you can turn a
3714 # filename to the Unix notation, make your processing, and turn it back to
3715 # original notation.
3716
3717
3718
3719
3720 # adl_COMPUTE_RELATIVE_PATH
3721 #
3722 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3723 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3724 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3725 # absolute filenames for this macro to success.
3726
3727
3728
3729 ## Note:
3730 ## *****
3731 ## The following helper macros are too fragile to be used out
3732 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3733 ## paths are normalized), that's why I'm keeping them in the same file.
3734 ## Still, some of them maybe worth to reuse.
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752 # Checking characteristics of compilers and other programs
3753 # ===========================================================================
3754 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3755 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
3756 if test "${sdcc_cv_MM+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   echo "#include <stdio.h>" >_test_.c
3760 echo "" >>_test_.c
3761 $CPP -v -MM _test_.c 1>&5 2>&5
3762 if test "$?" = "0"; then
3763   sdcc_cv_MM="-MM"
3764 else
3765   sdcc_cv_MM="-M"
3766 fi
3767 rm -f _test_.*
3768 fi
3769 { echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3770 echo "${ECHO_T}$sdcc_cv_MM" >&6; }
3771 M_OR_MM=$sdcc_cv_MM
3772
3773
3774 # This is the first time when CFLAGS are set/modified!!
3775
3776 { echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3777 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6; }
3778 if test "${sdcc_cv_CCggdb+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   cat >_test_.c <<EOF
3782 #include <stdio.h>
3783 void main(void) {}
3784 EOF
3785 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3786 if test "$?" = "0"; then
3787   sdcc_cv_CCggdb="yes"
3788 else
3789   sdcc_cv_CCggdb="no"
3790 fi
3791 rm -f _test_.* a.out
3792 fi
3793 { echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3794 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6; }
3795
3796 if test "$sdcc_cv_CCggdb" = "yes"; then
3797   CFLAGS="-ggdb ${CFLAGS}"
3798 fi
3799
3800
3801 { echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3802 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6; }
3803 if test "${sdcc_cv_CCpipe+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   cat >_test_.c <<EOF
3807 #include <stdio.h>
3808 void main(void) {}
3809 EOF
3810 $CC -v -pipe -c _test_.c 1>&5 2>&5
3811 if test "$?" = "0"; then
3812   sdcc_cv_CCpipe="yes"
3813 else
3814   sdcc_cv_CCpipe="no"
3815 fi
3816 rm -f _test_.* a.out
3817 fi
3818 { echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3819 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6; }
3820
3821 if test "$sdcc_cv_CCpipe" = "yes"; then
3822   CFLAGS="-pipe $CFLAGS"
3823 fi
3824
3825
3826 # Checks for typedefs, structures, and compiler characteristics.
3827 # ===========================================================================
3828 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3829 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3830 if test "${ac_cv_type_signal+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h.  */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h.  */
3839 #include <sys/types.h>
3840 #include <signal.h>
3841
3842 int
3843 main ()
3844 {
3845 return *(signal (0, 0)) (0) == 1;
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_compile") 2>conftest.er1
3858   ac_status=$?
3859   grep -v '^ *+' conftest.er1 >conftest.err
3860   rm -f conftest.er1
3861   cat conftest.err >&5
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } && {
3864          test -z "$ac_c_werror_flag" ||
3865          test ! -s conftest.err
3866        } && test -s conftest.$ac_objext; then
3867   ac_cv_type_signal=int
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872         ac_cv_type_signal=void
3873 fi
3874
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 fi
3877 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3878 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3879
3880 cat >>confdefs.h <<_ACEOF
3881 #define RETSIGTYPE $ac_cv_type_signal
3882 _ACEOF
3883
3884
3885
3886
3887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3889 if test "${ac_cv_path_GREP+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   # Extract the first word of "grep ggrep" to use in msg output
3893 if test -z "$GREP"; then
3894 set dummy grep ggrep; ac_prog_name=$2
3895 if test "${ac_cv_path_GREP+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   ac_path_GREP_found=false
3899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3902 do
3903   IFS=$as_save_IFS
3904   test -z "$as_dir" && as_dir=.
3905   for ac_prog in grep ggrep; do
3906   for ac_exec_ext in '' $ac_executable_extensions; do
3907     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3908     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3909     # Check for GNU ac_path_GREP and select it if it is found.
3910   # Check for GNU $ac_path_GREP
3911 case `"$ac_path_GREP" --version 2>&1` in
3912 *GNU*)
3913   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3914 *)
3915   ac_count=0
3916   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3917   while :
3918   do
3919     cat "conftest.in" "conftest.in" >"conftest.tmp"
3920     mv "conftest.tmp" "conftest.in"
3921     cp "conftest.in" "conftest.nl"
3922     echo 'GREP' >> "conftest.nl"
3923     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925     ac_count=`expr $ac_count + 1`
3926     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3927       # Best one so far, save it but keep looking for a better one
3928       ac_cv_path_GREP="$ac_path_GREP"
3929       ac_path_GREP_max=$ac_count
3930     fi
3931     # 10*(2^10) chars as input seems more than enough
3932     test $ac_count -gt 10 && break
3933   done
3934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935 esac
3936
3937
3938     $ac_path_GREP_found && break 3
3939   done
3940 done
3941
3942 done
3943 IFS=$as_save_IFS
3944
3945
3946 fi
3947
3948 GREP="$ac_cv_path_GREP"
3949 if test -z "$GREP"; then
3950   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3952    { (exit 1); exit 1; }; }
3953 fi
3954
3955 else
3956   ac_cv_path_GREP=$GREP
3957 fi
3958
3959
3960 fi
3961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3963  GREP="$ac_cv_path_GREP"
3964
3965
3966 { echo "$as_me:$LINENO: checking for egrep" >&5
3967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972    then ac_cv_path_EGREP="$GREP -E"
3973    else
3974      # Extract the first word of "egrep" to use in msg output
3975 if test -z "$EGREP"; then
3976 set dummy egrep; ac_prog_name=$2
3977 if test "${ac_cv_path_EGREP+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   ac_path_EGREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987   for ac_prog in egrep; do
3988   for ac_exec_ext in '' $ac_executable_extensions; do
3989     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991     # Check for GNU ac_path_EGREP and select it if it is found.
3992   # Check for GNU $ac_path_EGREP
3993 case `"$ac_path_EGREP" --version 2>&1` in
3994 *GNU*)
3995   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3996 *)
3997   ac_count=0
3998   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3999   while :
4000   do
4001     cat "conftest.in" "conftest.in" >"conftest.tmp"
4002     mv "conftest.tmp" "conftest.in"
4003     cp "conftest.in" "conftest.nl"
4004     echo 'EGREP' >> "conftest.nl"
4005     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007     ac_count=`expr $ac_count + 1`
4008     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009       # Best one so far, save it but keep looking for a better one
4010       ac_cv_path_EGREP="$ac_path_EGREP"
4011       ac_path_EGREP_max=$ac_count
4012     fi
4013     # 10*(2^10) chars as input seems more than enough
4014     test $ac_count -gt 10 && break
4015   done
4016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017 esac
4018
4019
4020     $ac_path_EGREP_found && break 3
4021   done
4022 done
4023
4024 done
4025 IFS=$as_save_IFS
4026
4027
4028 fi
4029
4030 EGREP="$ac_cv_path_EGREP"
4031 if test -z "$EGREP"; then
4032   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4034    { (exit 1); exit 1; }; }
4035 fi
4036
4037 else
4038   ac_cv_path_EGREP=$EGREP
4039 fi
4040
4041
4042    fi
4043 fi
4044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4046  EGREP="$ac_cv_path_EGREP"
4047
4048
4049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4051 if test "${ac_cv_header_stdc+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060 #include <stdlib.h>
4061 #include <stdarg.h>
4062 #include <string.h>
4063 #include <float.h>
4064
4065 int
4066 main ()
4067 {
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080   (eval "$ac_compile") 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } && {
4087          test -z "$ac_c_werror_flag" ||
4088          test ! -s conftest.err
4089        } && test -s conftest.$ac_objext; then
4090   ac_cv_header_stdc=yes
4091 else
4092   echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095         ac_cv_header_stdc=no
4096 fi
4097
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099
4100 if test $ac_cv_header_stdc = yes; then
4101   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102   cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108 #include <string.h>
4109
4110 _ACEOF
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112   $EGREP "memchr" >/dev/null 2>&1; then
4113   :
4114 else
4115   ac_cv_header_stdc=no
4116 fi
4117 rm -f conftest*
4118
4119 fi
4120
4121 if test $ac_cv_header_stdc = yes; then
4122   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4123   cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129 #include <stdlib.h>
4130
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133   $EGREP "free" >/dev/null 2>&1; then
4134   :
4135 else
4136   ac_cv_header_stdc=no
4137 fi
4138 rm -f conftest*
4139
4140 fi
4141
4142 if test $ac_cv_header_stdc = yes; then
4143   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144   if test "$cross_compiling" = yes; then
4145   :
4146 else
4147   cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153 #include <ctype.h>
4154 #include <stdlib.h>
4155 #if ((' ' & 0x0FF) == 0x020)
4156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4158 #else
4159 # define ISLOWER(c) \
4160                    (('a' <= (c) && (c) <= 'i') \
4161                      || ('j' <= (c) && (c) <= 'r') \
4162                      || ('s' <= (c) && (c) <= 'z'))
4163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4164 #endif
4165
4166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167 int
4168 main ()
4169 {
4170   int i;
4171   for (i = 0; i < 256; i++)
4172     if (XOR (islower (i), ISLOWER (i))
4173         || toupper (i) != TOUPPER (i))
4174       return 2;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_link") 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4189   { (case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194   (eval "$ac_try") 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); }; }; then
4198   :
4199 else
4200   echo "$as_me: program exited with status $ac_status" >&5
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204 ( exit $ac_status )
4205 ac_cv_header_stdc=no
4206 fi
4207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4208 fi
4209
4210
4211 fi
4212 fi
4213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4215 if test $ac_cv_header_stdc = yes; then
4216
4217 cat >>confdefs.h <<\_ACEOF
4218 #define STDC_HEADERS 1
4219 _ACEOF
4220
4221 fi
4222
4223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4234                   inttypes.h stdint.h unistd.h
4235 do
4236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h.  */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h.  */
4248 $ac_includes_default
4249
4250 #include <$ac_header>
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (ac_try="$ac_compile"
4254 case "(($ac_try" in
4255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256   *) ac_try_echo=$ac_try;;
4257 esac
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259   (eval "$ac_compile") 2>conftest.er1
4260   ac_status=$?
4261   grep -v '^ *+' conftest.er1 >conftest.err
4262   rm -f conftest.er1
4263   cat conftest.err >&5
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } && {
4266          test -z "$ac_c_werror_flag" ||
4267          test ! -s conftest.err
4268        } && test -s conftest.$ac_objext; then
4269   eval "$as_ac_Header=yes"
4270 else
4271   echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274         eval "$as_ac_Header=no"
4275 fi
4276
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 fi
4279 ac_res=`eval echo '${'$as_ac_Header'}'`
4280                { echo "$as_me:$LINENO: result: $ac_res" >&5
4281 echo "${ECHO_T}$ac_res" >&6; }
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283   cat >>confdefs.h <<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4285 _ACEOF
4286
4287 fi
4288
4289 done
4290
4291
4292 { echo "$as_me:$LINENO: checking for char" >&5
4293 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
4294 if test "${ac_cv_type_char+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 $ac_includes_default
4304 typedef char ac__type_new_;
4305 int
4306 main ()
4307 {
4308 if ((ac__type_new_ *) 0)
4309   return 0;
4310 if (sizeof (ac__type_new_))
4311   return 0;
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 rm -f conftest.$ac_objext
4317 if { (ac_try="$ac_compile"
4318 case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323   (eval "$ac_compile") 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } && {
4330          test -z "$ac_c_werror_flag" ||
4331          test ! -s conftest.err
4332        } && test -s conftest.$ac_objext; then
4333   ac_cv_type_char=yes
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338         ac_cv_type_char=no
4339 fi
4340
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 fi
4343 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4344 echo "${ECHO_T}$ac_cv_type_char" >&6; }
4345
4346 # The cast to long int works around a bug in the HP C Compiler
4347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4349 # This bug is HP SR number 8606223364.
4350 { echo "$as_me:$LINENO: checking size of char" >&5
4351 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
4352 if test "${ac_cv_sizeof_char+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   if test "$cross_compiling" = yes; then
4356   # Depending upon the size, compute the lo and hi bounds.
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 $ac_includes_default
4364    typedef char ac__type_sizeof_;
4365 int
4366 main ()
4367 {
4368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4369 test_array [0] = 0
4370
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4377 case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382   (eval "$ac_compile") 2>conftest.er1
4383   ac_status=$?
4384   grep -v '^ *+' conftest.er1 >conftest.err
4385   rm -f conftest.er1
4386   cat conftest.err >&5
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); } && {
4389          test -z "$ac_c_werror_flag" ||
4390          test ! -s conftest.err
4391        } && test -s conftest.$ac_objext; then
4392   ac_lo=0 ac_mid=0
4393   while :; do
4394     cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400 $ac_includes_default
4401    typedef char ac__type_sizeof_;
4402 int
4403 main ()
4404 {
4405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4406 test_array [0] = 0
4407
4408   ;
4409   return 0;
4410 }
4411 _ACEOF
4412 rm -f conftest.$ac_objext
4413 if { (ac_try="$ac_compile"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_compile") 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } && {
4426          test -z "$ac_c_werror_flag" ||
4427          test ! -s conftest.err
4428        } && test -s conftest.$ac_objext; then
4429   ac_hi=$ac_mid; break
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434         ac_lo=`expr $ac_mid + 1`
4435                         if test $ac_lo -le $ac_mid; then
4436                           ac_lo= ac_hi=
4437                           break
4438                         fi
4439                         ac_mid=`expr 2 '*' $ac_mid + 1`
4440 fi
4441
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443   done
4444 else
4445   echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448         cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 $ac_includes_default
4455    typedef char ac__type_sizeof_;
4456 int
4457 main ()
4458 {
4459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4460 test_array [0] = 0
4461
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473   (eval "$ac_compile") 2>conftest.er1
4474   ac_status=$?
4475   grep -v '^ *+' conftest.er1 >conftest.err
4476   rm -f conftest.er1
4477   cat conftest.err >&5
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); } && {
4480          test -z "$ac_c_werror_flag" ||
4481          test ! -s conftest.err
4482        } && test -s conftest.$ac_objext; then
4483   ac_hi=-1 ac_mid=-1
4484   while :; do
4485     cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h.  */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h.  */
4491 $ac_includes_default
4492    typedef char ac__type_sizeof_;
4493 int
4494 main ()
4495 {
4496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4497 test_array [0] = 0
4498
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (ac_try="$ac_compile"
4505 case "(($ac_try" in
4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507   *) ac_try_echo=$ac_try;;
4508 esac
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510   (eval "$ac_compile") 2>conftest.er1
4511   ac_status=$?
4512   grep -v '^ *+' conftest.er1 >conftest.err
4513   rm -f conftest.er1
4514   cat conftest.err >&5
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); } && {
4517          test -z "$ac_c_werror_flag" ||
4518          test ! -s conftest.err
4519        } && test -s conftest.$ac_objext; then
4520   ac_lo=$ac_mid; break
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525         ac_hi=`expr '(' $ac_mid ')' - 1`
4526                         if test $ac_mid -le $ac_hi; then
4527                           ac_lo= ac_hi=
4528                           break
4529                         fi
4530                         ac_mid=`expr 2 '*' $ac_mid`
4531 fi
4532
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534   done
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539         ac_lo= ac_hi=
4540 fi
4541
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 fi
4544
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 # Binary search between lo and hi bounds.
4547 while test "x$ac_lo" != "x$ac_hi"; do
4548   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4549   cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h.  */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h.  */
4555 $ac_includes_default
4556    typedef char ac__type_sizeof_;
4557 int
4558 main ()
4559 {
4560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4561 test_array [0] = 0
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (ac_try="$ac_compile"
4569 case "(($ac_try" in
4570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571   *) ac_try_echo=$ac_try;;
4572 esac
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574   (eval "$ac_compile") 2>conftest.er1
4575   ac_status=$?
4576   grep -v '^ *+' conftest.er1 >conftest.err
4577   rm -f conftest.er1
4578   cat conftest.err >&5
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } && {
4581          test -z "$ac_c_werror_flag" ||
4582          test ! -s conftest.err
4583        } && test -s conftest.$ac_objext; then
4584   ac_hi=$ac_mid
4585 else
4586   echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589         ac_lo=`expr '(' $ac_mid ')' + 1`
4590 fi
4591
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 done
4594 case $ac_lo in
4595 ?*) ac_cv_sizeof_char=$ac_lo;;
4596 '') if test "$ac_cv_type_char" = yes; then
4597      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4598 See \`config.log' for more details." >&5
4599 echo "$as_me: error: cannot compute sizeof (char)
4600 See \`config.log' for more details." >&2;}
4601    { (exit 77); exit 77; }; }
4602    else
4603      ac_cv_sizeof_char=0
4604    fi ;;
4605 esac
4606 else
4607   cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h.  */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h.  */
4613 $ac_includes_default
4614    typedef char ac__type_sizeof_;
4615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4617 #include <stdio.h>
4618 #include <stdlib.h>
4619 int
4620 main ()
4621 {
4622
4623   FILE *f = fopen ("conftest.val", "w");
4624   if (! f)
4625     return 1;
4626   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4627     {
4628       long int i = longval ();
4629       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4630         return 1;
4631       fprintf (f, "%ld\n", i);
4632     }
4633   else
4634     {
4635       unsigned long int i = ulongval ();
4636       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4637         return 1;
4638       fprintf (f, "%lu\n", i);
4639     }
4640   return ferror (f) || fclose (f) != 0;
4641
4642   ;
4643   return 0;
4644 }
4645 _ACEOF
4646 rm -f conftest$ac_exeext
4647 if { (ac_try="$ac_link"
4648 case "(($ac_try" in
4649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650   *) ac_try_echo=$ac_try;;
4651 esac
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653   (eval "$ac_link") 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4657   { (case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662   (eval "$ac_try") 2>&5
4663   ac_status=$?
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); }; }; then
4666   ac_cv_sizeof_char=`cat conftest.val`
4667 else
4668   echo "$as_me: program exited with status $ac_status" >&5
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 ( exit $ac_status )
4673 if test "$ac_cv_type_char" = yes; then
4674      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4675 See \`config.log' for more details." >&5
4676 echo "$as_me: error: cannot compute sizeof (char)
4677 See \`config.log' for more details." >&2;}
4678    { (exit 77); exit 77; }; }
4679    else
4680      ac_cv_sizeof_char=0
4681    fi
4682 fi
4683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4684 fi
4685 rm -f conftest.val
4686 fi
4687 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4688 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
4689
4690
4691
4692 cat >>confdefs.h <<_ACEOF
4693 #define SIZEOF_CHAR $ac_cv_sizeof_char
4694 _ACEOF
4695
4696
4697 { echo "$as_me:$LINENO: checking for short" >&5
4698 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4699 if test "${ac_cv_type_short+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h.  */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h.  */
4708 $ac_includes_default
4709 typedef short ac__type_new_;
4710 int
4711 main ()
4712 {
4713 if ((ac__type_new_ *) 0)
4714   return 0;
4715 if (sizeof (ac__type_new_))
4716   return 0;
4717   ;
4718   return 0;
4719 }
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (ac_try="$ac_compile"
4723 case "(($ac_try" in
4724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725   *) ac_try_echo=$ac_try;;
4726 esac
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728   (eval "$ac_compile") 2>conftest.er1
4729   ac_status=$?
4730   grep -v '^ *+' conftest.er1 >conftest.err
4731   rm -f conftest.er1
4732   cat conftest.err >&5
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } && {
4735          test -z "$ac_c_werror_flag" ||
4736          test ! -s conftest.err
4737        } && test -s conftest.$ac_objext; then
4738   ac_cv_type_short=yes
4739 else
4740   echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743         ac_cv_type_short=no
4744 fi
4745
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 fi
4748 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4749 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4750
4751 # The cast to long int works around a bug in the HP C Compiler
4752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4754 # This bug is HP SR number 8606223364.
4755 { echo "$as_me:$LINENO: checking size of short" >&5
4756 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4757 if test "${ac_cv_sizeof_short+set}" = set; then
4758   echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760   if test "$cross_compiling" = yes; then
4761   # Depending upon the size, compute the lo and hi bounds.
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 $ac_includes_default
4769    typedef short ac__type_sizeof_;
4770 int
4771 main ()
4772 {
4773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4774 test_array [0] = 0
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4782 case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787   (eval "$ac_compile") 2>conftest.er1
4788   ac_status=$?
4789   grep -v '^ *+' conftest.er1 >conftest.err
4790   rm -f conftest.er1
4791   cat conftest.err >&5
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } && {
4794          test -z "$ac_c_werror_flag" ||
4795          test ! -s conftest.err
4796        } && test -s conftest.$ac_objext; then
4797   ac_lo=0 ac_mid=0
4798   while :; do
4799     cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h.  */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h.  */
4805 $ac_includes_default
4806    typedef short ac__type_sizeof_;
4807 int
4808 main ()
4809 {
4810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4811 test_array [0] = 0
4812
4813   ;
4814   return 0;
4815 }
4816 _ACEOF
4817 rm -f conftest.$ac_objext
4818 if { (ac_try="$ac_compile"
4819 case "(($ac_try" in
4820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821   *) ac_try_echo=$ac_try;;
4822 esac
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824   (eval "$ac_compile") 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } && {
4831          test -z "$ac_c_werror_flag" ||
4832          test ! -s conftest.err
4833        } && test -s conftest.$ac_objext; then
4834   ac_hi=$ac_mid; break
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839         ac_lo=`expr $ac_mid + 1`
4840                         if test $ac_lo -le $ac_mid; then
4841                           ac_lo= ac_hi=
4842                           break
4843                         fi
4844                         ac_mid=`expr 2 '*' $ac_mid + 1`
4845 fi
4846
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848   done
4849 else
4850   echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853         cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859 $ac_includes_default
4860    typedef short ac__type_sizeof_;
4861 int
4862 main ()
4863 {
4864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4865 test_array [0] = 0
4866
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4873 case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878   (eval "$ac_compile") 2>conftest.er1
4879   ac_status=$?
4880   grep -v '^ *+' conftest.er1 >conftest.err
4881   rm -f conftest.er1
4882   cat conftest.err >&5
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); } && {
4885          test -z "$ac_c_werror_flag" ||
4886          test ! -s conftest.err
4887        } && test -s conftest.$ac_objext; then
4888   ac_hi=-1 ac_mid=-1
4889   while :; do
4890     cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h.  */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h.  */
4896 $ac_includes_default
4897    typedef short ac__type_sizeof_;
4898 int
4899 main ()
4900 {
4901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4902 test_array [0] = 0
4903
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (ac_try="$ac_compile"
4910 case "(($ac_try" in
4911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912   *) ac_try_echo=$ac_try;;
4913 esac
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915   (eval "$ac_compile") 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } && {
4922          test -z "$ac_c_werror_flag" ||
4923          test ! -s conftest.err
4924        } && test -s conftest.$ac_objext; then
4925   ac_lo=$ac_mid; break
4926 else
4927   echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4929
4930         ac_hi=`expr '(' $ac_mid ')' - 1`
4931                         if test $ac_mid -le $ac_hi; then
4932                           ac_lo= ac_hi=
4933                           break
4934                         fi
4935                         ac_mid=`expr 2 '*' $ac_mid`
4936 fi
4937
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939   done
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944         ac_lo= ac_hi=
4945 fi
4946
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 fi
4949
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 # Binary search between lo and hi bounds.
4952 while test "x$ac_lo" != "x$ac_hi"; do
4953   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4954   cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h.  */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h.  */
4960 $ac_includes_default
4961    typedef short ac__type_sizeof_;
4962 int
4963 main ()
4964 {
4965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4966 test_array [0] = 0
4967
4968   ;
4969   return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (ac_try="$ac_compile"
4974 case "(($ac_try" in
4975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976   *) ac_try_echo=$ac_try;;
4977 esac
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979   (eval "$ac_compile") 2>conftest.er1
4980   ac_status=$?
4981   grep -v '^ *+' conftest.er1 >conftest.err
4982   rm -f conftest.er1
4983   cat conftest.err >&5
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); } && {
4986          test -z "$ac_c_werror_flag" ||
4987          test ! -s conftest.err
4988        } && test -s conftest.$ac_objext; then
4989   ac_hi=$ac_mid
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994         ac_lo=`expr '(' $ac_mid ')' + 1`
4995 fi
4996
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 done
4999 case $ac_lo in
5000 ?*) ac_cv_sizeof_short=$ac_lo;;
5001 '') if test "$ac_cv_type_short" = yes; then
5002      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5003 See \`config.log' for more details." >&5
5004 echo "$as_me: error: cannot compute sizeof (short)
5005 See \`config.log' for more details." >&2;}
5006    { (exit 77); exit 77; }; }
5007    else
5008      ac_cv_sizeof_short=0
5009    fi ;;
5010 esac
5011 else
5012   cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018 $ac_includes_default
5019    typedef short ac__type_sizeof_;
5020 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5021 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5022 #include <stdio.h>
5023 #include <stdlib.h>
5024 int
5025 main ()
5026 {
5027
5028   FILE *f = fopen ("conftest.val", "w");
5029   if (! f)
5030     return 1;
5031   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5032     {
5033       long int i = longval ();
5034       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5035         return 1;
5036       fprintf (f, "%ld\n", i);
5037     }
5038   else
5039     {
5040       unsigned long int i = ulongval ();
5041       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5042         return 1;
5043       fprintf (f, "%lu\n", i);
5044     }
5045   return ferror (f) || fclose (f) != 0;
5046
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5053 case "(($ac_try" in
5054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055   *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058   (eval "$ac_link") 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062   { (case "(($ac_try" in
5063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064   *) ac_try_echo=$ac_try;;
5065 esac
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067   (eval "$ac_try") 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; }; then
5071   ac_cv_sizeof_short=`cat conftest.val`
5072 else
5073   echo "$as_me: program exited with status $ac_status" >&5
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ( exit $ac_status )
5078 if test "$ac_cv_type_short" = yes; then
5079      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot compute sizeof (short)
5082 See \`config.log' for more details." >&2;}
5083    { (exit 77); exit 77; }; }
5084    else
5085      ac_cv_sizeof_short=0
5086    fi
5087 fi
5088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5089 fi
5090 rm -f conftest.val
5091 fi
5092 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5093 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5094
5095
5096
5097 cat >>confdefs.h <<_ACEOF
5098 #define SIZEOF_SHORT $ac_cv_sizeof_short
5099 _ACEOF
5100
5101
5102 { echo "$as_me:$LINENO: checking for int" >&5
5103 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5104 if test "${ac_cv_type_int+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 $ac_includes_default
5114 typedef int ac__type_new_;
5115 int
5116 main ()
5117 {
5118 if ((ac__type_new_ *) 0)
5119   return 0;
5120 if (sizeof (ac__type_new_))
5121   return 0;
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_compile") 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } && {
5140          test -z "$ac_c_werror_flag" ||
5141          test ! -s conftest.err
5142        } && test -s conftest.$ac_objext; then
5143   ac_cv_type_int=yes
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148         ac_cv_type_int=no
5149 fi
5150
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 fi
5153 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5154 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5155
5156 # The cast to long int works around a bug in the HP C Compiler
5157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5159 # This bug is HP SR number 8606223364.
5160 { echo "$as_me:$LINENO: checking size of int" >&5
5161 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5162 if test "${ac_cv_sizeof_int+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test "$cross_compiling" = yes; then
5166   # Depending upon the size, compute the lo and hi bounds.
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173 $ac_includes_default
5174    typedef int ac__type_sizeof_;
5175 int
5176 main ()
5177 {
5178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5179 test_array [0] = 0
5180
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext
5186 if { (ac_try="$ac_compile"
5187 case "(($ac_try" in
5188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189   *) ac_try_echo=$ac_try;;
5190 esac
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192   (eval "$ac_compile") 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } && {
5199          test -z "$ac_c_werror_flag" ||
5200          test ! -s conftest.err
5201        } && test -s conftest.$ac_objext; then
5202   ac_lo=0 ac_mid=0
5203   while :; do
5204     cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h.  */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h.  */
5210 $ac_includes_default
5211    typedef int ac__type_sizeof_;
5212 int
5213 main ()
5214 {
5215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5216 test_array [0] = 0
5217
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5224 case "(($ac_try" in
5225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226   *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229   (eval "$ac_compile") 2>conftest.er1
5230   ac_status=$?
5231   grep -v '^ *+' conftest.er1 >conftest.err
5232   rm -f conftest.er1
5233   cat conftest.err >&5
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } && {
5236          test -z "$ac_c_werror_flag" ||
5237          test ! -s conftest.err
5238        } && test -s conftest.$ac_objext; then
5239   ac_hi=$ac_mid; break
5240 else
5241   echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244         ac_lo=`expr $ac_mid + 1`
5245                         if test $ac_lo -le $ac_mid; then
5246                           ac_lo= ac_hi=
5247                           break
5248                         fi
5249                         ac_mid=`expr 2 '*' $ac_mid + 1`
5250 fi
5251
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253   done
5254 else
5255   echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258         cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h.  */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h.  */
5264 $ac_includes_default
5265    typedef int ac__type_sizeof_;
5266 int
5267 main ()
5268 {
5269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5270 test_array [0] = 0
5271
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (ac_try="$ac_compile"
5278 case "(($ac_try" in
5279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280   *) ac_try_echo=$ac_try;;
5281 esac
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283   (eval "$ac_compile") 2>conftest.er1
5284   ac_status=$?
5285   grep -v '^ *+' conftest.er1 >conftest.err
5286   rm -f conftest.er1
5287   cat conftest.err >&5
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } && {
5290          test -z "$ac_c_werror_flag" ||
5291          test ! -s conftest.err
5292        } && test -s conftest.$ac_objext; then
5293   ac_hi=-1 ac_mid=-1
5294   while :; do
5295     cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h.  */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h.  */
5301 $ac_includes_default
5302    typedef int ac__type_sizeof_;
5303 int
5304 main ()
5305 {
5306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5307 test_array [0] = 0
5308
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5315 case "(($ac_try" in
5316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317   *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320   (eval "$ac_compile") 2>conftest.er1
5321   ac_status=$?
5322   grep -v '^ *+' conftest.er1 >conftest.err
5323   rm -f conftest.er1
5324   cat conftest.err >&5
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); } && {
5327          test -z "$ac_c_werror_flag" ||
5328          test ! -s conftest.err
5329        } && test -s conftest.$ac_objext; then
5330   ac_lo=$ac_mid; break
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335         ac_hi=`expr '(' $ac_mid ')' - 1`
5336                         if test $ac_mid -le $ac_hi; then
5337                           ac_lo= ac_hi=
5338                           break
5339                         fi
5340                         ac_mid=`expr 2 '*' $ac_mid`
5341 fi
5342
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344   done
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349         ac_lo= ac_hi=
5350 fi
5351
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 fi
5354
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 # Binary search between lo and hi bounds.
5357 while test "x$ac_lo" != "x$ac_hi"; do
5358   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5359   cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5365 $ac_includes_default
5366    typedef int ac__type_sizeof_;
5367 int
5368 main ()
5369 {
5370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5371 test_array [0] = 0
5372
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (ac_try="$ac_compile"
5379 case "(($ac_try" in
5380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381   *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384   (eval "$ac_compile") 2>conftest.er1
5385   ac_status=$?
5386   grep -v '^ *+' conftest.er1 >conftest.err
5387   rm -f conftest.er1
5388   cat conftest.err >&5
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); } && {
5391          test -z "$ac_c_werror_flag" ||
5392          test ! -s conftest.err
5393        } && test -s conftest.$ac_objext; then
5394   ac_hi=$ac_mid
5395 else
5396   echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399         ac_lo=`expr '(' $ac_mid ')' + 1`
5400 fi
5401
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 done
5404 case $ac_lo in
5405 ?*) ac_cv_sizeof_int=$ac_lo;;
5406 '') if test "$ac_cv_type_int" = yes; then
5407      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5408 See \`config.log' for more details." >&5
5409 echo "$as_me: error: cannot compute sizeof (int)
5410 See \`config.log' for more details." >&2;}
5411    { (exit 77); exit 77; }; }
5412    else
5413      ac_cv_sizeof_int=0
5414    fi ;;
5415 esac
5416 else
5417   cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h.  */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h.  */
5423 $ac_includes_default
5424    typedef int ac__type_sizeof_;
5425 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5426 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5427 #include <stdio.h>
5428 #include <stdlib.h>
5429 int
5430 main ()
5431 {
5432
5433   FILE *f = fopen ("conftest.val", "w");
5434   if (! f)
5435     return 1;
5436   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5437     {
5438       long int i = longval ();
5439       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5440         return 1;
5441       fprintf (f, "%ld\n", i);
5442     }
5443   else
5444     {
5445       unsigned long int i = ulongval ();
5446       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5447         return 1;
5448       fprintf (f, "%lu\n", i);
5449     }
5450   return ferror (f) || fclose (f) != 0;
5451
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest$ac_exeext
5457 if { (ac_try="$ac_link"
5458 case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463   (eval "$ac_link") 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5467   { (case "(($ac_try" in
5468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469   *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472   (eval "$ac_try") 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }; }; then
5476   ac_cv_sizeof_int=`cat conftest.val`
5477 else
5478   echo "$as_me: program exited with status $ac_status" >&5
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 ( exit $ac_status )
5483 if test "$ac_cv_type_int" = yes; then
5484      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5485 See \`config.log' for more details." >&5
5486 echo "$as_me: error: cannot compute sizeof (int)
5487 See \`config.log' for more details." >&2;}
5488    { (exit 77); exit 77; }; }
5489    else
5490      ac_cv_sizeof_int=0
5491    fi
5492 fi
5493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5494 fi
5495 rm -f conftest.val
5496 fi
5497 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5498 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5499
5500
5501
5502 cat >>confdefs.h <<_ACEOF
5503 #define SIZEOF_INT $ac_cv_sizeof_int
5504 _ACEOF
5505
5506
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
5511 else
5512   cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518 $ac_includes_default
5519 typedef long ac__type_new_;
5520 int
5521 main ()
5522 {
5523 if ((ac__type_new_ *) 0)
5524   return 0;
5525 if (sizeof (ac__type_new_))
5526   return 0;
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535   *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538   (eval "$ac_compile") 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } && {
5545          test -z "$ac_c_werror_flag" ||
5546          test ! -s conftest.err
5547        } && test -s conftest.$ac_objext; then
5548   ac_cv_type_long=yes
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553         ac_cv_type_long=no
5554 fi
5555
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 fi
5558 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5559 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5560
5561 # The cast to long int 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 { echo "$as_me:$LINENO: checking size of long" >&5
5566 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5567 if test "${ac_cv_sizeof_long+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   if test "$cross_compiling" = yes; then
5571   # Depending upon the size, compute the lo and hi bounds.
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h.  */
5578 $ac_includes_default
5579    typedef long ac__type_sizeof_;
5580 int
5581 main ()
5582 {
5583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5584 test_array [0] = 0
5585
5586   ;
5587   return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5592 case "(($ac_try" in
5593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594   *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597   (eval "$ac_compile") 2>conftest.er1
5598   ac_status=$?
5599   grep -v '^ *+' conftest.er1 >conftest.err
5600   rm -f conftest.er1
5601   cat conftest.err >&5
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } && {
5604          test -z "$ac_c_werror_flag" ||
5605          test ! -s conftest.err
5606        } && test -s conftest.$ac_objext; then
5607   ac_lo=0 ac_mid=0
5608   while :; do
5609     cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h.  */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h.  */
5615 $ac_includes_default
5616    typedef long ac__type_sizeof_;
5617 int
5618 main ()
5619 {
5620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5621 test_array [0] = 0
5622
5623   ;
5624   return 0;
5625 }
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631   *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634   (eval "$ac_compile") 2>conftest.er1
5635   ac_status=$?
5636   grep -v '^ *+' conftest.er1 >conftest.err
5637   rm -f conftest.er1
5638   cat conftest.err >&5
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } && {
5641          test -z "$ac_c_werror_flag" ||
5642          test ! -s conftest.err
5643        } && test -s conftest.$ac_objext; then
5644   ac_hi=$ac_mid; break
5645 else
5646   echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649         ac_lo=`expr $ac_mid + 1`
5650                         if test $ac_lo -le $ac_mid; then
5651                           ac_lo= ac_hi=
5652                           break
5653                         fi
5654                         ac_mid=`expr 2 '*' $ac_mid + 1`
5655 fi
5656
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658   done
5659 else
5660   echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663         cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h.  */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h.  */
5669 $ac_includes_default
5670    typedef long ac__type_sizeof_;
5671 int
5672 main ()
5673 {
5674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5675 test_array [0] = 0
5676
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688   (eval "$ac_compile") 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } && {
5695          test -z "$ac_c_werror_flag" ||
5696          test ! -s conftest.err
5697        } && test -s conftest.$ac_objext; then
5698   ac_hi=-1 ac_mid=-1
5699   while :; do
5700     cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 $ac_includes_default
5707    typedef long ac__type_sizeof_;
5708 int
5709 main ()
5710 {
5711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5712 test_array [0] = 0
5713
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5720 case "(($ac_try" in
5721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722   *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725   (eval "$ac_compile") 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } && {
5732          test -z "$ac_c_werror_flag" ||
5733          test ! -s conftest.err
5734        } && test -s conftest.$ac_objext; then
5735   ac_lo=$ac_mid; break
5736 else
5737   echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740         ac_hi=`expr '(' $ac_mid ')' - 1`
5741                         if test $ac_mid -le $ac_hi; then
5742                           ac_lo= ac_hi=
5743                           break
5744                         fi
5745                         ac_mid=`expr 2 '*' $ac_mid`
5746 fi
5747
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749   done
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754         ac_lo= ac_hi=
5755 fi
5756
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 fi
5759
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 # Binary search between lo and hi bounds.
5762 while test "x$ac_lo" != "x$ac_hi"; do
5763   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5764   cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h.  */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h.  */
5770 $ac_includes_default
5771    typedef long ac__type_sizeof_;
5772 int
5773 main ()
5774 {
5775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5776 test_array [0] = 0
5777
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5784 case "(($ac_try" in
5785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786   *) ac_try_echo=$ac_try;;
5787 esac
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789   (eval "$ac_compile") 2>conftest.er1
5790   ac_status=$?
5791   grep -v '^ *+' conftest.er1 >conftest.err
5792   rm -f conftest.er1
5793   cat conftest.err >&5
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); } && {
5796          test -z "$ac_c_werror_flag" ||
5797          test ! -s conftest.err
5798        } && test -s conftest.$ac_objext; then
5799   ac_hi=$ac_mid
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804         ac_lo=`expr '(' $ac_mid ')' + 1`
5805 fi
5806
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 done
5809 case $ac_lo in
5810 ?*) ac_cv_sizeof_long=$ac_lo;;
5811 '') if test "$ac_cv_type_long" = yes; then
5812      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5813 See \`config.log' for more details." >&5
5814 echo "$as_me: error: cannot compute sizeof (long)
5815 See \`config.log' for more details." >&2;}
5816    { (exit 77); exit 77; }; }
5817    else
5818      ac_cv_sizeof_long=0
5819    fi ;;
5820 esac
5821 else
5822   cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h.  */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h.  */
5828 $ac_includes_default
5829    typedef long ac__type_sizeof_;
5830 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5831 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5832 #include <stdio.h>
5833 #include <stdlib.h>
5834 int
5835 main ()
5836 {
5837
5838   FILE *f = fopen ("conftest.val", "w");
5839   if (! f)
5840     return 1;
5841   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5842     {
5843       long int i = longval ();
5844       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5845         return 1;
5846       fprintf (f, "%ld\n", i);
5847     }
5848   else
5849     {
5850       unsigned long int i = ulongval ();
5851       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5852         return 1;
5853       fprintf (f, "%lu\n", i);
5854     }
5855   return ferror (f) || fclose (f) != 0;
5856
5857   ;
5858   return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest$ac_exeext
5862 if { (ac_try="$ac_link"
5863 case "(($ac_try" in
5864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865   *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868   (eval "$ac_link") 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5872   { (case "(($ac_try" in
5873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874   *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877   (eval "$ac_try") 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   ac_cv_sizeof_long=`cat conftest.val`
5882 else
5883   echo "$as_me: program exited with status $ac_status" >&5
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ( exit $ac_status )
5888 if test "$ac_cv_type_long" = yes; then
5889      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5890 See \`config.log' for more details." >&5
5891 echo "$as_me: error: cannot compute sizeof (long)
5892 See \`config.log' for more details." >&2;}
5893    { (exit 77); exit 77; }; }
5894    else
5895      ac_cv_sizeof_long=0
5896    fi
5897 fi
5898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5899 fi
5900 rm -f conftest.val
5901 fi
5902 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5903 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5904
5905
5906
5907 cat >>confdefs.h <<_ACEOF
5908 #define SIZEOF_LONG $ac_cv_sizeof_long
5909 _ACEOF
5910
5911
5912
5913 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5914 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
5915 if test "${ac_cv_c_char_unsigned+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924 $ac_includes_default
5925 int
5926 main ()
5927 {
5928 static int test_array [1 - 2 * !(((char) -1) < 0)];
5929 test_array [0] = 0
5930
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext
5936 if { (ac_try="$ac_compile"
5937 case "(($ac_try" in
5938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939   *) ac_try_echo=$ac_try;;
5940 esac
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942   (eval "$ac_compile") 2>conftest.er1
5943   ac_status=$?
5944   grep -v '^ *+' conftest.er1 >conftest.err
5945   rm -f conftest.er1
5946   cat conftest.err >&5
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); } && {
5949          test -z "$ac_c_werror_flag" ||
5950          test ! -s conftest.err
5951        } && test -s conftest.$ac_objext; then
5952   ac_cv_c_char_unsigned=no
5953 else
5954   echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5956
5957         ac_cv_c_char_unsigned=yes
5958 fi
5959
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 fi
5962 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5963 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
5964 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5965   cat >>confdefs.h <<\_ACEOF
5966 #define __CHAR_UNSIGNED__ 1
5967 _ACEOF
5968
5969 fi
5970
5971
5972 type_name()
5973 {
5974   if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5975       echo "char"
5976     exit
5977   fi
5978   if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5979     echo "short"
5980     exit
5981   fi
5982   if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5983     echo "int"
5984     exit
5985   fi
5986   if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5987     echo "long"
5988     exit
5989   fi
5990   echo "long"
5991 }
5992
5993 { echo "$as_me:$LINENO: checking type name for byte" >&5
5994 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
5995 TYPE_CHAR=`type_name 1`
5996 if test "$ac_cv_c_char_unsigned" = "yes"; then
5997   TYPE_BYTE="signed $TYPE_CHAR"
5998 else
5999   TYPE_BYTE=$TYPE_CHAR
6000 fi
6001 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6002 echo "${ECHO_T}$TYPE_BYTE" >&6; }
6003 { echo "$as_me:$LINENO: checking type name for word" >&5
6004 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
6005 TYPE_WORD=`type_name 2`
6006 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6007 echo "${ECHO_T}$TYPE_WORD" >&6; }
6008 { echo "$as_me:$LINENO: checking type name for dword" >&5
6009 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
6010 TYPE_DWORD=`type_name 4`
6011 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6012 echo "${ECHO_T}$TYPE_DWORD" >&6; }
6013
6014 cat >>confdefs.h <<_ACEOF
6015 #define TYPE_BYTE $TYPE_BYTE
6016 _ACEOF
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define TYPE_WORD $TYPE_WORD
6020 _ACEOF
6021
6022 cat >>confdefs.h <<_ACEOF
6023 #define TYPE_DWORD $TYPE_DWORD
6024 _ACEOF
6025
6026
6027 cat >>confdefs.h <<_ACEOF
6028 #define TYPE_UBYTE unsigned $TYPE_CHAR
6029 _ACEOF
6030
6031 cat >>confdefs.h <<_ACEOF
6032 #define TYPE_UWORD unsigned $TYPE_WORD
6033 _ACEOF
6034
6035 cat >>confdefs.h <<_ACEOF
6036 #define TYPE_UDWORD unsigned $TYPE_DWORD
6037 _ACEOF
6038
6039
6040 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6041 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6042 if test "${ac_cv_c_bigendian+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   # See if sys/param.h defines the BYTE_ORDER macro.
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h.  */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h.  */
6052 #include <sys/types.h>
6053 #include <sys/param.h>
6054
6055 int
6056 main ()
6057 {
6058 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6059         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6060  bogus endian macros
6061 #endif
6062
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6069 case "(($ac_try" in
6070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071   *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074   (eval "$ac_compile") 2>conftest.er1
6075   ac_status=$?
6076   grep -v '^ *+' conftest.er1 >conftest.err
6077   rm -f conftest.er1
6078   cat conftest.err >&5
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } && {
6081          test -z "$ac_c_werror_flag" ||
6082          test ! -s conftest.err
6083        } && test -s conftest.$ac_objext; then
6084   # It does; now see whether it defined to BIG_ENDIAN or not.
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h.  */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h.  */
6091 #include <sys/types.h>
6092 #include <sys/param.h>
6093
6094 int
6095 main ()
6096 {
6097 #if BYTE_ORDER != BIG_ENDIAN
6098  not big endian
6099 #endif
6100
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112   (eval "$ac_compile") 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } && {
6119          test -z "$ac_c_werror_flag" ||
6120          test ! -s conftest.err
6121        } && test -s conftest.$ac_objext; then
6122   ac_cv_c_bigendian=yes
6123 else
6124   echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6126
6127         ac_cv_c_bigendian=no
6128 fi
6129
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135         # It does not; compile a test program.
6136 if test "$cross_compiling" = yes; then
6137   # try to guess the endianness by grepping values into an object file
6138   ac_cv_c_bigendian=unknown
6139   cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6146 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6147 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6148 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6149 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6150 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6151 int
6152 main ()
6153 {
6154  _ascii (); _ebcdic ();
6155   ;
6156   return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest.$ac_objext
6160 if { (ac_try="$ac_compile"
6161 case "(($ac_try" in
6162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163   *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166   (eval "$ac_compile") 2>conftest.er1
6167   ac_status=$?
6168   grep -v '^ *+' conftest.er1 >conftest.err
6169   rm -f conftest.er1
6170   cat conftest.err >&5
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } && {
6173          test -z "$ac_c_werror_flag" ||
6174          test ! -s conftest.err
6175        } && test -s conftest.$ac_objext; then
6176   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6177   ac_cv_c_bigendian=yes
6178 fi
6179 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6180   if test "$ac_cv_c_bigendian" = unknown; then
6181     ac_cv_c_bigendian=no
6182   else
6183     # finding both strings is unlikely to happen, but who knows?
6184     ac_cv_c_bigendian=unknown
6185   fi
6186 fi
6187 else
6188   echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6190
6191
6192 fi
6193
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 else
6196   cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h.  */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h.  */
6202 $ac_includes_default
6203 int
6204 main ()
6205 {
6206
6207   /* Are we little or big endian?  From Harbison&Steele.  */
6208   union
6209   {
6210     long int l;
6211     char c[sizeof (long int)];
6212   } u;
6213   u.l = 1;
6214   return u.c[sizeof (long int) - 1] == 1;
6215
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest$ac_exeext
6221 if { (ac_try="$ac_link"
6222 case "(($ac_try" in
6223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224   *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227   (eval "$ac_link") 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6231   { (case "(($ac_try" in
6232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233   *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236   (eval "$ac_try") 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; }; then
6240   ac_cv_c_bigendian=no
6241 else
6242   echo "$as_me: program exited with status $ac_status" >&5
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ( exit $ac_status )
6247 ac_cv_c_bigendian=yes
6248 fi
6249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6250 fi
6251
6252
6253 fi
6254
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 fi
6257 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6258 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6259 case $ac_cv_c_bigendian in
6260   yes)
6261
6262 cat >>confdefs.h <<\_ACEOF
6263 #define WORDS_BIGENDIAN 1
6264 _ACEOF
6265  ;;
6266   no)
6267      ;;
6268   *)
6269     { { echo "$as_me:$LINENO: error: unknown endianness
6270 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6271 echo "$as_me: error: unknown endianness
6272 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6273    { (exit 1); exit 1; }; } ;;
6274 esac
6275
6276
6277 # Set standard installation paths
6278 # ===========================================================================
6279
6280 # In the Makefiles we need paths with '/' as directory separator, even if
6281 # crosscompiling for Win32.
6282 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6283 # The variables in the Makefiles are replaced by AC_SUBST()
6284 #
6285 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6286 #
6287 # The macros are expanded for the header.
6288 # The variables in the header are replaced by AC_*DEFINE*()
6289 # sdccconf_h_dir_separator contains a backslash.
6290
6291 if test "x${sdccconf_h_dir_separator}" = "x"; then
6292     sdccconf_h_dir_separator="/"
6293 fi
6294
6295 # Makefiles
6296 ###########
6297
6298 # include_dir_suffix:
6299 # *nix default: "sdcc/include"
6300
6301
6302 if test "${include_dir_suffix}" = ""; then
6303     include_dir_suffix="sdcc/include"
6304 fi
6305
6306
6307 # lib_dir_suffix:
6308 # *nix default: "sdcc/lib"
6309
6310 if test "${lib_dir_suffix}" = ""; then
6311     lib_dir_suffix="sdcc/lib"
6312 fi
6313
6314
6315 # docdir:
6316 # *nix default: "${datadir}/sdcc/doc"
6317
6318 if test "${docdir}" = ""; then
6319     docdir="\${datadir}"/sdcc/doc
6320 fi
6321
6322
6323
6324
6325 # sdccconf.h
6326 ############
6327
6328 cat >>confdefs.h <<_ACEOF
6329 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6330 _ACEOF
6331
6332 cat >>confdefs.h <<_ACEOF
6333 #define DIR_SEPARATOR_CHAR   '${sdccconf_h_dir_separator}'
6334 _ACEOF
6335
6336
6337 # prefix:
6338 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6339
6340   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6341   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6342   ac_expand=$prefix
6343   test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6344   ac_expand=`eval echo $ac_expand`
6345   expanded_prefix=`eval echo $ac_expand`
6346
6347
6348   ac_ndu=$expanded_prefix
6349   case ":$ac_ndu:" in
6350   ::) ac_ndu='.' ;;
6351   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6352   :*:) ;;
6353 esac
6354 case $sdccconf_h_dir_separator in
6355
6356     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6357                                   s,^[\\/],\\\\\\\\,'` ;;
6358
6359  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6360 esac
6361   cat >>confdefs.h <<_ACEOF
6362 #define PREFIX "${ac_ndu}"
6363 _ACEOF
6364
6365
6366
6367 # exec_prefix:
6368 # default: "${prefix}"
6369
6370   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6371   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6372   ac_expand=$exec_prefix
6373   test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6374   ac_expand=`eval echo $ac_expand`
6375   expanded_exec_prefix=`eval echo $ac_expand`
6376
6377
6378   ac_ndu=$expanded_exec_prefix
6379   case ":$ac_ndu:" in
6380   ::) ac_ndu='.' ;;
6381   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6382   :*:) ;;
6383 esac
6384 case $sdccconf_h_dir_separator in
6385
6386     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6387                                   s,^[\\/],\\\\\\\\,'` ;;
6388
6389  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6390 esac
6391   cat >>confdefs.h <<_ACEOF
6392 #define EXEC_PREFIX "${ac_ndu}"
6393 _ACEOF
6394
6395
6396
6397 # bindir:
6398 # default: "${exec_prefix}/bin"
6399
6400   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6401   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6402   ac_expand=$bindir
6403   test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6404   ac_expand=`eval echo $ac_expand`
6405   expanded_bindir=`eval echo $ac_expand`
6406
6407
6408   ac_ndu=$expanded_bindir
6409   case ":$ac_ndu:" in
6410   ::) ac_ndu='.' ;;
6411   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6412   :*:) ;;
6413 esac
6414 case $sdccconf_h_dir_separator in
6415
6416     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6417                                   s,^[\\/],\\\\\\\\,'` ;;
6418
6419  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6420 esac
6421   cat >>confdefs.h <<_ACEOF
6422 #define BINDIR "${ac_ndu}"
6423 _ACEOF
6424
6425
6426
6427 # datadir:
6428 # default: "${prefix}/share"
6429
6430   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6431   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6432   ac_expand=$datadir
6433   test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6434   ac_expand=`eval echo $ac_expand`
6435   expanded_datadir=`eval echo $ac_expand`
6436
6437
6438   ac_ndu=$expanded_datadir
6439   case ":$ac_ndu:" in
6440   ::) ac_ndu='.' ;;
6441   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6442   :*:) ;;
6443 esac
6444 case $sdccconf_h_dir_separator in
6445
6446     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6447                                   s,^[\\/],\\\\\\\\,'` ;;
6448
6449  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6450 esac
6451   cat >>confdefs.h <<_ACEOF
6452 #define DATADIR "${ac_ndu}"
6453 _ACEOF
6454
6455
6456
6457 # include/lib suffix
6458 norm_inc_dir_suffix=${include_dir_suffix}
6459 case ":$norm_inc_dir_suffix:" in
6460   ::) norm_inc_dir_suffix='.' ;;
6461   :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6462   :*:) ;;
6463 esac
6464 case $sdccconf_h_dir_separator in
6465
6466     *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6467                                   s,^[\\/],\\\\\\\\,'` ;;
6468
6469  *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6470 esac
6471 cat >>confdefs.h <<_ACEOF
6472 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6473 _ACEOF
6474
6475 norm_lib_dir_suffix=${lib_dir_suffix}
6476 case ":$norm_lib_dir_suffix:" in
6477   ::) norm_lib_dir_suffix='.' ;;
6478   :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6479   :*:) ;;
6480 esac
6481 case $sdccconf_h_dir_separator in
6482
6483     *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6484                                   s,^[\\/],\\\\\\\\,'` ;;
6485
6486  *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6487 esac
6488 cat >>confdefs.h <<_ACEOF
6489 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6490 _ACEOF
6491
6492
6493 # relative paths
6494 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6495   _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6496   _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6497   _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6498   _lcl_receval="$_lcl_from"
6499 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6500      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6501      _lcl_receval_old=''
6502      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6503        _lcl_receval_old="$_lcl_receval"
6504        eval _lcl_receval="\"$_lcl_receval\""
6505      done
6506      echo "$_lcl_receval")`
6507   _lcl_receval="$_lcl_to"
6508 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6509      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6510      _lcl_receval_old=''
6511      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6512        _lcl_receval_old="$_lcl_receval"
6513        eval _lcl_receval="\"$_lcl_receval\""
6514      done
6515      echo "$_lcl_receval")`
6516   _lcl_notation="$_lcl_from$_lcl_to"
6517   case ":$_lcl_from:" in
6518   ::) _lcl_from='.' ;;
6519   :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6520   :*:) ;;
6521 esac
6522 case '/' in
6523
6524     *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6525                                   s,^[\\/],\\\\\\\\,'` ;;
6526
6527  *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6528 esac
6529   case ":$_lcl_to:" in
6530   ::) _lcl_to='.' ;;
6531   :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6532   :*:) ;;
6533 esac
6534 case '/' in
6535
6536     *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6537                                   s,^[\\/],\\\\\\\\,'` ;;
6538
6539  *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6540 esac
6541   _lcl_common_prefix=''
6542 _lcl_second_prefix_match=''
6543 while test "$_lcl_second_prefix_match" != 0; do
6544   _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6545   _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6546   if test "$_lcl_second_prefix_match" != 0; then
6547     if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6548       _lcl_common_prefix="$_lcl_first_prefix"
6549     else
6550       _lcl_second_prefix_match=0
6551     fi
6552   fi
6553 done
6554 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6555 _lcl_first_rel=''
6556 _lcl_tmp='xxx'
6557 while test "$_lcl_tmp" != ''; do
6558   _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6559   if test "$_lcl_first_suffix" != ''; then
6560      _lcl_first_suffix="$_lcl_tmp"
6561      _lcl_first_rel="../$_lcl_first_rel"
6562   fi
6563 done
6564 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6565 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6566   case ":$_lcl_result_tmp:" in
6567   ::) _lcl_result_tmp='.' ;;
6568   :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6569   :*:) ;;
6570 esac
6571 case "$_lcl_notation" in
6572
6573     *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6574                                   s,^[\\/],\\\\\\\\,'` ;;
6575
6576  *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6577 esac
6578   eval $_lcl_result_var='$_lcl_result_tmp'
6579 done
6580 case ":$bin2data_dir:" in
6581   ::) bin2data_dir='.' ;;
6582   :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6583   :*:) ;;
6584 esac
6585 case $sdccconf_h_dir_separator in
6586
6587     *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6588                                   s,^[\\/],\\\\\\\\,'` ;;
6589
6590  *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6591 esac
6592 cat >>confdefs.h <<_ACEOF
6593 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6594 _ACEOF
6595
6596
6597 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6598   _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6599   _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6600   _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6601   _lcl_receval="$_lcl_from"
6602 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6603      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6604      _lcl_receval_old=''
6605      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6606        _lcl_receval_old="$_lcl_receval"
6607        eval _lcl_receval="\"$_lcl_receval\""
6608      done
6609      echo "$_lcl_receval")`
6610   _lcl_receval="$_lcl_to"
6611 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6612      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6613      _lcl_receval_old=''
6614      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6615        _lcl_receval_old="$_lcl_receval"
6616        eval _lcl_receval="\"$_lcl_receval\""
6617      done
6618      echo "$_lcl_receval")`
6619   _lcl_notation="$_lcl_from$_lcl_to"
6620   case ":$_lcl_from:" in
6621   ::) _lcl_from='.' ;;
6622   :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6623   :*:) ;;
6624 esac
6625 case '/' in
6626
6627     *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6628                                   s,^[\\/],\\\\\\\\,'` ;;
6629
6630  *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6631 esac
6632   case ":$_lcl_to:" in
6633   ::) _lcl_to='.' ;;
6634   :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6635   :*:) ;;
6636 esac
6637 case '/' in
6638
6639     *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6640                                   s,^[\\/],\\\\\\\\,'` ;;
6641
6642  *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6643 esac
6644   _lcl_common_prefix=''
6645 _lcl_second_prefix_match=''
6646 while test "$_lcl_second_prefix_match" != 0; do
6647   _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6648   _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6649   if test "$_lcl_second_prefix_match" != 0; then
6650     if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6651       _lcl_common_prefix="$_lcl_first_prefix"
6652     else
6653       _lcl_second_prefix_match=0
6654     fi
6655   fi
6656 done
6657 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6658 _lcl_first_rel=''
6659 _lcl_tmp='xxx'
6660 while test "$_lcl_tmp" != ''; do
6661   _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6662   if test "$_lcl_first_suffix" != ''; then
6663      _lcl_first_suffix="$_lcl_tmp"
6664      _lcl_first_rel="../$_lcl_first_rel"
6665   fi
6666 done
6667 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6668 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6669   case ":$_lcl_result_tmp:" in
6670   ::) _lcl_result_tmp='.' ;;
6671   :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6672   :*:) ;;
6673 esac
6674 case "$_lcl_notation" in
6675
6676     *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6677                                   s,^[\\/],\\\\\\\\,'` ;;
6678
6679  *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6680 esac
6681   eval $_lcl_result_var='$_lcl_result_tmp'
6682 done
6683 case ":$prefix2bin_dir:" in
6684   ::) prefix2bin_dir='.' ;;
6685   :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6686   :*:) ;;
6687 esac
6688 case $sdccconf_h_dir_separator in
6689
6690     *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6691                                   s,^[\\/],\\\\\\\\,'` ;;
6692
6693  *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6694 esac
6695 cat >>confdefs.h <<_ACEOF
6696 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6697 _ACEOF
6698
6699
6700 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6701   _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6702   _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6703   _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6704   _lcl_receval="$_lcl_from"
6705 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6706      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6707      _lcl_receval_old=''
6708      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6709        _lcl_receval_old="$_lcl_receval"
6710        eval _lcl_receval="\"$_lcl_receval\""
6711      done
6712      echo "$_lcl_receval")`
6713   _lcl_receval="$_lcl_to"
6714 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6715      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6716      _lcl_receval_old=''
6717      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6718        _lcl_receval_old="$_lcl_receval"
6719        eval _lcl_receval="\"$_lcl_receval\""
6720      done
6721      echo "$_lcl_receval")`
6722   _lcl_notation="$_lcl_from$_lcl_to"
6723   case ":$_lcl_from:" in
6724   ::) _lcl_from='.' ;;
6725   :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6726   :*:) ;;
6727 esac
6728 case '/' in
6729
6730     *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6731                                   s,^[\\/],\\\\\\\\,'` ;;
6732
6733  *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6734 esac
6735   case ":$_lcl_to:" in
6736   ::) _lcl_to='.' ;;
6737   :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6738   :*:) ;;
6739 esac
6740 case '/' in
6741
6742     *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6743                                   s,^[\\/],\\\\\\\\,'` ;;
6744
6745  *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6746 esac
6747   _lcl_common_prefix=''
6748 _lcl_second_prefix_match=''
6749 while test "$_lcl_second_prefix_match" != 0; do
6750   _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6751   _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6752   if test "$_lcl_second_prefix_match" != 0; then
6753     if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6754       _lcl_common_prefix="$_lcl_first_prefix"
6755     else
6756       _lcl_second_prefix_match=0
6757     fi
6758   fi
6759 done
6760 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6761 _lcl_first_rel=''
6762 _lcl_tmp='xxx'
6763 while test "$_lcl_tmp" != ''; do
6764   _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6765   if test "$_lcl_first_suffix" != ''; then
6766      _lcl_first_suffix="$_lcl_tmp"
6767      _lcl_first_rel="../$_lcl_first_rel"
6768   fi
6769 done
6770 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6771 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6772   case ":$_lcl_result_tmp:" in
6773   ::) _lcl_result_tmp='.' ;;
6774   :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6775   :*:) ;;
6776 esac
6777 case "$_lcl_notation" in
6778
6779     *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6780                                   s,^[\\/],\\\\\\\\,'` ;;
6781
6782  *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6783 esac
6784   eval $_lcl_result_var='$_lcl_result_tmp'
6785 done
6786 case ":$prefix2data_dir:" in
6787   ::) prefix2data_dir='.' ;;
6788   :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6789   :*:) ;;
6790 esac
6791 case $sdccconf_h_dir_separator in
6792
6793     *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6794                                   s,^[\\/],\\\\\\\\,'` ;;
6795
6796  *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6797 esac
6798 if test "${prefix2data_dir}" = "."; then
6799     # small optimization for Mingw32; otherwise Borut will complain ;-)
6800     cat >>confdefs.h <<_ACEOF
6801 #define PREFIX2DATA_DIR ""
6802 _ACEOF
6803
6804 else
6805     cat >>confdefs.h <<_ACEOF
6806 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6807 _ACEOF
6808
6809 fi
6810
6811 # standard libs
6812 cat >>confdefs.h <<_ACEOF
6813 #define STD_LIB "libsdcc"
6814 _ACEOF
6815
6816 cat >>confdefs.h <<_ACEOF
6817 #define STD_INT_LIB "libint"
6818 _ACEOF
6819
6820 cat >>confdefs.h <<_ACEOF
6821 #define STD_LONG_LIB "liblong"
6822 _ACEOF
6823
6824 cat >>confdefs.h <<_ACEOF
6825 #define STD_FP_LIB "libfloat"
6826 _ACEOF
6827
6828 cat >>confdefs.h <<_ACEOF
6829 #define STD_DS390_LIB "libds390"
6830 _ACEOF
6831
6832 cat >>confdefs.h <<_ACEOF
6833 #define STD_DS400_LIB "libds400"
6834 _ACEOF
6835
6836 cat >>confdefs.h <<_ACEOF
6837 #define STD_XA51_LIB "libxa51"
6838 _ACEOF
6839
6840
6841 # SDCC runtime environment variables
6842 sdcc_dir_name="SDCC_HOME"
6843 cat >>confdefs.h <<_ACEOF
6844 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6845 _ACEOF
6846
6847
6848 sdcc_include_name="SDCC_INCLUDE"
6849 cat >>confdefs.h <<_ACEOF
6850 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6851 _ACEOF
6852
6853
6854 sdcc_lib_name="SDCC_LIB"
6855 cat >>confdefs.h <<_ACEOF
6856 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6857 _ACEOF
6858
6859
6860 # Port selection helper
6861 # ===========================================================================
6862 # macro AC_DO_ENABLER()
6863 #   $1 used to access enable_$1, e.g. enable-doc
6864 #   $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6865 #   $3 help string
6866
6867
6868 # macro AC_DO_DISABLER()
6869 #   $1 used to access disable_$1, e.g. ucsim
6870 #   $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6871 #   $3 help string
6872
6873
6874 # macro AC_DO_PORT($1, $2, $3, $4)
6875 #   $1 used to access enable_$2_port, e.g. gbz80
6876 #   $2 port name in ports.all and ports.build, e.g. z80
6877 #   $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6878 #   $4 help string
6879
6880
6881 # Now handle the port selection
6882 # ===========================================================================
6883 rm -f ports.all ports.build
6884
6885   # Check whether --enable-mcs51-port was given.
6886 if test "${enable_mcs51_port+set}" = set; then
6887   enableval=$enable_mcs51_port;
6888 fi
6889
6890
6891   if test "$enable_mcs51_port" = "no"; then
6892     OPT_DISABLE_MCS51=1
6893   else
6894     enable_mcs51_port="yes"
6895     OPT_DISABLE_MCS51=0
6896   fi
6897
6898   cat >>confdefs.h <<_ACEOF
6899 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6900 _ACEOF
6901
6902
6903
6904   echo mcs51 >>ports.all
6905   if test $OPT_DISABLE_MCS51 = 0; then
6906     echo mcs51 >>ports.build
6907   fi
6908
6909
6910   # Check whether --enable-gbz80-port was given.
6911 if test "${enable_gbz80_port+set}" = set; then
6912   enableval=$enable_gbz80_port;
6913 fi
6914
6915
6916   if test "$enable_gbz80_port" = "no"; then
6917     OPT_DISABLE_GBZ80=1
6918   else
6919     enable_gbz80_port="yes"
6920     OPT_DISABLE_GBZ80=0
6921   fi
6922
6923   cat >>confdefs.h <<_ACEOF
6924 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6925 _ACEOF
6926
6927
6928
6929   echo z80 >>ports.all
6930   if test $OPT_DISABLE_GBZ80 = 0; then
6931     echo z80 >>ports.build
6932   fi
6933
6934
6935   # Check whether --enable-z80-port was given.
6936 if test "${enable_z80_port+set}" = set; then
6937   enableval=$enable_z80_port;
6938 fi
6939
6940
6941   if test "$enable_z80_port" = "no"; then
6942     OPT_DISABLE_Z80=1
6943   else
6944     enable_z80_port="yes"
6945     OPT_DISABLE_Z80=0
6946   fi
6947
6948   cat >>confdefs.h <<_ACEOF
6949 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6950 _ACEOF
6951
6952
6953
6954   echo z80 >>ports.all
6955   if test $OPT_DISABLE_Z80 = 0; then
6956     echo z80 >>ports.build
6957   fi
6958
6959
6960   # Check whether --enable-avr-port was given.
6961 if test "${enable_avr_port+set}" = set; then
6962   enableval=$enable_avr_port;
6963 fi
6964
6965
6966   if test "$enable_avr_port" = "no"; then
6967     OPT_DISABLE_AVR=1
6968   else
6969     enable_avr_port="yes"
6970     OPT_DISABLE_AVR=0
6971   fi
6972
6973   cat >>confdefs.h <<_ACEOF
6974 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
6975 _ACEOF
6976
6977
6978
6979   echo avr >>ports.all
6980   if test $OPT_DISABLE_AVR = 0; then
6981     echo avr >>ports.build
6982   fi
6983
6984
6985   # Check whether --enable-ds390-port was given.
6986 if test "${enable_ds390_port+set}" = set; then
6987   enableval=$enable_ds390_port;
6988 fi
6989
6990
6991   if test "$enable_ds390_port" = "no"; then
6992     OPT_DISABLE_DS390=1
6993   else
6994     enable_ds390_port="yes"
6995     OPT_DISABLE_DS390=0
6996   fi
6997
6998   cat >>confdefs.h <<_ACEOF
6999 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
7000 _ACEOF
7001
7002
7003
7004   echo ds390 >>ports.all
7005   if test $OPT_DISABLE_DS390 = 0; then
7006     echo ds390 >>ports.build
7007   fi
7008
7009 cat >>confdefs.h <<_ACEOF
7010 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
7011 _ACEOF
7012
7013
7014   # Check whether --enable-ds400-port was given.
7015 if test "${enable_ds400_port+set}" = set; then
7016   enableval=$enable_ds400_port;
7017 fi
7018
7019
7020   if test "$enable_ds400_port" = "no"; then
7021     OPT_DISABLE_DS400=1
7022   else
7023     enable_ds400_port="yes"
7024     OPT_DISABLE_DS400=0
7025   fi
7026
7027   cat >>confdefs.h <<_ACEOF
7028 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
7029 _ACEOF
7030
7031
7032
7033   echo ds400 >>ports.all
7034   if test $OPT_DISABLE_DS400 = 0; then
7035     echo ds400 >>ports.build
7036   fi
7037
7038
7039   # Check whether --enable-pic-port was given.
7040 if test "${enable_pic_port+set}" = set; then
7041   enableval=$enable_pic_port;
7042 fi
7043
7044
7045   if test "$enable_pic_port" = "no"; then
7046     OPT_DISABLE_PIC=1
7047   else
7048     enable_pic_port="yes"
7049     OPT_DISABLE_PIC=0
7050   fi
7051
7052   cat >>confdefs.h <<_ACEOF
7053 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
7054 _ACEOF
7055
7056
7057
7058   echo pic >>ports.all
7059   if test $OPT_DISABLE_PIC = 0; then
7060     echo pic >>ports.build
7061   fi
7062
7063
7064   # Check whether --enable-pic16-port was given.
7065 if test "${enable_pic16_port+set}" = set; then
7066   enableval=$enable_pic16_port;
7067 fi
7068
7069
7070   if test "$enable_pic16_port" = "no"; then
7071     OPT_DISABLE_PIC16=1
7072   else
7073     enable_pic16_port="yes"
7074     OPT_DISABLE_PIC16=0
7075   fi
7076
7077   cat >>confdefs.h <<_ACEOF
7078 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
7079 _ACEOF
7080
7081
7082
7083   echo pic16 >>ports.all
7084   if test $OPT_DISABLE_PIC16 = 0; then
7085     echo pic16 >>ports.build
7086   fi
7087
7088
7089   # Check whether --enable-xa51-port was given.
7090 if test "${enable_xa51_port+set}" = set; then
7091   enableval=$enable_xa51_port;
7092 fi
7093
7094
7095   if test "$enable_xa51_port" = "no"; then
7096     OPT_DISABLE_XA51=1
7097   else
7098     enable_xa51_port="yes"
7099     OPT_DISABLE_XA51=0
7100   fi
7101
7102   cat >>confdefs.h <<_ACEOF
7103 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
7104 _ACEOF
7105
7106
7107
7108   echo xa51 >>ports.all
7109   if test $OPT_DISABLE_XA51 = 0; then
7110     echo xa51 >>ports.build
7111   fi
7112
7113
7114   # Check whether --enable-hc08-port was given.
7115 if test "${enable_hc08_port+set}" = set; then
7116   enableval=$enable_hc08_port;
7117 fi
7118
7119
7120   if test "$enable_hc08_port" = "no"; then
7121     OPT_DISABLE_HC08=1
7122   else
7123     enable_hc08_port="yes"
7124     OPT_DISABLE_HC08=0
7125   fi
7126
7127   cat >>confdefs.h <<_ACEOF
7128 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
7129 _ACEOF
7130
7131
7132
7133   echo hc08 >>ports.all
7134   if test $OPT_DISABLE_HC08 = 0; then
7135     echo hc08 >>ports.build
7136   fi
7137
7138
7139
7140   # Check whether --enable-ucsim was given.
7141 if test "${enable_ucsim+set}" = set; then
7142   enableval=$enable_ucsim;
7143 fi
7144
7145
7146       arg1=`echo ucsim | sed s/-/_/`
7147
7148   if test "`eval echo \\$enable_$arg1`" = "no"; then
7149     OPT_DISABLE_UCSIM=1
7150   else
7151     OPT_DISABLE_UCSIM=0
7152   fi
7153
7154   cat >>confdefs.h <<_ACEOF
7155 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
7156 _ACEOF
7157
7158
7159
7160
7161   # Check whether --enable-device-lib was given.
7162 if test "${enable_device_lib+set}" = set; then
7163   enableval=$enable_device_lib;
7164 fi
7165
7166
7167       arg1=`echo device-lib | sed s/-/_/`
7168
7169   if test "`eval echo \\$enable_$arg1`" = "no"; then
7170     OPT_DISABLE_DEVICE_LIB=1
7171   else
7172     OPT_DISABLE_DEVICE_LIB=0
7173   fi
7174
7175   cat >>confdefs.h <<_ACEOF
7176 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
7177 _ACEOF
7178
7179
7180
7181
7182   # Check whether --enable-packihx was given.
7183 if test "${enable_packihx+set}" = set; then
7184   enableval=$enable_packihx;
7185 fi
7186
7187
7188       arg1=`echo packihx | sed s/-/_/`
7189
7190   if test "`eval echo \\$enable_$arg1`" = "no"; then
7191     OPT_DISABLE_PACKIHX=1
7192   else
7193     OPT_DISABLE_PACKIHX=0
7194   fi
7195
7196   cat >>confdefs.h <<_ACEOF
7197 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
7198 _ACEOF
7199
7200
7201
7202
7203   # Check whether --enable-sdcpp was given.
7204 if test "${enable_sdcpp+set}" = set; then
7205   enableval=$enable_sdcpp;
7206 fi
7207
7208
7209       arg1=`echo sdcpp | sed s/-/_/`
7210
7211   if test "`eval echo \\$enable_$arg1`" = "no"; then
7212     OPT_DISABLE_SDCPP=1
7213   else
7214     OPT_DISABLE_SDCPP=0
7215   fi
7216
7217   cat >>confdefs.h <<_ACEOF
7218 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
7219 _ACEOF
7220
7221
7222
7223
7224   # Check whether --enable-sdcdb was given.
7225 if test "${enable_sdcdb+set}" = set; then
7226   enableval=$enable_sdcdb;
7227 fi
7228
7229
7230       arg1=`echo sdcdb | sed s/-/_/`
7231
7232   if test "`eval echo \\$enable_$arg1`" = "no"; then
7233     OPT_DISABLE_SDCDB=1
7234   else
7235     OPT_DISABLE_SDCDB=0
7236   fi
7237
7238   cat >>confdefs.h <<_ACEOF
7239 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
7240 _ACEOF
7241
7242
7243
7244
7245
7246   # Check whether --enable-doc was given.
7247 if test "${enable_doc+set}" = set; then
7248   enableval=$enable_doc;
7249 fi
7250
7251
7252   if test "$enable_doc" = "yes"; then
7253     OPT_ENABLE_DOC=1
7254   else
7255     OPT_ENABLE_DOC=0
7256   fi
7257
7258   cat >>confdefs.h <<_ACEOF
7259 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
7260 _ACEOF
7261
7262
7263
7264 if test $OPT_ENABLE_DOC = 1; then
7265   # Extract the first word of "lyx", so it can be a program name with args.
7266 set dummy lyx; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_prog_LYX+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   if test -n "$LYX"; then
7273   ac_cv_prog_LYX="$LYX" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280   for ac_exec_ext in '' $ac_executable_extensions; do
7281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282     ac_cv_prog_LYX="lyx"
7283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290   test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
7291 fi
7292 fi
7293 LYX=$ac_cv_prog_LYX
7294 if test -n "$LYX"; then
7295   { echo "$as_me:$LINENO: result: $LYX" >&5
7296 echo "${ECHO_T}$LYX" >&6; }
7297 else
7298   { echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6; }
7300 fi
7301
7302
7303   # Extract the first word of "latex2html", so it can be a program name with args.
7304 set dummy latex2html; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   if test -n "$LATEX2HTML"; then
7311   ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_prog_LATEX2HTML="latex2html"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7329 fi
7330 fi
7331 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7332 if test -n "$LATEX2HTML"; then
7333   { echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7334 echo "${ECHO_T}$LATEX2HTML" >&6; }
7335 else
7336   { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7338 fi
7339
7340
7341   # Extract the first word of "pdflatex", so it can be a program name with args.
7342 set dummy pdflatex; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   if test -n "$PDFLATEX"; then
7349   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_prog_PDFLATEX="pdflatex"
7359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366   test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7367 fi
7368 fi
7369 PDFLATEX=$ac_cv_prog_PDFLATEX
7370 if test -n "$PDFLATEX"; then
7371   { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7372 echo "${ECHO_T}$PDFLATEX" >&6; }
7373 else
7374   { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7376 fi
7377
7378
7379   # Extract the first word of "pdfopt", so it can be a program name with args.
7380 set dummy pdfopt; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   if test -n "$PDFOPT"; then
7387   ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_prog_PDFOPT="pdfopt"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404   test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7405 fi
7406 fi
7407 PDFOPT=$ac_cv_prog_PDFOPT
7408 if test -n "$PDFOPT"; then
7409   { echo "$as_me:$LINENO: result: $PDFOPT" >&5
7410 echo "${ECHO_T}$PDFOPT" >&6; }
7411 else
7412   { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7415
7416
7417   # Extract the first word of "makeindex", so it can be a program name with args.
7418 set dummy makeindex; ac_word=$2
7419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7421 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7422   echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424   if test -n "$MAKEINDEX"; then
7425   ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432   for ac_exec_ext in '' $ac_executable_extensions; do
7433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434     ac_cv_prog_MAKEINDEX="makeindex"
7435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442   test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7443 fi
7444 fi
7445 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7446 if test -n "$MAKEINDEX"; then
7447   { echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7448 echo "${ECHO_T}$MAKEINDEX" >&6; }
7449 else
7450   { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7452 fi
7453
7454
7455
7456   if test "$LYX" = ":"; then
7457   { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7458 echo "$as_me: error: Cannot find required program lyx." >&2;}
7459    { (exit 1); exit 1; }; }
7460  fi
7461
7462   if test "$LATEX2HTML" = ":"; then
7463   { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7464 echo "$as_me: error: Cannot find required program latex2html." >&2;}
7465    { (exit 1); exit 1; }; }
7466  fi
7467
7468   if test "$PDFLATEX" = ":"; then
7469   { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7470 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7471    { (exit 1); exit 1; }; }
7472  fi
7473
7474   if test "$PDFOPT" = ":"; then
7475   { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7476 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7477    { (exit 1); exit 1; }; }
7478  fi
7479
7480   if test "$MAKEINDEX" = ":"; then
7481   { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7482 echo "$as_me: error: Cannot find required program makeindex." >&2;}
7483    { (exit 1); exit 1; }; }
7484  fi
7485
7486 fi
7487
7488
7489   # Check whether --enable-libgc was given.
7490 if test "${enable_libgc+set}" = set; then
7491   enableval=$enable_libgc;
7492 fi
7493
7494
7495   if test "$enable_libgc" = "yes"; then
7496     OPT_ENABLE_LIBGC=1
7497   else
7498     OPT_ENABLE_LIBGC=0
7499   fi
7500
7501   cat >>confdefs.h <<_ACEOF
7502 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7503 _ACEOF
7504
7505
7506
7507 if test $OPT_ENABLE_LIBGC = 1; then
7508
7509 { echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7510 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6; }
7511 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   ac_check_lib_save_LIBS=$LIBS
7515 LIBS="-lgc  $LIBS"
7516 cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h.  */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h.  */
7522
7523 /* Override any GCC internal prototype to avoid an error.
7524    Use char because int might match the return type of a GCC
7525    builtin and then its argument prototype would still apply.  */
7526 #ifdef __cplusplus
7527 extern "C"
7528 #endif
7529 char GC_malloc ();
7530 int
7531 main ()
7532 {
7533 return GC_malloc ();
7534   ;
7535   return 0;
7536 }
7537 _ACEOF
7538 rm -f conftest.$ac_objext conftest$ac_exeext
7539 if { (ac_try="$ac_link"
7540 case "(($ac_try" in
7541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542   *) ac_try_echo=$ac_try;;
7543 esac
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545   (eval "$ac_link") 2>conftest.er1
7546   ac_status=$?
7547   grep -v '^ *+' conftest.er1 >conftest.err
7548   rm -f conftest.er1
7549   cat conftest.err >&5
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); } && {
7552          test -z "$ac_c_werror_flag" ||
7553          test ! -s conftest.err
7554        } && test -s conftest$ac_exeext &&
7555        $as_test_x conftest$ac_exeext; then
7556   ac_cv_lib_gc_GC_malloc=yes
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561         ac_cv_lib_gc_GC_malloc=no
7562 fi
7563
7564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7565       conftest$ac_exeext conftest.$ac_ext
7566 LIBS=$ac_check_lib_save_LIBS
7567 fi
7568 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7569 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6; }
7570 if test $ac_cv_lib_gc_GC_malloc = yes; then
7571   cat >>confdefs.h <<_ACEOF
7572 #define HAVE_LIBGC 1
7573 _ACEOF
7574
7575   LIBS="-lgc $LIBS"
7576
7577 fi
7578
7579   if test $ac_cv_lib_gc_GC_malloc = no; then
7580     { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7581 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7582    { (exit 1); exit 1; }; }
7583   fi
7584 fi
7585
7586 #remove duplicates
7587 uniq ports.all ports
7588 mv ports ports.all
7589 uniq ports.build ports
7590 mv ports ports.build
7591
7592 # Generating output files
7593 # ===========================================================================
7594 test $OPT_DISABLE_SDCPP   = 0 && subdirs="$subdirs support/cpp2"
7595
7596 test $OPT_DISABLE_PACKIHX = 0 && subdirs="$subdirs support/packihx"
7597
7598 test $OPT_DISABLE_UCSIM   = 0 && subdirs="$subdirs sim/ucsim"
7599
7600 test $OPT_DISABLE_SDCDB   = 0 && subdirs="$subdirs debugger/mcs51"
7601
7602 ac_config_files="$ac_config_files doc/Makefile"
7603
7604
7605 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7606
7607
7608 if test $OPT_DISABLE_DS390 = 0; then
7609   ac_config_files="$ac_config_files src/ds390/Makefile"
7610
7611   test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7612
7613 fi
7614
7615 if test $OPT_DISABLE_DS400 = 0; then
7616   ac_config_files="$ac_config_files src/ds400/Makefile"
7617
7618   test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7619
7620 fi
7621
7622 if test $OPT_DISABLE_HC08 = 0; then
7623   ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7624
7625   test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7626
7627 fi
7628
7629 if test $OPT_DISABLE_MCS51 = 0; then
7630   ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7631
7632   test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/mcs51/Makefile device/lib/small/Makefile device/lib/medium/Makefile device/lib/large/Makefile"
7633
7634 fi
7635
7636 if test $OPT_DISABLE_PIC = 0; then
7637   ac_config_files="$ac_config_files src/pic/Makefile"
7638
7639   test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic"
7640
7641 fi
7642 if test $OPT_DISABLE_PIC16 = 0; then
7643   ac_config_files="$ac_config_files src/pic16/Makefile"
7644
7645   test $OPT_DISABLE_DEVICE_LIB = 0 && subdirs="$subdirs device/lib/pic16"
7646
7647 fi
7648
7649 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7650
7651
7652 if test $OPT_DISABLE_Z80 = 0; then
7653   ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7654
7655   test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7656
7657 fi
7658
7659 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7660
7661
7662 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile device/include/Makefile support/librarian/Makefile support/makebin/Makefile support/regression/Makefile support/valdiag/Makefile Makefile Makefile.common:Makefile.common.in"
7663
7664 cat >confcache <<\_ACEOF
7665 # This file is a shell script that caches the results of configure
7666 # tests run on this system so they can be shared between configure
7667 # scripts and configure runs, see configure's option --config-cache.
7668 # It is not useful on other systems.  If it contains results you don't
7669 # want to keep, you may remove or edit it.
7670 #
7671 # config.status only pays attention to the cache file if you give it
7672 # the --recheck option to rerun configure.
7673 #
7674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7676 # following values.
7677
7678 _ACEOF
7679
7680 # The following way of writing the cache mishandles newlines in values,
7681 # but we know of no workaround that is simple, portable, and efficient.
7682 # So, we kill variables containing newlines.
7683 # Ultrix sh set writes to stderr and can't be redirected directly,
7684 # and sets the high bit in the cache file unless we assign to the vars.
7685 (
7686   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7687     eval ac_val=\$$ac_var
7688     case $ac_val in #(
7689     *${as_nl}*)
7690       case $ac_var in #(
7691       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7693       esac
7694       case $ac_var in #(
7695       _ | IFS | as_nl) ;; #(
7696       *) $as_unset $ac_var ;;
7697       esac ;;
7698     esac
7699   done
7700
7701   (set) 2>&1 |
7702     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7703     *${as_nl}ac_space=\ *)
7704       # `set' does not quote correctly, so add quotes (double-quote
7705       # substitution turns \\\\ into \\, and sed turns \\ into \).
7706       sed -n \
7707         "s/'/'\\\\''/g;
7708           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7709       ;; #(
7710     *)
7711       # `set' quotes correctly as required by POSIX, so do not add quotes.
7712       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7713       ;;
7714     esac |
7715     sort
7716 ) |
7717   sed '
7718      /^ac_cv_env_/b end
7719      t clear
7720      :clear
7721      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7722      t end
7723      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7724      :end' >>confcache
7725 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7726   if test -w "$cache_file"; then
7727     test "x$cache_file" != "x/dev/null" &&
7728       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7729 echo "$as_me: updating cache $cache_file" >&6;}
7730     cat confcache >$cache_file
7731   else
7732     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7733 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7734   fi
7735 fi
7736 rm -f confcache
7737
7738 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7739 # Let make expand exec_prefix.
7740 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7741
7742 DEFS=-DHAVE_CONFIG_H
7743
7744 ac_libobjs=
7745 ac_ltlibobjs=
7746 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7747   # 1. Remove the extension, and $U if already installed.
7748   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7749   ac_i=`echo "$ac_i" | sed "$ac_script"`
7750   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7751   #    will be set to the directory where LIBOBJS objects are built.
7752   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7753   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7754 done
7755 LIBOBJS=$ac_libobjs
7756
7757 LTLIBOBJS=$ac_ltlibobjs
7758
7759
7760
7761 : ${CONFIG_STATUS=./config.status}
7762 ac_clean_files_save=$ac_clean_files
7763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7766 cat >$CONFIG_STATUS <<_ACEOF
7767 #! $SHELL
7768 # Generated by $as_me.
7769 # Run this file to recreate the current configuration.
7770 # Compiler output produced by configure, useful for debugging
7771 # configure, is in config.log if it exists.
7772
7773 debug=false
7774 ac_cs_recheck=false
7775 ac_cs_silent=false
7776 SHELL=\${CONFIG_SHELL-$SHELL}
7777 _ACEOF
7778
7779 cat >>$CONFIG_STATUS <<\_ACEOF
7780 ## --------------------- ##
7781 ## M4sh Initialization.  ##
7782 ## --------------------- ##
7783
7784 # Be more Bourne compatible
7785 DUALCASE=1; export DUALCASE # for MKS sh
7786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7787   emulate sh
7788   NULLCMD=:
7789   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7790   # is contrary to our usage.  Disable this feature.
7791   alias -g '${1+"$@"}'='"$@"'
7792   setopt NO_GLOB_SUBST
7793 else
7794   case `(set -o) 2>/dev/null` in
7795   *posix*) set -o posix ;;
7796 esac
7797
7798 fi
7799
7800
7801
7802
7803 # PATH needs CR
7804 # Avoid depending upon Character Ranges.
7805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7808 as_cr_digits='0123456789'
7809 as_cr_alnum=$as_cr_Letters$as_cr_digits
7810
7811 # The user is always right.
7812 if test "${PATH_SEPARATOR+set}" != set; then
7813   echo "#! /bin/sh" >conf$$.sh
7814   echo  "exit 0"   >>conf$$.sh
7815   chmod +x conf$$.sh
7816   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7817     PATH_SEPARATOR=';'
7818   else
7819     PATH_SEPARATOR=:
7820   fi
7821   rm -f conf$$.sh
7822 fi
7823
7824 # Support unset when possible.
7825 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7826   as_unset=unset
7827 else
7828   as_unset=false
7829 fi
7830
7831
7832 # IFS
7833 # We need space, tab and new line, in precisely that order.  Quoting is
7834 # there to prevent editors from complaining about space-tab.
7835 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7836 # splitting by setting IFS to empty value.)
7837 as_nl='
7838 '
7839 IFS=" ""        $as_nl"
7840
7841 # Find who we are.  Look in the path if we contain no directory separator.
7842 case $0 in
7843   *[\\/]* ) as_myself=$0 ;;
7844   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7850 done
7851 IFS=$as_save_IFS
7852
7853      ;;
7854 esac
7855 # We did not find ourselves, most probably we were run as `sh COMMAND'
7856 # in which case we are not to be found in the path.
7857 if test "x$as_myself" = x; then
7858   as_myself=$0
7859 fi
7860 if test ! -f "$as_myself"; then
7861   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7862   { (exit 1); exit 1; }
7863 fi
7864
7865 # Work around bugs in pre-3.0 UWIN ksh.
7866 for as_var in ENV MAIL MAILPATH
7867 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7868 done
7869 PS1='$ '
7870 PS2='> '
7871 PS4='+ '
7872
7873 # NLS nuisances.
7874 for as_var in \
7875   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7876   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7877   LC_TELEPHONE LC_TIME
7878 do
7879   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7880     eval $as_var=C; export $as_var
7881   else
7882     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7883   fi
7884 done
7885
7886 # Required to use basename.
7887 if expr a : '\(a\)' >/dev/null 2>&1 &&
7888    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7889   as_expr=expr
7890 else
7891   as_expr=false
7892 fi
7893
7894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7895   as_basename=basename
7896 else
7897   as_basename=false
7898 fi
7899
7900
7901 # Name of the executable.
7902 as_me=`$as_basename -- "$0" ||
7903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7904          X"$0" : 'X\(//\)$' \| \
7905          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7906 echo X/"$0" |
7907     sed '/^.*\/\([^/][^/]*\)\/*$/{
7908             s//\1/
7909             q
7910           }
7911           /^X\/\(\/\/\)$/{
7912             s//\1/
7913             q
7914           }
7915           /^X\/\(\/\).*/{
7916             s//\1/
7917             q
7918           }
7919           s/.*/./; q'`
7920
7921 # CDPATH.
7922 $as_unset CDPATH
7923
7924
7925
7926   as_lineno_1=$LINENO
7927   as_lineno_2=$LINENO
7928   test "x$as_lineno_1" != "x$as_lineno_2" &&
7929   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7930
7931   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7932   # uniformly replaced by the line number.  The first 'sed' inserts a
7933   # line-number line after each line using $LINENO; the second 'sed'
7934   # does the real work.  The second script uses 'N' to pair each
7935   # line-number line with the line containing $LINENO, and appends
7936   # trailing '-' during substitution so that $LINENO is not a special
7937   # case at line end.
7938   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7939   # scripts with optimization help from Paolo Bonzini.  Blame Lee
7940   # E. McMahon (1931-1989) for sed's syntax.  :-)
7941   sed -n '
7942     p
7943     /[$]LINENO/=
7944   ' <$as_myself |
7945     sed '
7946       s/[$]LINENO.*/&-/
7947       t lineno
7948       b
7949       :lineno
7950       N
7951       :loop
7952       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7953       t loop
7954       s/-\n.*//
7955     ' >$as_me.lineno &&
7956   chmod +x "$as_me.lineno" ||
7957     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7958    { (exit 1); exit 1; }; }
7959
7960   # Don't try to exec as it changes $[0], causing all sort of problems
7961   # (the dirname of $[0] is not the place where we might find the
7962   # original and so on.  Autoconf is especially sensitive to this).
7963   . "./$as_me.lineno"
7964   # Exit status is that of the last command.
7965   exit
7966 }
7967
7968
7969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7970   as_dirname=dirname
7971 else
7972   as_dirname=false
7973 fi
7974
7975 ECHO_C= ECHO_N= ECHO_T=
7976 case `echo -n x` in
7977 -n*)
7978   case `echo 'x\c'` in
7979   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7980   *)   ECHO_C='\c';;
7981   esac;;
7982 *)
7983   ECHO_N='-n';;
7984 esac
7985
7986 if expr a : '\(a\)' >/dev/null 2>&1 &&
7987    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7988   as_expr=expr
7989 else
7990   as_expr=false
7991 fi
7992
7993 rm -f conf$$ conf$$.exe conf$$.file
7994 if test -d conf$$.dir; then
7995   rm -f conf$$.dir/conf$$.file
7996 else
7997   rm -f conf$$.dir
7998   mkdir conf$$.dir
7999 fi
8000 echo >conf$$.file
8001 if ln -s conf$$.file conf$$ 2>/dev/null; then
8002   as_ln_s='ln -s'
8003   # ... but there are two gotchas:
8004   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8005   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8006   # In both cases, we have to default to `cp -p'.
8007   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8008     as_ln_s='cp -p'
8009 elif ln conf$$.file conf$$ 2>/dev/null; then
8010   as_ln_s=ln
8011 else
8012   as_ln_s='cp -p'
8013 fi
8014 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8015 rmdir conf$$.dir 2>/dev/null
8016
8017 if mkdir -p . 2>/dev/null; then
8018   as_mkdir_p=:
8019 else
8020   test -d ./-p && rmdir ./-p
8021   as_mkdir_p=false
8022 fi
8023
8024 if test -x / >/dev/null 2>&1; then
8025   as_test_x='test -x'
8026 else
8027   if ls -dL / >/dev/null 2>&1; then
8028     as_ls_L_option=L
8029   else
8030     as_ls_L_option=
8031   fi
8032   as_test_x='
8033     eval sh -c '\''
8034       if test -d "$1"; then
8035         test -d "$1/.";
8036       else
8037         case $1 in
8038         -*)set "./$1";;
8039         esac;
8040         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8041         ???[sx]*):;;*)false;;esac;fi
8042     '\'' sh
8043   '
8044 fi
8045 as_executable_p=$as_test_x
8046
8047 # Sed expression to map a string onto a valid CPP name.
8048 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8049
8050 # Sed expression to map a string onto a valid variable name.
8051 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8052
8053
8054 exec 6>&1
8055
8056 # Save the log message, to keep $[0] and so on meaningful, and to
8057 # report actual input values of CONFIG_FILES etc. instead of their
8058 # values after options handling.
8059 ac_log="
8060 This file was extended by sdcc $as_me 2.7.2, which was
8061 generated by GNU Autoconf 2.61.  Invocation command line was
8062
8063   CONFIG_FILES    = $CONFIG_FILES
8064   CONFIG_HEADERS  = $CONFIG_HEADERS
8065   CONFIG_LINKS    = $CONFIG_LINKS
8066   CONFIG_COMMANDS = $CONFIG_COMMANDS
8067   $ $0 $@
8068
8069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8070 "
8071
8072 _ACEOF
8073
8074 cat >>$CONFIG_STATUS <<_ACEOF
8075 # Files that config.status was made for.
8076 config_files="$ac_config_files"
8077 config_headers="$ac_config_headers"
8078
8079 _ACEOF
8080
8081 cat >>$CONFIG_STATUS <<\_ACEOF
8082 ac_cs_usage="\
8083 \`$as_me' instantiates files from templates according to the
8084 current configuration.
8085
8086 Usage: $0 [OPTIONS] [FILE]...
8087
8088   -h, --help       print this help, then exit
8089   -V, --version    print version number and configuration settings, then exit
8090   -q, --quiet      do not print progress messages
8091   -d, --debug      don't remove temporary files
8092       --recheck    update $as_me by reconfiguring in the same conditions
8093   --file=FILE[:TEMPLATE]
8094                    instantiate the configuration file FILE
8095   --header=FILE[:TEMPLATE]
8096                    instantiate the configuration header FILE
8097
8098 Configuration files:
8099 $config_files
8100
8101 Configuration headers:
8102 $config_headers
8103
8104 Report bugs to <bug-autoconf@gnu.org>."
8105
8106 _ACEOF
8107 cat >>$CONFIG_STATUS <<_ACEOF
8108 ac_cs_version="\\
8109 sdcc config.status 2.7.2
8110 configured by $0, generated by GNU Autoconf 2.61,
8111   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8112
8113 Copyright (C) 2006 Free Software Foundation, Inc.
8114 This config.status script is free software; the Free Software Foundation
8115 gives unlimited permission to copy, distribute and modify it."
8116
8117 ac_pwd='$ac_pwd'
8118 srcdir='$srcdir'
8119 INSTALL='$INSTALL'
8120 _ACEOF
8121
8122 cat >>$CONFIG_STATUS <<\_ACEOF
8123 # If no file are specified by the user, then we need to provide default
8124 # value.  By we need to know if files were specified by the user.
8125 ac_need_defaults=:
8126 while test $# != 0
8127 do
8128   case $1 in
8129   --*=*)
8130     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8131     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8132     ac_shift=:
8133     ;;
8134   *)
8135     ac_option=$1
8136     ac_optarg=$2
8137     ac_shift=shift
8138     ;;
8139   esac
8140
8141   case $ac_option in
8142   # Handling of the options.
8143   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8144     ac_cs_recheck=: ;;
8145   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8146     echo "$ac_cs_version"; exit ;;
8147   --debug | --debu | --deb | --de | --d | -d )
8148     debug=: ;;
8149   --file | --fil | --fi | --f )
8150     $ac_shift
8151     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8152     ac_need_defaults=false;;
8153   --header | --heade | --head | --hea )
8154     $ac_shift
8155     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8156     ac_need_defaults=false;;
8157   --he | --h)
8158     # Conflict between --help and --header
8159     { echo "$as_me: error: ambiguous option: $1
8160 Try \`$0 --help' for more information." >&2
8161    { (exit 1); exit 1; }; };;
8162   --help | --hel | -h )
8163     echo "$ac_cs_usage"; exit ;;
8164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8165   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8166     ac_cs_silent=: ;;
8167
8168   # This is an error.
8169   -*) { echo "$as_me: error: unrecognized option: $1
8170 Try \`$0 --help' for more information." >&2
8171    { (exit 1); exit 1; }; } ;;
8172
8173   *) ac_config_targets="$ac_config_targets $1"
8174      ac_need_defaults=false ;;
8175
8176   esac
8177   shift
8178 done
8179
8180 ac_configure_extra_args=
8181
8182 if $ac_cs_silent; then
8183   exec 6>/dev/null
8184   ac_configure_extra_args="$ac_configure_extra_args --silent"
8185 fi
8186
8187 _ACEOF
8188 cat >>$CONFIG_STATUS <<_ACEOF
8189 if \$ac_cs_recheck; then
8190   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8191   CONFIG_SHELL=$SHELL
8192   export CONFIG_SHELL
8193   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8194 fi
8195
8196 _ACEOF
8197 cat >>$CONFIG_STATUS <<\_ACEOF
8198 exec 5>>config.log
8199 {
8200   echo
8201   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8202 ## Running $as_me. ##
8203 _ASBOX
8204   echo "$ac_log"
8205 } >&5
8206
8207 _ACEOF
8208 cat >>$CONFIG_STATUS <<_ACEOF
8209 _ACEOF
8210
8211 cat >>$CONFIG_STATUS <<\_ACEOF
8212
8213 # Handling of arguments.
8214 for ac_config_target in $ac_config_targets
8215 do
8216   case $ac_config_target in
8217     "sdccconf.h") CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8218     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8219     "src/avr/Makefile") CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
8220     "src/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
8221     "device/lib/ds390/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
8222     "src/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
8223     "device/lib/ds400/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
8224     "src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
8225     "as/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8226     "as/link/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
8227     "device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
8228     "src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
8229     "as/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8230     "as/link/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
8231     "device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
8232     "device/lib/small/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
8233     "device/lib/medium/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
8234     "device/lib/large/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
8235     "src/pic/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
8236     "src/pic16/Makefile") CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
8237     "src/xa51/Makefile") CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
8238     "src/z80/Makefile") CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
8239     "as/Makefile") CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
8240     "as/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
8241     "as/link/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
8242     "as/link/z80/Makefile") CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
8243     "device/lib/z80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
8244     "device/lib/gbz80/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
8245     "device/lib/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8246     "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8247     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8248     "device/include/Makefile") CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8249     "support/librarian/Makefile") CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
8250     "support/makebin/Makefile") CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
8251     "support/regression/Makefile") CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
8252     "support/valdiag/Makefile") CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
8253     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8254     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8255
8256   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8257 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8258    { (exit 1); exit 1; }; };;
8259   esac
8260 done
8261
8262
8263 # If the user did not use the arguments to specify the items to instantiate,
8264 # then the envvar interface is used.  Set only those that are not.
8265 # We use the long form for the default assignment because of an extremely
8266 # bizarre bug on SunOS 4.1.3.
8267 if $ac_need_defaults; then
8268   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8269   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8270 fi
8271
8272 # Have a temporary directory for convenience.  Make it in the build tree
8273 # simply because there is no reason against having it here, and in addition,
8274 # creating and moving files from /tmp can sometimes cause problems.
8275 # Hook for its removal unless debugging.
8276 # Note that there is a small window in which the directory will not be cleaned:
8277 # after its creation but before its name has been assigned to `$tmp'.
8278 $debug ||
8279 {
8280   tmp=
8281   trap 'exit_status=$?
8282   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8283 ' 0
8284   trap '{ (exit 1); exit 1; }' 1 2 13 15
8285 }
8286 # Create a (secure) tmp directory for tmp files.
8287
8288 {
8289   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8290   test -n "$tmp" && test -d "$tmp"
8291 }  ||
8292 {
8293   tmp=./conf$$-$RANDOM
8294   (umask 077 && mkdir "$tmp")
8295 } ||
8296 {
8297    echo "$me: cannot create a temporary directory in ." >&2
8298    { (exit 1); exit 1; }
8299 }
8300
8301 #
8302 # Set up the sed scripts for CONFIG_FILES section.
8303 #
8304
8305 # No need to generate the scripts if there are no CONFIG_FILES.
8306 # This happens for instance when ./config.status config.h
8307 if test -n "$CONFIG_FILES"; then
8308
8309 _ACEOF
8310
8311
8312
8313 ac_delim='%!_!# '
8314 for ac_last_try in false false false false false :; do
8315   cat >conf$$subs.sed <<_ACEOF
8316 SHELL!$SHELL$ac_delim
8317 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8318 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8319 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8320 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8321 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8322 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8323 exec_prefix!$exec_prefix$ac_delim
8324 prefix!$prefix$ac_delim
8325 program_transform_name!$program_transform_name$ac_delim
8326 bindir!$bindir$ac_delim
8327 sbindir!$sbindir$ac_delim
8328 libexecdir!$libexecdir$ac_delim
8329 datarootdir!$datarootdir$ac_delim
8330 datadir!$datadir$ac_delim
8331 sysconfdir!$sysconfdir$ac_delim
8332 sharedstatedir!$sharedstatedir$ac_delim
8333 localstatedir!$localstatedir$ac_delim
8334 includedir!$includedir$ac_delim
8335 oldincludedir!$oldincludedir$ac_delim
8336 docdir!$docdir$ac_delim
8337 infodir!$infodir$ac_delim
8338 htmldir!$htmldir$ac_delim
8339 dvidir!$dvidir$ac_delim
8340 pdfdir!$pdfdir$ac_delim
8341 psdir!$psdir$ac_delim
8342 libdir!$libdir$ac_delim
8343 localedir!$localedir$ac_delim
8344 mandir!$mandir$ac_delim
8345 DEFS!$DEFS$ac_delim
8346 ECHO_C!$ECHO_C$ac_delim
8347 ECHO_N!$ECHO_N$ac_delim
8348 ECHO_T!$ECHO_T$ac_delim
8349 LIBS!$LIBS$ac_delim
8350 build_alias!$build_alias$ac_delim
8351 host_alias!$host_alias$ac_delim
8352 target_alias!$target_alias$ac_delim
8353 AWK!$AWK$ac_delim
8354 VERSION!$VERSION$ac_delim
8355 VERSIONHI!$VERSIONHI$ac_delim
8356 VERSIONLO!$VERSIONLO$ac_delim
8357 VERSIONP!$VERSIONP$ac_delim
8358 CC!$CC$ac_delim
8359 CFLAGS!$CFLAGS$ac_delim
8360 LDFLAGS!$LDFLAGS$ac_delim
8361 CPPFLAGS!$CPPFLAGS$ac_delim
8362 ac_ct_CC!$ac_ct_CC$ac_delim
8363 EXEEXT!$EXEEXT$ac_delim
8364 OBJEXT!$OBJEXT$ac_delim
8365 CPP!$CPP$ac_delim
8366 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8367 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8368 INSTALL_DATA!$INSTALL_DATA$ac_delim
8369 RANLIB!$RANLIB$ac_delim
8370 AUTOCONF!$AUTOCONF$ac_delim
8371 STRIP!$STRIP$ac_delim
8372 AS!$AS$ac_delim
8373 CP!$CP$ac_delim
8374 LEX!$LEX$ac_delim
8375 YACC!$YACC$ac_delim
8376 M_OR_MM!$M_OR_MM$ac_delim
8377 GREP!$GREP$ac_delim
8378 EGREP!$EGREP$ac_delim
8379 sdccconf_h_dir_separator!$sdccconf_h_dir_separator$ac_delim
8380 include_dir_suffix!$include_dir_suffix$ac_delim
8381 lib_dir_suffix!$lib_dir_suffix$ac_delim
8382 OPT_DISABLE_MCS51!$OPT_DISABLE_MCS51$ac_delim
8383 OPT_DISABLE_GBZ80!$OPT_DISABLE_GBZ80$ac_delim
8384 OPT_DISABLE_Z80!$OPT_DISABLE_Z80$ac_delim
8385 OPT_DISABLE_AVR!$OPT_DISABLE_AVR$ac_delim
8386 OPT_DISABLE_DS390!$OPT_DISABLE_DS390$ac_delim
8387 OPT_DISABLE_DS400!$OPT_DISABLE_DS400$ac_delim
8388 OPT_DISABLE_PIC!$OPT_DISABLE_PIC$ac_delim
8389 OPT_DISABLE_PIC16!$OPT_DISABLE_PIC16$ac_delim
8390 OPT_DISABLE_XA51!$OPT_DISABLE_XA51$ac_delim
8391 OPT_DISABLE_HC08!$OPT_DISABLE_HC08$ac_delim
8392 OPT_DISABLE_UCSIM!$OPT_DISABLE_UCSIM$ac_delim
8393 OPT_DISABLE_DEVICE_LIB!$OPT_DISABLE_DEVICE_LIB$ac_delim
8394 OPT_DISABLE_PACKIHX!$OPT_DISABLE_PACKIHX$ac_delim
8395 OPT_DISABLE_SDCPP!$OPT_DISABLE_SDCPP$ac_delim
8396 OPT_DISABLE_SDCDB!$OPT_DISABLE_SDCDB$ac_delim
8397 OPT_ENABLE_DOC!$OPT_ENABLE_DOC$ac_delim
8398 LYX!$LYX$ac_delim
8399 LATEX2HTML!$LATEX2HTML$ac_delim
8400 PDFLATEX!$PDFLATEX$ac_delim
8401 PDFOPT!$PDFOPT$ac_delim
8402 MAKEINDEX!$MAKEINDEX$ac_delim
8403 OPT_ENABLE_LIBGC!$OPT_ENABLE_LIBGC$ac_delim
8404 subdirs!$subdirs$ac_delim
8405 LIBOBJS!$LIBOBJS$ac_delim
8406 LTLIBOBJS!$LTLIBOBJS$ac_delim
8407 _ACEOF
8408
8409   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
8410     break
8411   elif $ac_last_try; then
8412     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8413 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8414    { (exit 1); exit 1; }; }
8415   else
8416     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8417   fi
8418 done
8419
8420 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8421 if test -n "$ac_eof"; then
8422   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8423   ac_eof=`expr $ac_eof + 1`
8424 fi
8425
8426 cat >>$CONFIG_STATUS <<_ACEOF
8427 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8429 _ACEOF
8430 sed '
8431 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8432 s/^/s,@/; s/!/@,|#_!!_#|/
8433 :n
8434 t n
8435 s/'"$ac_delim"'$/,g/; t
8436 s/$/\\/; p
8437 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8438 ' >>$CONFIG_STATUS <conf$$subs.sed
8439 rm -f conf$$subs.sed
8440 cat >>$CONFIG_STATUS <<_ACEOF
8441 :end
8442 s/|#_!!_#|//g
8443 CEOF$ac_eof
8444 _ACEOF
8445
8446
8447 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8448 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8449 # trailing colons and then remove the whole line if VPATH becomes empty
8450 # (actually we leave an empty line to preserve line numbers).
8451 if test "x$srcdir" = x.; then
8452   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8453 s/:*\$(srcdir):*/:/
8454 s/:*\${srcdir}:*/:/
8455 s/:*@srcdir@:*/:/
8456 s/^\([^=]*=[     ]*\):*/\1/
8457 s/:*$//
8458 s/^[^=]*=[       ]*$//
8459 }'
8460 fi
8461
8462 cat >>$CONFIG_STATUS <<\_ACEOF
8463 fi # test -n "$CONFIG_FILES"
8464
8465
8466 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
8467 do
8468   case $ac_tag in
8469   :[FHLC]) ac_mode=$ac_tag; continue;;
8470   esac
8471   case $ac_mode$ac_tag in
8472   :[FHL]*:*);;
8473   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8474 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8475    { (exit 1); exit 1; }; };;
8476   :[FH]-) ac_tag=-:-;;
8477   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8478   esac
8479   ac_save_IFS=$IFS
8480   IFS=:
8481   set x $ac_tag
8482   IFS=$ac_save_IFS
8483   shift
8484   ac_file=$1
8485   shift
8486
8487   case $ac_mode in
8488   :L) ac_source=$1;;
8489   :[FH])
8490     ac_file_inputs=
8491     for ac_f
8492     do
8493       case $ac_f in
8494       -) ac_f="$tmp/stdin";;
8495       *) # Look for the file first in the build tree, then in the source tree
8496          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8497          # because $ac_f cannot contain `:'.
8498          test -f "$ac_f" ||
8499            case $ac_f in
8500            [\\/$]*) false;;
8501            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8502            esac ||
8503            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8504 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8505    { (exit 1); exit 1; }; };;
8506       esac
8507       ac_file_inputs="$ac_file_inputs $ac_f"
8508     done
8509
8510     # Let's still pretend it is `configure' which instantiates (i.e., don't
8511     # use $as_me), people would be surprised to read:
8512     #    /* config.h.  Generated by config.status.  */
8513     configure_input="Generated from "`IFS=:
8514           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8515     if test x"$ac_file" != x-; then
8516       configure_input="$ac_file.  $configure_input"
8517       { echo "$as_me:$LINENO: creating $ac_file" >&5
8518 echo "$as_me: creating $ac_file" >&6;}
8519     fi
8520
8521     case $ac_tag in
8522     *:-:* | *:-) cat >"$tmp/stdin";;
8523     esac
8524     ;;
8525   esac
8526
8527   ac_dir=`$as_dirname -- "$ac_file" ||
8528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8529          X"$ac_file" : 'X\(//\)[^/]' \| \
8530          X"$ac_file" : 'X\(//\)$' \| \
8531          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8532 echo X"$ac_file" |
8533     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8534             s//\1/
8535             q
8536           }
8537           /^X\(\/\/\)[^/].*/{
8538             s//\1/
8539             q
8540           }
8541           /^X\(\/\/\)$/{
8542             s//\1/
8543             q
8544           }
8545           /^X\(\/\).*/{
8546             s//\1/
8547             q
8548           }
8549           s/.*/./; q'`
8550   { as_dir="$ac_dir"
8551   case $as_dir in #(
8552   -*) as_dir=./$as_dir;;
8553   esac
8554   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8555     as_dirs=
8556     while :; do
8557       case $as_dir in #(
8558       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8559       *) as_qdir=$as_dir;;
8560       esac
8561       as_dirs="'$as_qdir' $as_dirs"
8562       as_dir=`$as_dirname -- "$as_dir" ||
8563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8564          X"$as_dir" : 'X\(//\)[^/]' \| \
8565          X"$as_dir" : 'X\(//\)$' \| \
8566          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8567 echo X"$as_dir" |
8568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8569             s//\1/
8570             q
8571           }
8572           /^X\(\/\/\)[^/].*/{
8573             s//\1/
8574             q
8575           }
8576           /^X\(\/\/\)$/{
8577             s//\1/
8578             q
8579           }
8580           /^X\(\/\).*/{
8581             s//\1/
8582             q
8583           }
8584           s/.*/./; q'`
8585       test -d "$as_dir" && break
8586     done
8587     test -z "$as_dirs" || eval "mkdir $as_dirs"
8588   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8589 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8590    { (exit 1); exit 1; }; }; }
8591   ac_builddir=.
8592
8593 case "$ac_dir" in
8594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8595 *)
8596   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8597   # A ".." for each directory in $ac_dir_suffix.
8598   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8599   case $ac_top_builddir_sub in
8600   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8601   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8602   esac ;;
8603 esac
8604 ac_abs_top_builddir=$ac_pwd
8605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8606 # for backward compatibility:
8607 ac_top_builddir=$ac_top_build_prefix
8608
8609 case $srcdir in
8610   .)  # We are building in place.
8611     ac_srcdir=.
8612     ac_top_srcdir=$ac_top_builddir_sub
8613     ac_abs_top_srcdir=$ac_pwd ;;
8614   [\\/]* | ?:[\\/]* )  # Absolute name.
8615     ac_srcdir=$srcdir$ac_dir_suffix;
8616     ac_top_srcdir=$srcdir
8617     ac_abs_top_srcdir=$srcdir ;;
8618   *) # Relative name.
8619     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8620     ac_top_srcdir=$ac_top_build_prefix$srcdir
8621     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8622 esac
8623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8624
8625
8626   case $ac_mode in
8627   :F)
8628   #
8629   # CONFIG_FILE
8630   #
8631
8632   case $INSTALL in
8633   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8634   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8635   esac
8636 _ACEOF
8637
8638 cat >>$CONFIG_STATUS <<\_ACEOF
8639 # If the template does not know about datarootdir, expand it.
8640 # FIXME: This hack should be removed a few years after 2.60.
8641 ac_datarootdir_hack=; ac_datarootdir_seen=
8642
8643 case `sed -n '/datarootdir/ {
8644   p
8645   q
8646 }
8647 /@datadir@/p
8648 /@docdir@/p
8649 /@infodir@/p
8650 /@localedir@/p
8651 /@mandir@/p
8652 ' $ac_file_inputs` in
8653 *datarootdir*) ac_datarootdir_seen=yes;;
8654 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8655   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8656 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8657 _ACEOF
8658 cat >>$CONFIG_STATUS <<_ACEOF
8659   ac_datarootdir_hack='
8660   s&@datadir@&$datadir&g
8661   s&@docdir@&$docdir&g
8662   s&@infodir@&$infodir&g
8663   s&@localedir@&$localedir&g
8664   s&@mandir@&$mandir&g
8665     s&\\\${datarootdir}&$datarootdir&g' ;;
8666 esac
8667 _ACEOF
8668
8669 # Neutralize VPATH when `$srcdir' = `.'.
8670 # Shell code in configure.ac might set extrasub.
8671 # FIXME: do we really want to maintain this feature?
8672 cat >>$CONFIG_STATUS <<_ACEOF
8673   sed "$ac_vpsub
8674 $extrasub
8675 _ACEOF
8676 cat >>$CONFIG_STATUS <<\_ACEOF
8677 :t
8678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8679 s&@configure_input@&$configure_input&;t t
8680 s&@top_builddir@&$ac_top_builddir_sub&;t t
8681 s&@srcdir@&$ac_srcdir&;t t
8682 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8683 s&@top_srcdir@&$ac_top_srcdir&;t t
8684 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8685 s&@builddir@&$ac_builddir&;t t
8686 s&@abs_builddir@&$ac_abs_builddir&;t t
8687 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8688 s&@INSTALL@&$ac_INSTALL&;t t
8689 $ac_datarootdir_hack
8690 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8691
8692 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8693   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8694   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8695   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8696 which seems to be undefined.  Please make sure it is defined." >&5
8697 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8698 which seems to be undefined.  Please make sure it is defined." >&2;}
8699
8700   rm -f "$tmp/stdin"
8701   case $ac_file in
8702   -) cat "$tmp/out"; rm -f "$tmp/out";;
8703   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8704   esac
8705  ;;
8706   :H)
8707   #
8708   # CONFIG_HEADER
8709   #
8710 _ACEOF
8711
8712 # Transform confdefs.h into a sed script `conftest.defines', that
8713 # substitutes the proper values into config.h.in to produce config.h.
8714 rm -f conftest.defines conftest.tail
8715 # First, append a space to every undef/define line, to ease matching.
8716 echo 's/$/ /' >conftest.defines
8717 # Then, protect against being on the right side of a sed subst, or in
8718 # an unquoted here document, in config.status.  If some macros were
8719 # called several times there might be several #defines for the same
8720 # symbol, which is useless.  But do not sort them, since the last
8721 # AC_DEFINE must be honored.
8722 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8723 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8724 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8725 # PARAMS is the parameter list in the macro definition--in most cases, it's
8726 # just an empty string.
8727 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
8728 ac_dB='\\)[      (].*,\\1define\\2'
8729 ac_dC=' '
8730 ac_dD=' ,'
8731
8732 uniq confdefs.h |
8733   sed -n '
8734         t rset
8735         :rset
8736         s/^[     ]*#[    ]*define[       ][      ]*//
8737         t ok
8738         d
8739         :ok
8740         s/[\\&,]/\\&/g
8741         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8742         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8743   ' >>conftest.defines
8744
8745 # Remove the space that was appended to ease matching.
8746 # Then replace #undef with comments.  This is necessary, for
8747 # example, in the case of _POSIX_SOURCE, which is predefined and required
8748 # on some systems where configure will not decide to define it.
8749 # (The regexp can be short, since the line contains either #define or #undef.)
8750 echo 's/ $//
8751 s,^[     #]*u.*,/* & */,' >>conftest.defines
8752
8753 # Break up conftest.defines:
8754 ac_max_sed_lines=50
8755
8756 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8757 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8758 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8759 # et cetera.
8760 ac_in='$ac_file_inputs'
8761 ac_out='"$tmp/out1"'
8762 ac_nxt='"$tmp/out2"'
8763
8764 while :
8765 do
8766   # Write a here document:
8767     cat >>$CONFIG_STATUS <<_ACEOF
8768     # First, check the format of the line:
8769     cat >"\$tmp/defines.sed" <<\\CEOF
8770 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
8771 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
8772 b
8773 :def
8774 _ACEOF
8775   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8776   echo 'CEOF
8777     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8778   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8779   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8780   grep . conftest.tail >/dev/null || break
8781   rm -f conftest.defines
8782   mv conftest.tail conftest.defines
8783 done
8784 rm -f conftest.defines conftest.tail
8785
8786 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8787 cat >>$CONFIG_STATUS <<\_ACEOF
8788   if test x"$ac_file" != x-; then
8789     echo "/* $configure_input  */" >"$tmp/config.h"
8790     cat "$ac_result" >>"$tmp/config.h"
8791     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8792       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8793 echo "$as_me: $ac_file is unchanged" >&6;}
8794     else
8795       rm -f $ac_file
8796       mv "$tmp/config.h" $ac_file
8797     fi
8798   else
8799     echo "/* $configure_input  */"
8800     cat "$ac_result"
8801   fi
8802   rm -f "$tmp/out12"
8803  ;;
8804
8805
8806   esac
8807
8808 done # for ac_tag
8809
8810
8811 { (exit 0); exit 0; }
8812 _ACEOF
8813 chmod +x $CONFIG_STATUS
8814 ac_clean_files=$ac_clean_files_save
8815
8816
8817 # configure is writing to config.log, and then calls config.status.
8818 # config.status does its own redirection, appending to config.log.
8819 # Unfortunately, on DOS this fails, as config.log is still kept open
8820 # by configure, so config.status won't be able to write to it; its
8821 # output is simply discarded.  So we exec the FD to /dev/null,
8822 # effectively closing config.log, so it can be properly (re)opened and
8823 # appended to by config.status.  When coming back to configure, we
8824 # need to make the FD available again.
8825 if test "$no_create" != yes; then
8826   ac_cs_success=:
8827   ac_config_status_args=
8828   test "$silent" = yes &&
8829     ac_config_status_args="$ac_config_status_args --quiet"
8830   exec 5>/dev/null
8831   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8832   exec 5>>config.log
8833   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8834   # would make configure fail if this is the last instruction.
8835   $ac_cs_success || { (exit 1); exit 1; }
8836 fi
8837
8838 #
8839 # CONFIG_SUBDIRS section.
8840 #
8841 if test "$no_recursion" != yes; then
8842
8843   # Remove --cache-file and --srcdir arguments so they do not pile up.
8844   ac_sub_configure_args=
8845   ac_prev=
8846   eval "set x $ac_configure_args"
8847   shift
8848   for ac_arg
8849   do
8850     if test -n "$ac_prev"; then
8851       ac_prev=
8852       continue
8853     fi
8854     case $ac_arg in
8855     -cache-file | --cache-file | --cache-fil | --cache-fi \
8856     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8857       ac_prev=cache_file ;;
8858     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8859     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8860     | --c=*)
8861       ;;
8862     --config-cache | -C)
8863       ;;
8864     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8865       ac_prev=srcdir ;;
8866     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8867       ;;
8868     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8869       ac_prev=prefix ;;
8870     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8871       ;;
8872     *)
8873       case $ac_arg in
8874       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8875       esac
8876       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8877     esac
8878   done
8879
8880   # Always prepend --prefix to ensure using the same prefix
8881   # in subdir configurations.
8882   ac_arg="--prefix=$prefix"
8883   case $ac_arg in
8884   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8885   esac
8886   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8887
8888   # Pass --silent
8889   if test "$silent" = yes; then
8890     ac_sub_configure_args="--silent $ac_sub_configure_args"
8891   fi
8892
8893   ac_popdir=`pwd`
8894   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8895
8896     # Do not complain, so a configure script can configure whichever
8897     # parts of a large source tree are present.
8898     test -d "$srcdir/$ac_dir" || continue
8899
8900     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8901     echo "$as_me:$LINENO: $ac_msg" >&5
8902     echo "$ac_msg" >&6
8903     { as_dir="$ac_dir"
8904   case $as_dir in #(
8905   -*) as_dir=./$as_dir;;
8906   esac
8907   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8908     as_dirs=
8909     while :; do
8910       case $as_dir in #(
8911       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8912       *) as_qdir=$as_dir;;
8913       esac
8914       as_dirs="'$as_qdir' $as_dirs"
8915       as_dir=`$as_dirname -- "$as_dir" ||
8916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8917          X"$as_dir" : 'X\(//\)[^/]' \| \
8918          X"$as_dir" : 'X\(//\)$' \| \
8919          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8920 echo X"$as_dir" |
8921     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8922             s//\1/
8923             q
8924           }
8925           /^X\(\/\/\)[^/].*/{
8926             s//\1/
8927             q
8928           }
8929           /^X\(\/\/\)$/{
8930             s//\1/
8931             q
8932           }
8933           /^X\(\/\).*/{
8934             s//\1/
8935             q
8936           }
8937           s/.*/./; q'`
8938       test -d "$as_dir" && break
8939     done
8940     test -z "$as_dirs" || eval "mkdir $as_dirs"
8941   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8942 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8943    { (exit 1); exit 1; }; }; }
8944     ac_builddir=.
8945
8946 case "$ac_dir" in
8947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8948 *)
8949   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8950   # A ".." for each directory in $ac_dir_suffix.
8951   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8952   case $ac_top_builddir_sub in
8953   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8954   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8955   esac ;;
8956 esac
8957 ac_abs_top_builddir=$ac_pwd
8958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8959 # for backward compatibility:
8960 ac_top_builddir=$ac_top_build_prefix
8961
8962 case $srcdir in
8963   .)  # We are building in place.
8964     ac_srcdir=.
8965     ac_top_srcdir=$ac_top_builddir_sub
8966     ac_abs_top_srcdir=$ac_pwd ;;
8967   [\\/]* | ?:[\\/]* )  # Absolute name.
8968     ac_srcdir=$srcdir$ac_dir_suffix;
8969     ac_top_srcdir=$srcdir
8970     ac_abs_top_srcdir=$srcdir ;;
8971   *) # Relative name.
8972     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8973     ac_top_srcdir=$ac_top_build_prefix$srcdir
8974     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8975 esac
8976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8977
8978
8979     cd "$ac_dir"
8980
8981     # Check for guested configure; otherwise get Cygnus style configure.
8982     if test -f "$ac_srcdir/configure.gnu"; then
8983       ac_sub_configure=$ac_srcdir/configure.gnu
8984     elif test -f "$ac_srcdir/configure"; then
8985       ac_sub_configure=$ac_srcdir/configure
8986     elif test -f "$ac_srcdir/configure.in"; then
8987       # This should be Cygnus configure.
8988       ac_sub_configure=$ac_aux_dir/configure
8989     else
8990       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8991 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8992       ac_sub_configure=
8993     fi
8994
8995     # The recursion is here.
8996     if test -n "$ac_sub_configure"; then
8997       # Make the cache file name correct relative to the subdirectory.
8998       case $cache_file in
8999       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9000       *) # Relative name.
9001         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9002       esac
9003
9004       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9005 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9006       # The eval makes quoting arguments work.
9007       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9008            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9009         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9010 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9011    { (exit 1); exit 1; }; }
9012     fi
9013
9014     cd "$ac_popdir"
9015   done
9016 fi
9017
9018
9019 # I found no better place
9020 mkdir -p bin
9021
9022 # Prepare result message
9023 # ======================
9024
9025 # In the C-header we need \\ as dir-separator, but in the message only \
9026 dirch=${sdccconf_h_dir_separator}
9027 test ${dirch} = '\\' && dirch='\'
9028
9029 # calc friendly strings
9030
9031 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
9032 case ":$binPath:" in
9033   ::) binPath='.' ;;
9034   :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
9035   :*:) ;;
9036 esac
9037 case $dirch in
9038
9039     *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9040                                   s,^[\\/],\\\\\\\\,'` ;;
9041
9042  *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9043 esac
9044 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
9045
9046
9047 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9048 case ":$incPath1:" in
9049   ::) incPath1='.' ;;
9050   :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
9051   :*:) ;;
9052 esac
9053 case $dirch in
9054
9055     *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9056                                   s,^[\\/],\\\\\\\\,'` ;;
9057
9058  *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9059 esac
9060 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
9061
9062
9063 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9064 case ":$incPath2:" in
9065   ::) incPath2='.' ;;
9066   :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
9067   :*:) ;;
9068 esac
9069 case $dirch in
9070
9071     *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9072                                   s,^[\\/],\\\\\\\\,'` ;;
9073
9074  *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9075 esac
9076 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
9077
9078
9079 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
9080 case ":$incPath3:" in
9081   ::) incPath3='.' ;;
9082   :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
9083   :*:) ;;
9084 esac
9085 case $dirch in
9086
9087     *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9088                                   s,^[\\/],\\\\\\\\,'` ;;
9089
9090  *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9091 esac
9092 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
9093
9094
9095 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9096 case ":$libPath1:" in
9097   ::) libPath1='.' ;;
9098   :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
9099   :*:) ;;
9100 esac
9101 case $dirch in
9102
9103     *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9104                                   s,^[\\/],\\\\\\\\,'` ;;
9105
9106  *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9107 esac
9108 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
9109
9110
9111 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9112 case ":$libPath2:" in
9113   ::) libPath2='.' ;;
9114   :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
9115   :*:) ;;
9116 esac
9117 case $dirch in
9118
9119     *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9120                                   s,^[\\/],\\\\\\\\,'` ;;
9121
9122  *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9123 esac
9124 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
9125
9126
9127 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
9128 case ":$libPath3:" in
9129   ::) libPath3='.' ;;
9130   :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
9131   :*:) ;;
9132 esac
9133 case $dirch in
9134
9135     *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
9136                                   s,^[\\/],\\\\\\\\,'` ;;
9137
9138  *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9139 esac
9140 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
9141
9142
9143 { echo "$as_me:$LINENO: result:
9144 sdcc ${VERSION} is now configured for
9145
9146   Build:                ${build_alias}
9147   Host:                 ${host_alias}
9148   Source directory:     ${srcdir}
9149   C compiler:           ${CC}
9150   CFLAGS:               ${CFLAGS}
9151
9152   ENABLED Ports:
9153     avr                 ${enable_avr_port}
9154     ds390               ${enable_ds390_port}
9155     ds400               ${enable_ds400_port}
9156     gbz80               ${enable_gbz80_port}
9157     hc08                ${enable_hc08_port}
9158     mcs51               ${enable_mcs51_port}
9159     pic                 ${enable_pic_port}
9160     pic16               ${enable_pic16_port}
9161     xa51                ${enable_xa51_port}
9162     z80                 ${enable_z80_port}
9163
9164   Disable packihx:      ${OPT_DISABLE_PACKIHX}
9165   Disable ucsim:        ${OPT_DISABLE_UCSIM}
9166   Disable device lib:   ${OPT_DISABLE_DEVICE_LIB}
9167   Disable sdcpp:        ${OPT_DISABLE_SDCPP}
9168   Disable sdcdb:        ${OPT_DISABLE_SDCDB}
9169   Enable documentation: ${OPT_ENABLE_DOC}
9170   Enable libgc:         ${OPT_ENABLE_LIBGC}
9171
9172   Install paths:
9173     binary files:       ${exec_prefix}
9174     include files:      ${datadir}/${include_dir_suffix}
9175     library files:      ${datadir}/${lib_dir_suffix}
9176     documentation:      ${docdir}
9177
9178     prefix:             ${prefix}
9179     datadir:            ${datadir}
9180     datarootdir:        ${datarootdir}
9181
9182   Search paths (incomplete, see manual for all search paths):
9183     binary files:       \$SDCC_HOME${binPath}
9184     include files:      ${incPath1}
9185                         path(argv[0])${incPath2}
9186                         ${incPath3}
9187     library files:      \$SDCC_HOME${libPath1}${dirch}<model>
9188                         path(argv[0])${libPath2}${dirch}<model>
9189                         ${libPath3}${dirch}<model>
9190 " >&5
9191 echo "${ECHO_T}
9192 sdcc ${VERSION} is now configured for
9193
9194   Build:                ${build_alias}
9195   Host:                 ${host_alias}
9196   Source directory:     ${srcdir}
9197   C compiler:           ${CC}
9198   CFLAGS:               ${CFLAGS}
9199
9200   ENABLED Ports:
9201     avr                 ${enable_avr_port}
9202     ds390               ${enable_ds390_port}
9203     ds400               ${enable_ds400_port}
9204     gbz80               ${enable_gbz80_port}
9205     hc08                ${enable_hc08_port}
9206     mcs51               ${enable_mcs51_port}
9207     pic                 ${enable_pic_port}
9208     pic16               ${enable_pic16_port}
9209     xa51                ${enable_xa51_port}
9210     z80                 ${enable_z80_port}
9211
9212   Disable packihx:      ${OPT_DISABLE_PACKIHX}
9213   Disable ucsim:        ${OPT_DISABLE_UCSIM}
9214   Disable device lib:   ${OPT_DISABLE_DEVICE_LIB}
9215   Disable sdcpp:        ${OPT_DISABLE_SDCPP}
9216   Disable sdcdb:        ${OPT_DISABLE_SDCDB}
9217   Enable documentation: ${OPT_ENABLE_DOC}
9218   Enable libgc:         ${OPT_ENABLE_LIBGC}
9219
9220   Install paths:
9221     binary files:       ${exec_prefix}
9222     include files:      ${datadir}/${include_dir_suffix}
9223     library files:      ${datadir}/${lib_dir_suffix}
9224     documentation:      ${docdir}
9225
9226     prefix:             ${prefix}
9227     datadir:            ${datadir}
9228     datarootdir:        ${datarootdir}
9229
9230   Search paths (incomplete, see manual for all search paths):
9231     binary files:       \$SDCC_HOME${binPath}
9232     include files:      ${incPath1}
9233                         path(argv[0])${incPath2}
9234                         ${incPath3}
9235     library files:      \$SDCC_HOME${libPath1}${dirch}<model>
9236                         path(argv[0])${libPath2}${dirch}<model>
9237                         ${libPath3}${dirch}<model>
9238 " >&6; }
9239 # End of configure/configure.in