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