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