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