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