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