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