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