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