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