* as/asx8051.dsp: corrected output directories
[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 LEX LEXLIB LEX_OUTPUT_ROOT YACC AUTOCONF STRIP AS CP 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
2793 for ac_prog in flex lex
2794 do
2795   # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_LEX+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$LEX"; then
2803   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812     ac_cv_prog_LEX="$ac_prog"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818
2819 fi
2820 fi
2821 LEX=$ac_cv_prog_LEX
2822 if test -n "$LEX"; then
2823   echo "$as_me:$LINENO: result: $LEX" >&5
2824 echo "${ECHO_T}$LEX" >&6
2825 else
2826   echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2828 fi
2829
2830   test -n "$LEX" && break
2831 done
2832 test -n "$LEX" || LEX=":"
2833
2834 if test -z "$LEXLIB"
2835 then
2836   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2837 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2838 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   ac_check_lib_save_LIBS=$LIBS
2842 LIBS="-lfl  $LIBS"
2843 cat >conftest.$ac_ext <<_ACEOF
2844 /* confdefs.h.  */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h.  */
2849
2850 /* Override any gcc2 internal prototype to avoid an error.  */
2851 #ifdef __cplusplus
2852 extern "C"
2853 #endif
2854 /* We use char because int might match the return type of a gcc2
2855    builtin and then its argument prototype would still apply.  */
2856 char yywrap ();
2857 int
2858 main ()
2859 {
2860 yywrap ();
2861   ;
2862   return 0;
2863 }
2864 _ACEOF
2865 rm -f conftest.$ac_objext conftest$ac_exeext
2866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2867   (eval $ac_link) 2>conftest.er1
2868   ac_status=$?
2869   grep -v '^ *+' conftest.er1 >conftest.err
2870   rm -f conftest.er1
2871   cat conftest.err >&5
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); } &&
2874          { ac_try='test -z "$ac_c_werror_flag"
2875                          || test ! -s conftest.err'
2876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877   (eval $ac_try) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; } &&
2881          { ac_try='test -s conftest$ac_exeext'
2882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; }; then
2887   ac_cv_lib_fl_yywrap=yes
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 ac_cv_lib_fl_yywrap=no
2893 fi
2894 rm -f conftest.err conftest.$ac_objext \
2895       conftest$ac_exeext conftest.$ac_ext
2896 LIBS=$ac_check_lib_save_LIBS
2897 fi
2898 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2899 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2900 if test $ac_cv_lib_fl_yywrap = yes; then
2901   LEXLIB="-lfl"
2902 else
2903   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2904 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2905 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   ac_check_lib_save_LIBS=$LIBS
2909 LIBS="-ll  $LIBS"
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916
2917 /* Override any gcc2 internal prototype to avoid an error.  */
2918 #ifdef __cplusplus
2919 extern "C"
2920 #endif
2921 /* We use char because int might match the return type of a gcc2
2922    builtin and then its argument prototype would still apply.  */
2923 char yywrap ();
2924 int
2925 main ()
2926 {
2927 yywrap ();
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext conftest$ac_exeext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2934   (eval $ac_link) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } &&
2941          { ac_try='test -z "$ac_c_werror_flag"
2942                          || test ! -s conftest.err'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; } &&
2948          { ac_try='test -s conftest$ac_exeext'
2949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950   (eval $ac_try) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; }; then
2954   ac_cv_lib_l_yywrap=yes
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 ac_cv_lib_l_yywrap=no
2960 fi
2961 rm -f conftest.err conftest.$ac_objext \
2962       conftest$ac_exeext conftest.$ac_ext
2963 LIBS=$ac_check_lib_save_LIBS
2964 fi
2965 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2966 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2967 if test $ac_cv_lib_l_yywrap = yes; then
2968   LEXLIB="-ll"
2969 fi
2970
2971 fi
2972
2973 fi
2974
2975 if test "x$LEX" != "x:"; then
2976   echo "$as_me:$LINENO: checking lex output file root" >&5
2977 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2978 if test "${ac_cv_prog_lex_root+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   # The minimal lex program is just a single line: %%.  But some broken lexes
2982 # (Solaris, I think it was) want two %% lines, so accommodate them.
2983 cat >conftest.l <<_ACEOF
2984 %%
2985 %%
2986 _ACEOF
2987 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2988   (eval $LEX conftest.l) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }
2992 if test -f lex.yy.c; then
2993   ac_cv_prog_lex_root=lex.yy
2994 elif test -f lexyy.c; then
2995   ac_cv_prog_lex_root=lexyy
2996 else
2997   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2998 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2999    { (exit 1); exit 1; }; }
3000 fi
3001 fi
3002 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3003 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3004 rm -f conftest.l
3005 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3006
3007 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3008 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3009 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   # POSIX says lex can declare yytext either as a pointer or an array; the
3013 # default is implementation-dependent. Figure out which it is, since
3014 # not all implementations provide the %pointer and %array declarations.
3015 ac_cv_prog_lex_yytext_pointer=no
3016 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3017 ac_save_LIBS=$LIBS
3018 LIBS="$LIBS $LEXLIB"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 `cat $LEX_OUTPUT_ROOT.c`
3021 _ACEOF
3022 rm -f conftest.$ac_objext conftest$ac_exeext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3024   (eval $ac_link) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_c_werror_flag"
3032                          || test ! -s conftest.err'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; } &&
3038          { ac_try='test -s conftest$ac_exeext'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   ac_cv_prog_lex_yytext_pointer=yes
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 fi
3050 rm -f conftest.err conftest.$ac_objext \
3051       conftest$ac_exeext conftest.$ac_ext
3052 LIBS=$ac_save_LIBS
3053 rm -f "${LEX_OUTPUT_ROOT}.c"
3054
3055 fi
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3057 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3058 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3059
3060 cat >>confdefs.h <<\_ACEOF
3061 #define YYTEXT_POINTER 1
3062 _ACEOF
3063
3064 fi
3065
3066 fi
3067 for ac_prog in 'bison -y' byacc
3068 do
3069   # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 echo "$as_me:$LINENO: checking for $ac_word" >&5
3072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3073 if test "${ac_cv_prog_YACC+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   if test -n "$YACC"; then
3077   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   for ac_exec_ext in '' $ac_executable_extensions; do
3085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086     ac_cv_prog_YACC="$ac_prog"
3087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091 done
3092
3093 fi
3094 fi
3095 YACC=$ac_cv_prog_YACC
3096 if test -n "$YACC"; then
3097   echo "$as_me:$LINENO: result: $YACC" >&5
3098 echo "${ECHO_T}$YACC" >&6
3099 else
3100   echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3102 fi
3103
3104   test -n "$YACC" && break
3105 done
3106 test -n "$YACC" || YACC="yacc"
3107
3108 # Extract the first word of "autoconf", so it can be a program name with args.
3109 set dummy autoconf; ac_word=$2
3110 echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   if test -n "$AUTOCONF"; then
3116   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121   IFS=$as_save_IFS
3122   test -z "$as_dir" && as_dir=.
3123   for ac_exec_ext in '' $ac_executable_extensions; do
3124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125     ac_cv_prog_AUTOCONF="autoconf"
3126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127     break 2
3128   fi
3129 done
3130 done
3131
3132   test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3133 fi
3134 fi
3135 AUTOCONF=$ac_cv_prog_AUTOCONF
3136 if test -n "$AUTOCONF"; then
3137   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3138 echo "${ECHO_T}$AUTOCONF" >&6
3139 else
3140   echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3142 fi
3143
3144 # Extract the first word of "strip", so it can be a program name with args.
3145 set dummy strip; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_STRIP+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   if test -n "$STRIP"; then
3152   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159   for ac_exec_ext in '' $ac_executable_extensions; do
3160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161     ac_cv_prog_STRIP="strip"
3162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166 done
3167
3168   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3169 fi
3170 fi
3171 STRIP=$ac_cv_prog_STRIP
3172 if test -n "$STRIP"; then
3173   echo "$as_me:$LINENO: result: $STRIP" >&5
3174 echo "${ECHO_T}$STRIP" >&6
3175 else
3176   echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178 fi
3179
3180 # Extract the first word of "as", so it can be a program name with args.
3181 set dummy as; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_AS+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if test -n "$AS"; then
3188   ac_cv_prog_AS="$AS" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195   for ac_exec_ext in '' $ac_executable_extensions; do
3196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197     ac_cv_prog_AS="as"
3198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202 done
3203
3204   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3205 fi
3206 fi
3207 AS=$ac_cv_prog_AS
3208 if test -n "$AS"; then
3209   echo "$as_me:$LINENO: result: $AS" >&5
3210 echo "${ECHO_T}$AS" >&6
3211 else
3212   echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3214 fi
3215
3216 # Extract the first word of "cp", so it can be a program name with args.
3217 set dummy cp; ac_word=$2
3218 echo "$as_me:$LINENO: checking for $ac_word" >&5
3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220 if test "${ac_cv_prog_CP+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   if test -n "$CP"; then
3224   ac_cv_prog_CP="$CP" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_prog_CP="cp"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3241 fi
3242 fi
3243 CP=$ac_cv_prog_CP
3244 if test -n "$CP"; then
3245   echo "$as_me:$LINENO: result: $CP" >&5
3246 echo "${ECHO_T}$CP" >&6
3247 else
3248   echo "$as_me:$LINENO: result: no" >&5
3249 echo "${ECHO_T}no" >&6
3250 fi
3251
3252
3253
3254
3255 if test "$YACC" = ":"; then
3256   { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3257 echo "$as_me: error: Cannot find required program bison." >&2;}
3258    { (exit 1); exit 1; }; }
3259  fi
3260
3261 if test "$LEX" = ":"; then
3262   { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3263 echo "$as_me: error: Cannot find required program lex." >&2;}
3264    { (exit 1); exit 1; }; }
3265  fi
3266
3267
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273
3274
3275
3276 # Checking for functions
3277 # ===========================================================================
3278
3279 for ac_func in strerror
3280 do
3281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3282 echo "$as_me:$LINENO: checking for $ac_func" >&5
3283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3284 if eval "test \"\${$as_ac_var+set}\" = set"; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3295 #define $ac_func innocuous_$ac_func
3296
3297 /* System header to define __stub macros and hopefully few prototypes,
3298     which can conflict with char $ac_func (); below.
3299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300     <limits.h> exists even on freestanding compilers.  */
3301
3302 #ifdef __STDC__
3303 # include <limits.h>
3304 #else
3305 # include <assert.h>
3306 #endif
3307
3308 #undef $ac_func
3309
3310 /* Override any gcc2 internal prototype to avoid an error.  */
3311 #ifdef __cplusplus
3312 extern "C"
3313 {
3314 #endif
3315 /* We use char because int might match the return type of a gcc2
3316    builtin and then its argument prototype would still apply.  */
3317 char $ac_func ();
3318 /* The GNU C library defines this for functions which it implements
3319     to always fail with ENOSYS.  Some functions are actually named
3320     something starting with __ and the normal name is an alias.  */
3321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3322 choke me
3323 #else
3324 char (*f) () = $ac_func;
3325 #endif
3326 #ifdef __cplusplus
3327 }
3328 #endif
3329
3330 int
3331 main ()
3332 {
3333 return f != $ac_func;
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext conftest$ac_exeext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3340   (eval $ac_link) 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -z "$ac_c_werror_flag"
3348                          || test ! -s conftest.err'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; } &&
3354          { ac_try='test -s conftest$ac_exeext'
3355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360   eval "$as_ac_var=yes"
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 eval "$as_ac_var=no"
3366 fi
3367 rm -f conftest.err conftest.$ac_objext \
3368       conftest$ac_exeext conftest.$ac_ext
3369 fi
3370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3372 if test `eval echo '${'$as_ac_var'}'` = yes; then
3373   cat >>confdefs.h <<_ACEOF
3374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3375 _ACEOF
3376
3377 fi
3378 done
3379
3380
3381
3382
3383
3384 for ac_func in vsnprintf snprintf vsprintf mkstemp
3385 do
3386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3387 echo "$as_me:$LINENO: checking for $ac_func" >&5
3388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3389 if eval "test \"\${$as_ac_var+set}\" = set"; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h.  */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h.  */
3398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3400 #define $ac_func innocuous_$ac_func
3401
3402 /* System header to define __stub macros and hopefully few prototypes,
3403     which can conflict with char $ac_func (); below.
3404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405     <limits.h> exists even on freestanding compilers.  */
3406
3407 #ifdef __STDC__
3408 # include <limits.h>
3409 #else
3410 # include <assert.h>
3411 #endif
3412
3413 #undef $ac_func
3414
3415 /* Override any gcc2 internal prototype to avoid an error.  */
3416 #ifdef __cplusplus
3417 extern "C"
3418 {
3419 #endif
3420 /* We use char because int might match the return type of a gcc2
3421    builtin and then its argument prototype would still apply.  */
3422 char $ac_func ();
3423 /* The GNU C library defines this for functions which it implements
3424     to always fail with ENOSYS.  Some functions are actually named
3425     something starting with __ and the normal name is an alias.  */
3426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3427 choke me
3428 #else
3429 char (*f) () = $ac_func;
3430 #endif
3431 #ifdef __cplusplus
3432 }
3433 #endif
3434
3435 int
3436 main ()
3437 {
3438 return f != $ac_func;
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445   (eval $ac_link) 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } &&
3452          { ac_try='test -z "$ac_c_werror_flag"
3453                          || test ! -s conftest.err'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; } &&
3459          { ac_try='test -s conftest$ac_exeext'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; }; then
3465   eval "$as_ac_var=yes"
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 eval "$as_ac_var=no"
3471 fi
3472 rm -f conftest.err conftest.$ac_objext \
3473       conftest$ac_exeext conftest.$ac_ext
3474 fi
3475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3477 if test `eval echo '${'$as_ac_var'}'` = yes; then
3478   cat >>confdefs.h <<_ACEOF
3479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3480 _ACEOF
3481
3482 fi
3483 done
3484
3485
3486
3487 # Macro definitions
3488 # ===========================================================================
3489
3490 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3491 # supports option specified as the 2nd parameter
3492 # For example: DD_CPORT(CXX, fPIC)
3493
3494
3495
3496 # This macro expands DIR and assigns it to RET.
3497 # If DIR is NONE, then it's replaced by DEFAULT.
3498 #
3499 # Based on AC_DEFINE_DIR
3500 #
3501 # Examples:
3502 #
3503 #  adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3504
3505
3506
3507 # adl_NORMALIZE_PATH
3508 #
3509 #  - empty paths are changed to '.'
3510 #  - trailing slashes are removed
3511 #  - repeated slashes are squeezed except a leading doubled slash '//'
3512 #    (which might indicate a networked disk on some OS).
3513 #
3514 #
3515 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3516 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3517 # are turned into backslashes, otherwise they are all turned into slashes.
3518 #
3519 # This makes processing of DOS filenames quite easier, because you can turn a
3520 # filename to the Unix notation, make your processing, and turn it back to
3521 # original notation.
3522
3523
3524
3525
3526 # adl_COMPUTE_RELATIVE_PATH
3527 #
3528 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3529 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3530 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3531 # absolute filenames for this macro to success.
3532
3533
3534
3535 ## Note:
3536 ## *****
3537 ## The following helper macros are too fragile to be used out
3538 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3539 ## paths are normalized), that's why I'm keeping them in the same file.
3540 ## Still, some of them maybe worth to reuse.
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558 # Checking characteristics of compilers and other programs
3559 # ===========================================================================
3560 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3561 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
3562 if test "${sdcc_cv_MM+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   echo "#include <stdio.h>" >_test_.c
3566 echo "" >>_test_.c
3567 $CPP -v -MM _test_.c 1>&5 2>&5
3568 if test "$?" = "0"; then
3569   sdcc_cv_MM="-MM"
3570 else
3571   sdcc_cv_MM="-M"
3572 fi
3573 rm -f _test_.*
3574 fi
3575 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3576 echo "${ECHO_T}$sdcc_cv_MM" >&6
3577 M_OR_MM=$sdcc_cv_MM
3578
3579
3580 # This is the first time when CFLAGS are set/modified!!
3581
3582 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3583 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
3584 if test "${sdcc_cv_CCggdb+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   cat >_test_.c <<EOF
3588 #include <stdio.h>
3589 void main(void) {}
3590 EOF
3591 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3592 if test "$?" = "0"; then
3593   sdcc_cv_CCggdb="yes"
3594 else
3595   sdcc_cv_CCggdb="no"
3596 fi
3597 rm -f _test_.* a.out
3598 fi
3599 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3600 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
3601
3602 if test "$sdcc_cv_CCggdb" = "yes"; then
3603   CFLAGS="-ggdb ${CFLAGS}"
3604 fi
3605
3606
3607 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3608 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
3609 if test "${sdcc_cv_CCpipe+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   cat >_test_.c <<EOF
3613 #include <stdio.h>
3614 void main(void) {}
3615 EOF
3616 $CC -v -pipe -c _test_.c 1>&5 2>&5
3617 if test "$?" = "0"; then
3618   sdcc_cv_CCpipe="yes"
3619 else
3620   sdcc_cv_CCpipe="no"
3621 fi
3622 rm -f _test_.* a.out
3623 fi
3624 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3625 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
3626
3627 if test "$sdcc_cv_CCpipe" = "yes"; then
3628   CFLAGS="-pipe $CFLAGS"
3629 fi
3630
3631
3632 # Checks for typedefs, structures, and compiler characteristics.
3633 # ===========================================================================
3634 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3635 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3636 if test "${ac_cv_type_signal+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 #include <sys/types.h>
3646 #include <signal.h>
3647 #ifdef signal
3648 # undef signal
3649 #endif
3650 #ifdef __cplusplus
3651 extern "C" void (*signal (int, void (*)(int)))(int);
3652 #else
3653 void (*signal ()) ();
3654 #endif
3655
3656 int
3657 main ()
3658 {
3659 int i;
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666   (eval $ac_compile) 2>conftest.er1
3667   ac_status=$?
3668   grep -v '^ *+' conftest.er1 >conftest.err
3669   rm -f conftest.er1
3670   cat conftest.err >&5
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } &&
3673          { ac_try='test -z "$ac_c_werror_flag"
3674                          || test ! -s conftest.err'
3675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676   (eval $ac_try) 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); }; } &&
3680          { ac_try='test -s conftest.$ac_objext'
3681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682   (eval $ac_try) 2>&5
3683   ac_status=$?
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); }; }; then
3686   ac_cv_type_signal=void
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 ac_cv_type_signal=int
3692 fi
3693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3694 fi
3695 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3696 echo "${ECHO_T}$ac_cv_type_signal" >&6
3697
3698 cat >>confdefs.h <<_ACEOF
3699 #define RETSIGTYPE $ac_cv_type_signal
3700 _ACEOF
3701
3702
3703
3704
3705 echo "$as_me:$LINENO: checking for egrep" >&5
3706 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3707 if test "${ac_cv_prog_egrep+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3711     then ac_cv_prog_egrep='grep -E'
3712     else ac_cv_prog_egrep='egrep'
3713     fi
3714 fi
3715 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3716 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3717  EGREP=$ac_cv_prog_egrep
3718
3719
3720 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3721 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3722 if test "${ac_cv_header_stdc+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731 #include <stdlib.h>
3732 #include <stdarg.h>
3733 #include <string.h>
3734 #include <float.h>
3735
3736 int
3737 main ()
3738 {
3739
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746   (eval $ac_compile) 2>conftest.er1
3747   ac_status=$?
3748   grep -v '^ *+' conftest.er1 >conftest.err
3749   rm -f conftest.er1
3750   cat conftest.err >&5
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); } &&
3753          { ac_try='test -z "$ac_c_werror_flag"
3754                          || test ! -s conftest.err'
3755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756   (eval $ac_try) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }; } &&
3760          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3766   ac_cv_header_stdc=yes
3767 else
3768   echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 ac_cv_header_stdc=no
3772 fi
3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774
3775 if test $ac_cv_header_stdc = yes; then
3776   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3777   cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783 #include <string.h>
3784
3785 _ACEOF
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787   $EGREP "memchr" >/dev/null 2>&1; then
3788   :
3789 else
3790   ac_cv_header_stdc=no
3791 fi
3792 rm -f conftest*
3793
3794 fi
3795
3796 if test $ac_cv_header_stdc = yes; then
3797   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3798   cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h.  */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h.  */
3804 #include <stdlib.h>
3805
3806 _ACEOF
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808   $EGREP "free" >/dev/null 2>&1; then
3809   :
3810 else
3811   ac_cv_header_stdc=no
3812 fi
3813 rm -f conftest*
3814
3815 fi
3816
3817 if test $ac_cv_header_stdc = yes; then
3818   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819   if test "$cross_compiling" = yes; then
3820   :
3821 else
3822   cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h.  */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h.  */
3828 #include <ctype.h>
3829 #if ((' ' & 0x0FF) == 0x020)
3830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3832 #else
3833 # define ISLOWER(c) \
3834                    (('a' <= (c) && (c) <= 'i') \
3835                      || ('j' <= (c) && (c) <= 'r') \
3836                      || ('s' <= (c) && (c) <= 'z'))
3837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3838 #endif
3839
3840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3841 int
3842 main ()
3843 {
3844   int i;
3845   for (i = 0; i < 256; i++)
3846     if (XOR (islower (i), ISLOWER (i))
3847         || toupper (i) != TOUPPER (i))
3848       exit(2);
3849   exit (0);
3850 }
3851 _ACEOF
3852 rm -f conftest$ac_exeext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854   (eval $ac_link) 2>&5
3855   ac_status=$?
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859   (eval $ac_try) 2>&5
3860   ac_status=$?
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); }; }; then
3863   :
3864 else
3865   echo "$as_me: program exited with status $ac_status" >&5
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 ( exit $ac_status )
3870 ac_cv_header_stdc=no
3871 fi
3872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3873 fi
3874 fi
3875 fi
3876 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3877 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3878 if test $ac_cv_header_stdc = yes; then
3879
3880 cat >>confdefs.h <<\_ACEOF
3881 #define STDC_HEADERS 1
3882 _ACEOF
3883
3884 fi
3885
3886 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3897                   inttypes.h stdint.h unistd.h
3898 do
3899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3900 echo "$as_me:$LINENO: checking for $ac_header" >&5
3901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 $ac_includes_default
3912
3913 #include <$ac_header>
3914 _ACEOF
3915 rm -f conftest.$ac_objext
3916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3917   (eval $ac_compile) 2>conftest.er1
3918   ac_status=$?
3919   grep -v '^ *+' conftest.er1 >conftest.err
3920   rm -f conftest.er1
3921   cat conftest.err >&5
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); } &&
3924          { ac_try='test -z "$ac_c_werror_flag"
3925                          || test ! -s conftest.err'
3926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927   (eval $ac_try) 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); }; } &&
3931          { ac_try='test -s conftest.$ac_objext'
3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933   (eval $ac_try) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; }; then
3937   eval "$as_ac_Header=yes"
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 eval "$as_ac_Header=no"
3943 fi
3944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3945 fi
3946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3949   cat >>confdefs.h <<_ACEOF
3950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3951 _ACEOF
3952
3953 fi
3954
3955 done
3956
3957
3958 echo "$as_me:$LINENO: checking for char" >&5
3959 echo $ECHO_N "checking for char... $ECHO_C" >&6
3960 if test "${ac_cv_type_char+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h.  */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h.  */
3969 $ac_includes_default
3970 int
3971 main ()
3972 {
3973 if ((char *) 0)
3974   return 0;
3975 if (sizeof (char))
3976   return 0;
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983   (eval $ac_compile) 2>conftest.er1
3984   ac_status=$?
3985   grep -v '^ *+' conftest.er1 >conftest.err
3986   rm -f conftest.er1
3987   cat conftest.err >&5
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); } &&
3990          { ac_try='test -z "$ac_c_werror_flag"
3991                          || test ! -s conftest.err'
3992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993   (eval $ac_try) 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); }; } &&
3997          { ac_try='test -s conftest.$ac_objext'
3998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999   (eval $ac_try) 2>&5
4000   ac_status=$?
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); }; }; then
4003   ac_cv_type_char=yes
4004 else
4005   echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 ac_cv_type_char=no
4009 fi
4010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011 fi
4012 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4013 echo "${ECHO_T}$ac_cv_type_char" >&6
4014
4015 echo "$as_me:$LINENO: checking size of char" >&5
4016 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4017 if test "${ac_cv_sizeof_char+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   if test "$ac_cv_type_char" = yes; then
4021   # The cast to unsigned long works around a bug in the HP C Compiler
4022   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4023   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4024   # This bug is HP SR number 8606223364.
4025   if test "$cross_compiling" = yes; then
4026   # Depending upon the size, compute the lo and hi bounds.
4027 cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h.  */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h.  */
4033 $ac_includes_default
4034 int
4035 main ()
4036 {
4037 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4038 test_array [0] = 0
4039
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.$ac_objext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046   (eval $ac_compile) 2>conftest.er1
4047   ac_status=$?
4048   grep -v '^ *+' conftest.er1 >conftest.err
4049   rm -f conftest.er1
4050   cat conftest.err >&5
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); } &&
4053          { ac_try='test -z "$ac_c_werror_flag"
4054                          || test ! -s conftest.err'
4055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056   (eval $ac_try) 2>&5
4057   ac_status=$?
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); }; } &&
4060          { ac_try='test -s conftest.$ac_objext'
4061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062   (eval $ac_try) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); }; }; then
4066   ac_lo=0 ac_mid=0
4067   while :; do
4068     cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 $ac_includes_default
4075 int
4076 main ()
4077 {
4078 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4079 test_array [0] = 0
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087   (eval $ac_compile) 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -z "$ac_c_werror_flag"
4095                          || test ! -s conftest.err'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; } &&
4101          { ac_try='test -s conftest.$ac_objext'
4102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103   (eval $ac_try) 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107   ac_hi=$ac_mid; break
4108 else
4109   echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 ac_lo=`expr $ac_mid + 1`
4113                     if test $ac_lo -le $ac_mid; then
4114                       ac_lo= ac_hi=
4115                       break
4116                     fi
4117                     ac_mid=`expr 2 '*' $ac_mid + 1`
4118 fi
4119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120   done
4121 else
4122   echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 $ac_includes_default
4132 int
4133 main ()
4134 {
4135 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4136 test_array [0] = 0
4137
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142 rm -f conftest.$ac_objext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144   (eval $ac_compile) 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } &&
4151          { ac_try='test -z "$ac_c_werror_flag"
4152                          || test ! -s conftest.err'
4153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154   (eval $ac_try) 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; } &&
4158          { ac_try='test -s conftest.$ac_objext'
4159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160   (eval $ac_try) 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   ac_hi=-1 ac_mid=-1
4165   while :; do
4166     cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 $ac_includes_default
4173 int
4174 main ()
4175 {
4176 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4177 test_array [0] = 0
4178
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185   (eval $ac_compile) 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -z "$ac_c_werror_flag"
4193                          || test ! -s conftest.err'
4194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195   (eval $ac_try) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; } &&
4199          { ac_try='test -s conftest.$ac_objext'
4200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201   (eval $ac_try) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   ac_lo=$ac_mid; break
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ac_hi=`expr '(' $ac_mid ')' - 1`
4211                        if test $ac_mid -le $ac_hi; then
4212                          ac_lo= ac_hi=
4213                          break
4214                        fi
4215                        ac_mid=`expr 2 '*' $ac_mid`
4216 fi
4217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218   done
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ac_lo= ac_hi=
4224 fi
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226 fi
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 # Binary search between lo and hi bounds.
4229 while test "x$ac_lo" != "x$ac_hi"; do
4230   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 $ac_includes_default
4238 int
4239 main ()
4240 {
4241 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4242 test_array [0] = 0
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250   (eval $ac_compile) 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -z "$ac_c_werror_flag"
4258                          || test ! -s conftest.err'
4259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; } &&
4264          { ac_try='test -s conftest.$ac_objext'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; }; then
4270   ac_hi=$ac_mid
4271 else
4272   echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 ac_lo=`expr '(' $ac_mid ')' + 1`
4276 fi
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 done
4279 case $ac_lo in
4280 ?*) ac_cv_sizeof_char=$ac_lo;;
4281 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4282 See \`config.log' for more details." >&5
4283 echo "$as_me: error: cannot compute sizeof (char), 77
4284 See \`config.log' for more details." >&2;}
4285    { (exit 1); exit 1; }; } ;;
4286 esac
4287 else
4288   if test "$cross_compiling" = yes; then
4289   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4290 See \`config.log' for more details." >&5
4291 echo "$as_me: error: cannot run test program while cross compiling
4292 See \`config.log' for more details." >&2;}
4293    { (exit 1); exit 1; }; }
4294 else
4295   cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h.  */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h.  */
4301 $ac_includes_default
4302 long longval () { return (long) (sizeof (char)); }
4303 unsigned long ulongval () { return (long) (sizeof (char)); }
4304 #include <stdio.h>
4305 #include <stdlib.h>
4306 int
4307 main ()
4308 {
4309
4310   FILE *f = fopen ("conftest.val", "w");
4311   if (! f)
4312     exit (1);
4313   if (((long) (sizeof (char))) < 0)
4314     {
4315       long i = longval ();
4316       if (i != ((long) (sizeof (char))))
4317         exit (1);
4318       fprintf (f, "%ld\n", i);
4319     }
4320   else
4321     {
4322       unsigned long i = ulongval ();
4323       if (i != ((long) (sizeof (char))))
4324         exit (1);
4325       fprintf (f, "%lu\n", i);
4326     }
4327   exit (ferror (f) || fclose (f) != 0);
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335   (eval $ac_link) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   ac_cv_sizeof_char=`cat conftest.val`
4345 else
4346   echo "$as_me: program exited with status $ac_status" >&5
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 ( exit $ac_status )
4351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4352 See \`config.log' for more details." >&5
4353 echo "$as_me: error: cannot compute sizeof (char), 77
4354 See \`config.log' for more details." >&2;}
4355    { (exit 1); exit 1; }; }
4356 fi
4357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4358 fi
4359 fi
4360 rm -f conftest.val
4361 else
4362   ac_cv_sizeof_char=0
4363 fi
4364 fi
4365 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4366 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4367 cat >>confdefs.h <<_ACEOF
4368 #define SIZEOF_CHAR $ac_cv_sizeof_char
4369 _ACEOF
4370
4371
4372 echo "$as_me:$LINENO: checking for short" >&5
4373 echo $ECHO_N "checking for short... $ECHO_C" >&6
4374 if test "${ac_cv_type_short+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 $ac_includes_default
4384 int
4385 main ()
4386 {
4387 if ((short *) 0)
4388   return 0;
4389 if (sizeof (short))
4390   return 0;
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397   (eval $ac_compile) 2>conftest.er1
4398   ac_status=$?
4399   grep -v '^ *+' conftest.er1 >conftest.err
4400   rm -f conftest.er1
4401   cat conftest.err >&5
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } &&
4404          { ac_try='test -z "$ac_c_werror_flag"
4405                          || test ! -s conftest.err'
4406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407   (eval $ac_try) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; } &&
4411          { ac_try='test -s conftest.$ac_objext'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   ac_cv_type_short=yes
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 ac_cv_type_short=no
4423 fi
4424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4425 fi
4426 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4427 echo "${ECHO_T}$ac_cv_type_short" >&6
4428
4429 echo "$as_me:$LINENO: checking size of short" >&5
4430 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4431 if test "${ac_cv_sizeof_short+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test "$ac_cv_type_short" = yes; then
4435   # The cast to unsigned long works around a bug in the HP C Compiler
4436   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4437   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4438   # This bug is HP SR number 8606223364.
4439   if test "$cross_compiling" = yes; then
4440   # Depending upon the size, compute the lo and hi bounds.
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447 $ac_includes_default
4448 int
4449 main ()
4450 {
4451 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4452 test_array [0] = 0
4453
4454   ;
4455   return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460   (eval $ac_compile) 2>conftest.er1
4461   ac_status=$?
4462   grep -v '^ *+' conftest.er1 >conftest.err
4463   rm -f conftest.er1
4464   cat conftest.err >&5
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } &&
4467          { ac_try='test -z "$ac_c_werror_flag"
4468                          || test ! -s conftest.err'
4469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470   (eval $ac_try) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; } &&
4474          { ac_try='test -s conftest.$ac_objext'
4475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476   (eval $ac_try) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }; }; then
4480   ac_lo=0 ac_mid=0
4481   while :; do
4482     cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h.  */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h.  */
4488 $ac_includes_default
4489 int
4490 main ()
4491 {
4492 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4493 test_array [0] = 0
4494
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501   (eval $ac_compile) 2>conftest.er1
4502   ac_status=$?
4503   grep -v '^ *+' conftest.er1 >conftest.err
4504   rm -f conftest.er1
4505   cat conftest.err >&5
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } &&
4508          { ac_try='test -z "$ac_c_werror_flag"
4509                          || test ! -s conftest.err'
4510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511   (eval $ac_try) 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }; } &&
4515          { ac_try='test -s conftest.$ac_objext'
4516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517   (eval $ac_try) 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; }; then
4521   ac_hi=$ac_mid; break
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 ac_lo=`expr $ac_mid + 1`
4527                     if test $ac_lo -le $ac_mid; then
4528                       ac_lo= ac_hi=
4529                       break
4530                     fi
4531                     ac_mid=`expr 2 '*' $ac_mid + 1`
4532 fi
4533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534   done
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545 $ac_includes_default
4546 int
4547 main ()
4548 {
4549 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4550 test_array [0] = 0
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558   (eval $ac_compile) 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag"
4566                          || test ! -s conftest.err'
4567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568   (eval $ac_try) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; } &&
4572          { ac_try='test -s conftest.$ac_objext'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578   ac_hi=-1 ac_mid=-1
4579   while :; do
4580     cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586 $ac_includes_default
4587 int
4588 main ()
4589 {
4590 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4591 test_array [0] = 0
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599   (eval $ac_compile) 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } &&
4606          { ac_try='test -z "$ac_c_werror_flag"
4607                          || test ! -s conftest.err'
4608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609   (eval $ac_try) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; } &&
4613          { ac_try='test -s conftest.$ac_objext'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; }; then
4619   ac_lo=$ac_mid; break
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ac_hi=`expr '(' $ac_mid ')' - 1`
4625                        if test $ac_mid -le $ac_hi; then
4626                          ac_lo= ac_hi=
4627                          break
4628                        fi
4629                        ac_mid=`expr 2 '*' $ac_mid`
4630 fi
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632   done
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 ac_lo= ac_hi=
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 fi
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 # Binary search between lo and hi bounds.
4643 while test "x$ac_lo" != "x$ac_hi"; do
4644   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4645   cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651 $ac_includes_default
4652 int
4653 main ()
4654 {
4655 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4656 test_array [0] = 0
4657
4658   ;
4659   return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664   (eval $ac_compile) 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } &&
4671          { ac_try='test -z "$ac_c_werror_flag"
4672                          || test ! -s conftest.err'
4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674   (eval $ac_try) 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; } &&
4678          { ac_try='test -s conftest.$ac_objext'
4679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680   (eval $ac_try) 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; }; then
4684   ac_hi=$ac_mid
4685 else
4686   echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ac_lo=`expr '(' $ac_mid ')' + 1`
4690 fi
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 done
4693 case $ac_lo in
4694 ?*) ac_cv_sizeof_short=$ac_lo;;
4695 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4696 See \`config.log' for more details." >&5
4697 echo "$as_me: error: cannot compute sizeof (short), 77
4698 See \`config.log' for more details." >&2;}
4699    { (exit 1); exit 1; }; } ;;
4700 esac
4701 else
4702   if test "$cross_compiling" = yes; then
4703   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4704 See \`config.log' for more details." >&5
4705 echo "$as_me: error: cannot run test program while cross compiling
4706 See \`config.log' for more details." >&2;}
4707    { (exit 1); exit 1; }; }
4708 else
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 $ac_includes_default
4716 long longval () { return (long) (sizeof (short)); }
4717 unsigned long ulongval () { return (long) (sizeof (short)); }
4718 #include <stdio.h>
4719 #include <stdlib.h>
4720 int
4721 main ()
4722 {
4723
4724   FILE *f = fopen ("conftest.val", "w");
4725   if (! f)
4726     exit (1);
4727   if (((long) (sizeof (short))) < 0)
4728     {
4729       long i = longval ();
4730       if (i != ((long) (sizeof (short))))
4731         exit (1);
4732       fprintf (f, "%ld\n", i);
4733     }
4734   else
4735     {
4736       unsigned long i = ulongval ();
4737       if (i != ((long) (sizeof (short))))
4738         exit (1);
4739       fprintf (f, "%lu\n", i);
4740     }
4741   exit (ferror (f) || fclose (f) != 0);
4742
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest$ac_exeext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749   (eval $ac_link) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; }; then
4758   ac_cv_sizeof_short=`cat conftest.val`
4759 else
4760   echo "$as_me: program exited with status $ac_status" >&5
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 ( exit $ac_status )
4765 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4766 See \`config.log' for more details." >&5
4767 echo "$as_me: error: cannot compute sizeof (short), 77
4768 See \`config.log' for more details." >&2;}
4769    { (exit 1); exit 1; }; }
4770 fi
4771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4772 fi
4773 fi
4774 rm -f conftest.val
4775 else
4776   ac_cv_sizeof_short=0
4777 fi
4778 fi
4779 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4780 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4781 cat >>confdefs.h <<_ACEOF
4782 #define SIZEOF_SHORT $ac_cv_sizeof_short
4783 _ACEOF
4784
4785
4786 echo "$as_me:$LINENO: checking for int" >&5
4787 echo $ECHO_N "checking for int... $ECHO_C" >&6
4788 if test "${ac_cv_type_int+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797 $ac_includes_default
4798 int
4799 main ()
4800 {
4801 if ((int *) 0)
4802   return 0;
4803 if (sizeof (int))
4804   return 0;
4805   ;
4806   return 0;
4807 }
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811   (eval $ac_compile) 2>conftest.er1
4812   ac_status=$?
4813   grep -v '^ *+' conftest.er1 >conftest.err
4814   rm -f conftest.er1
4815   cat conftest.err >&5
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); } &&
4818          { ac_try='test -z "$ac_c_werror_flag"
4819                          || test ! -s conftest.err'
4820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821   (eval $ac_try) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; } &&
4825          { ac_try='test -s conftest.$ac_objext'
4826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827   (eval $ac_try) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; }; then
4831   ac_cv_type_int=yes
4832 else
4833   echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4835
4836 ac_cv_type_int=no
4837 fi
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 fi
4840 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4841 echo "${ECHO_T}$ac_cv_type_int" >&6
4842
4843 echo "$as_me:$LINENO: checking size of int" >&5
4844 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4845 if test "${ac_cv_sizeof_int+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   if test "$ac_cv_type_int" = yes; then
4849   # The cast to unsigned long works around a bug in the HP C Compiler
4850   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4851   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4852   # This bug is HP SR number 8606223364.
4853   if test "$cross_compiling" = yes; then
4854   # Depending upon the size, compute the lo and hi bounds.
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h.  */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h.  */
4861 $ac_includes_default
4862 int
4863 main ()
4864 {
4865 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4866 test_array [0] = 0
4867
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874   (eval $ac_compile) 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -z "$ac_c_werror_flag"
4882                          || test ! -s conftest.err'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; } &&
4888          { ac_try='test -s conftest.$ac_objext'
4889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890   (eval $ac_try) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   ac_lo=0 ac_mid=0
4895   while :; do
4896     cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 $ac_includes_default
4903 int
4904 main ()
4905 {
4906 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4907 test_array [0] = 0
4908
4909   ;
4910   return 0;
4911 }
4912 _ACEOF
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915   (eval $ac_compile) 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -z "$ac_c_werror_flag"
4923                          || test ! -s conftest.err'
4924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925   (eval $ac_try) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; } &&
4929          { ac_try='test -s conftest.$ac_objext'
4930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931   (eval $ac_try) 2>&5
4932   ac_status=$?
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); }; }; then
4935   ac_hi=$ac_mid; break
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940 ac_lo=`expr $ac_mid + 1`
4941                     if test $ac_lo -le $ac_mid; then
4942                       ac_lo= ac_hi=
4943                       break
4944                     fi
4945                     ac_mid=`expr 2 '*' $ac_mid + 1`
4946 fi
4947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948   done
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 $ac_includes_default
4960 int
4961 main ()
4962 {
4963 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4964 test_array [0] = 0
4965
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972   (eval $ac_compile) 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -z "$ac_c_werror_flag"
4980                          || test ! -s conftest.err'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; } &&
4986          { ac_try='test -s conftest.$ac_objext'
4987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988   (eval $ac_try) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   ac_hi=-1 ac_mid=-1
4993   while :; do
4994     cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 $ac_includes_default
5001 int
5002 main ()
5003 {
5004 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5005 test_array [0] = 0
5006
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013   (eval $ac_compile) 2>conftest.er1
5014   ac_status=$?
5015   grep -v '^ *+' conftest.er1 >conftest.err
5016   rm -f conftest.er1
5017   cat conftest.err >&5
5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); } &&
5020          { ac_try='test -z "$ac_c_werror_flag"
5021                          || test ! -s conftest.err'
5022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023   (eval $ac_try) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }; } &&
5027          { ac_try='test -s conftest.$ac_objext'
5028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029   (eval $ac_try) 2>&5
5030   ac_status=$?
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); }; }; then
5033   ac_lo=$ac_mid; break
5034 else
5035   echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038 ac_hi=`expr '(' $ac_mid ')' - 1`
5039                        if test $ac_mid -le $ac_hi; then
5040                          ac_lo= ac_hi=
5041                          break
5042                        fi
5043                        ac_mid=`expr 2 '*' $ac_mid`
5044 fi
5045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046   done
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 ac_lo= ac_hi=
5052 fi
5053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5054 fi
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 # Binary search between lo and hi bounds.
5057 while test "x$ac_lo" != "x$ac_hi"; do
5058   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5059   cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 $ac_includes_default
5066 int
5067 main ()
5068 {
5069 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5070 test_array [0] = 0
5071
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078   (eval $ac_compile) 2>conftest.er1
5079   ac_status=$?
5080   grep -v '^ *+' conftest.er1 >conftest.err
5081   rm -f conftest.er1
5082   cat conftest.err >&5
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); } &&
5085          { ac_try='test -z "$ac_c_werror_flag"
5086                          || test ! -s conftest.err'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; } &&
5092          { ac_try='test -s conftest.$ac_objext'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   ac_hi=$ac_mid
5099 else
5100   echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 ac_lo=`expr '(' $ac_mid ')' + 1`
5104 fi
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106 done
5107 case $ac_lo in
5108 ?*) ac_cv_sizeof_int=$ac_lo;;
5109 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5110 See \`config.log' for more details." >&5
5111 echo "$as_me: error: cannot compute sizeof (int), 77
5112 See \`config.log' for more details." >&2;}
5113    { (exit 1); exit 1; }; } ;;
5114 esac
5115 else
5116   if test "$cross_compiling" = yes; then
5117   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: cannot run test program while cross compiling
5120 See \`config.log' for more details." >&2;}
5121    { (exit 1); exit 1; }; }
5122 else
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 $ac_includes_default
5130 long longval () { return (long) (sizeof (int)); }
5131 unsigned long ulongval () { return (long) (sizeof (int)); }
5132 #include <stdio.h>
5133 #include <stdlib.h>
5134 int
5135 main ()
5136 {
5137
5138   FILE *f = fopen ("conftest.val", "w");
5139   if (! f)
5140     exit (1);
5141   if (((long) (sizeof (int))) < 0)
5142     {
5143       long i = longval ();
5144       if (i != ((long) (sizeof (int))))
5145         exit (1);
5146       fprintf (f, "%ld\n", i);
5147     }
5148   else
5149     {
5150       unsigned long i = ulongval ();
5151       if (i != ((long) (sizeof (int))))
5152         exit (1);
5153       fprintf (f, "%lu\n", i);
5154     }
5155   exit (ferror (f) || fclose (f) != 0);
5156
5157   ;
5158   return 0;
5159 }
5160 _ACEOF
5161 rm -f conftest$ac_exeext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163   (eval $ac_link) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168   (eval $ac_try) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; }; then
5172   ac_cv_sizeof_int=`cat conftest.val`
5173 else
5174   echo "$as_me: program exited with status $ac_status" >&5
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 ( exit $ac_status )
5179 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5180 See \`config.log' for more details." >&5
5181 echo "$as_me: error: cannot compute sizeof (int), 77
5182 See \`config.log' for more details." >&2;}
5183    { (exit 1); exit 1; }; }
5184 fi
5185 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5186 fi
5187 fi
5188 rm -f conftest.val
5189 else
5190   ac_cv_sizeof_int=0
5191 fi
5192 fi
5193 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5194 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5195 cat >>confdefs.h <<_ACEOF
5196 #define SIZEOF_INT $ac_cv_sizeof_int
5197 _ACEOF
5198
5199
5200 echo "$as_me:$LINENO: checking for long" >&5
5201 echo $ECHO_N "checking for long... $ECHO_C" >&6
5202 if test "${ac_cv_type_long+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 $ac_includes_default
5212 int
5213 main ()
5214 {
5215 if ((long *) 0)
5216   return 0;
5217 if (sizeof (long))
5218   return 0;
5219   ;
5220   return 0;
5221 }
5222 _ACEOF
5223 rm -f conftest.$ac_objext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5225   (eval $ac_compile) 2>conftest.er1
5226   ac_status=$?
5227   grep -v '^ *+' conftest.er1 >conftest.err
5228   rm -f conftest.er1
5229   cat conftest.err >&5
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } &&
5232          { ac_try='test -z "$ac_c_werror_flag"
5233                          || test ! -s conftest.err'
5234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235   (eval $ac_try) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }; } &&
5239          { ac_try='test -s conftest.$ac_objext'
5240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241   (eval $ac_try) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }; }; then
5245   ac_cv_type_long=yes
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_cv_type_long=no
5251 fi
5252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5253 fi
5254 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5255 echo "${ECHO_T}$ac_cv_type_long" >&6
5256
5257 echo "$as_me:$LINENO: checking size of long" >&5
5258 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5259 if test "${ac_cv_sizeof_long+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   if test "$ac_cv_type_long" = yes; then
5263   # The cast to unsigned long works around a bug in the HP C Compiler
5264   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5265   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5266   # This bug is HP SR number 8606223364.
5267   if test "$cross_compiling" = yes; then
5268   # Depending upon the size, compute the lo and hi bounds.
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 $ac_includes_default
5276 int
5277 main ()
5278 {
5279 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5280 test_array [0] = 0
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288   (eval $ac_compile) 2>conftest.er1
5289   ac_status=$?
5290   grep -v '^ *+' conftest.er1 >conftest.err
5291   rm -f conftest.er1
5292   cat conftest.err >&5
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } &&
5295          { ac_try='test -z "$ac_c_werror_flag"
5296                          || test ! -s conftest.err'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; } &&
5302          { ac_try='test -s conftest.$ac_objext'
5303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304   (eval $ac_try) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; }; then
5308   ac_lo=0 ac_mid=0
5309   while :; do
5310     cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316 $ac_includes_default
5317 int
5318 main ()
5319 {
5320 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5321 test_array [0] = 0
5322
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329   (eval $ac_compile) 2>conftest.er1
5330   ac_status=$?
5331   grep -v '^ *+' conftest.er1 >conftest.err
5332   rm -f conftest.er1
5333   cat conftest.err >&5
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); } &&
5336          { ac_try='test -z "$ac_c_werror_flag"
5337                          || test ! -s conftest.err'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; } &&
5343          { ac_try='test -s conftest.$ac_objext'
5344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345   (eval $ac_try) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); }; }; then
5349   ac_hi=$ac_mid; break
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_lo=`expr $ac_mid + 1`
5355                     if test $ac_lo -le $ac_mid; then
5356                       ac_lo= ac_hi=
5357                       break
5358                     fi
5359                     ac_mid=`expr 2 '*' $ac_mid + 1`
5360 fi
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362   done
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 $ac_includes_default
5374 int
5375 main ()
5376 {
5377 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5378 test_array [0] = 0
5379
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386   (eval $ac_compile) 2>conftest.er1
5387   ac_status=$?
5388   grep -v '^ *+' conftest.er1 >conftest.err
5389   rm -f conftest.er1
5390   cat conftest.err >&5
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -z "$ac_c_werror_flag"
5394                          || test ! -s conftest.err'
5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396   (eval $ac_try) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; } &&
5400          { ac_try='test -s conftest.$ac_objext'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   ac_hi=-1 ac_mid=-1
5407   while :; do
5408     cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414 $ac_includes_default
5415 int
5416 main ()
5417 {
5418 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5419 test_array [0] = 0
5420
5421   ;
5422   return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427   (eval $ac_compile) 2>conftest.er1
5428   ac_status=$?
5429   grep -v '^ *+' conftest.er1 >conftest.err
5430   rm -f conftest.er1
5431   cat conftest.err >&5
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); } &&
5434          { ac_try='test -z "$ac_c_werror_flag"
5435                          || test ! -s conftest.err'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; } &&
5441          { ac_try='test -s conftest.$ac_objext'
5442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443   (eval $ac_try) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; }; then
5447   ac_lo=$ac_mid; break
5448 else
5449   echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5451
5452 ac_hi=`expr '(' $ac_mid ')' - 1`
5453                        if test $ac_mid -le $ac_hi; then
5454                          ac_lo= ac_hi=
5455                          break
5456                        fi
5457                        ac_mid=`expr 2 '*' $ac_mid`
5458 fi
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460   done
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 ac_lo= ac_hi=
5466 fi
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468 fi
5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5470 # Binary search between lo and hi bounds.
5471 while test "x$ac_lo" != "x$ac_hi"; do
5472   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5473   cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479 $ac_includes_default
5480 int
5481 main ()
5482 {
5483 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5484 test_array [0] = 0
5485
5486   ;
5487   return 0;
5488 }
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492   (eval $ac_compile) 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } &&
5499          { ac_try='test -z "$ac_c_werror_flag"
5500                          || test ! -s conftest.err'
5501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502   (eval $ac_try) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); }; } &&
5506          { ac_try='test -s conftest.$ac_objext'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; }; then
5512   ac_hi=$ac_mid
5513 else
5514   echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 ac_lo=`expr '(' $ac_mid ')' + 1`
5518 fi
5519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5520 done
5521 case $ac_lo in
5522 ?*) ac_cv_sizeof_long=$ac_lo;;
5523 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5524 See \`config.log' for more details." >&5
5525 echo "$as_me: error: cannot compute sizeof (long), 77
5526 See \`config.log' for more details." >&2;}
5527    { (exit 1); exit 1; }; } ;;
5528 esac
5529 else
5530   if test "$cross_compiling" = yes; then
5531   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5532 See \`config.log' for more details." >&5
5533 echo "$as_me: error: cannot run test program while cross compiling
5534 See \`config.log' for more details." >&2;}
5535    { (exit 1); exit 1; }; }
5536 else
5537   cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h.  */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h.  */
5543 $ac_includes_default
5544 long longval () { return (long) (sizeof (long)); }
5545 unsigned long ulongval () { return (long) (sizeof (long)); }
5546 #include <stdio.h>
5547 #include <stdlib.h>
5548 int
5549 main ()
5550 {
5551
5552   FILE *f = fopen ("conftest.val", "w");
5553   if (! f)
5554     exit (1);
5555   if (((long) (sizeof (long))) < 0)
5556     {
5557       long i = longval ();
5558       if (i != ((long) (sizeof (long))))
5559         exit (1);
5560       fprintf (f, "%ld\n", i);
5561     }
5562   else
5563     {
5564       unsigned long i = ulongval ();
5565       if (i != ((long) (sizeof (long))))
5566         exit (1);
5567       fprintf (f, "%lu\n", i);
5568     }
5569   exit (ferror (f) || fclose (f) != 0);
5570
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 rm -f conftest$ac_exeext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577   (eval $ac_link) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582   (eval $ac_try) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }; }; then
5586   ac_cv_sizeof_long=`cat conftest.val`
5587 else
5588   echo "$as_me: program exited with status $ac_status" >&5
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 ( exit $ac_status )
5593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5594 See \`config.log' for more details." >&5
5595 echo "$as_me: error: cannot compute sizeof (long), 77
5596 See \`config.log' for more details." >&2;}
5597    { (exit 1); exit 1; }; }
5598 fi
5599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5600 fi
5601 fi
5602 rm -f conftest.val
5603 else
5604   ac_cv_sizeof_long=0
5605 fi
5606 fi
5607 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5608 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5609 cat >>confdefs.h <<_ACEOF
5610 #define SIZEOF_LONG $ac_cv_sizeof_long
5611 _ACEOF
5612
5613
5614
5615 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5616 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5617 if test "${ac_cv_c_char_unsigned+set}" = set; then
5618   echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620   cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626 $ac_includes_default
5627 int
5628 main ()
5629 {
5630 static int test_array [1 - 2 * !(((char) -1) < 0)];
5631 test_array [0] = 0
5632
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639   (eval $ac_compile) 2>conftest.er1
5640   ac_status=$?
5641   grep -v '^ *+' conftest.er1 >conftest.err
5642   rm -f conftest.er1
5643   cat conftest.err >&5
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } &&
5646          { ac_try='test -z "$ac_c_werror_flag"
5647                          || test ! -s conftest.err'
5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; } &&
5653          { ac_try='test -s conftest.$ac_objext'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   ac_cv_c_char_unsigned=no
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 ac_cv_c_char_unsigned=yes
5665 fi
5666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5667 fi
5668 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5669 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5670 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5671   cat >>confdefs.h <<\_ACEOF
5672 #define __CHAR_UNSIGNED__ 1
5673 _ACEOF
5674
5675 fi
5676
5677
5678 type_name()
5679 {
5680   if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5681       echo "char"
5682     exit
5683   fi
5684   if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5685     echo "short"
5686     exit
5687   fi
5688   if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5689     echo "int"
5690     exit
5691   fi
5692   if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5693     echo "long"
5694     exit
5695   fi
5696   echo "long"
5697 }
5698
5699 echo "$as_me:$LINENO: checking type name for byte" >&5
5700 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5701 TYPE_CHAR=`type_name 1`
5702 if test "$ac_cv_c_char_unsigned" = "yes"; then
5703   TYPE_BYTE="signed $TYPE_CHAR"
5704 else
5705   TYPE_BYTE=$TYPE_CHAR
5706 fi
5707 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5708 echo "${ECHO_T}$TYPE_BYTE" >&6
5709 echo "$as_me:$LINENO: checking type name for word" >&5
5710 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5711 TYPE_WORD=`type_name 2`
5712 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5713 echo "${ECHO_T}$TYPE_WORD" >&6
5714 echo "$as_me:$LINENO: checking type name for dword" >&5
5715 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5716 TYPE_DWORD=`type_name 4`
5717 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5718 echo "${ECHO_T}$TYPE_DWORD" >&6
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define TYPE_BYTE $TYPE_BYTE
5722 _ACEOF
5723
5724 cat >>confdefs.h <<_ACEOF
5725 #define TYPE_WORD $TYPE_WORD
5726 _ACEOF
5727
5728 cat >>confdefs.h <<_ACEOF
5729 #define TYPE_DWORD $TYPE_DWORD
5730 _ACEOF
5731
5732
5733 cat >>confdefs.h <<_ACEOF
5734 #define TYPE_UBYTE unsigned $TYPE_CHAR
5735 _ACEOF
5736
5737 cat >>confdefs.h <<_ACEOF
5738 #define TYPE_UWORD unsigned $TYPE_WORD
5739 _ACEOF
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define TYPE_UDWORD unsigned $TYPE_DWORD
5743 _ACEOF
5744
5745
5746 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5747 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5748 if test "${ac_cv_c_bigendian+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   # See if sys/param.h defines the BYTE_ORDER macro.
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 #include <sys/types.h>
5759 #include <sys/param.h>
5760
5761 int
5762 main ()
5763 {
5764 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5765  bogus endian macros
5766 #endif
5767
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774   (eval $ac_compile) 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } &&
5781          { ac_try='test -z "$ac_c_werror_flag"
5782                          || test ! -s conftest.err'
5783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784   (eval $ac_try) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }; } &&
5788          { ac_try='test -s conftest.$ac_objext'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   # It does; now see whether it defined to BIG_ENDIAN or not.
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h.  */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h.  */
5801 #include <sys/types.h>
5802 #include <sys/param.h>
5803
5804 int
5805 main ()
5806 {
5807 #if BYTE_ORDER != BIG_ENDIAN
5808  not big endian
5809 #endif
5810
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817   (eval $ac_compile) 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -z "$ac_c_werror_flag"
5825                          || test ! -s conftest.err'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest.$ac_objext'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; }; then
5837   ac_cv_c_bigendian=yes
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_cv_c_bigendian=no
5843 fi
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 else
5846   echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 # It does not; compile a test program.
5850 if test "$cross_compiling" = yes; then
5851   # try to guess the endianness by grepping values into an object file
5852   ac_cv_c_bigendian=unknown
5853   cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5860 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5861 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5862 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5863 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5864 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5865 int
5866 main ()
5867 {
5868  _ascii (); _ebcdic ();
5869   ;
5870   return 0;
5871 }
5872 _ACEOF
5873 rm -f conftest.$ac_objext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875   (eval $ac_compile) 2>conftest.er1
5876   ac_status=$?
5877   grep -v '^ *+' conftest.er1 >conftest.err
5878   rm -f conftest.er1
5879   cat conftest.err >&5
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } &&
5882          { ac_try='test -z "$ac_c_werror_flag"
5883                          || test ! -s conftest.err'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; } &&
5889          { ac_try='test -s conftest.$ac_objext'
5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891   (eval $ac_try) 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; }; then
5895   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5896   ac_cv_c_bigendian=yes
5897 fi
5898 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5899   if test "$ac_cv_c_bigendian" = unknown; then
5900     ac_cv_c_bigendian=no
5901   else
5902     # finding both strings is unlikely to happen, but who knows?
5903     ac_cv_c_bigendian=unknown
5904   fi
5905 fi
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 fi
5911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 else
5913   cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h.  */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h.  */
5919 int
5920 main ()
5921 {
5922   /* Are we little or big endian?  From Harbison&Steele.  */
5923   union
5924   {
5925     long l;
5926     char c[sizeof (long)];
5927   } u;
5928   u.l = 1;
5929   exit (u.c[sizeof (long) - 1] == 1);
5930 }
5931 _ACEOF
5932 rm -f conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934   (eval $ac_link) 2>&5
5935   ac_status=$?
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_cv_c_bigendian=no
5944 else
5945   echo "$as_me: program exited with status $ac_status" >&5
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 ( exit $ac_status )
5950 ac_cv_c_bigendian=yes
5951 fi
5952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5953 fi
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 fi
5957 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5958 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5959 case $ac_cv_c_bigendian in
5960   yes)
5961
5962 cat >>confdefs.h <<\_ACEOF
5963 #define WORDS_BIGENDIAN 1
5964 _ACEOF
5965  ;;
5966   no)
5967      ;;
5968   *)
5969     { { echo "$as_me:$LINENO: error: unknown endianness
5970 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5971 echo "$as_me: error: unknown endianness
5972 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5973    { (exit 1); exit 1; }; } ;;
5974 esac
5975
5976
5977 # Set standard installation paths
5978 # ===========================================================================
5979
5980 # In the Makefiles we need paths with '/' as directory separator, even if
5981 # crosscompiling for Win32.
5982 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5983 # The variables in the Makefiles are replaced by AC_SUBST()
5984 #
5985 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5986 #
5987 # The macros are expanded for the header.
5988 # The variables in the header are replaced by AC_*DEFINE*()
5989 # sdccconf_h_dir_separator contains a backslash.
5990
5991 if test "x${sdccconf_h_dir_separator}" = "x"; then
5992     sdccconf_h_dir_separator="/"
5993 fi
5994
5995 # Makefiles
5996 ###########
5997
5998 # include_dir_suffix:
5999 # *nix default: "sdcc/include"
6000
6001
6002 if test "${include_dir_suffix}" = ""; then
6003     include_dir_suffix="sdcc/include"
6004 fi
6005
6006
6007 # lib_dir_suffix:
6008 # *nix default: "sdcc/lib"
6009
6010 if test "${lib_dir_suffix}" = ""; then
6011     lib_dir_suffix="sdcc/lib"
6012 fi
6013
6014
6015 # docdir:
6016 # *nix default: "${datadir}/sdcc/doc"
6017
6018 if test "${docdir}" = ""; then
6019     docdir="\${datadir}"/sdcc/doc
6020 fi
6021
6022
6023
6024
6025 # sdccconf.h
6026 ############
6027
6028 cat >>confdefs.h <<_ACEOF
6029 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6030 _ACEOF
6031
6032 cat >>confdefs.h <<_ACEOF
6033 #define DIR_SEPARATOR_CHAR   '${sdccconf_h_dir_separator}'
6034 _ACEOF
6035
6036
6037 # prefix:
6038 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6039
6040   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6041   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6042   ac_expand=$prefix
6043   test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6044   ac_expand=`eval echo $ac_expand`
6045   expanded_prefix=`eval echo $ac_expand`
6046
6047
6048   ac_ndu=$expanded_prefix
6049   case ":$ac_ndu:" in
6050   ::) ac_ndu='.' ;;
6051   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6052   :*:) ;;
6053 esac
6054 case $sdccconf_h_dir_separator in
6055
6056     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6057                                   s,^[\\/],\\\\\\\\,'` ;;
6058
6059  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6060 esac
6061   cat >>confdefs.h <<_ACEOF
6062 #define PREFIX "${ac_ndu}"
6063 _ACEOF
6064
6065
6066
6067 # exec_prefix:
6068 # default: "${prefix}"
6069
6070   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6071   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6072   ac_expand=$exec_prefix
6073   test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6074   ac_expand=`eval echo $ac_expand`
6075   expanded_exec_prefix=`eval echo $ac_expand`
6076
6077
6078   ac_ndu=$expanded_exec_prefix
6079   case ":$ac_ndu:" in
6080   ::) ac_ndu='.' ;;
6081   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6082   :*:) ;;
6083 esac
6084 case $sdccconf_h_dir_separator in
6085
6086     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6087                                   s,^[\\/],\\\\\\\\,'` ;;
6088
6089  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6090 esac
6091   cat >>confdefs.h <<_ACEOF
6092 #define EXEC_PREFIX "${ac_ndu}"
6093 _ACEOF
6094
6095
6096
6097 # bindir:
6098 # default: "${exec_prefix}/bin"
6099
6100   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6101   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6102   ac_expand=$bindir
6103   test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6104   ac_expand=`eval echo $ac_expand`
6105   expanded_bindir=`eval echo $ac_expand`
6106
6107
6108   ac_ndu=$expanded_bindir
6109   case ":$ac_ndu:" in
6110   ::) ac_ndu='.' ;;
6111   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6112   :*:) ;;
6113 esac
6114 case $sdccconf_h_dir_separator in
6115
6116     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6117                                   s,^[\\/],\\\\\\\\,'` ;;
6118
6119  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6120 esac
6121   cat >>confdefs.h <<_ACEOF
6122 #define BINDIR "${ac_ndu}"
6123 _ACEOF
6124
6125
6126
6127 # datadir:
6128 # default: "${prefix}/share"
6129
6130   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6131   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6132   ac_expand=$datadir
6133   test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6134   ac_expand=`eval echo $ac_expand`
6135   expanded_datadir=`eval echo $ac_expand`
6136
6137
6138   ac_ndu=$expanded_datadir
6139   case ":$ac_ndu:" in
6140   ::) ac_ndu='.' ;;
6141   :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6142   :*:) ;;
6143 esac
6144 case $sdccconf_h_dir_separator in
6145
6146     *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6147                                   s,^[\\/],\\\\\\\\,'` ;;
6148
6149  *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6150 esac
6151   cat >>confdefs.h <<_ACEOF
6152 #define DATADIR "${ac_ndu}"
6153 _ACEOF
6154
6155
6156
6157 # include/lib suffix
6158 norm_inc_dir_suffix=${include_dir_suffix}
6159 case ":$norm_inc_dir_suffix:" in
6160   ::) norm_inc_dir_suffix='.' ;;
6161   :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6162   :*:) ;;
6163 esac
6164 case $sdccconf_h_dir_separator in
6165
6166     *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6167                                   s,^[\\/],\\\\\\\\,'` ;;
6168
6169  *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6170 esac
6171 cat >>confdefs.h <<_ACEOF
6172 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6173 _ACEOF
6174
6175 norm_lib_dir_suffix=${lib_dir_suffix}
6176 case ":$norm_lib_dir_suffix:" in
6177   ::) norm_lib_dir_suffix='.' ;;
6178   :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6179   :*:) ;;
6180 esac
6181 case $sdccconf_h_dir_separator in
6182
6183     *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6184                                   s,^[\\/],\\\\\\\\,'` ;;
6185
6186  *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6187 esac
6188 cat >>confdefs.h <<_ACEOF
6189 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6190 _ACEOF
6191
6192
6193 # relative paths
6194 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6195   _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6196   _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6197   _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6198   _lcl_receval="$_lcl_from"
6199 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6200      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6201      _lcl_receval_old=''
6202      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6203        _lcl_receval_old="$_lcl_receval"
6204        eval _lcl_receval="\"$_lcl_receval\""
6205      done
6206      echo "$_lcl_receval")`
6207   _lcl_receval="$_lcl_to"
6208 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6209      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6210      _lcl_receval_old=''
6211      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6212        _lcl_receval_old="$_lcl_receval"
6213        eval _lcl_receval="\"$_lcl_receval\""
6214      done
6215      echo "$_lcl_receval")`
6216   _lcl_notation="$_lcl_from$_lcl_to"
6217   case ":$_lcl_from:" in
6218   ::) _lcl_from='.' ;;
6219   :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6220   :*:) ;;
6221 esac
6222 case '/' in
6223
6224     *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6225                                   s,^[\\/],\\\\\\\\,'` ;;
6226
6227  *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6228 esac
6229   case ":$_lcl_to:" in
6230   ::) _lcl_to='.' ;;
6231   :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6232   :*:) ;;
6233 esac
6234 case '/' in
6235
6236     *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6237                                   s,^[\\/],\\\\\\\\,'` ;;
6238
6239  *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6240 esac
6241   _lcl_common_prefix=''
6242 _lcl_second_prefix_match=''
6243 while test "$_lcl_second_prefix_match" != 0; do
6244   _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6245   _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6246   if test "$_lcl_second_prefix_match" != 0; then
6247     if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6248       _lcl_common_prefix="$_lcl_first_prefix"
6249     else
6250       _lcl_second_prefix_match=0
6251     fi
6252   fi
6253 done
6254 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6255 _lcl_first_rel=''
6256 _lcl_tmp='xxx'
6257 while test "$_lcl_tmp" != ''; do
6258   _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6259   if test "$_lcl_first_suffix" != ''; then
6260      _lcl_first_suffix="$_lcl_tmp"
6261      _lcl_first_rel="../$_lcl_first_rel"
6262   fi
6263 done
6264 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6265 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6266   case ":$_lcl_result_tmp:" in
6267   ::) _lcl_result_tmp='.' ;;
6268   :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6269   :*:) ;;
6270 esac
6271 case "$_lcl_notation" in
6272
6273     *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6274                                   s,^[\\/],\\\\\\\\,'` ;;
6275
6276  *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6277 esac
6278   eval $_lcl_result_var='$_lcl_result_tmp'
6279 done
6280 case ":$bin2data_dir:" in
6281   ::) bin2data_dir='.' ;;
6282   :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6283   :*:) ;;
6284 esac
6285 case $sdccconf_h_dir_separator in
6286
6287     *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6288                                   s,^[\\/],\\\\\\\\,'` ;;
6289
6290  *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6291 esac
6292 cat >>confdefs.h <<_ACEOF
6293 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6294 _ACEOF
6295
6296
6297 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6298   _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6299   _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6300   _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6301   _lcl_receval="$_lcl_from"
6302 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6303      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6304      _lcl_receval_old=''
6305      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6306        _lcl_receval_old="$_lcl_receval"
6307        eval _lcl_receval="\"$_lcl_receval\""
6308      done
6309      echo "$_lcl_receval")`
6310   _lcl_receval="$_lcl_to"
6311 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6312      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6313      _lcl_receval_old=''
6314      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6315        _lcl_receval_old="$_lcl_receval"
6316        eval _lcl_receval="\"$_lcl_receval\""
6317      done
6318      echo "$_lcl_receval")`
6319   _lcl_notation="$_lcl_from$_lcl_to"
6320   case ":$_lcl_from:" in
6321   ::) _lcl_from='.' ;;
6322   :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6323   :*:) ;;
6324 esac
6325 case '/' in
6326
6327     *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6328                                   s,^[\\/],\\\\\\\\,'` ;;
6329
6330  *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6331 esac
6332   case ":$_lcl_to:" in
6333   ::) _lcl_to='.' ;;
6334   :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6335   :*:) ;;
6336 esac
6337 case '/' in
6338
6339     *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6340                                   s,^[\\/],\\\\\\\\,'` ;;
6341
6342  *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6343 esac
6344   _lcl_common_prefix=''
6345 _lcl_second_prefix_match=''
6346 while test "$_lcl_second_prefix_match" != 0; do
6347   _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6348   _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6349   if test "$_lcl_second_prefix_match" != 0; then
6350     if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6351       _lcl_common_prefix="$_lcl_first_prefix"
6352     else
6353       _lcl_second_prefix_match=0
6354     fi
6355   fi
6356 done
6357 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6358 _lcl_first_rel=''
6359 _lcl_tmp='xxx'
6360 while test "$_lcl_tmp" != ''; do
6361   _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6362   if test "$_lcl_first_suffix" != ''; then
6363      _lcl_first_suffix="$_lcl_tmp"
6364      _lcl_first_rel="../$_lcl_first_rel"
6365   fi
6366 done
6367 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6368 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6369   case ":$_lcl_result_tmp:" in
6370   ::) _lcl_result_tmp='.' ;;
6371   :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6372   :*:) ;;
6373 esac
6374 case "$_lcl_notation" in
6375
6376     *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6377                                   s,^[\\/],\\\\\\\\,'` ;;
6378
6379  *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6380 esac
6381   eval $_lcl_result_var='$_lcl_result_tmp'
6382 done
6383 case ":$prefix2bin_dir:" in
6384   ::) prefix2bin_dir='.' ;;
6385   :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6386   :*:) ;;
6387 esac
6388 case $sdccconf_h_dir_separator in
6389
6390     *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6391                                   s,^[\\/],\\\\\\\\,'` ;;
6392
6393  *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6394 esac
6395 cat >>confdefs.h <<_ACEOF
6396 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6397 _ACEOF
6398
6399
6400 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6401   _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6402   _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6403   _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6404   _lcl_receval="$_lcl_from"
6405 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6406      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6407      _lcl_receval_old=''
6408      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6409        _lcl_receval_old="$_lcl_receval"
6410        eval _lcl_receval="\"$_lcl_receval\""
6411      done
6412      echo "$_lcl_receval")`
6413   _lcl_receval="$_lcl_to"
6414 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6415      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6416      _lcl_receval_old=''
6417      while test "$_lcl_receval_old" != "$_lcl_receval"; do
6418        _lcl_receval_old="$_lcl_receval"
6419        eval _lcl_receval="\"$_lcl_receval\""
6420      done
6421      echo "$_lcl_receval")`
6422   _lcl_notation="$_lcl_from$_lcl_to"
6423   case ":$_lcl_from:" in
6424   ::) _lcl_from='.' ;;
6425   :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6426   :*:) ;;
6427 esac
6428 case '/' in
6429
6430     *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6431                                   s,^[\\/],\\\\\\\\,'` ;;
6432
6433  *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6434 esac
6435   case ":$_lcl_to:" in
6436   ::) _lcl_to='.' ;;
6437   :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6438   :*:) ;;
6439 esac
6440 case '/' in
6441
6442     *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6443                                   s,^[\\/],\\\\\\\\,'` ;;
6444
6445  *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6446 esac
6447   _lcl_common_prefix=''
6448 _lcl_second_prefix_match=''
6449 while test "$_lcl_second_prefix_match" != 0; do
6450   _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6451   _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6452   if test "$_lcl_second_prefix_match" != 0; then
6453     if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6454       _lcl_common_prefix="$_lcl_first_prefix"
6455     else
6456       _lcl_second_prefix_match=0
6457     fi
6458   fi
6459 done
6460 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6461 _lcl_first_rel=''
6462 _lcl_tmp='xxx'
6463 while test "$_lcl_tmp" != ''; do
6464   _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6465   if test "$_lcl_first_suffix" != ''; then
6466      _lcl_first_suffix="$_lcl_tmp"
6467      _lcl_first_rel="../$_lcl_first_rel"
6468   fi
6469 done
6470 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6471 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6472   case ":$_lcl_result_tmp:" in
6473   ::) _lcl_result_tmp='.' ;;
6474   :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6475   :*:) ;;
6476 esac
6477 case "$_lcl_notation" in
6478
6479     *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6480                                   s,^[\\/],\\\\\\\\,'` ;;
6481
6482  *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6483 esac
6484   eval $_lcl_result_var='$_lcl_result_tmp'
6485 done
6486 case ":$prefix2data_dir:" in
6487   ::) prefix2data_dir='.' ;;
6488   :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6489   :*:) ;;
6490 esac
6491 case $sdccconf_h_dir_separator in
6492
6493     *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6494                                   s,^[\\/],\\\\\\\\,'` ;;
6495
6496  *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6497 esac
6498 if test "${prefix2data_dir}" = "."; then
6499     # small optimization for Mingw32; otherwise Borut will complain ;-)
6500     cat >>confdefs.h <<_ACEOF
6501 #define PREFIX2DATA_DIR ""
6502 _ACEOF
6503
6504 else
6505     cat >>confdefs.h <<_ACEOF
6506 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6507 _ACEOF
6508
6509 fi
6510
6511 # standard libs
6512 cat >>confdefs.h <<_ACEOF
6513 #define STD_LIB "libsdcc"
6514 _ACEOF
6515
6516 cat >>confdefs.h <<_ACEOF
6517 #define STD_INT_LIB "libint"
6518 _ACEOF
6519
6520 cat >>confdefs.h <<_ACEOF
6521 #define STD_LONG_LIB "liblong"
6522 _ACEOF
6523
6524 cat >>confdefs.h <<_ACEOF
6525 #define STD_FP_LIB "libfloat"
6526 _ACEOF
6527
6528 cat >>confdefs.h <<_ACEOF
6529 #define STD_DS390_LIB "libds390"
6530 _ACEOF
6531
6532 cat >>confdefs.h <<_ACEOF
6533 #define STD_DS400_LIB "libds400"
6534 _ACEOF
6535
6536 cat >>confdefs.h <<_ACEOF
6537 #define STD_XA51_LIB "libxa51"
6538 _ACEOF
6539
6540
6541 # SDCC runtime environment variables
6542 sdcc_dir_name="SDCC_HOME"
6543 cat >>confdefs.h <<_ACEOF
6544 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6545 _ACEOF
6546
6547
6548 sdcc_include_name="SDCC_INCLUDE"
6549 cat >>confdefs.h <<_ACEOF
6550 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6551 _ACEOF
6552
6553
6554 sdcc_lib_name="SDCC_LIB"
6555 cat >>confdefs.h <<_ACEOF
6556 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6557 _ACEOF
6558
6559
6560 # Port selection helper
6561 # ===========================================================================
6562 # macro AC_DO_ENABLER()
6563 #   $1 used to access enable_$1, e.g. enable-doc
6564 #   $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6565 #   $3 help string
6566
6567
6568 # macro AC_DO_DISABLER()
6569 #   $1 used to access disable_$1, e.g. ucsim
6570 #   $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6571 #   $3 help string
6572
6573
6574 # macro AC_DO_PORT($1, $2, $3, $4)
6575 #   $1 used to access enable_$2_port, e.g. gbz80
6576 #   $2 port name in ports.all and ports.build, e.g. z80
6577 #   $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6578 #   $4 help string
6579
6580
6581 # Now handle the port selection
6582 # ===========================================================================
6583 rm -f ports.all ports.build
6584
6585   # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6586 if test "${enable_mcs51_port+set}" = set; then
6587   enableval="$enable_mcs51_port"
6588
6589 fi;
6590
6591   if test "$enable_mcs51_port" = "no"; then
6592     OPT_DISABLE_MCS51=1
6593   else
6594     enable_mcs51_port="yes"
6595     OPT_DISABLE_MCS51=0
6596   fi
6597
6598   cat >>confdefs.h <<_ACEOF
6599 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6600 _ACEOF
6601
6602
6603
6604   echo mcs51 >>ports.all
6605   if test $OPT_DISABLE_MCS51 = 0; then
6606     echo mcs51 >>ports.build
6607   fi
6608
6609
6610   # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6611 if test "${enable_gbz80_port+set}" = set; then
6612   enableval="$enable_gbz80_port"
6613
6614 fi;
6615
6616   if test "$enable_gbz80_port" = "no"; then
6617     OPT_DISABLE_GBZ80=1
6618   else
6619     enable_gbz80_port="yes"
6620     OPT_DISABLE_GBZ80=0
6621   fi
6622
6623   cat >>confdefs.h <<_ACEOF
6624 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6625 _ACEOF
6626
6627
6628
6629   echo z80 >>ports.all
6630   if test $OPT_DISABLE_GBZ80 = 0; then
6631     echo z80 >>ports.build
6632   fi
6633
6634
6635   # Check whether --enable-z80-port or --disable-z80-port was given.
6636 if test "${enable_z80_port+set}" = set; then
6637   enableval="$enable_z80_port"
6638
6639 fi;
6640
6641   if test "$enable_z80_port" = "no"; then
6642     OPT_DISABLE_Z80=1
6643   else
6644     enable_z80_port="yes"
6645     OPT_DISABLE_Z80=0
6646   fi
6647
6648   cat >>confdefs.h <<_ACEOF
6649 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6650 _ACEOF
6651
6652
6653
6654   echo z80 >>ports.all
6655   if test $OPT_DISABLE_Z80 = 0; then
6656     echo z80 >>ports.build
6657   fi
6658
6659
6660   # Check whether --enable-avr-port or --disable-avr-port was given.
6661 if test "${enable_avr_port+set}" = set; then
6662   enableval="$enable_avr_port"
6663
6664 fi;
6665
6666   if test "$enable_avr_port" = "no"; then
6667     OPT_DISABLE_AVR=1
6668   else
6669     enable_avr_port="yes"
6670     OPT_DISABLE_AVR=0
6671   fi
6672
6673   cat >>confdefs.h <<_ACEOF
6674 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
6675 _ACEOF
6676
6677
6678
6679   echo avr >>ports.all
6680   if test $OPT_DISABLE_AVR = 0; then
6681     echo avr >>ports.build
6682   fi
6683
6684
6685   # Check whether --enable-ds390-port or --disable-ds390-port was given.
6686 if test "${enable_ds390_port+set}" = set; then
6687   enableval="$enable_ds390_port"
6688
6689 fi;
6690
6691   if test "$enable_ds390_port" = "no"; then
6692     OPT_DISABLE_DS390=1
6693   else
6694     enable_ds390_port="yes"
6695     OPT_DISABLE_DS390=0
6696   fi
6697
6698   cat >>confdefs.h <<_ACEOF
6699 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
6700 _ACEOF
6701
6702
6703
6704   echo ds390 >>ports.all
6705   if test $OPT_DISABLE_DS390 = 0; then
6706     echo ds390 >>ports.build
6707   fi
6708
6709 cat >>confdefs.h <<_ACEOF
6710 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
6711 _ACEOF
6712
6713
6714   # Check whether --enable-ds400-port or --disable-ds400-port was given.
6715 if test "${enable_ds400_port+set}" = set; then
6716   enableval="$enable_ds400_port"
6717
6718 fi;
6719
6720   if test "$enable_ds400_port" = "no"; then
6721     OPT_DISABLE_DS400=1
6722   else
6723     enable_ds400_port="yes"
6724     OPT_DISABLE_DS400=0
6725   fi
6726
6727   cat >>confdefs.h <<_ACEOF
6728 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
6729 _ACEOF
6730
6731
6732
6733   echo ds400 >>ports.all
6734   if test $OPT_DISABLE_DS400 = 0; then
6735     echo ds400 >>ports.build
6736   fi
6737
6738
6739   # Check whether --enable-pic-port or --disable-pic-port was given.
6740 if test "${enable_pic_port+set}" = set; then
6741   enableval="$enable_pic_port"
6742
6743 fi;
6744
6745   if test "$enable_pic_port" = "no"; then
6746     OPT_DISABLE_PIC=1
6747   else
6748     enable_pic_port="yes"
6749     OPT_DISABLE_PIC=0
6750   fi
6751
6752   cat >>confdefs.h <<_ACEOF
6753 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
6754 _ACEOF
6755
6756
6757
6758   echo pic >>ports.all
6759   if test $OPT_DISABLE_PIC = 0; then
6760     echo pic >>ports.build
6761   fi
6762
6763
6764   # Check whether --enable-pic16-port or --disable-pic16-port was given.
6765 if test "${enable_pic16_port+set}" = set; then
6766   enableval="$enable_pic16_port"
6767
6768 fi;
6769
6770   if test "$enable_pic16_port" = "no"; then
6771     OPT_DISABLE_PIC16=1
6772   else
6773     enable_pic16_port="yes"
6774     OPT_DISABLE_PIC16=0
6775   fi
6776
6777   cat >>confdefs.h <<_ACEOF
6778 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
6779 _ACEOF
6780
6781
6782
6783   echo pic16 >>ports.all
6784   if test $OPT_DISABLE_PIC16 = 0; then
6785     echo pic16 >>ports.build
6786   fi
6787
6788
6789   # Check whether --enable-xa51-port or --disable-xa51-port was given.
6790 if test "${enable_xa51_port+set}" = set; then
6791   enableval="$enable_xa51_port"
6792
6793 fi;
6794
6795   if test "$enable_xa51_port" = "no"; then
6796     OPT_DISABLE_XA51=1
6797   else
6798     enable_xa51_port="yes"
6799     OPT_DISABLE_XA51=0
6800   fi
6801
6802   cat >>confdefs.h <<_ACEOF
6803 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
6804 _ACEOF
6805
6806
6807
6808   echo xa51 >>ports.all
6809   if test $OPT_DISABLE_XA51 = 0; then
6810     echo xa51 >>ports.build
6811   fi
6812
6813
6814   # Check whether --enable-hc08-port or --disable-hc08-port was given.
6815 if test "${enable_hc08_port+set}" = set; then
6816   enableval="$enable_hc08_port"
6817
6818 fi;
6819
6820   if test "$enable_hc08_port" = "no"; then
6821     OPT_DISABLE_HC08=1
6822   else
6823     enable_hc08_port="yes"
6824     OPT_DISABLE_HC08=0
6825   fi
6826
6827   cat >>confdefs.h <<_ACEOF
6828 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
6829 _ACEOF
6830
6831
6832
6833   echo hc08 >>ports.all
6834   if test $OPT_DISABLE_HC08 = 0; then
6835     echo hc08 >>ports.build
6836   fi
6837
6838
6839
6840   # Check whether --enable-ucsim or --disable-ucsim was given.
6841 if test "${enable_ucsim+set}" = set; then
6842   enableval="$enable_ucsim"
6843
6844 fi;
6845
6846       arg1=`echo ucsim | sed s/-/_/`
6847
6848   if test "`eval echo \\$enable_$arg1`" = "no"; then
6849     OPT_DISABLE_UCSIM=1
6850   else
6851     OPT_DISABLE_UCSIM=0
6852   fi
6853
6854   cat >>confdefs.h <<_ACEOF
6855 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
6856 _ACEOF
6857
6858
6859
6860
6861   # Check whether --enable-device-lib or --disable-device-lib was given.
6862 if test "${enable_device_lib+set}" = set; then
6863   enableval="$enable_device_lib"
6864
6865 fi;
6866
6867       arg1=`echo device-lib | sed s/-/_/`
6868
6869   if test "`eval echo \\$enable_$arg1`" = "no"; then
6870     OPT_DISABLE_DEVICE_LIB=1
6871   else
6872     OPT_DISABLE_DEVICE_LIB=0
6873   fi
6874
6875   cat >>confdefs.h <<_ACEOF
6876 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
6877 _ACEOF
6878
6879
6880
6881
6882   # Check whether --enable-packihx or --disable-packihx was given.
6883 if test "${enable_packihx+set}" = set; then
6884   enableval="$enable_packihx"
6885
6886 fi;
6887
6888       arg1=`echo packihx | sed s/-/_/`
6889
6890   if test "`eval echo \\$enable_$arg1`" = "no"; then
6891     OPT_DISABLE_PACKIHX=1
6892   else
6893     OPT_DISABLE_PACKIHX=0
6894   fi
6895
6896   cat >>confdefs.h <<_ACEOF
6897 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
6898 _ACEOF
6899
6900
6901
6902
6903   # Check whether --enable-sdcpp or --disable-sdcpp was given.
6904 if test "${enable_sdcpp+set}" = set; then
6905   enableval="$enable_sdcpp"
6906
6907 fi;
6908
6909       arg1=`echo sdcpp | sed s/-/_/`
6910
6911   if test "`eval echo \\$enable_$arg1`" = "no"; then
6912     OPT_DISABLE_SDCPP=1
6913   else
6914     OPT_DISABLE_SDCPP=0
6915   fi
6916
6917   cat >>confdefs.h <<_ACEOF
6918 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
6919 _ACEOF
6920
6921
6922
6923
6924   # Check whether --enable-sdcdb or --disable-sdcdb was given.
6925 if test "${enable_sdcdb+set}" = set; then
6926   enableval="$enable_sdcdb"
6927
6928 fi;
6929
6930       arg1=`echo sdcdb | sed s/-/_/`
6931
6932   if test "`eval echo \\$enable_$arg1`" = "no"; then
6933     OPT_DISABLE_SDCDB=1
6934   else
6935     OPT_DISABLE_SDCDB=0
6936   fi
6937
6938   cat >>confdefs.h <<_ACEOF
6939 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
6940 _ACEOF
6941
6942
6943
6944
6945
6946   # Check whether --enable-doc or --disable-doc was given.
6947 if test "${enable_doc+set}" = set; then
6948   enableval="$enable_doc"
6949
6950 fi;
6951
6952   if test "$enable_doc" = "yes"; then
6953     OPT_ENABLE_DOC=1
6954   else
6955     OPT_ENABLE_DOC=0
6956   fi
6957
6958   cat >>confdefs.h <<_ACEOF
6959 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
6960 _ACEOF
6961
6962
6963
6964 if test $OPT_ENABLE_DOC = 1; then
6965   # Extract the first word of "lyx", so it can be a program name with args.
6966 set dummy lyx; ac_word=$2
6967 echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6969 if test "${ac_cv_prog_LYX+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   if test -n "$LYX"; then
6973   ac_cv_prog_LYX="$LYX" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980   for ac_exec_ext in '' $ac_executable_extensions; do
6981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982     ac_cv_prog_LYX="lyx"
6983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987 done
6988
6989   test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
6990 fi
6991 fi
6992 LYX=$ac_cv_prog_LYX
6993 if test -n "$LYX"; then
6994   echo "$as_me:$LINENO: result: $LYX" >&5
6995 echo "${ECHO_T}$LYX" >&6
6996 else
6997   echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6
6999 fi
7000
7001   # Extract the first word of "latex2html", so it can be a program name with args.
7002 set dummy latex2html; ac_word=$2
7003 echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   if test -n "$LATEX2HTML"; then
7009   ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016   for ac_exec_ext in '' $ac_executable_extensions; do
7017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018     ac_cv_prog_LATEX2HTML="latex2html"
7019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023 done
7024
7025   test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7026 fi
7027 fi
7028 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7029 if test -n "$LATEX2HTML"; then
7030   echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7031 echo "${ECHO_T}$LATEX2HTML" >&6
7032 else
7033   echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6
7035 fi
7036
7037   # Extract the first word of "pdflatex", so it can be a program name with args.
7038 set dummy pdflatex; ac_word=$2
7039 echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7041 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   if test -n "$PDFLATEX"; then
7045   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050   IFS=$as_save_IFS
7051   test -z "$as_dir" && as_dir=.
7052   for ac_exec_ext in '' $ac_executable_extensions; do
7053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054     ac_cv_prog_PDFLATEX="pdflatex"
7055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056     break 2
7057   fi
7058 done
7059 done
7060
7061   test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7062 fi
7063 fi
7064 PDFLATEX=$ac_cv_prog_PDFLATEX
7065 if test -n "$PDFLATEX"; then
7066   echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7067 echo "${ECHO_T}$PDFLATEX" >&6
7068 else
7069   echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6
7071 fi
7072
7073   # Extract the first word of "pdfopt", so it can be a program name with args.
7074 set dummy pdfopt; ac_word=$2
7075 echo "$as_me:$LINENO: checking for $ac_word" >&5
7076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7077 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7078   echo $ECHO_N "(cached) $ECHO_C" >&6
7079 else
7080   if test -n "$PDFOPT"; then
7081   ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086   IFS=$as_save_IFS
7087   test -z "$as_dir" && as_dir=.
7088   for ac_exec_ext in '' $ac_executable_extensions; do
7089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090     ac_cv_prog_PDFOPT="pdfopt"
7091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092     break 2
7093   fi
7094 done
7095 done
7096
7097   test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7098 fi
7099 fi
7100 PDFOPT=$ac_cv_prog_PDFOPT
7101 if test -n "$PDFOPT"; then
7102   echo "$as_me:$LINENO: result: $PDFOPT" >&5
7103 echo "${ECHO_T}$PDFOPT" >&6
7104 else
7105   echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6
7107 fi
7108
7109   # Extract the first word of "makeindex", so it can be a program name with args.
7110 set dummy makeindex; ac_word=$2
7111 echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7113 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7114   echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116   if test -n "$MAKEINDEX"; then
7117   ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122   IFS=$as_save_IFS
7123   test -z "$as_dir" && as_dir=.
7124   for ac_exec_ext in '' $ac_executable_extensions; do
7125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126     ac_cv_prog_MAKEINDEX="makeindex"
7127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128     break 2
7129   fi
7130 done
7131 done
7132
7133   test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7134 fi
7135 fi
7136 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7137 if test -n "$MAKEINDEX"; then
7138   echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7139 echo "${ECHO_T}$MAKEINDEX" >&6
7140 else
7141   echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7143 fi
7144
7145
7146   if test "$LYX" = ":"; then
7147   { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7148 echo "$as_me: error: Cannot find required program lyx." >&2;}
7149    { (exit 1); exit 1; }; }
7150  fi
7151
7152   if test "$LATEX2HTML" = ":"; then
7153   { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7154 echo "$as_me: error: Cannot find required program latex2html." >&2;}
7155    { (exit 1); exit 1; }; }
7156  fi
7157
7158   if test "$PDFLATEX" = ":"; then
7159   { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7160 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7161    { (exit 1); exit 1; }; }
7162  fi
7163
7164   if test "$PDFOPT" = ":"; then
7165   { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7166 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7167    { (exit 1); exit 1; }; }
7168  fi
7169
7170   if test "$MAKEINDEX" = ":"; then
7171   { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7172 echo "$as_me: error: Cannot find required program makeindex." >&2;}
7173    { (exit 1); exit 1; }; }
7174  fi
7175
7176 fi
7177
7178
7179   # Check whether --enable-libgc or --disable-libgc was given.
7180 if test "${enable_libgc+set}" = set; then
7181   enableval="$enable_libgc"
7182
7183 fi;
7184
7185   if test "$enable_libgc" = "yes"; then
7186     OPT_ENABLE_LIBGC=1
7187   else
7188     OPT_ENABLE_LIBGC=0
7189   fi
7190
7191   cat >>confdefs.h <<_ACEOF
7192 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7193 _ACEOF
7194
7195
7196
7197 if test $OPT_ENABLE_LIBGC = 1; then
7198
7199 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7200 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7201 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   ac_check_lib_save_LIBS=$LIBS
7205 LIBS="-lgc  $LIBS"
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h.  */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h.  */
7212
7213 /* Override any gcc2 internal prototype to avoid an error.  */
7214 #ifdef __cplusplus
7215 extern "C"
7216 #endif
7217 /* We use char because int might match the return type of a gcc2
7218    builtin and then its argument prototype would still apply.  */
7219 char GC_malloc ();
7220 int
7221 main ()
7222 {
7223 GC_malloc ();
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest.$ac_objext conftest$ac_exeext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7230   (eval $ac_link) 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } &&
7237          { ac_try='test -z "$ac_c_werror_flag"
7238                          || test ! -s conftest.err'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; } &&
7244          { ac_try='test -s conftest$ac_exeext'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; }; then
7250   ac_cv_lib_gc_GC_malloc=yes
7251 else
7252   echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 ac_cv_lib_gc_GC_malloc=no
7256 fi
7257 rm -f conftest.err conftest.$ac_objext \
7258       conftest$ac_exeext conftest.$ac_ext
7259 LIBS=$ac_check_lib_save_LIBS
7260 fi
7261 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7262 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7263 if test $ac_cv_lib_gc_GC_malloc = yes; then
7264   cat >>confdefs.h <<_ACEOF
7265 #define HAVE_LIBGC 1
7266 _ACEOF
7267
7268   LIBS="-lgc $LIBS"
7269
7270 fi
7271
7272   if test $ac_cv_lib_gc_GC_malloc = no; then
7273     { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7274 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7275    { (exit 1); exit 1; }; }
7276   fi
7277 fi
7278
7279 #remove duplicates
7280 uniq ports.all ports
7281 mv ports ports.all
7282 uniq ports.build ports
7283 mv ports ports.build
7284
7285 # Generating output files
7286 # ===========================================================================
7287 test $OPT_DISABLE_SDCPP   = 0 &&
7288
7289 subdirs="$subdirs support/cpp2"
7290
7291 test $OPT_DISABLE_PACKIHX = 0 &&
7292
7293 subdirs="$subdirs support/packihx"
7294
7295 test $OPT_DISABLE_UCSIM   = 0 &&
7296
7297 subdirs="$subdirs sim/ucsim"
7298
7299 test $OPT_DISABLE_SDCDB   = 0 &&
7300
7301 subdirs="$subdirs debugger/mcs51"
7302
7303           ac_config_files="$ac_config_files doc/Makefile"
7304
7305
7306 test $OPT_DISABLE_AVR = 0 &&           ac_config_files="$ac_config_files src/avr/Makefile"
7307
7308
7309 if test $OPT_DISABLE_DS390 = 0; then
7310             ac_config_files="$ac_config_files src/ds390/Makefile"
7311
7312   test $OPT_DISABLE_DEVICE_LIB = 0 &&           ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7313
7314 fi
7315
7316 if test $OPT_DISABLE_DS400 = 0; then
7317             ac_config_files="$ac_config_files src/ds400/Makefile"
7318
7319   test $OPT_DISABLE_DEVICE_LIB = 0 &&           ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7320
7321 fi
7322
7323 if test $OPT_DISABLE_HC08 = 0; then
7324                       ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7325
7326   test $OPT_DISABLE_DEVICE_LIB = 0 &&           ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7327
7328 fi
7329
7330 if test $OPT_DISABLE_MCS51 = 0; then
7331                                 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7332
7333   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"
7334
7335 fi
7336
7337 if test $OPT_DISABLE_PIC = 0; then
7338             ac_config_files="$ac_config_files src/pic/Makefile"
7339
7340   test $OPT_DISABLE_DEVICE_LIB = 0 &&
7341
7342 subdirs="$subdirs device/lib/pic"
7343
7344 fi
7345 if test $OPT_DISABLE_PIC16 = 0; then
7346             ac_config_files="$ac_config_files src/pic16/Makefile"
7347
7348   test $OPT_DISABLE_DEVICE_LIB = 0 &&
7349
7350 subdirs="$subdirs device/lib/pic16"
7351
7352 fi
7353
7354 test $OPT_DISABLE_XA51 = 0 &&           ac_config_files="$ac_config_files src/xa51/Makefile"
7355
7356
7357 if test $OPT_DISABLE_Z80 = 0; then
7358                                                     ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7359
7360   test $OPT_DISABLE_DEVICE_LIB = 0 &&                     ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7361
7362 fi
7363
7364 test $OPT_DISABLE_DEVICE_LIB = 0 &&           ac_config_files="$ac_config_files device/lib/Makefile"
7365
7366
7367                                                                                           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"
7368
7369 cat >confcache <<\_ACEOF
7370 # This file is a shell script that caches the results of configure
7371 # tests run on this system so they can be shared between configure
7372 # scripts and configure runs, see configure's option --config-cache.
7373 # It is not useful on other systems.  If it contains results you don't
7374 # want to keep, you may remove or edit it.
7375 #
7376 # config.status only pays attention to the cache file if you give it
7377 # the --recheck option to rerun configure.
7378 #
7379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7381 # following values.
7382
7383 _ACEOF
7384
7385 # The following way of writing the cache mishandles newlines in values,
7386 # but we know of no workaround that is simple, portable, and efficient.
7387 # So, don't put newlines in cache variables' values.
7388 # Ultrix sh set writes to stderr and can't be redirected directly,
7389 # and sets the high bit in the cache file unless we assign to the vars.
7390 {
7391   (set) 2>&1 |
7392     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7393     *ac_space=\ *)
7394       # `set' does not quote correctly, so add quotes (double-quote
7395       # substitution turns \\\\ into \\, and sed turns \\ into \).
7396       sed -n \
7397         "s/'/'\\\\''/g;
7398           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7399       ;;
7400     *)
7401       # `set' quotes correctly as required by POSIX, so do not add quotes.
7402       sed -n \
7403         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7404       ;;
7405     esac;
7406 } |
7407   sed '
7408      t clear
7409      : clear
7410      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7411      t end
7412      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7413      : end' >>confcache
7414 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7415   if test -w $cache_file; then
7416     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7417     cat confcache >$cache_file
7418   else
7419     echo "not updating unwritable cache $cache_file"
7420   fi
7421 fi
7422 rm -f confcache
7423
7424 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7425 # Let make expand exec_prefix.
7426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7427
7428 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7429 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7430 # trailing colons and then remove the whole line if VPATH becomes empty
7431 # (actually we leave an empty line to preserve line numbers).
7432 if test "x$srcdir" = x.; then
7433   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7434 s/:*\$(srcdir):*/:/;
7435 s/:*\${srcdir}:*/:/;
7436 s/:*@srcdir@:*/:/;
7437 s/^\([^=]*=[     ]*\):*/\1/;
7438 s/:*$//;
7439 s/^[^=]*=[       ]*$//;
7440 }'
7441 fi
7442
7443 DEFS=-DHAVE_CONFIG_H
7444
7445 ac_libobjs=
7446 ac_ltlibobjs=
7447 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7448   # 1. Remove the extension, and $U if already installed.
7449   ac_i=`echo "$ac_i" |
7450          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7451   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7452   #    will be set to the directory where LIBOBJS objects are built.
7453   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7454   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7455 done
7456 LIBOBJS=$ac_libobjs
7457
7458 LTLIBOBJS=$ac_ltlibobjs
7459
7460
7461
7462 : ${CONFIG_STATUS=./config.status}
7463 ac_clean_files_save=$ac_clean_files
7464 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7465 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7466 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7467 cat >$CONFIG_STATUS <<_ACEOF
7468 #! $SHELL
7469 # Generated by $as_me.
7470 # Run this file to recreate the current configuration.
7471 # Compiler output produced by configure, useful for debugging
7472 # configure, is in config.log if it exists.
7473
7474 debug=false
7475 ac_cs_recheck=false
7476 ac_cs_silent=false
7477 SHELL=\${CONFIG_SHELL-$SHELL}
7478 _ACEOF
7479
7480 cat >>$CONFIG_STATUS <<\_ACEOF
7481 ## --------------------- ##
7482 ## M4sh Initialization.  ##
7483 ## --------------------- ##
7484
7485 # Be Bourne compatible
7486 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7487   emulate sh
7488   NULLCMD=:
7489   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7490   # is contrary to our usage.  Disable this feature.
7491   alias -g '${1+"$@"}'='"$@"'
7492 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7493   set -o posix
7494 fi
7495 DUALCASE=1; export DUALCASE # for MKS sh
7496
7497 # Support unset when possible.
7498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7499   as_unset=unset
7500 else
7501   as_unset=false
7502 fi
7503
7504
7505 # Work around bugs in pre-3.0 UWIN ksh.
7506 $as_unset ENV MAIL MAILPATH
7507 PS1='$ '
7508 PS2='> '
7509 PS4='+ '
7510
7511 # NLS nuisances.
7512 for as_var in \
7513   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7514   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7515   LC_TELEPHONE LC_TIME
7516 do
7517   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7518     eval $as_var=C; export $as_var
7519   else
7520     $as_unset $as_var
7521   fi
7522 done
7523
7524 # Required to use basename.
7525 if expr a : '\(a\)' >/dev/null 2>&1; then
7526   as_expr=expr
7527 else
7528   as_expr=false
7529 fi
7530
7531 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7532   as_basename=basename
7533 else
7534   as_basename=false
7535 fi
7536
7537
7538 # Name of the executable.
7539 as_me=`$as_basename "$0" ||
7540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7541          X"$0" : 'X\(//\)$' \| \
7542          X"$0" : 'X\(/\)$' \| \
7543          .     : '\(.\)' 2>/dev/null ||
7544 echo X/"$0" |
7545     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7546           /^X\/\(\/\/\)$/{ s//\1/; q; }
7547           /^X\/\(\/\).*/{ s//\1/; q; }
7548           s/.*/./; q'`
7549
7550
7551 # PATH needs CR, and LINENO needs CR and PATH.
7552 # Avoid depending upon Character Ranges.
7553 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7554 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7555 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7556 as_cr_digits='0123456789'
7557 as_cr_alnum=$as_cr_Letters$as_cr_digits
7558
7559 # The user is always right.
7560 if test "${PATH_SEPARATOR+set}" != set; then
7561   echo "#! /bin/sh" >conf$$.sh
7562   echo  "exit 0"   >>conf$$.sh
7563   chmod +x conf$$.sh
7564   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7565     PATH_SEPARATOR=';'
7566   else
7567     PATH_SEPARATOR=:
7568   fi
7569   rm -f conf$$.sh
7570 fi
7571
7572
7573   as_lineno_1=$LINENO
7574   as_lineno_2=$LINENO
7575   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7576   test "x$as_lineno_1" != "x$as_lineno_2" &&
7577   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7578   # Find who we are.  Look in the path if we contain no path at all
7579   # relative or not.
7580   case $0 in
7581     *[\\/]* ) as_myself=$0 ;;
7582     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7588 done
7589
7590        ;;
7591   esac
7592   # We did not find ourselves, most probably we were run as `sh COMMAND'
7593   # in which case we are not to be found in the path.
7594   if test "x$as_myself" = x; then
7595     as_myself=$0
7596   fi
7597   if test ! -f "$as_myself"; then
7598     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7599 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7600    { (exit 1); exit 1; }; }
7601   fi
7602   case $CONFIG_SHELL in
7603   '')
7604     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609   for as_base in sh bash ksh sh5; do
7610          case $as_dir in
7611          /*)
7612            if ("$as_dir/$as_base" -c '
7613   as_lineno_1=$LINENO
7614   as_lineno_2=$LINENO
7615   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7616   test "x$as_lineno_1" != "x$as_lineno_2" &&
7617   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7618              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7619              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7620              CONFIG_SHELL=$as_dir/$as_base
7621              export CONFIG_SHELL
7622              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7623            fi;;
7624          esac
7625        done
7626 done
7627 ;;
7628   esac
7629
7630   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7631   # uniformly replaced by the line number.  The first 'sed' inserts a
7632   # line-number line before each line; the second 'sed' does the real
7633   # work.  The second script uses 'N' to pair each line-number line
7634   # with the numbered line, and appends trailing '-' during
7635   # substitution so that $LINENO is not a special case at line end.
7636   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7637   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7638   sed '=' <$as_myself |
7639     sed '
7640       N
7641       s,$,-,
7642       : loop
7643       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7644       t loop
7645       s,-$,,
7646       s,^['$as_cr_digits']*\n,,
7647     ' >$as_me.lineno &&
7648   chmod +x $as_me.lineno ||
7649     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7650 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7651    { (exit 1); exit 1; }; }
7652
7653   # Don't try to exec as it changes $[0], causing all sort of problems
7654   # (the dirname of $[0] is not the place where we might find the
7655   # original and so on.  Autoconf is especially sensible to this).
7656   . ./$as_me.lineno
7657   # Exit status is that of the last command.
7658   exit
7659 }
7660
7661
7662 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7663   *c*,-n*) ECHO_N= ECHO_C='
7664 ' ECHO_T='      ' ;;
7665   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7666   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7667 esac
7668
7669 if expr a : '\(a\)' >/dev/null 2>&1; then
7670   as_expr=expr
7671 else
7672   as_expr=false
7673 fi
7674
7675 rm -f conf$$ conf$$.exe conf$$.file
7676 echo >conf$$.file
7677 if ln -s conf$$.file conf$$ 2>/dev/null; then
7678   # We could just check for DJGPP; but this test a) works b) is more generic
7679   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7680   if test -f conf$$.exe; then
7681     # Don't use ln at all; we don't have any links
7682     as_ln_s='cp -p'
7683   else
7684     as_ln_s='ln -s'
7685   fi
7686 elif ln conf$$.file conf$$ 2>/dev/null; then
7687   as_ln_s=ln
7688 else
7689   as_ln_s='cp -p'
7690 fi
7691 rm -f conf$$ conf$$.exe conf$$.file
7692
7693 if mkdir -p . 2>/dev/null; then
7694   as_mkdir_p=:
7695 else
7696   test -d ./-p && rmdir ./-p
7697   as_mkdir_p=false
7698 fi
7699
7700 as_executable_p="test -f"
7701
7702 # Sed expression to map a string onto a valid CPP name.
7703 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7704
7705 # Sed expression to map a string onto a valid variable name.
7706 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7707
7708
7709 # IFS
7710 # We need space, tab and new line, in precisely that order.
7711 as_nl='
7712 '
7713 IFS="   $as_nl"
7714
7715 # CDPATH.
7716 $as_unset CDPATH
7717
7718 exec 6>&1
7719
7720 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7721 # report actual input values of CONFIG_FILES etc. instead of their
7722 # values after options handling.  Logging --version etc. is OK.
7723 exec 5>>config.log
7724 {
7725   echo
7726   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7727 ## Running $as_me. ##
7728 _ASBOX
7729 } >&5
7730 cat >&5 <<_CSEOF
7731
7732 This file was extended by $as_me, which was
7733 generated by GNU Autoconf 2.59.  Invocation command line was
7734
7735   CONFIG_FILES    = $CONFIG_FILES
7736   CONFIG_HEADERS  = $CONFIG_HEADERS
7737   CONFIG_LINKS    = $CONFIG_LINKS
7738   CONFIG_COMMANDS = $CONFIG_COMMANDS
7739   $ $0 $@
7740
7741 _CSEOF
7742 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7743 echo >&5
7744 _ACEOF
7745
7746 # Files that config.status was made for.
7747 if test -n "$ac_config_files"; then
7748   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7749 fi
7750
7751 if test -n "$ac_config_headers"; then
7752   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7753 fi
7754
7755 if test -n "$ac_config_links"; then
7756   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7757 fi
7758
7759 if test -n "$ac_config_commands"; then
7760   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7761 fi
7762
7763 cat >>$CONFIG_STATUS <<\_ACEOF
7764
7765 ac_cs_usage="\
7766 \`$as_me' instantiates files from templates according to the
7767 current configuration.
7768
7769 Usage: $0 [OPTIONS] [FILE]...
7770
7771   -h, --help       print this help, then exit
7772   -V, --version    print version number, then exit
7773   -q, --quiet      do not print progress messages
7774   -d, --debug      don't remove temporary files
7775       --recheck    update $as_me by reconfiguring in the same conditions
7776   --file=FILE[:TEMPLATE]
7777                    instantiate the configuration file FILE
7778   --header=FILE[:TEMPLATE]
7779                    instantiate the configuration header FILE
7780
7781 Configuration files:
7782 $config_files
7783
7784 Configuration headers:
7785 $config_headers
7786
7787 Report bugs to <bug-autoconf@gnu.org>."
7788 _ACEOF
7789
7790 cat >>$CONFIG_STATUS <<_ACEOF
7791 ac_cs_version="\\
7792 config.status
7793 configured by $0, generated by GNU Autoconf 2.59,
7794   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7795
7796 Copyright (C) 2003 Free Software Foundation, Inc.
7797 This config.status script is free software; the Free Software Foundation
7798 gives unlimited permission to copy, distribute and modify it."
7799 srcdir=$srcdir
7800 INSTALL="$INSTALL"
7801 _ACEOF
7802
7803 cat >>$CONFIG_STATUS <<\_ACEOF
7804 # If no file are specified by the user, then we need to provide default
7805 # value.  By we need to know if files were specified by the user.
7806 ac_need_defaults=:
7807 while test $# != 0
7808 do
7809   case $1 in
7810   --*=*)
7811     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7812     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7813     ac_shift=:
7814     ;;
7815   -*)
7816     ac_option=$1
7817     ac_optarg=$2
7818     ac_shift=shift
7819     ;;
7820   *) # This is not an option, so the user has probably given explicit
7821      # arguments.
7822      ac_option=$1
7823      ac_need_defaults=false;;
7824   esac
7825
7826   case $ac_option in
7827   # Handling of the options.
7828 _ACEOF
7829 cat >>$CONFIG_STATUS <<\_ACEOF
7830   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7831     ac_cs_recheck=: ;;
7832   --version | --vers* | -V )
7833     echo "$ac_cs_version"; exit 0 ;;
7834   --he | --h)
7835     # Conflict between --help and --header
7836     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7837 Try \`$0 --help' for more information." >&5
7838 echo "$as_me: error: ambiguous option: $1
7839 Try \`$0 --help' for more information." >&2;}
7840    { (exit 1); exit 1; }; };;
7841   --help | --hel | -h )
7842     echo "$ac_cs_usage"; exit 0 ;;
7843   --debug | --d* | -d )
7844     debug=: ;;
7845   --file | --fil | --fi | --f )
7846     $ac_shift
7847     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7848     ac_need_defaults=false;;
7849   --header | --heade | --head | --hea )
7850     $ac_shift
7851     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7852     ac_need_defaults=false;;
7853   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7854   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7855     ac_cs_silent=: ;;
7856
7857   # This is an error.
7858   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7859 Try \`$0 --help' for more information." >&5
7860 echo "$as_me: error: unrecognized option: $1
7861 Try \`$0 --help' for more information." >&2;}
7862    { (exit 1); exit 1; }; } ;;
7863
7864   *) ac_config_targets="$ac_config_targets $1" ;;
7865
7866   esac
7867   shift
7868 done
7869
7870 ac_configure_extra_args=
7871
7872 if $ac_cs_silent; then
7873   exec 6>/dev/null
7874   ac_configure_extra_args="$ac_configure_extra_args --silent"
7875 fi
7876
7877 _ACEOF
7878 cat >>$CONFIG_STATUS <<_ACEOF
7879 if \$ac_cs_recheck; then
7880   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7881   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7882 fi
7883
7884 _ACEOF
7885
7886
7887
7888
7889
7890 cat >>$CONFIG_STATUS <<\_ACEOF
7891 for ac_config_target in $ac_config_targets
7892 do
7893   case "$ac_config_target" in
7894   # Handling of arguments.
7895   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7896   "src/avr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
7897   "src/ds390/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
7898   "device/lib/ds390/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
7899   "src/ds400/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
7900   "device/lib/ds400/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
7901   "src/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
7902   "as/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
7903   "as/link/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
7904   "device/lib/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
7905   "src/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
7906   "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7907   "as/link/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
7908   "device/lib/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
7909   "device/lib/small/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
7910   "device/lib/medium/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
7911   "device/lib/large/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
7912   "src/pic/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
7913   "src/pic16/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
7914   "src/xa51/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
7915   "src/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
7916   "as/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
7917   "as/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
7918   "as/link/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
7919   "as/link/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
7920   "device/lib/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
7921   "device/lib/gbz80/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
7922   "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7923   "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7924   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7925   "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7926   "support/librarian/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
7927   "support/makebin/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
7928   "support/regression/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
7929   "support/valdiag/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
7930   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7931   "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7932   "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7933   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7934 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7935    { (exit 1); exit 1; }; };;
7936   esac
7937 done
7938
7939 # If the user did not use the arguments to specify the items to instantiate,
7940 # then the envvar interface is used.  Set only those that are not.
7941 # We use the long form for the default assignment because of an extremely
7942 # bizarre bug on SunOS 4.1.3.
7943 if $ac_need_defaults; then
7944   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7945   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7946 fi
7947
7948 # Have a temporary directory for convenience.  Make it in the build tree
7949 # simply because there is no reason to put it here, and in addition,
7950 # creating and moving files from /tmp can sometimes cause problems.
7951 # Create a temporary directory, and hook for its removal unless debugging.
7952 $debug ||
7953 {
7954   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7955   trap '{ (exit 1); exit 1; }' 1 2 13 15
7956 }
7957
7958 # Create a (secure) tmp directory for tmp files.
7959
7960 {
7961   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7962   test -n "$tmp" && test -d "$tmp"
7963 }  ||
7964 {
7965   tmp=./confstat$$-$RANDOM
7966   (umask 077 && mkdir $tmp)
7967 } ||
7968 {
7969    echo "$me: cannot create a temporary directory in ." >&2
7970    { (exit 1); exit 1; }
7971 }
7972
7973 _ACEOF
7974
7975 cat >>$CONFIG_STATUS <<_ACEOF
7976
7977 #
7978 # CONFIG_FILES section.
7979 #
7980
7981 # No need to generate the scripts if there are no CONFIG_FILES.
7982 # This happens for instance when ./config.status config.h
7983 if test -n "\$CONFIG_FILES"; then
7984   # Protect against being on the right side of a sed subst in config.status.
7985   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7986    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7987 s,@SHELL@,$SHELL,;t t
7988 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7989 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7990 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7991 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7992 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7993 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7994 s,@exec_prefix@,$exec_prefix,;t t
7995 s,@prefix@,$prefix,;t t
7996 s,@program_transform_name@,$program_transform_name,;t t
7997 s,@bindir@,$bindir,;t t
7998 s,@sbindir@,$sbindir,;t t
7999 s,@libexecdir@,$libexecdir,;t t
8000 s,@datadir@,$datadir,;t t
8001 s,@sysconfdir@,$sysconfdir,;t t
8002 s,@sharedstatedir@,$sharedstatedir,;t t
8003 s,@localstatedir@,$localstatedir,;t t
8004 s,@libdir@,$libdir,;t t
8005 s,@includedir@,$includedir,;t t
8006 s,@oldincludedir@,$oldincludedir,;t t
8007 s,@infodir@,$infodir,;t t
8008 s,@mandir@,$mandir,;t t
8009 s,@build_alias@,$build_alias,;t t
8010 s,@host_alias@,$host_alias,;t t
8011 s,@target_alias@,$target_alias,;t t
8012 s,@DEFS@,$DEFS,;t t
8013 s,@ECHO_C@,$ECHO_C,;t t
8014 s,@ECHO_N@,$ECHO_N,;t t
8015 s,@ECHO_T@,$ECHO_T,;t t
8016 s,@LIBS@,$LIBS,;t t
8017 s,@AWK@,$AWK,;t t
8018 s,@VERSION@,$VERSION,;t t
8019 s,@VERSIONHI@,$VERSIONHI,;t t
8020 s,@VERSIONLO@,$VERSIONLO,;t t
8021 s,@VERSIONP@,$VERSIONP,;t t
8022 s,@CC@,$CC,;t t
8023 s,@CFLAGS@,$CFLAGS,;t t
8024 s,@LDFLAGS@,$LDFLAGS,;t t
8025 s,@CPPFLAGS@,$CPPFLAGS,;t t
8026 s,@ac_ct_CC@,$ac_ct_CC,;t t
8027 s,@EXEEXT@,$EXEEXT,;t t
8028 s,@OBJEXT@,$OBJEXT,;t t
8029 s,@CPP@,$CPP,;t t
8030 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8031 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8032 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8033 s,@RANLIB@,$RANLIB,;t t
8034 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8035 s,@LEX@,$LEX,;t t
8036 s,@LEXLIB@,$LEXLIB,;t t
8037 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8038 s,@YACC@,$YACC,;t t
8039 s,@AUTOCONF@,$AUTOCONF,;t t
8040 s,@STRIP@,$STRIP,;t t
8041 s,@AS@,$AS,;t t
8042 s,@CP@,$CP,;t t
8043 s,@M_OR_MM@,$M_OR_MM,;t t
8044 s,@EGREP@,$EGREP,;t t
8045 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
8046 s,@include_dir_suffix@,$include_dir_suffix,;t t
8047 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
8048 s,@docdir@,$docdir,;t t
8049 s,@OPT_DISABLE_MCS51@,$OPT_DISABLE_MCS51,;t t
8050 s,@OPT_DISABLE_GBZ80@,$OPT_DISABLE_GBZ80,;t t
8051 s,@OPT_DISABLE_Z80@,$OPT_DISABLE_Z80,;t t
8052 s,@OPT_DISABLE_AVR@,$OPT_DISABLE_AVR,;t t
8053 s,@OPT_DISABLE_DS390@,$OPT_DISABLE_DS390,;t t
8054 s,@OPT_DISABLE_DS400@,$OPT_DISABLE_DS400,;t t
8055 s,@OPT_DISABLE_PIC@,$OPT_DISABLE_PIC,;t t
8056 s,@OPT_DISABLE_PIC16@,$OPT_DISABLE_PIC16,;t t
8057 s,@OPT_DISABLE_XA51@,$OPT_DISABLE_XA51,;t t
8058 s,@OPT_DISABLE_HC08@,$OPT_DISABLE_HC08,;t t
8059 s,@OPT_DISABLE_UCSIM@,$OPT_DISABLE_UCSIM,;t t
8060 s,@OPT_DISABLE_DEVICE_LIB@,$OPT_DISABLE_DEVICE_LIB,;t t
8061 s,@OPT_DISABLE_PACKIHX@,$OPT_DISABLE_PACKIHX,;t t
8062 s,@OPT_DISABLE_SDCPP@,$OPT_DISABLE_SDCPP,;t t
8063 s,@OPT_DISABLE_SDCDB@,$OPT_DISABLE_SDCDB,;t t
8064 s,@OPT_ENABLE_DOC@,$OPT_ENABLE_DOC,;t t
8065 s,@LYX@,$LYX,;t t
8066 s,@LATEX2HTML@,$LATEX2HTML,;t t
8067 s,@PDFLATEX@,$PDFLATEX,;t t
8068 s,@PDFOPT@,$PDFOPT,;t t
8069 s,@MAKEINDEX@,$MAKEINDEX,;t t
8070 s,@OPT_ENABLE_LIBGC@,$OPT_ENABLE_LIBGC,;t t
8071 s,@subdirs@,$subdirs,;t t
8072 s,@LIBOBJS@,$LIBOBJS,;t t
8073 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8074 CEOF
8075
8076 _ACEOF
8077
8078   cat >>$CONFIG_STATUS <<\_ACEOF
8079   # Split the substitutions into bite-sized pieces for seds with
8080   # small command number limits, like on Digital OSF/1 and HP-UX.
8081   ac_max_sed_lines=48
8082   ac_sed_frag=1 # Number of current file.
8083   ac_beg=1 # First line for current file.
8084   ac_end=$ac_max_sed_lines # Line after last line for current file.
8085   ac_more_lines=:
8086   ac_sed_cmds=
8087   while $ac_more_lines; do
8088     if test $ac_beg -gt 1; then
8089       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8090     else
8091       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8092     fi
8093     if test ! -s $tmp/subs.frag; then
8094       ac_more_lines=false
8095     else
8096       # The purpose of the label and of the branching condition is to
8097       # speed up the sed processing (if there are no `@' at all, there
8098       # is no need to browse any of the substitutions).
8099       # These are the two extra sed commands mentioned above.
8100       (echo ':t
8101   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8102       if test -z "$ac_sed_cmds"; then
8103         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8104       else
8105         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8106       fi
8107       ac_sed_frag=`expr $ac_sed_frag + 1`
8108       ac_beg=$ac_end
8109       ac_end=`expr $ac_end + $ac_max_sed_lines`
8110     fi
8111   done
8112   if test -z "$ac_sed_cmds"; then
8113     ac_sed_cmds=cat
8114   fi
8115 fi # test -n "$CONFIG_FILES"
8116
8117 _ACEOF
8118 cat >>$CONFIG_STATUS <<\_ACEOF
8119 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8120   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8121   case $ac_file in
8122   - | *:- | *:-:* ) # input from stdin
8123         cat >$tmp/stdin
8124         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8125         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8126   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8127         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8128   * )   ac_file_in=$ac_file.in ;;
8129   esac
8130
8131   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8132   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8134          X"$ac_file" : 'X\(//\)[^/]' \| \
8135          X"$ac_file" : 'X\(//\)$' \| \
8136          X"$ac_file" : 'X\(/\)' \| \
8137          .     : '\(.\)' 2>/dev/null ||
8138 echo X"$ac_file" |
8139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8140           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8141           /^X\(\/\/\)$/{ s//\1/; q; }
8142           /^X\(\/\).*/{ s//\1/; q; }
8143           s/.*/./; q'`
8144   { if $as_mkdir_p; then
8145     mkdir -p "$ac_dir"
8146   else
8147     as_dir="$ac_dir"
8148     as_dirs=
8149     while test ! -d "$as_dir"; do
8150       as_dirs="$as_dir $as_dirs"
8151       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8153          X"$as_dir" : 'X\(//\)[^/]' \| \
8154          X"$as_dir" : 'X\(//\)$' \| \
8155          X"$as_dir" : 'X\(/\)' \| \
8156          .     : '\(.\)' 2>/dev/null ||
8157 echo X"$as_dir" |
8158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8160           /^X\(\/\/\)$/{ s//\1/; q; }
8161           /^X\(\/\).*/{ s//\1/; q; }
8162           s/.*/./; q'`
8163     done
8164     test ! -n "$as_dirs" || mkdir $as_dirs
8165   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8166 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8167    { (exit 1); exit 1; }; }; }
8168
8169   ac_builddir=.
8170
8171 if test "$ac_dir" != .; then
8172   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8173   # A "../" for each directory in $ac_dir_suffix.
8174   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8175 else
8176   ac_dir_suffix= ac_top_builddir=
8177 fi
8178
8179 case $srcdir in
8180   .)  # No --srcdir option.  We are building in place.
8181     ac_srcdir=.
8182     if test -z "$ac_top_builddir"; then
8183        ac_top_srcdir=.
8184     else
8185        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8186     fi ;;
8187   [\\/]* | ?:[\\/]* )  # Absolute path.
8188     ac_srcdir=$srcdir$ac_dir_suffix;
8189     ac_top_srcdir=$srcdir ;;
8190   *) # Relative path.
8191     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8192     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8193 esac
8194
8195 # Do not use `cd foo && pwd` to compute absolute paths, because
8196 # the directories may not exist.
8197 case `pwd` in
8198 .) ac_abs_builddir="$ac_dir";;
8199 *)
8200   case "$ac_dir" in
8201   .) ac_abs_builddir=`pwd`;;
8202   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8203   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8204   esac;;
8205 esac
8206 case $ac_abs_builddir in
8207 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8208 *)
8209   case ${ac_top_builddir}. in
8210   .) ac_abs_top_builddir=$ac_abs_builddir;;
8211   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8212   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8213   esac;;
8214 esac
8215 case $ac_abs_builddir in
8216 .) ac_abs_srcdir=$ac_srcdir;;
8217 *)
8218   case $ac_srcdir in
8219   .) ac_abs_srcdir=$ac_abs_builddir;;
8220   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8221   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8222   esac;;
8223 esac
8224 case $ac_abs_builddir in
8225 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8226 *)
8227   case $ac_top_srcdir in
8228   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8229   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8230   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8231   esac;;
8232 esac
8233
8234
8235   case $INSTALL in
8236   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8237   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8238   esac
8239
8240   if test x"$ac_file" != x-; then
8241     { echo "$as_me:$LINENO: creating $ac_file" >&5
8242 echo "$as_me: creating $ac_file" >&6;}
8243     rm -f "$ac_file"
8244   fi
8245   # Let's still pretend it is `configure' which instantiates (i.e., don't
8246   # use $as_me), people would be surprised to read:
8247   #    /* config.h.  Generated by config.status.  */
8248   if test x"$ac_file" = x-; then
8249     configure_input=
8250   else
8251     configure_input="$ac_file.  "
8252   fi
8253   configure_input=$configure_input"Generated from `echo $ac_file_in |
8254                                      sed 's,.*/,,'` by configure."
8255
8256   # First look for the input files in the build tree, otherwise in the
8257   # src tree.
8258   ac_file_inputs=`IFS=:
8259     for f in $ac_file_in; do
8260       case $f in
8261       -) echo $tmp/stdin ;;
8262       [\\/$]*)
8263          # Absolute (can't be DOS-style, as IFS=:)
8264          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8265 echo "$as_me: error: cannot find input file: $f" >&2;}
8266    { (exit 1); exit 1; }; }
8267          echo "$f";;
8268       *) # Relative
8269          if test -f "$f"; then
8270            # Build tree
8271            echo "$f"
8272          elif test -f "$srcdir/$f"; then
8273            # Source tree
8274            echo "$srcdir/$f"
8275          else
8276            # /dev/null tree
8277            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8278 echo "$as_me: error: cannot find input file: $f" >&2;}
8279    { (exit 1); exit 1; }; }
8280          fi;;
8281       esac
8282     done` || { (exit 1); exit 1; }
8283 _ACEOF
8284 cat >>$CONFIG_STATUS <<_ACEOF
8285   sed "$ac_vpsub
8286 $extrasub
8287 _ACEOF
8288 cat >>$CONFIG_STATUS <<\_ACEOF
8289 :t
8290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8291 s,@configure_input@,$configure_input,;t t
8292 s,@srcdir@,$ac_srcdir,;t t
8293 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8294 s,@top_srcdir@,$ac_top_srcdir,;t t
8295 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8296 s,@builddir@,$ac_builddir,;t t
8297 s,@abs_builddir@,$ac_abs_builddir,;t t
8298 s,@top_builddir@,$ac_top_builddir,;t t
8299 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8300 s,@INSTALL@,$ac_INSTALL,;t t
8301 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8302   rm -f $tmp/stdin
8303   if test x"$ac_file" != x-; then
8304     mv $tmp/out $ac_file
8305   else
8306     cat $tmp/out
8307     rm -f $tmp/out
8308   fi
8309
8310 done
8311 _ACEOF
8312 cat >>$CONFIG_STATUS <<\_ACEOF
8313
8314 #
8315 # CONFIG_HEADER section.
8316 #
8317
8318 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8319 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8320 #
8321 # ac_d sets the value in "#define NAME VALUE" lines.
8322 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8323 ac_dB='[         ].*$,\1#\2'
8324 ac_dC=' '
8325 ac_dD=',;t'
8326 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8327 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8328 ac_uB='$,\1#\2define\3'
8329 ac_uC=' '
8330 ac_uD=',;t'
8331
8332 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8333   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8334   case $ac_file in
8335   - | *:- | *:-:* ) # input from stdin
8336         cat >$tmp/stdin
8337         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8338         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8339   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8340         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8341   * )   ac_file_in=$ac_file.in ;;
8342   esac
8343
8344   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8345 echo "$as_me: creating $ac_file" >&6;}
8346
8347   # First look for the input files in the build tree, otherwise in the
8348   # src tree.
8349   ac_file_inputs=`IFS=:
8350     for f in $ac_file_in; do
8351       case $f in
8352       -) echo $tmp/stdin ;;
8353       [\\/$]*)
8354          # Absolute (can't be DOS-style, as IFS=:)
8355          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8356 echo "$as_me: error: cannot find input file: $f" >&2;}
8357    { (exit 1); exit 1; }; }
8358          # Do quote $f, to prevent DOS paths from being IFS'd.
8359          echo "$f";;
8360       *) # Relative
8361          if test -f "$f"; then
8362            # Build tree
8363            echo "$f"
8364          elif test -f "$srcdir/$f"; then
8365            # Source tree
8366            echo "$srcdir/$f"
8367          else
8368            # /dev/null tree
8369            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8370 echo "$as_me: error: cannot find input file: $f" >&2;}
8371    { (exit 1); exit 1; }; }
8372          fi;;
8373       esac
8374     done` || { (exit 1); exit 1; }
8375   # Remove the trailing spaces.
8376   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8377
8378 _ACEOF
8379
8380 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8381 # `conftest.undefs', that substitutes the proper values into
8382 # config.h.in to produce config.h.  The first handles `#define'
8383 # templates, and the second `#undef' templates.
8384 # And first: Protect against being on the right side of a sed subst in
8385 # config.status.  Protect against being in an unquoted here document
8386 # in config.status.
8387 rm -f conftest.defines conftest.undefs
8388 # Using a here document instead of a string reduces the quoting nightmare.
8389 # Putting comments in sed scripts is not portable.
8390 #
8391 # `end' is used to avoid that the second main sed command (meant for
8392 # 0-ary CPP macros) applies to n-ary macro definitions.
8393 # See the Autoconf documentation for `clear'.
8394 cat >confdef2sed.sed <<\_ACEOF
8395 s/[\\&,]/\\&/g
8396 s,[\\$`],\\&,g
8397 t clear
8398 : clear
8399 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8400 t end
8401 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8402 : end
8403 _ACEOF
8404 # If some macros were called several times there might be several times
8405 # the same #defines, which is useless.  Nevertheless, we may not want to
8406 # sort them, since we want the *last* AC-DEFINE to be honored.
8407 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8408 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8409 rm -f confdef2sed.sed
8410
8411 # This sed command replaces #undef with comments.  This is necessary, for
8412 # example, in the case of _POSIX_SOURCE, which is predefined and required
8413 # on some systems where configure will not decide to define it.
8414 cat >>conftest.undefs <<\_ACEOF
8415 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8416 _ACEOF
8417
8418 # Break up conftest.defines because some shells have a limit on the size
8419 # of here documents, and old seds have small limits too (100 cmds).
8420 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8421 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8422 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8423 echo '  :' >>$CONFIG_STATUS
8424 rm -f conftest.tail
8425 while grep . conftest.defines >/dev/null
8426 do
8427   # Write a limited-size here document to $tmp/defines.sed.
8428   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8429   # Speed up: don't consider the non `#define' lines.
8430   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8431   # Work around the forget-to-reset-the-flag bug.
8432   echo 't clr' >>$CONFIG_STATUS
8433   echo ': clr' >>$CONFIG_STATUS
8434   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8435   echo 'CEOF
8436   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8437   rm -f $tmp/in
8438   mv $tmp/out $tmp/in
8439 ' >>$CONFIG_STATUS
8440   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8441   rm -f conftest.defines
8442   mv conftest.tail conftest.defines
8443 done
8444 rm -f conftest.defines
8445 echo '  fi # grep' >>$CONFIG_STATUS
8446 echo >>$CONFIG_STATUS
8447
8448 # Break up conftest.undefs because some shells have a limit on the size
8449 # of here documents, and old seds have small limits too (100 cmds).
8450 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8451 rm -f conftest.tail
8452 while grep . conftest.undefs >/dev/null
8453 do
8454   # Write a limited-size here document to $tmp/undefs.sed.
8455   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8456   # Speed up: don't consider the non `#undef'
8457   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8458   # Work around the forget-to-reset-the-flag bug.
8459   echo 't clr' >>$CONFIG_STATUS
8460   echo ': clr' >>$CONFIG_STATUS
8461   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8462   echo 'CEOF
8463   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8464   rm -f $tmp/in
8465   mv $tmp/out $tmp/in
8466 ' >>$CONFIG_STATUS
8467   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8468   rm -f conftest.undefs
8469   mv conftest.tail conftest.undefs
8470 done
8471 rm -f conftest.undefs
8472
8473 cat >>$CONFIG_STATUS <<\_ACEOF
8474   # Let's still pretend it is `configure' which instantiates (i.e., don't
8475   # use $as_me), people would be surprised to read:
8476   #    /* config.h.  Generated by config.status.  */
8477   if test x"$ac_file" = x-; then
8478     echo "/* Generated by configure.  */" >$tmp/config.h
8479   else
8480     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8481   fi
8482   cat $tmp/in >>$tmp/config.h
8483   rm -f $tmp/in
8484   if test x"$ac_file" != x-; then
8485     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8486       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8487 echo "$as_me: $ac_file is unchanged" >&6;}
8488     else
8489       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8491          X"$ac_file" : 'X\(//\)[^/]' \| \
8492          X"$ac_file" : 'X\(//\)$' \| \
8493          X"$ac_file" : 'X\(/\)' \| \
8494          .     : '\(.\)' 2>/dev/null ||
8495 echo X"$ac_file" |
8496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8498           /^X\(\/\/\)$/{ s//\1/; q; }
8499           /^X\(\/\).*/{ s//\1/; q; }
8500           s/.*/./; q'`
8501       { if $as_mkdir_p; then
8502     mkdir -p "$ac_dir"
8503   else
8504     as_dir="$ac_dir"
8505     as_dirs=
8506     while test ! -d "$as_dir"; do
8507       as_dirs="$as_dir $as_dirs"
8508       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8510          X"$as_dir" : 'X\(//\)[^/]' \| \
8511          X"$as_dir" : 'X\(//\)$' \| \
8512          X"$as_dir" : 'X\(/\)' \| \
8513          .     : '\(.\)' 2>/dev/null ||
8514 echo X"$as_dir" |
8515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8517           /^X\(\/\/\)$/{ s//\1/; q; }
8518           /^X\(\/\).*/{ s//\1/; q; }
8519           s/.*/./; q'`
8520     done
8521     test ! -n "$as_dirs" || mkdir $as_dirs
8522   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8524    { (exit 1); exit 1; }; }; }
8525
8526       rm -f $ac_file
8527       mv $tmp/config.h $ac_file
8528     fi
8529   else
8530     cat $tmp/config.h
8531     rm -f $tmp/config.h
8532   fi
8533 done
8534 _ACEOF
8535
8536 cat >>$CONFIG_STATUS <<\_ACEOF
8537
8538 { (exit 0); exit 0; }
8539 _ACEOF
8540 chmod +x $CONFIG_STATUS
8541 ac_clean_files=$ac_clean_files_save
8542
8543
8544 # configure is writing to config.log, and then calls config.status.
8545 # config.status does its own redirection, appending to config.log.
8546 # Unfortunately, on DOS this fails, as config.log is still kept open
8547 # by configure, so config.status won't be able to write to it; its
8548 # output is simply discarded.  So we exec the FD to /dev/null,
8549 # effectively closing config.log, so it can be properly (re)opened and
8550 # appended to by config.status.  When coming back to configure, we
8551 # need to make the FD available again.
8552 if test "$no_create" != yes; then
8553   ac_cs_success=:
8554   ac_config_status_args=
8555   test "$silent" = yes &&
8556     ac_config_status_args="$ac_config_status_args --quiet"
8557   exec 5>/dev/null
8558   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8559   exec 5>>config.log
8560   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8561   # would make configure fail if this is the last instruction.
8562   $ac_cs_success || { (exit 1); exit 1; }
8563 fi
8564
8565 #
8566 # CONFIG_SUBDIRS section.
8567 #
8568 if test "$no_recursion" != yes; then
8569
8570   # Remove --cache-file and --srcdir arguments so they do not pile up.
8571   ac_sub_configure_args=
8572   ac_prev=
8573   for ac_arg in $ac_configure_args; do
8574     if test -n "$ac_prev"; then
8575       ac_prev=
8576       continue
8577     fi
8578     case $ac_arg in
8579     -cache-file | --cache-file | --cache-fil | --cache-fi \
8580     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8581       ac_prev=cache_file ;;
8582     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8583     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8584     | --c=*)
8585       ;;
8586     --config-cache | -C)
8587       ;;
8588     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8589       ac_prev=srcdir ;;
8590     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8591       ;;
8592     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8593       ac_prev=prefix ;;
8594     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8595       ;;
8596     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8597     esac
8598   done
8599
8600   # Always prepend --prefix to ensure using the same prefix
8601   # in subdir configurations.
8602   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8603
8604   ac_popdir=`pwd`
8605   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8606
8607     # Do not complain, so a configure script can configure whichever
8608     # parts of a large source tree are present.
8609     test -d $srcdir/$ac_dir || continue
8610
8611     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8612 echo "$as_me: configuring in $ac_dir" >&6;}
8613     { if $as_mkdir_p; then
8614     mkdir -p "$ac_dir"
8615   else
8616     as_dir="$ac_dir"
8617     as_dirs=
8618     while test ! -d "$as_dir"; do
8619       as_dirs="$as_dir $as_dirs"
8620       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8622          X"$as_dir" : 'X\(//\)[^/]' \| \
8623          X"$as_dir" : 'X\(//\)$' \| \
8624          X"$as_dir" : 'X\(/\)' \| \
8625          .     : '\(.\)' 2>/dev/null ||
8626 echo X"$as_dir" |
8627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8628           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8629           /^X\(\/\/\)$/{ s//\1/; q; }
8630           /^X\(\/\).*/{ s//\1/; q; }
8631           s/.*/./; q'`
8632     done
8633     test ! -n "$as_dirs" || mkdir $as_dirs
8634   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8635 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8636    { (exit 1); exit 1; }; }; }
8637
8638     ac_builddir=.
8639
8640 if test "$ac_dir" != .; then
8641   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8642   # A "../" for each directory in $ac_dir_suffix.
8643   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8644 else
8645   ac_dir_suffix= ac_top_builddir=
8646 fi
8647
8648 case $srcdir in
8649   .)  # No --srcdir option.  We are building in place.
8650     ac_srcdir=.
8651     if test -z "$ac_top_builddir"; then
8652        ac_top_srcdir=.
8653     else
8654        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8655     fi ;;
8656   [\\/]* | ?:[\\/]* )  # Absolute path.
8657     ac_srcdir=$srcdir$ac_dir_suffix;
8658     ac_top_srcdir=$srcdir ;;
8659   *) # Relative path.
8660     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8661     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8662 esac
8663
8664 # Do not use `cd foo && pwd` to compute absolute paths, because
8665 # the directories may not exist.
8666 case `pwd` in
8667 .) ac_abs_builddir="$ac_dir";;
8668 *)
8669   case "$ac_dir" in
8670   .) ac_abs_builddir=`pwd`;;
8671   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8672   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8673   esac;;
8674 esac
8675 case $ac_abs_builddir in
8676 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8677 *)
8678   case ${ac_top_builddir}. in
8679   .) ac_abs_top_builddir=$ac_abs_builddir;;
8680   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8681   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8682   esac;;
8683 esac
8684 case $ac_abs_builddir in
8685 .) ac_abs_srcdir=$ac_srcdir;;
8686 *)
8687   case $ac_srcdir in
8688   .) ac_abs_srcdir=$ac_abs_builddir;;
8689   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8690   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8691   esac;;
8692 esac
8693 case $ac_abs_builddir in
8694 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8695 *)
8696   case $ac_top_srcdir in
8697   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8698   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8699   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8700   esac;;
8701 esac
8702
8703
8704     cd $ac_dir
8705
8706     # Check for guested configure; otherwise get Cygnus style configure.
8707     if test -f $ac_srcdir/configure.gnu; then
8708       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8709     elif test -f $ac_srcdir/configure; then
8710       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8711     elif test -f $ac_srcdir/configure.in; then
8712       ac_sub_configure=$ac_configure
8713     else
8714       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8715 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8716       ac_sub_configure=
8717     fi
8718
8719     # The recursion is here.
8720     if test -n "$ac_sub_configure"; then
8721       # Make the cache file name correct relative to the subdirectory.
8722       case $cache_file in
8723       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8724       *) # Relative path.
8725         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8726       esac
8727
8728       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8729 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8730       # The eval makes quoting arguments work.
8731       eval $ac_sub_configure $ac_sub_configure_args \
8732            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8733         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8734 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8735    { (exit 1); exit 1; }; }
8736     fi
8737
8738     cd $ac_popdir
8739   done
8740 fi
8741
8742
8743 # I found no better place
8744 mkdir -p bin
8745
8746 # Prepare result message
8747 # ======================
8748
8749 # In the C-header we need \\ as dir-separator, but in the message only \
8750 dirch=${sdccconf_h_dir_separator}
8751 test ${dirch} = '\\' && dirch='\'
8752
8753 # calc friendly strings
8754
8755 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
8756 case ":$binPath:" in
8757   ::) binPath='.' ;;
8758   :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
8759   :*:) ;;
8760 esac
8761 case $dirch in
8762
8763     *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8764                                   s,^[\\/],\\\\\\\\,'` ;;
8765
8766  *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8767 esac
8768 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
8769
8770
8771 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8772 case ":$incPath1:" in
8773   ::) incPath1='.' ;;
8774   :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
8775   :*:) ;;
8776 esac
8777 case $dirch in
8778
8779     *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8780                                   s,^[\\/],\\\\\\\\,'` ;;
8781
8782  *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8783 esac
8784 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
8785
8786
8787 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8788 case ":$incPath2:" in
8789   ::) incPath2='.' ;;
8790   :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
8791   :*:) ;;
8792 esac
8793 case $dirch in
8794
8795     *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8796                                   s,^[\\/],\\\\\\\\,'` ;;
8797
8798  *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8799 esac
8800 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
8801
8802
8803 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8804 case ":$incPath3:" in
8805   ::) incPath3='.' ;;
8806   :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
8807   :*:) ;;
8808 esac
8809 case $dirch in
8810
8811     *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8812                                   s,^[\\/],\\\\\\\\,'` ;;
8813
8814  *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8815 esac
8816 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
8817
8818
8819 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8820 case ":$libPath1:" in
8821   ::) libPath1='.' ;;
8822   :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
8823   :*:) ;;
8824 esac
8825 case $dirch in
8826
8827     *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8828                                   s,^[\\/],\\\\\\\\,'` ;;
8829
8830  *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8831 esac
8832 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
8833
8834
8835 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8836 case ":$libPath2:" in
8837   ::) libPath2='.' ;;
8838   :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
8839   :*:) ;;
8840 esac
8841 case $dirch in
8842
8843     *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8844                                   s,^[\\/],\\\\\\\\,'` ;;
8845
8846  *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8847 esac
8848 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
8849
8850
8851 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8852 case ":$libPath3:" in
8853   ::) libPath3='.' ;;
8854   :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
8855   :*:) ;;
8856 esac
8857 case $dirch in
8858
8859     *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8860                                   s,^[\\/],\\\\\\\\,'` ;;
8861
8862  *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8863 esac
8864 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
8865
8866
8867 echo "$as_me:$LINENO: result:
8868 sdcc ${VERSION} is now configured for
8869
8870   Build:                ${build_alias}
8871   Host:                 ${host_alias}
8872   Source directory:     ${srcdir}
8873   C compiler:           ${CC}
8874   CFLAGS:               ${CFLAGS}
8875
8876   ENABLED Ports:
8877     avr                 ${enable_avr_port}
8878     ds390               ${enable_ds390_port}
8879     ds400               ${enable_ds400_port}
8880     gbz80               ${enable_gbz80_port}
8881     hc08                ${enable_hc08_port}
8882     pic                 ${enable_pic_port}
8883     pic16               ${enable_pic16_port}
8884     xa51                ${enable_xa51_port}
8885     z80                 ${enable_z80_port}
8886
8887   Disable packihx:      ${OPT_DISABLE_PACKIHX}
8888   Disable ucsim:        ${OPT_DISABLE_UCSIM}
8889   Disable device lib:   ${OPT_DISABLE_DEVICE_LIB}
8890   Disable sdcpp:        ${OPT_DISABLE_SDCPP}
8891   Disable sdcdb:        ${OPT_DISABLE_SDCDB}
8892   Enable documentation: ${OPT_ENABLE_DOC}
8893   Enable libgc:         ${OPT_ENABLE_LIBGC}
8894
8895   Install paths:
8896     binary files:       ${exec_prefix}
8897     include files:      ${datadir}/${include_dir_suffix}
8898     library files:      ${datadir}/${lib_dir_suffix}
8899     documentation:      ${docdir}
8900
8901     prefix:             ${prefix}
8902     datadir:            ${datadir}
8903
8904   Search paths (incomplete, see manual for all search paths):
8905     binary files:       \$SDCC_HOME${binPath}
8906     include files:      ${incPath1}
8907                         path(argv[0])${incPath2}
8908                         ${incPath3}
8909     library files:      \$SDCC_HOME${libPath1}${dirch}<model>
8910                         path(argv[0])${libPath2}${dirch}<model>
8911                         ${libPath3}${dirch}<model>
8912 " >&5
8913 echo "${ECHO_T}
8914 sdcc ${VERSION} is now configured for
8915
8916   Build:                ${build_alias}
8917   Host:                 ${host_alias}
8918   Source directory:     ${srcdir}
8919   C compiler:           ${CC}
8920   CFLAGS:               ${CFLAGS}
8921
8922   ENABLED Ports:
8923     avr                 ${enable_avr_port}
8924     ds390               ${enable_ds390_port}
8925     ds400               ${enable_ds400_port}
8926     gbz80               ${enable_gbz80_port}
8927     hc08                ${enable_hc08_port}
8928     pic                 ${enable_pic_port}
8929     pic16               ${enable_pic16_port}
8930     xa51                ${enable_xa51_port}
8931     z80                 ${enable_z80_port}
8932
8933   Disable packihx:      ${OPT_DISABLE_PACKIHX}
8934   Disable ucsim:        ${OPT_DISABLE_UCSIM}
8935   Disable device lib:   ${OPT_DISABLE_DEVICE_LIB}
8936   Disable sdcpp:        ${OPT_DISABLE_SDCPP}
8937   Disable sdcdb:        ${OPT_DISABLE_SDCDB}
8938   Enable documentation: ${OPT_ENABLE_DOC}
8939   Enable libgc:         ${OPT_ENABLE_LIBGC}
8940
8941   Install paths:
8942     binary files:       ${exec_prefix}
8943     include files:      ${datadir}/${include_dir_suffix}
8944     library files:      ${datadir}/${lib_dir_suffix}
8945     documentation:      ${docdir}
8946
8947     prefix:             ${prefix}
8948     datadir:            ${datadir}
8949
8950   Search paths (incomplete, see manual for all search paths):
8951     binary files:       \$SDCC_HOME${binPath}
8952     include files:      ${incPath1}
8953                         path(argv[0])${incPath2}
8954                         ${incPath3}
8955     library files:      \$SDCC_HOME${libPath1}${dirch}<model>
8956                         path(argv[0])${libPath2}${dirch}<model>
8957                         ${libPath3}${dirch}<model>
8958 " >&6
8959 # End of configure/configure.in