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