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