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