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