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