OSDN Git Service

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