PR c++/29138
[official-gcc.git] / intl / configure
blob1a03102e36b922aa1175181969314f9b270c4228
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 '
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; }; }
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
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="gettext.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB ACLOCAL AUTOCONF AUTOHEADER MAINT LIBINTL_DEP INCINTL LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
840 if test -n "$ac_init_help"; then
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --disable-nls do not use Native Language Support
848 --disable-rpath do not hardcode runtime library paths
849 --enable-maintainer-mode enable rules only needed by maintainers
851 Optional Packages:
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-gnu-ld assume the C compiler uses GNU ld default=no
855 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
856 --without-libiconv-prefix don't search for libiconv in includedir and libdir
857 --with-included-gettext use the GNU gettext library included here
858 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
859 --without-libintl-prefix don't search for libintl in includedir and libdir
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
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
961 cd $ac_popdir
962 done
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
972 _ACEOF
973 exit 0
975 exec 5>config.log
976 cat >&5 <<_ACEOF
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
983 $ $0 $@
985 _ACEOF
987 cat <<_ASUNAME
988 ## --------- ##
989 ## Platform. ##
990 ## --------- ##
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009 _ASUNAME
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 for as_dir in $PATH
1014 IFS=$as_save_IFS
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1017 done
1019 } >&5
1021 cat >&5 <<_ACEOF
1024 ## ----------- ##
1025 ## Core tests. ##
1026 ## ----------- ##
1028 _ACEOF
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_configure_args=
1037 ac_configure_args0=
1038 ac_configure_args1=
1039 ac_sep=
1040 ac_must_keep_next=false
1041 for ac_pass in 1 2
1043 for ac_arg
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'" ;;
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
1069 -* ) ac_must_keep_next=true ;;
1070 esac
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1074 ac_sep=" "
1076 esac
1077 done
1078 done
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1090 echo
1092 cat <<\_ASBOX
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1096 _ASBOX
1097 echo
1098 # The following way of writing the cache mishandles newlines in values,
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"
1108 sed -n \
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 esac;
1113 echo
1115 cat <<\_ASBOX
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1119 _ASBOX
1120 echo
1121 for ac_var in $ac_subst_vars
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1125 done | sort
1126 echo
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
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
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
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
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 done
1164 ac_signal=0
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 _ACEOF
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 else
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1212 . "$ac_site_file"
1214 done
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1222 case $cache_file in
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1225 esac
1227 else
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1230 >$cache_file
1233 # Check that the precious variables saved in the cache have kept the same
1234 # value.
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1243 set,)
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1247 ,set)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,);;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1261 fi;;
1262 esac
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1265 case $ac_new_val in
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1269 esac
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 esac
1275 done
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1284 ac_ext=c
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 ac_config_headers="$ac_config_headers config.h"
1311 case ../config in
1312 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1313 *) ac_macro_dir=$srcdir/../config ;;
1314 esac
1315 if test -d "$ac_macro_dir"; then :
1316 else
1317 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1318 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1319 { (exit 1); exit 1; }; }
1323 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1324 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1325 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1326 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329 cat >conftest.make <<\_ACEOF
1330 all:
1331 @echo 'ac_maketemp="$(MAKE)"'
1332 _ACEOF
1333 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1334 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1335 if test -n "$ac_maketemp"; then
1336 eval ac_cv_prog_make_${ac_make}_set=yes
1337 else
1338 eval ac_cv_prog_make_${ac_make}_set=no
1340 rm -f conftest.make
1342 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1343 echo "$as_me:$LINENO: result: yes" >&5
1344 echo "${ECHO_T}yes" >&6
1345 SET_MAKE=
1346 else
1347 echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1349 SET_MAKE="MAKE=${MAKE-make}"
1352 ac_aux_dir=
1353 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1354 if test -f $ac_dir/install-sh; then
1355 ac_aux_dir=$ac_dir
1356 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 break
1358 elif test -f $ac_dir/install.sh; then
1359 ac_aux_dir=$ac_dir
1360 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 break
1362 elif test -f $ac_dir/shtool; then
1363 ac_aux_dir=$ac_dir
1364 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 break
1367 done
1368 if test -z "$ac_aux_dir"; then
1369 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1370 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1371 { (exit 1); exit 1; }; }
1373 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1374 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1375 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377 # Find a good install program. We prefer a C program (faster),
1378 # so one script is as good as another. But avoid the broken or
1379 # incompatible versions:
1380 # SysV /etc/install, /usr/sbin/install
1381 # SunOS /usr/etc/install
1382 # IRIX /sbin/install
1383 # AIX /bin/install
1384 # AmigaOS /C/install, which installs bootblocks on floppy discs
1385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1388 # OS/2's system install, which has a completely different semantic
1389 # ./install, which can be erroneously created by make from ./install.sh.
1390 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1391 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1392 if test -z "$INSTALL"; then
1393 if test "${ac_cv_path_install+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1399 IFS=$as_save_IFS
1400 test -z "$as_dir" && as_dir=.
1401 # Account for people who put trailing slashes in PATH elements.
1402 case $as_dir/ in
1403 ./ | .// | /cC/* | \
1404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1405 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1406 /usr/ucb/* ) ;;
1408 # OSF1 and SCO ODT 3.0 have their own names for install.
1409 # Don't use installbsd from OSF since it installs stuff as root
1410 # by default.
1411 for ac_prog in ginstall scoinst install; do
1412 for ac_exec_ext in '' $ac_executable_extensions; do
1413 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1414 if test $ac_prog = install &&
1415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1416 # AIX install. It has an incompatible calling convention.
1418 elif test $ac_prog = install &&
1419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1420 # program-specific install script used by HP pwplus--don't use.
1422 else
1423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1424 break 3
1427 done
1428 done
1430 esac
1431 done
1435 if test "${ac_cv_path_install+set}" = set; then
1436 INSTALL=$ac_cv_path_install
1437 else
1438 # As a last resort, use the slow shell script. We don't cache a
1439 # path for INSTALL within a source directory, because that will
1440 # break other packages using the cache if that directory is
1441 # removed, or if the path is relative.
1442 INSTALL=$ac_install_sh
1445 echo "$as_me:$LINENO: result: $INSTALL" >&5
1446 echo "${ECHO_T}$INSTALL" >&6
1448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1449 # It thinks the first close brace ends the variable substitution.
1450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1457 MKINSTALLDIRS=
1458 if test -n "$ac_aux_dir"; then
1459 case "$ac_aux_dir" in
1460 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1461 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1462 esac
1464 if test -z "$MKINSTALLDIRS"; then
1465 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1470 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1472 # Check whether --enable-nls or --disable-nls was given.
1473 if test "${enable_nls+set}" = set; then
1474 enableval="$enable_nls"
1475 USE_NLS=$enableval
1476 else
1477 USE_NLS=yes
1479 echo "$as_me:$LINENO: result: $USE_NLS" >&5
1480 echo "${ECHO_T}$USE_NLS" >&6
1487 # Prepare PATH_SEPARATOR.
1488 # The user is always right.
1489 if test "${PATH_SEPARATOR+set}" != set; then
1490 echo "#! /bin/sh" >conf$$.sh
1491 echo "exit 0" >>conf$$.sh
1492 chmod +x conf$$.sh
1493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1494 PATH_SEPARATOR=';'
1495 else
1496 PATH_SEPARATOR=:
1498 rm -f conf$$.sh
1501 # Find out how to test for executable files. Don't use a zero-byte file,
1502 # as systems may use methods other than mode bits to determine executability.
1503 cat >conf$$.file <<_ASEOF
1504 #! /bin/sh
1505 exit 0
1506 _ASEOF
1507 chmod +x conf$$.file
1508 if test -x conf$$.file >/dev/null 2>&1; then
1509 ac_executable_p="test -x"
1510 else
1511 ac_executable_p="test -f"
1513 rm -f conf$$.file
1515 # Extract the first word of "msgfmt", so it can be a program name with args.
1516 set dummy msgfmt; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_path_MSGFMT+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 case "$MSGFMT" in
1523 [\\/]* | ?:[\\/]*)
1524 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1527 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1528 for ac_dir in $PATH; do
1529 IFS="$ac_save_IFS"
1530 test -z "$ac_dir" && ac_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1533 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
1534 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1535 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
1536 break 2
1539 done
1540 done
1541 IFS="$ac_save_IFS"
1542 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1544 esac
1546 MSGFMT="$ac_cv_path_MSGFMT"
1547 if test "$MSGFMT" != ":"; then
1548 echo "$as_me:$LINENO: result: $MSGFMT" >&5
1549 echo "${ECHO_T}$MSGFMT" >&6
1550 else
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1555 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1556 set dummy gmsgfmt; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_path_GMSGFMT+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562 case $GMSGFMT in
1563 [\\/]* | ?:[\\/]*)
1564 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1578 done
1579 done
1581 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1583 esac
1585 GMSGFMT=$ac_cv_path_GMSGFMT
1587 if test -n "$GMSGFMT"; then
1588 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1589 echo "${ECHO_T}$GMSGFMT" >&6
1590 else
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1597 # Prepare PATH_SEPARATOR.
1598 # The user is always right.
1599 if test "${PATH_SEPARATOR+set}" != set; then
1600 echo "#! /bin/sh" >conf$$.sh
1601 echo "exit 0" >>conf$$.sh
1602 chmod +x conf$$.sh
1603 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1604 PATH_SEPARATOR=';'
1605 else
1606 PATH_SEPARATOR=:
1608 rm -f conf$$.sh
1611 # Find out how to test for executable files. Don't use a zero-byte file,
1612 # as systems may use methods other than mode bits to determine executability.
1613 cat >conf$$.file <<_ASEOF
1614 #! /bin/sh
1615 exit 0
1616 _ASEOF
1617 chmod +x conf$$.file
1618 if test -x conf$$.file >/dev/null 2>&1; then
1619 ac_executable_p="test -x"
1620 else
1621 ac_executable_p="test -f"
1623 rm -f conf$$.file
1625 # Extract the first word of "xgettext", so it can be a program name with args.
1626 set dummy xgettext; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_path_XGETTEXT+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632 case "$XGETTEXT" in
1633 [\\/]* | ?:[\\/]*)
1634 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
1637 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1638 for ac_dir in $PATH; do
1639 IFS="$ac_save_IFS"
1640 test -z "$ac_dir" && ac_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1643 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1644 (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
1645 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
1646 break 2
1649 done
1650 done
1651 IFS="$ac_save_IFS"
1652 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
1654 esac
1656 XGETTEXT="$ac_cv_path_XGETTEXT"
1657 if test "$XGETTEXT" != ":"; then
1658 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1659 echo "${ECHO_T}$XGETTEXT" >&6
1660 else
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1665 rm -f messages.po
1668 # Prepare PATH_SEPARATOR.
1669 # The user is always right.
1670 if test "${PATH_SEPARATOR+set}" != set; then
1671 echo "#! /bin/sh" >conf$$.sh
1672 echo "exit 0" >>conf$$.sh
1673 chmod +x conf$$.sh
1674 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1675 PATH_SEPARATOR=';'
1676 else
1677 PATH_SEPARATOR=:
1679 rm -f conf$$.sh
1682 # Find out how to test for executable files. Don't use a zero-byte file,
1683 # as systems may use methods other than mode bits to determine executability.
1684 cat >conf$$.file <<_ASEOF
1685 #! /bin/sh
1686 exit 0
1687 _ASEOF
1688 chmod +x conf$$.file
1689 if test -x conf$$.file >/dev/null 2>&1; then
1690 ac_executable_p="test -x"
1691 else
1692 ac_executable_p="test -f"
1694 rm -f conf$$.file
1696 # Extract the first word of "msgmerge", so it can be a program name with args.
1697 set dummy msgmerge; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_path_MSGMERGE+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 case "$MSGMERGE" in
1704 [\\/]* | ?:[\\/]*)
1705 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
1708 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1709 for ac_dir in $PATH; do
1710 IFS="$ac_save_IFS"
1711 test -z "$ac_dir" && ac_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1714 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
1715 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
1716 break 2
1719 done
1720 done
1721 IFS="$ac_save_IFS"
1722 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
1724 esac
1726 MSGMERGE="$ac_cv_path_MSGMERGE"
1727 if test "$MSGMERGE" != ":"; then
1728 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
1729 echo "${ECHO_T}$MSGMERGE" >&6
1730 else
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1736 if test "$GMSGFMT" != ":"; then
1737 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
1738 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1740 else
1741 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
1742 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
1743 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
1744 GMSGFMT=":"
1748 if test "$XGETTEXT" != ":"; then
1749 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1750 (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
1752 else
1753 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
1754 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
1755 XGETTEXT=":"
1757 rm -f messages.po
1760 ac_config_commands="$ac_config_commands default-1"
1763 ac_ext=c
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1790 done
1791 done
1795 CC=$ac_cv_prog_CC
1796 if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1799 else
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$ac_cv_prog_CC"; then
1806 ac_ct_CC=$CC
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1828 done
1829 done
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 CC=$ac_ct_CC
1843 else
1844 CC="$ac_cv_prog_CC"
1847 if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1870 done
1871 done
1875 CC=$ac_cv_prog_CC
1876 if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1879 else
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1885 if test -z "$ac_cv_prog_CC"; then
1886 ac_ct_CC=$CC
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1908 done
1909 done
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1922 CC=$ac_ct_CC
1923 else
1924 CC="$ac_cv_prog_CC"
1928 if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939 ac_prog_rejected=no
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1949 continue
1951 ac_cv_prog_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1955 done
1956 done
1958 if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1961 shift
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1966 shift
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1972 CC=$ac_cv_prog_CC
1973 if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1976 else
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 for ac_prog in cl
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2007 done
2008 done
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2021 test -n "$CC" && break
2022 done
2024 if test -z "$CC"; then
2025 ac_ct_CC=$CC
2026 for ac_prog in cl
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_ac_ct_CC="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2049 done
2050 done
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2058 else
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 test -n "$ac_ct_CC" && break
2064 done
2066 CC=$ac_ct_CC
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO:" \
2080 "checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h. */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2106 main ()
2110 return 0;
2112 _ACEOF
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2117 # of exeext.
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128 # resort.
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132 ac_cv_exeext=
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2136 test -f "$ac_file" || continue
2137 case $ac_file in
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2140 conftest.$ac_ext )
2141 # This is the source file.
2143 [ab].out )
2144 # We found the default executable, but exeext='' is most
2145 # certainly right.
2146 break;;
2147 *.* )
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2152 export ac_cv_exeext
2153 break;;
2155 break;;
2156 esac
2157 done
2158 else
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166 { (exit 77); exit 77; }; }
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2173 # Check the compiler produces executables we can run. If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 cross_compiling=no
2187 else
2188 if test "$cross_compiling" = maybe; then
2189 cross_compiling=yes
2190 else
2191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 # `rm'.
2224 for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
2226 case $ac_file in
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229 export ac_cv_exeext
2230 break;;
2231 * ) break;;
2232 esac
2233 done
2234 else
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2248 ac_exeext=$EXEEXT
2249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2262 main ()
2266 return 0;
2268 _ACEOF
2269 rm -f conftest.o conftest.obj
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 case $ac_file in
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 break;;
2280 esac
2281 done
2282 else
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2298 ac_objext=$OBJEXT
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h. */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2312 main ()
2314 #ifndef __GNUC__
2315 choke me
2316 #endif
2319 return 0;
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2325 ac_status=$?
2326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_compiler_gnu=yes
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 ac_compiler_gnu=no
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2360 CFLAGS="-g"
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h. */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2374 main ()
2378 return 0;
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 ac_cv_prog_cc_g=yes
2404 else
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 ac_cv_prog_cc_g=no
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2418 CFLAGS="-g -O2"
2419 else
2420 CFLAGS="-g"
2422 else
2423 if test "$GCC" = yes; then
2424 CFLAGS="-O2"
2425 else
2426 CFLAGS=
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 ac_cv_prog_cc_stdc=no
2435 ac_save_CC=$CC
2436 cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h. */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2442 #include <stdarg.h>
2443 #include <stdio.h>
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2450 char **p;
2451 int i;
2453 return p[i];
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2457 char *s;
2458 va_list v;
2459 va_start (v,p);
2460 s = g (p, va_arg (v,int));
2461 va_end (v);
2462 return s;
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478 int argc;
2479 char **argv;
2481 main ()
2483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2485 return 0;
2487 _ACEOF
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX -qlanglvl=ansi
2491 # Ultrix and OSF/1 -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions -Aa -D_HPUX_SOURCE
2494 # SVR4 -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2521 break
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext
2528 done
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2530 CC=$ac_save_CC
2534 case "x$ac_cv_prog_cc_stdc" in
2535 x|xno)
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2542 esac
2544 # Some people use a C++ compiler to compile C. Since we use `exit',
2545 # in C++ we need to declare it. In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.$ac_ext <<_ACEOF
2549 #ifndef __cplusplus
2550 choke me
2551 #endif
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
2576 '' \
2577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2581 'void exit (int);'
2583 cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h. */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2589 $ac_declaration
2590 #include <stdlib.h>
2592 main ()
2594 exit (42);
2596 return 0;
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2626 continue
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h. */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2635 $ac_declaration
2637 main ()
2639 exit (42);
2641 return 0;
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2647 ac_status=$?
2648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 break
2667 else
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 done
2674 rm -f conftest*
2675 if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2681 else
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 # Make sure we can run config.sub.
2694 $ac_config_sub sun4 >/dev/null 2>&1 ||
2695 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2696 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2697 { (exit 1); exit 1; }; }
2699 echo "$as_me:$LINENO: checking build system type" >&5
2700 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2701 if test "${ac_cv_build+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 ac_cv_build_alias=$build_alias
2705 test -z "$ac_cv_build_alias" &&
2706 ac_cv_build_alias=`$ac_config_guess`
2707 test -z "$ac_cv_build_alias" &&
2708 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2709 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2710 { (exit 1); exit 1; }; }
2711 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2712 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2713 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2714 { (exit 1); exit 1; }; }
2717 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2718 echo "${ECHO_T}$ac_cv_build" >&6
2719 build=$ac_cv_build
2720 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2721 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2722 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2725 echo "$as_me:$LINENO: checking host system type" >&5
2726 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2727 if test "${ac_cv_host+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 ac_cv_host_alias=$host_alias
2731 test -z "$ac_cv_host_alias" &&
2732 ac_cv_host_alias=$ac_cv_build_alias
2733 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2734 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2735 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2736 { (exit 1); exit 1; }; }
2739 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2740 echo "${ECHO_T}$ac_cv_host" >&6
2741 host=$ac_cv_host
2742 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2743 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2744 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_prog_RANLIB+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 if test -n "$RANLIB"; then
2756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2769 done
2770 done
2774 RANLIB=$ac_cv_prog_RANLIB
2775 if test -n "$RANLIB"; then
2776 echo "$as_me:$LINENO: result: $RANLIB" >&5
2777 echo "${ECHO_T}$RANLIB" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6
2784 if test -z "$ac_cv_prog_RANLIB"; then
2785 ac_ct_RANLIB=$RANLIB
2786 # Extract the first word of "ranlib", so it can be a program name with args.
2787 set dummy ranlib; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$ac_ct_RANLIB"; then
2794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_RANLIB="ranlib"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2810 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2814 if test -n "$ac_ct_RANLIB"; then
2815 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2816 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2817 else
2818 echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2822 RANLIB=$ac_ct_RANLIB
2823 else
2824 RANLIB="$ac_cv_prog_RANLIB"
2828 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2829 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2830 if test "${ac_cv_search_strerror+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 ac_func_search_save_LIBS=$LIBS
2834 ac_cv_search_strerror=no
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2842 /* Override any gcc2 internal prototype to avoid an error. */
2843 #ifdef __cplusplus
2844 extern "C"
2845 #endif
2846 /* We use char because int might match the return type of a gcc2
2847 builtin and then its argument prototype would still apply. */
2848 char strerror ();
2850 main ()
2852 strerror ();
2854 return 0;
2856 _ACEOF
2857 rm -f conftest.$ac_objext conftest$ac_exeext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859 (eval $ac_link) 2>conftest.er1
2860 ac_status=$?
2861 grep -v '^ *+' conftest.er1 >conftest.err
2862 rm -f conftest.er1
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -z "$ac_c_werror_flag"
2867 || test ! -s conftest.err'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; } &&
2873 { ac_try='test -s conftest$ac_exeext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 ac_cv_search_strerror="none required"
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2885 rm -f conftest.err conftest.$ac_objext \
2886 conftest$ac_exeext conftest.$ac_ext
2887 if test "$ac_cv_search_strerror" = no; then
2888 for ac_lib in cposix; do
2889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2890 cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2897 /* Override any gcc2 internal prototype to avoid an error. */
2898 #ifdef __cplusplus
2899 extern "C"
2900 #endif
2901 /* We use char because int might match the return type of a gcc2
2902 builtin and then its argument prototype would still apply. */
2903 char strerror ();
2905 main ()
2907 strerror ();
2909 return 0;
2911 _ACEOF
2912 rm -f conftest.$ac_objext conftest$ac_exeext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2914 (eval $ac_link) 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try='test -z "$ac_c_werror_flag"
2922 || test ! -s conftest.err'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; } &&
2928 { ac_try='test -s conftest$ac_exeext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_cv_search_strerror="-l$ac_lib"
2935 break
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2941 rm -f conftest.err conftest.$ac_objext \
2942 conftest$ac_exeext conftest.$ac_ext
2943 done
2945 LIBS=$ac_func_search_save_LIBS
2947 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2948 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2949 if test "$ac_cv_search_strerror" != no; then
2950 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2963 CPP=
2965 if test -z "$CPP"; then
2966 if test "${ac_cv_prog_CPP+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 # Double quotes because CPP needs to be expanded
2970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2972 ac_preproc_ok=false
2973 for ac_c_preproc_warn_flag in '' yes
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #ifdef __STDC__
2988 # include <limits.h>
2989 #else
2990 # include <assert.h>
2991 #endif
2992 Syntax error
2993 _ACEOF
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005 else
3006 ac_cpp_err=
3008 else
3009 ac_cpp_err=yes
3011 if test -z "$ac_cpp_err"; then
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 # Broken: fails on valid input.
3018 continue
3020 rm -f conftest.err conftest.$ac_ext
3022 # OK, works on sane cases. Now check whether non-existent headers
3023 # can be detected and how.
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3031 _ACEOF
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev/null; then
3040 if test -s conftest.err; then
3041 ac_cpp_err=$ac_c_preproc_warn_flag
3042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043 else
3044 ac_cpp_err=
3046 else
3047 ac_cpp_err=yes
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3051 continue
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 # Passes both tests.
3057 ac_preproc_ok=:
3058 break
3060 rm -f conftest.err conftest.$ac_ext
3062 done
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3066 break
3069 done
3070 ac_cv_prog_CPP=$CPP
3073 CPP=$ac_cv_prog_CPP
3074 else
3075 ac_cv_prog_CPP=$CPP
3077 echo "$as_me:$LINENO: result: $CPP" >&5
3078 echo "${ECHO_T}$CPP" >&6
3079 ac_preproc_ok=false
3080 for ac_c_preproc_warn_flag in '' yes
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 # <limits.h> exists even on freestanding compilers.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h. */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3094 #ifdef __STDC__
3095 # include <limits.h>
3096 #else
3097 # include <assert.h>
3098 #endif
3099 Syntax error
3100 _ACEOF
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null; then
3109 if test -s conftest.err; then
3110 ac_cpp_err=$ac_c_preproc_warn_flag
3111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112 else
3113 ac_cpp_err=
3115 else
3116 ac_cpp_err=yes
3118 if test -z "$ac_cpp_err"; then
3120 else
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 # Broken: fails on valid input.
3125 continue
3127 rm -f conftest.err conftest.$ac_ext
3129 # OK, works on sane cases. Now check whether non-existent headers
3130 # can be detected and how.
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 #include <ac_nonexistent.h>
3138 _ACEOF
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150 else
3151 ac_cpp_err=
3153 else
3154 ac_cpp_err=yes
3156 if test -z "$ac_cpp_err"; then
3157 # Broken: success on invalid input.
3158 continue
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 # Passes both tests.
3164 ac_preproc_ok=:
3165 break
3167 rm -f conftest.err conftest.$ac_ext
3169 done
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.$ac_ext
3172 if $ac_preproc_ok; then
3174 else
3175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 echo "$as_me:$LINENO: checking for egrep" >&5
3190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3191 if test "${ac_cv_prog_egrep+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3195 then ac_cv_prog_egrep='grep -E'
3196 else ac_cv_prog_egrep='egrep'
3199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3201 EGREP=$ac_cv_prog_egrep
3204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3206 if test "${ac_cv_header_stdc+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 #include <stdlib.h>
3216 #include <stdarg.h>
3217 #include <string.h>
3218 #include <float.h>
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_header_stdc=yes
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 ac_cv_header_stdc=no
3257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3259 if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <string.h>
3269 _ACEOF
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 $EGREP "memchr" >/dev/null 2>&1; then
3273 else
3274 ac_cv_header_stdc=no
3276 rm -f conftest*
3280 if test $ac_cv_header_stdc = yes; then
3281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <stdlib.h>
3290 _ACEOF
3291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3292 $EGREP "free" >/dev/null 2>&1; then
3294 else
3295 ac_cv_header_stdc=no
3297 rm -f conftest*
3301 if test $ac_cv_header_stdc = yes; then
3302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3303 if test "$cross_compiling" = yes; then
3305 else
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <ctype.h>
3313 #if ((' ' & 0x0FF) == 0x020)
3314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3316 #else
3317 # define ISLOWER(c) \
3318 (('a' <= (c) && (c) <= 'i') \
3319 || ('j' <= (c) && (c) <= 'r') \
3320 || ('s' <= (c) && (c) <= 'z'))
3321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3322 #endif
3324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3326 main ()
3328 int i;
3329 for (i = 0; i < 256; i++)
3330 if (XOR (islower (i), ISLOWER (i))
3331 || toupper (i) != TOUPPER (i))
3332 exit(2);
3333 exit (0);
3335 _ACEOF
3336 rm -f conftest$ac_exeext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3348 else
3349 echo "$as_me: program exited with status $ac_status" >&5
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 ( exit $ac_status )
3354 ac_cv_header_stdc=no
3356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3362 if test $ac_cv_header_stdc = yes; then
3364 cat >>confdefs.h <<\_ACEOF
3365 #define STDC_HEADERS 1
3366 _ACEOF
3370 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3371 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3372 if test "${ac_cv_c_const+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3383 main ()
3385 /* FIXME: Include the comments suggested by Paul. */
3386 #ifndef __cplusplus
3387 /* Ultrix mips cc rejects this. */
3388 typedef int charset[2];
3389 const charset x;
3390 /* SunOS 4.1.1 cc rejects this. */
3391 char const *const *ccp;
3392 char **p;
3393 /* NEC SVR4.0.2 mips cc rejects this. */
3394 struct point {int x, y;};
3395 static struct point const zero = {0,0};
3396 /* AIX XL C 1.02.0.0 rejects this.
3397 It does not let you subtract one const X* pointer from another in
3398 an arm of an if-expression whose if-part is not a constant
3399 expression */
3400 const char *g = "string";
3401 ccp = &g + (g ? g-g : 0);
3402 /* HPUX 7.0 cc rejects these. */
3403 ++ccp;
3404 p = (char**) ccp;
3405 ccp = (char const *const *) p;
3406 { /* SCO 3.2v4 cc rejects this. */
3407 char *t;
3408 char const *s = 0 ? (char *) 0 : (char const *) 0;
3410 *t++ = 0;
3412 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3413 int x[] = {25, 17};
3414 const int *foo = &x[0];
3415 ++foo;
3417 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3418 typedef const int *iptr;
3419 iptr p = 0;
3420 ++p;
3422 { /* AIX XL C 1.02.0.0 rejects this saying
3423 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3424 struct s { int j; const int *ap[3]; };
3425 struct s *b; b->j = 5;
3427 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3428 const int foo = 10;
3430 #endif
3433 return 0;
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -z "$ac_c_werror_flag"
3446 || test ! -s conftest.err'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 (eval $ac_try) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 ac_cv_c_const=yes
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 ac_cv_c_const=no
3465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3468 echo "${ECHO_T}$ac_cv_c_const" >&6
3469 if test $ac_cv_c_const = no; then
3471 cat >>confdefs.h <<\_ACEOF
3472 #define const
3473 _ACEOF
3477 echo "$as_me:$LINENO: checking for inline" >&5
3478 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3479 if test "${ac_cv_c_inline+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 ac_cv_c_inline=no
3483 for ac_kw in inline __inline__ __inline; do
3484 cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h. */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #ifndef __cplusplus
3491 typedef int foo_t;
3492 static $ac_kw foo_t static_foo () {return 0; }
3493 $ac_kw foo_t foo () {return 0; }
3494 #endif
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>conftest.er1
3500 ac_status=$?
3501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try='test -z "$ac_c_werror_flag"
3507 || test ! -s conftest.err'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; } &&
3513 { ac_try='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 ac_cv_c_inline=$ac_kw; break
3520 else
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3526 done
3529 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3530 echo "${ECHO_T}$ac_cv_c_inline" >&6
3533 case $ac_cv_c_inline in
3534 inline | yes) ;;
3536 case $ac_cv_c_inline in
3537 no) ac_val=;;
3538 *) ac_val=$ac_cv_c_inline;;
3539 esac
3540 cat >>confdefs.h <<_ACEOF
3541 #ifndef __cplusplus
3542 #define inline $ac_val
3543 #endif
3544 _ACEOF
3546 esac
3548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3559 inttypes.h stdint.h unistd.h
3561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3562 echo "$as_me:$LINENO: checking for $ac_header" >&5
3563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 $ac_includes_default
3575 #include <$ac_header>
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 eval "$as_ac_Header=yes"
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 eval "$as_ac_Header=no"
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3611 cat >>confdefs.h <<_ACEOF
3612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3613 _ACEOF
3617 done
3620 echo "$as_me:$LINENO: checking for off_t" >&5
3621 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3622 if test "${ac_cv_type_off_t+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 $ac_includes_default
3633 main ()
3635 if ((off_t *) 0)
3636 return 0;
3637 if (sizeof (off_t))
3638 return 0;
3640 return 0;
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_type_off_t=yes
3666 else
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 ac_cv_type_off_t=no
3672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3674 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3675 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3676 if test $ac_cv_type_off_t = yes; then
3678 else
3680 cat >>confdefs.h <<_ACEOF
3681 #define off_t long
3682 _ACEOF
3686 echo "$as_me:$LINENO: checking for size_t" >&5
3687 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3688 if test "${ac_cv_type_size_t+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 $ac_includes_default
3699 main ()
3701 if ((size_t *) 0)
3702 return 0;
3703 if (sizeof (size_t))
3704 return 0;
3706 return 0;
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -z "$ac_c_werror_flag"
3719 || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_type_size_t=yes
3732 else
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 ac_cv_type_size_t=no
3738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3740 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3741 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3742 if test $ac_cv_type_size_t = yes; then
3744 else
3746 cat >>confdefs.h <<_ACEOF
3747 #define size_t unsigned
3748 _ACEOF
3752 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3753 # for constant arguments. Useless!
3754 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3755 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3756 if test "${ac_cv_working_alloca_h+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <alloca.h>
3767 main ()
3769 char *p = (char *) alloca (2 * sizeof (int));
3771 return 0;
3773 _ACEOF
3774 rm -f conftest.$ac_objext conftest$ac_exeext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776 (eval $ac_link) 2>conftest.er1
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_c_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest$ac_exeext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_cv_working_alloca_h=yes
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 ac_cv_working_alloca_h=no
3803 rm -f conftest.err conftest.$ac_objext \
3804 conftest$ac_exeext conftest.$ac_ext
3806 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3807 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3808 if test $ac_cv_working_alloca_h = yes; then
3810 cat >>confdefs.h <<\_ACEOF
3811 #define HAVE_ALLOCA_H 1
3812 _ACEOF
3816 echo "$as_me:$LINENO: checking for alloca" >&5
3817 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3818 if test "${ac_cv_func_alloca_works+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #ifdef __GNUC__
3828 # define alloca __builtin_alloca
3829 #else
3830 # ifdef _MSC_VER
3831 # include <malloc.h>
3832 # define alloca _alloca
3833 # else
3834 # if HAVE_ALLOCA_H
3835 # include <alloca.h>
3836 # else
3837 # ifdef _AIX
3838 #pragma alloca
3839 # else
3840 # ifndef alloca /* predefined by HP cc +Olibcalls */
3841 char *alloca ();
3842 # endif
3843 # endif
3844 # endif
3845 # endif
3846 #endif
3849 main ()
3851 char *p = (char *) alloca (1);
3853 return 0;
3855 _ACEOF
3856 rm -f conftest.$ac_objext conftest$ac_exeext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3858 (eval $ac_link) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest$ac_exeext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_func_alloca_works=yes
3879 else
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ac_cv_func_alloca_works=no
3885 rm -f conftest.err conftest.$ac_objext \
3886 conftest$ac_exeext conftest.$ac_ext
3888 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3889 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3891 if test $ac_cv_func_alloca_works = yes; then
3893 cat >>confdefs.h <<\_ACEOF
3894 #define HAVE_ALLOCA 1
3895 _ACEOF
3897 else
3898 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3899 # that cause trouble. Some versions do not even contain alloca or
3900 # contain a buggy version. If you still want to use their alloca,
3901 # use ar to extract alloca.o from them instead of compiling alloca.c.
3903 ALLOCA=alloca.$ac_objext
3905 cat >>confdefs.h <<\_ACEOF
3906 #define C_ALLOCA 1
3907 _ACEOF
3910 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3911 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3912 if test "${ac_cv_os_cray+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #if defined(CRAY) && ! defined(CRAY2)
3922 webecray
3923 #else
3924 wenotbecray
3925 #endif
3927 _ACEOF
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929 $EGREP "webecray" >/dev/null 2>&1; then
3930 ac_cv_os_cray=yes
3931 else
3932 ac_cv_os_cray=no
3934 rm -f conftest*
3937 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3938 echo "${ECHO_T}$ac_cv_os_cray" >&6
3939 if test $ac_cv_os_cray = yes; then
3940 for ac_func in _getb67 GETB67 getb67; do
3941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3942 echo "$as_me:$LINENO: checking for $ac_func" >&5
3943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3944 if eval "test \"\${$as_ac_var+set}\" = set"; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3955 #define $ac_func innocuous_$ac_func
3957 /* System header to define __stub macros and hopefully few prototypes,
3958 which can conflict with char $ac_func (); below.
3959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3960 <limits.h> exists even on freestanding compilers. */
3962 #ifdef __STDC__
3963 # include <limits.h>
3964 #else
3965 # include <assert.h>
3966 #endif
3968 #undef $ac_func
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 #ifdef __cplusplus
3972 extern "C"
3974 #endif
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3977 char $ac_func ();
3978 /* The GNU C library defines this for functions which it implements
3979 to always fail with ENOSYS. Some functions are actually named
3980 something starting with __ and the normal name is an alias. */
3981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3982 choke me
3983 #else
3984 char (*f) () = $ac_func;
3985 #endif
3986 #ifdef __cplusplus
3988 #endif
3991 main ()
3993 return f != $ac_func;
3995 return 0;
3997 _ACEOF
3998 rm -f conftest.$ac_objext conftest$ac_exeext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4000 (eval $ac_link) 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -z "$ac_c_werror_flag"
4008 || test ! -s conftest.err'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest$ac_exeext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 eval "$as_ac_var=yes"
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 eval "$as_ac_var=no"
4027 rm -f conftest.err conftest.$ac_objext \
4028 conftest$ac_exeext conftest.$ac_ext
4030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4032 if test `eval echo '${'$as_ac_var'}'` = yes; then
4034 cat >>confdefs.h <<_ACEOF
4035 #define CRAY_STACKSEG_END $ac_func
4036 _ACEOF
4038 break
4041 done
4044 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4045 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4046 if test "${ac_cv_c_stack_direction+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_c_stack_direction=0
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 find_stack_direction ()
4061 static char *addr = 0;
4062 auto char dummy;
4063 if (addr == 0)
4065 addr = &dummy;
4066 return find_stack_direction ();
4068 else
4069 return (&dummy > addr) ? 1 : -1;
4073 main ()
4075 exit (find_stack_direction () < 0);
4077 _ACEOF
4078 rm -f conftest$ac_exeext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4080 (eval $ac_link) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_c_stack_direction=1
4090 else
4091 echo "$as_me: program exited with status $ac_status" >&5
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 ( exit $ac_status )
4096 ac_cv_c_stack_direction=-1
4098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4102 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4104 cat >>confdefs.h <<_ACEOF
4105 #define STACK_DIRECTION $ac_cv_c_stack_direction
4106 _ACEOF
4113 for ac_header in stdlib.h unistd.h
4115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4117 echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4124 else
4125 # Is the header compilable?
4126 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4135 #include <$ac_header>
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_header_compiler=yes
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_header_compiler=no
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4168 echo "${ECHO_T}$ac_header_compiler" >&6
4170 # Is the header present?
4171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 #include <$ac_header>
4180 _ACEOF
4181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev/null; then
4189 if test -s conftest.err; then
4190 ac_cpp_err=$ac_c_preproc_warn_flag
4191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4192 else
4193 ac_cpp_err=
4195 else
4196 ac_cpp_err=yes
4198 if test -z "$ac_cpp_err"; then
4199 ac_header_preproc=yes
4200 else
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 ac_header_preproc=no
4206 rm -f conftest.err conftest.$ac_ext
4207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4208 echo "${ECHO_T}$ac_header_preproc" >&6
4210 # So? What about this header?
4211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4212 yes:no: )
4213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4217 ac_header_preproc=yes
4219 no:yes:* )
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4233 cat <<\_ASBOX
4234 ## ------------------------------------------ ##
4235 ## Report this to the AC_PACKAGE_NAME lists. ##
4236 ## ------------------------------------------ ##
4237 _ASBOX
4239 sed "s/^/$as_me: WARNING: /" >&2
4241 esac
4242 echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 eval "$as_ac_Header=\$ac_header_preproc"
4249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4254 cat >>confdefs.h <<_ACEOF
4255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4256 _ACEOF
4260 done
4263 for ac_func in getpagesize
4265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4266 echo "$as_me:$LINENO: checking for $ac_func" >&5
4267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4268 if eval "test \"\${$as_ac_var+set}\" = set"; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4279 #define $ac_func innocuous_$ac_func
4281 /* System header to define __stub macros and hopefully few prototypes,
4282 which can conflict with char $ac_func (); below.
4283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 <limits.h> exists even on freestanding compilers. */
4286 #ifdef __STDC__
4287 # include <limits.h>
4288 #else
4289 # include <assert.h>
4290 #endif
4292 #undef $ac_func
4294 /* Override any gcc2 internal prototype to avoid an error. */
4295 #ifdef __cplusplus
4296 extern "C"
4298 #endif
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4301 char $ac_func ();
4302 /* The GNU C library defines this for functions which it implements
4303 to always fail with ENOSYS. Some functions are actually named
4304 something starting with __ and the normal name is an alias. */
4305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4306 choke me
4307 #else
4308 char (*f) () = $ac_func;
4309 #endif
4310 #ifdef __cplusplus
4312 #endif
4315 main ()
4317 return f != $ac_func;
4319 return 0;
4321 _ACEOF
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324 (eval $ac_link) 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -z "$ac_c_werror_flag"
4332 || test ! -s conftest.err'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try='test -s conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 eval "$as_ac_var=yes"
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 eval "$as_ac_var=no"
4351 rm -f conftest.err conftest.$ac_objext \
4352 conftest$ac_exeext conftest.$ac_ext
4354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4356 if test `eval echo '${'$as_ac_var'}'` = yes; then
4357 cat >>confdefs.h <<_ACEOF
4358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4359 _ACEOF
4362 done
4364 echo "$as_me:$LINENO: checking for working mmap" >&5
4365 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4366 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 if test "$cross_compiling" = yes; then
4370 ac_cv_func_mmap_fixed_mapped=no
4371 else
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4379 /* malloc might have been renamed as rpl_malloc. */
4380 #undef malloc
4382 /* Thanks to Mike Haertel and Jim Avera for this test.
4383 Here is a matrix of mmap possibilities:
4384 mmap private not fixed
4385 mmap private fixed at somewhere currently unmapped
4386 mmap private fixed at somewhere already mapped
4387 mmap shared not fixed
4388 mmap shared fixed at somewhere currently unmapped
4389 mmap shared fixed at somewhere already mapped
4390 For private mappings, we should verify that changes cannot be read()
4391 back from the file, nor mmap's back from the file at a different
4392 address. (There have been systems where private was not correctly
4393 implemented like the infamous i386 svr4.0, and systems where the
4394 VM page cache was not coherent with the file system buffer cache
4395 like early versions of FreeBSD and possibly contemporary NetBSD.)
4396 For shared mappings, we should conversely verify that changes get
4397 propagated back to all the places they're supposed to be.
4399 Grep wants private fixed already mapped.
4400 The main things grep needs to know about mmap are:
4401 * does it exist and is it safe to write into the mmap'd area
4402 * how to use it (BSD variants) */
4404 #include <fcntl.h>
4405 #include <sys/mman.h>
4407 #if !STDC_HEADERS && !HAVE_STDLIB_H
4408 char *malloc ();
4409 #endif
4411 /* This mess was copied from the GNU getpagesize.h. */
4412 #if !HAVE_GETPAGESIZE
4413 /* Assume that all systems that can run configure have sys/param.h. */
4414 # if !HAVE_SYS_PARAM_H
4415 # define HAVE_SYS_PARAM_H 1
4416 # endif
4418 # ifdef _SC_PAGESIZE
4419 # define getpagesize() sysconf(_SC_PAGESIZE)
4420 # else /* no _SC_PAGESIZE */
4421 # if HAVE_SYS_PARAM_H
4422 # include <sys/param.h>
4423 # ifdef EXEC_PAGESIZE
4424 # define getpagesize() EXEC_PAGESIZE
4425 # else /* no EXEC_PAGESIZE */
4426 # ifdef NBPG
4427 # define getpagesize() NBPG * CLSIZE
4428 # ifndef CLSIZE
4429 # define CLSIZE 1
4430 # endif /* no CLSIZE */
4431 # else /* no NBPG */
4432 # ifdef NBPC
4433 # define getpagesize() NBPC
4434 # else /* no NBPC */
4435 # ifdef PAGESIZE
4436 # define getpagesize() PAGESIZE
4437 # endif /* PAGESIZE */
4438 # endif /* no NBPC */
4439 # endif /* no NBPG */
4440 # endif /* no EXEC_PAGESIZE */
4441 # else /* no HAVE_SYS_PARAM_H */
4442 # define getpagesize() 8192 /* punt totally */
4443 # endif /* no HAVE_SYS_PARAM_H */
4444 # endif /* no _SC_PAGESIZE */
4446 #endif /* no HAVE_GETPAGESIZE */
4449 main ()
4451 char *data, *data2, *data3;
4452 int i, pagesize;
4453 int fd;
4455 pagesize = getpagesize ();
4457 /* First, make a file with some known garbage in it. */
4458 data = (char *) malloc (pagesize);
4459 if (!data)
4460 exit (1);
4461 for (i = 0; i < pagesize; ++i)
4462 *(data + i) = rand ();
4463 umask (0);
4464 fd = creat ("conftest.mmap", 0600);
4465 if (fd < 0)
4466 exit (1);
4467 if (write (fd, data, pagesize) != pagesize)
4468 exit (1);
4469 close (fd);
4471 /* Next, try to mmap the file at a fixed address which already has
4472 something else allocated at it. If we can, also make sure that
4473 we see the same garbage. */
4474 fd = open ("conftest.mmap", O_RDWR);
4475 if (fd < 0)
4476 exit (1);
4477 data2 = (char *) malloc (2 * pagesize);
4478 if (!data2)
4479 exit (1);
4480 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4481 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4482 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4483 exit (1);
4484 for (i = 0; i < pagesize; ++i)
4485 if (*(data + i) != *(data2 + i))
4486 exit (1);
4488 /* Finally, make sure that changes to the mapped area do not
4489 percolate back to the file as seen by read(). (This is a bug on
4490 some variants of i386 svr4.0.) */
4491 for (i = 0; i < pagesize; ++i)
4492 *(data2 + i) = *(data2 + i) + 1;
4493 data3 = (char *) malloc (pagesize);
4494 if (!data3)
4495 exit (1);
4496 if (read (fd, data3, pagesize) != pagesize)
4497 exit (1);
4498 for (i = 0; i < pagesize; ++i)
4499 if (*(data + i) != *(data3 + i))
4500 exit (1);
4501 close (fd);
4502 exit (0);
4504 _ACEOF
4505 rm -f conftest$ac_exeext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507 (eval $ac_link) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_func_mmap_fixed_mapped=yes
4517 else
4518 echo "$as_me: program exited with status $ac_status" >&5
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4522 ( exit $ac_status )
4523 ac_cv_func_mmap_fixed_mapped=no
4525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4528 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4529 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4530 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4532 cat >>confdefs.h <<\_ACEOF
4533 #define HAVE_MMAP 1
4534 _ACEOF
4537 rm -f conftest.mmap
4540 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4541 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4542 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4552 #include <features.h>
4553 #ifdef __GNU_LIBRARY__
4554 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4555 Lucky GNU user
4556 #endif
4557 #endif
4559 _ACEOF
4560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4561 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4562 ac_cv_gnu_library_2_1=yes
4563 else
4564 ac_cv_gnu_library_2_1=no
4566 rm -f conftest*
4571 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4572 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4574 GLIBC21="$ac_cv_gnu_library_2_1"
4579 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
4580 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4581 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4585 if test "$cross_compiling" = yes; then
4587 # Guess based on the CPU.
4588 case "$host_cpu" in
4589 alpha* | i3456786 | m68k | s390*)
4590 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4592 gt_cv_int_divbyzero_sigfpe="guessing no";;
4593 esac
4595 else
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4603 #include <stdlib.h>
4604 #include <signal.h>
4606 static void
4607 #ifdef __cplusplus
4608 sigfpe_handler (int sig)
4609 #else
4610 sigfpe_handler (sig) int sig;
4611 #endif
4613 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4614 exit (sig != SIGFPE);
4617 int x = 1;
4618 int y = 0;
4619 int z;
4620 int nan;
4622 int main ()
4624 signal (SIGFPE, sigfpe_handler);
4625 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4626 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4627 signal (SIGTRAP, sigfpe_handler);
4628 #endif
4629 /* Linux/SPARC yields signal SIGILL. */
4630 #if defined (__sparc__) && defined (__linux__)
4631 signal (SIGILL, sigfpe_handler);
4632 #endif
4634 z = x / y;
4635 nan = y / y;
4636 exit (1);
4639 _ACEOF
4640 rm -f conftest$ac_exeext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 gt_cv_int_divbyzero_sigfpe=yes
4652 else
4653 echo "$as_me: program exited with status $ac_status" >&5
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 ( exit $ac_status )
4658 gt_cv_int_divbyzero_sigfpe=no
4660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4664 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
4665 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
4666 case "$gt_cv_int_divbyzero_sigfpe" in
4667 *yes) value=1;;
4668 *) value=0;;
4669 esac
4671 cat >>confdefs.h <<_ACEOF
4672 #define INTDIV0_RAISES_SIGFPE $value
4673 _ACEOF
4677 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4678 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4679 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <sys/types.h>
4689 #include <inttypes.h>
4691 main ()
4693 uintmax_t i = (uintmax_t) -1;
4695 return 0;
4697 _ACEOF
4698 rm -f conftest.$ac_objext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 jm_ac_cv_header_inttypes_h=yes
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 jm_ac_cv_header_inttypes_h=no
4727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4729 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4730 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4731 if test $jm_ac_cv_header_inttypes_h = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4735 _ACEOF
4740 echo "$as_me:$LINENO: checking for stdint.h" >&5
4741 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4742 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h. */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4751 #include <sys/types.h>
4752 #include <stdint.h>
4754 main ()
4756 uintmax_t i = (uintmax_t) -1;
4758 return 0;
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -z "$ac_c_werror_flag"
4771 || test ! -s conftest.err'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; } &&
4777 { ac_try='test -s conftest.$ac_objext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 jm_ac_cv_header_stdint_h=yes
4784 else
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 jm_ac_cv_header_stdint_h=no
4790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4793 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4794 if test $jm_ac_cv_header_stdint_h = yes; then
4796 cat >>confdefs.h <<_ACEOF
4797 #define HAVE_STDINT_H_WITH_UINTMAX 1
4798 _ACEOF
4803 echo "$as_me:$LINENO: checking for unsigned long long" >&5
4804 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4805 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 unsigned long long ull = 1; int i = 63;
4816 main ()
4818 unsigned long long ullmax = (unsigned long long) -1;
4819 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4821 return 0;
4823 _ACEOF
4824 rm -f conftest.$ac_objext conftest$ac_exeext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4826 (eval $ac_link) 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -z "$ac_c_werror_flag"
4834 || test ! -s conftest.err'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; } &&
4840 { ac_try='test -s conftest$ac_exeext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_cv_type_unsigned_long_long=yes
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 ac_cv_type_unsigned_long_long=no
4853 rm -f conftest.err conftest.$ac_objext \
4854 conftest$ac_exeext conftest.$ac_ext
4856 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4857 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4858 if test $ac_cv_type_unsigned_long_long = yes; then
4860 cat >>confdefs.h <<\_ACEOF
4861 #define HAVE_UNSIGNED_LONG_LONG 1
4862 _ACEOF
4869 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4871 test $ac_cv_type_unsigned_long_long = yes \
4872 && ac_type='unsigned long long' \
4873 || ac_type='unsigned long'
4875 cat >>confdefs.h <<_ACEOF
4876 #define uintmax_t $ac_type
4877 _ACEOF
4879 else
4881 cat >>confdefs.h <<\_ACEOF
4882 #define HAVE_UINTMAX_T 1
4883 _ACEOF
4888 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4889 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4890 if test "${gt_cv_header_inttypes_h+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <sys/types.h>
4901 #include <inttypes.h>
4903 main ()
4907 return 0;
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -z "$ac_c_werror_flag"
4920 || test ! -s conftest.err'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; } &&
4926 { ac_try='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 gt_cv_header_inttypes_h=yes
4933 else
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 gt_cv_header_inttypes_h=no
4939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
4943 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
4944 if test $gt_cv_header_inttypes_h = yes; then
4946 cat >>confdefs.h <<_ACEOF
4947 #define HAVE_INTTYPES_H 1
4948 _ACEOF
4954 if test $gt_cv_header_inttypes_h = yes; then
4955 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
4956 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
4957 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 #include <inttypes.h>
4968 #ifdef PRId32
4969 char *p = PRId32;
4970 #endif
4973 main ()
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 gt_cv_inttypes_pri_broken=no
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 gt_cv_inttypes_pri_broken=yes
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5013 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5015 if test "$gt_cv_inttypes_pri_broken" = yes; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define PRI_MACROS_BROKEN 1
5019 _ACEOF
5024 if test "X$prefix" = "XNONE"; then
5025 acl_final_prefix="$ac_default_prefix"
5026 else
5027 acl_final_prefix="$prefix"
5029 if test "X$exec_prefix" = "XNONE"; then
5030 acl_final_exec_prefix='${prefix}'
5031 else
5032 acl_final_exec_prefix="$exec_prefix"
5034 acl_save_prefix="$prefix"
5035 prefix="$acl_final_prefix"
5036 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5037 prefix="$acl_save_prefix"
5040 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5041 if test "${with_gnu_ld+set}" = set; then
5042 withval="$with_gnu_ld"
5043 test "$withval" = no || with_gnu_ld=yes
5044 else
5045 with_gnu_ld=no
5047 # Prepare PATH_SEPARATOR.
5048 # The user is always right.
5049 if test "${PATH_SEPARATOR+set}" != set; then
5050 echo "#! /bin/sh" >conf$$.sh
5051 echo "exit 0" >>conf$$.sh
5052 chmod +x conf$$.sh
5053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5054 PATH_SEPARATOR=';'
5055 else
5056 PATH_SEPARATOR=:
5058 rm -f conf$$.sh
5060 ac_prog=ld
5061 if test "$GCC" = yes; then
5062 # Check if gcc -print-prog-name=ld gives a path.
5063 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5064 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5065 case $host in
5066 *-*-mingw*)
5067 # gcc leaves a trailing carriage return which upsets mingw
5068 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5070 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5071 esac
5072 case $ac_prog in
5073 # Accept absolute paths.
5074 [\\/]* | [A-Za-z]:[\\/]*)
5075 re_direlt='/[^/][^/]*/\.\./'
5076 # Canonicalize the path of ld
5077 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5078 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5079 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5080 done
5081 test -z "$LD" && LD="$ac_prog"
5084 # If it fails, then pretend we aren't using GCC.
5085 ac_prog=ld
5088 # If it is relative, then search for the first ld in PATH.
5089 with_gnu_ld=unknown
5091 esac
5092 elif test "$with_gnu_ld" = yes; then
5093 echo "$as_me:$LINENO: checking for GNU ld" >&5
5094 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5095 else
5096 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5097 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5099 if test "${acl_cv_path_LD+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 if test -z "$LD"; then
5103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5104 for ac_dir in $PATH; do
5105 test -z "$ac_dir" && ac_dir=.
5106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5107 acl_cv_path_LD="$ac_dir/$ac_prog"
5108 # Check to see if the program is GNU ld. I'd rather use --version,
5109 # but apparently some GNU ld's only accept -v.
5110 # Break only if it was the GNU/non-GNU ld that we prefer.
5111 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5112 test "$with_gnu_ld" != no && break
5113 else
5114 test "$with_gnu_ld" != yes && break
5117 done
5118 IFS="$ac_save_ifs"
5119 else
5120 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5124 LD="$acl_cv_path_LD"
5125 if test -n "$LD"; then
5126 echo "$as_me:$LINENO: result: $LD" >&5
5127 echo "${ECHO_T}$LD" >&6
5128 else
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5134 { (exit 1); exit 1; }; }
5135 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5137 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5141 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5142 acl_cv_prog_gnu_ld=yes
5143 else
5144 acl_cv_prog_gnu_ld=no
5147 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5148 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5149 with_gnu_ld=$acl_cv_prog_gnu_ld
5153 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5154 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5155 if test "${acl_cv_rpath+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5159 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5160 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5161 . ./conftest.sh
5162 rm -f ./conftest.sh
5163 acl_cv_rpath=done
5166 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5167 echo "${ECHO_T}$acl_cv_rpath" >&6
5168 wl="$acl_cv_wl"
5169 libext="$acl_cv_libext"
5170 shlibext="$acl_cv_shlibext"
5171 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5172 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5173 hardcode_direct="$acl_cv_hardcode_direct"
5174 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5175 # Check whether --enable-rpath or --disable-rpath was given.
5176 if test "${enable_rpath+set}" = set; then
5177 enableval="$enable_rpath"
5179 else
5180 enable_rpath=yes
5189 use_additional=yes
5191 acl_save_prefix="$prefix"
5192 prefix="$acl_final_prefix"
5193 acl_save_exec_prefix="$exec_prefix"
5194 exec_prefix="$acl_final_exec_prefix"
5196 eval additional_includedir=\"$includedir\"
5197 eval additional_libdir=\"$libdir\"
5199 exec_prefix="$acl_save_exec_prefix"
5200 prefix="$acl_save_prefix"
5203 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5204 if test "${with_libiconv_prefix+set}" = set; then
5205 withval="$with_libiconv_prefix"
5207 if test "X$withval" = "Xno"; then
5208 use_additional=no
5209 else
5210 if test "X$withval" = "X"; then
5212 acl_save_prefix="$prefix"
5213 prefix="$acl_final_prefix"
5214 acl_save_exec_prefix="$exec_prefix"
5215 exec_prefix="$acl_final_exec_prefix"
5217 eval additional_includedir=\"$includedir\"
5218 eval additional_libdir=\"$libdir\"
5220 exec_prefix="$acl_save_exec_prefix"
5221 prefix="$acl_save_prefix"
5223 else
5224 additional_includedir="$withval/include"
5225 additional_libdir="$withval/lib"
5230 LIBICONV=
5231 LTLIBICONV=
5232 INCICONV=
5233 rpathdirs=
5234 ltrpathdirs=
5235 names_already_handled=
5236 names_next_round='iconv '
5237 while test -n "$names_next_round"; do
5238 names_this_round="$names_next_round"
5239 names_next_round=
5240 for name in $names_this_round; do
5241 already_handled=
5242 for n in $names_already_handled; do
5243 if test "$n" = "$name"; then
5244 already_handled=yes
5245 break
5247 done
5248 if test -z "$already_handled"; then
5249 names_already_handled="$names_already_handled $name"
5250 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5251 eval value=\"\$HAVE_LIB$uppername\"
5252 if test -n "$value"; then
5253 if test "$value" = yes; then
5254 eval value=\"\$LIB$uppername\"
5255 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5256 eval value=\"\$LTLIB$uppername\"
5257 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5258 else
5261 else
5262 found_dir=
5263 found_la=
5264 found_so=
5265 found_a=
5266 if test $use_additional = yes; then
5267 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5268 found_dir="$additional_libdir"
5269 found_so="$additional_libdir/lib$name.$shlibext"
5270 if test -f "$additional_libdir/lib$name.la"; then
5271 found_la="$additional_libdir/lib$name.la"
5273 else
5274 if test -f "$additional_libdir/lib$name.$libext"; then
5275 found_dir="$additional_libdir"
5276 found_a="$additional_libdir/lib$name.$libext"
5277 if test -f "$additional_libdir/lib$name.la"; then
5278 found_la="$additional_libdir/lib$name.la"
5283 if test "X$found_dir" = "X"; then
5284 for x in $LDFLAGS $LTLIBICONV; do
5286 acl_save_prefix="$prefix"
5287 prefix="$acl_final_prefix"
5288 acl_save_exec_prefix="$exec_prefix"
5289 exec_prefix="$acl_final_exec_prefix"
5290 eval x=\"$x\"
5291 exec_prefix="$acl_save_exec_prefix"
5292 prefix="$acl_save_prefix"
5294 case "$x" in
5295 -L*)
5296 dir=`echo "X$x" | sed -e 's/^X-L//'`
5297 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5298 found_dir="$dir"
5299 found_so="$dir/lib$name.$shlibext"
5300 if test -f "$dir/lib$name.la"; then
5301 found_la="$dir/lib$name.la"
5303 else
5304 if test -f "$dir/lib$name.$libext"; then
5305 found_dir="$dir"
5306 found_a="$dir/lib$name.$libext"
5307 if test -f "$dir/lib$name.la"; then
5308 found_la="$dir/lib$name.la"
5313 esac
5314 if test "X$found_dir" != "X"; then
5315 break
5317 done
5319 if test "X$found_dir" != "X"; then
5320 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5321 if test "X$found_so" != "X"; then
5322 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5323 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5324 else
5325 haveit=
5326 for x in $ltrpathdirs; do
5327 if test "X$x" = "X$found_dir"; then
5328 haveit=yes
5329 break
5331 done
5332 if test -z "$haveit"; then
5333 ltrpathdirs="$ltrpathdirs $found_dir"
5335 if test "$hardcode_direct" = yes; then
5336 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5337 else
5338 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5339 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5340 haveit=
5341 for x in $rpathdirs; do
5342 if test "X$x" = "X$found_dir"; then
5343 haveit=yes
5344 break
5346 done
5347 if test -z "$haveit"; then
5348 rpathdirs="$rpathdirs $found_dir"
5350 else
5351 haveit=
5352 for x in $LDFLAGS $LIBICONV; do
5354 acl_save_prefix="$prefix"
5355 prefix="$acl_final_prefix"
5356 acl_save_exec_prefix="$exec_prefix"
5357 exec_prefix="$acl_final_exec_prefix"
5358 eval x=\"$x\"
5359 exec_prefix="$acl_save_exec_prefix"
5360 prefix="$acl_save_prefix"
5362 if test "X$x" = "X-L$found_dir"; then
5363 haveit=yes
5364 break
5366 done
5367 if test -z "$haveit"; then
5368 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5370 if test "$hardcode_minus_L" != no; then
5371 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5372 else
5373 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5378 else
5379 if test "X$found_a" != "X"; then
5380 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5381 else
5382 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5385 additional_includedir=
5386 case "$found_dir" in
5387 */lib | */lib/)
5388 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5389 additional_includedir="$basedir/include"
5391 esac
5392 if test "X$additional_includedir" != "X"; then
5393 if test "X$additional_includedir" != "X/usr/include"; then
5394 haveit=
5395 if test "X$additional_includedir" = "X/usr/local/include"; then
5396 if test -n "$GCC"; then
5397 case $host_os in
5398 linux*) haveit=yes;;
5399 esac
5402 if test -z "$haveit"; then
5403 for x in $CPPFLAGS $INCICONV; do
5405 acl_save_prefix="$prefix"
5406 prefix="$acl_final_prefix"
5407 acl_save_exec_prefix="$exec_prefix"
5408 exec_prefix="$acl_final_exec_prefix"
5409 eval x=\"$x\"
5410 exec_prefix="$acl_save_exec_prefix"
5411 prefix="$acl_save_prefix"
5413 if test "X$x" = "X-I$additional_includedir"; then
5414 haveit=yes
5415 break
5417 done
5418 if test -z "$haveit"; then
5419 if test -d "$additional_includedir"; then
5420 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5426 if test -n "$found_la"; then
5427 save_libdir="$libdir"
5428 case "$found_la" in
5429 */* | *\\*) . "$found_la" ;;
5430 *) . "./$found_la" ;;
5431 esac
5432 libdir="$save_libdir"
5433 for dep in $dependency_libs; do
5434 case "$dep" in
5435 -L*)
5436 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5437 if test "X$additional_libdir" != "X/usr/lib"; then
5438 haveit=
5439 if test "X$additional_libdir" = "X/usr/local/lib"; then
5440 if test -n "$GCC"; then
5441 case $host_os in
5442 linux*) haveit=yes;;
5443 esac
5446 if test -z "$haveit"; then
5447 haveit=
5448 for x in $LDFLAGS $LIBICONV; do
5450 acl_save_prefix="$prefix"
5451 prefix="$acl_final_prefix"
5452 acl_save_exec_prefix="$exec_prefix"
5453 exec_prefix="$acl_final_exec_prefix"
5454 eval x=\"$x\"
5455 exec_prefix="$acl_save_exec_prefix"
5456 prefix="$acl_save_prefix"
5458 if test "X$x" = "X-L$additional_libdir"; then
5459 haveit=yes
5460 break
5462 done
5463 if test -z "$haveit"; then
5464 if test -d "$additional_libdir"; then
5465 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5468 haveit=
5469 for x in $LDFLAGS $LTLIBICONV; do
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"
5479 if test "X$x" = "X-L$additional_libdir"; then
5480 haveit=yes
5481 break
5483 done
5484 if test -z "$haveit"; then
5485 if test -d "$additional_libdir"; then
5486 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5492 -R*)
5493 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5494 if test "$enable_rpath" != no; then
5495 haveit=
5496 for x in $rpathdirs; do
5497 if test "X$x" = "X$dir"; then
5498 haveit=yes
5499 break
5501 done
5502 if test -z "$haveit"; then
5503 rpathdirs="$rpathdirs $dir"
5505 haveit=
5506 for x in $ltrpathdirs; do
5507 if test "X$x" = "X$dir"; then
5508 haveit=yes
5509 break
5511 done
5512 if test -z "$haveit"; then
5513 ltrpathdirs="$ltrpathdirs $dir"
5517 -l*)
5518 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5520 *.la)
5521 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5524 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5525 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5527 esac
5528 done
5530 else
5531 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5532 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5536 done
5537 done
5538 if test "X$rpathdirs" != "X"; then
5539 if test -n "$hardcode_libdir_separator"; then
5540 alldirs=
5541 for found_dir in $rpathdirs; do
5542 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5543 done
5544 acl_save_libdir="$libdir"
5545 libdir="$alldirs"
5546 eval flag=\"$hardcode_libdir_flag_spec\"
5547 libdir="$acl_save_libdir"
5548 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5549 else
5550 for found_dir in $rpathdirs; do
5551 acl_save_libdir="$libdir"
5552 libdir="$found_dir"
5553 eval flag=\"$hardcode_libdir_flag_spec\"
5554 libdir="$acl_save_libdir"
5555 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5556 done
5559 if test "X$ltrpathdirs" != "X"; then
5560 for found_dir in $ltrpathdirs; do
5561 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5562 done
5578 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5579 stdlib.h string.h unistd.h sys/param.h
5581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5583 echo "$as_me:$LINENO: checking for $ac_header" >&5
5584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5590 else
5591 # Is the header compilable?
5592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 $ac_includes_default
5601 #include <$ac_header>
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -z "$ac_c_werror_flag"
5613 || test ! -s conftest.err'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; } &&
5619 { ac_try='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_header_compiler=yes
5626 else
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630 ac_header_compiler=no
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5634 echo "${ECHO_T}$ac_header_compiler" >&6
5636 # Is the header present?
5637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 #include <$ac_header>
5646 _ACEOF
5647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } >/dev/null; then
5655 if test -s conftest.err; then
5656 ac_cpp_err=$ac_c_preproc_warn_flag
5657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5658 else
5659 ac_cpp_err=
5661 else
5662 ac_cpp_err=yes
5664 if test -z "$ac_cpp_err"; then
5665 ac_header_preproc=yes
5666 else
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 ac_header_preproc=no
5672 rm -f conftest.err conftest.$ac_ext
5673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5674 echo "${ECHO_T}$ac_header_preproc" >&6
5676 # So? What about this header?
5677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5678 yes:no: )
5679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5683 ac_header_preproc=yes
5685 no:yes:* )
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5699 cat <<\_ASBOX
5700 ## ------------------------------------------ ##
5701 ## Report this to the AC_PACKAGE_NAME lists. ##
5702 ## ------------------------------------------ ##
5703 _ASBOX
5705 sed "s/^/$as_me: WARNING: /" >&2
5707 esac
5708 echo "$as_me:$LINENO: checking for $ac_header" >&5
5709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713 eval "$as_ac_Header=\$ac_header_preproc"
5715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722 _ACEOF
5726 done
5750 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5751 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5752 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5753 __fsetlocking
5755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5756 echo "$as_me:$LINENO: checking for $ac_func" >&5
5757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5758 if eval "test \"\${$as_ac_var+set}\" = set"; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5769 #define $ac_func innocuous_$ac_func
5771 /* System header to define __stub macros and hopefully few prototypes,
5772 which can conflict with char $ac_func (); below.
5773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5774 <limits.h> exists even on freestanding compilers. */
5776 #ifdef __STDC__
5777 # include <limits.h>
5778 #else
5779 # include <assert.h>
5780 #endif
5782 #undef $ac_func
5784 /* Override any gcc2 internal prototype to avoid an error. */
5785 #ifdef __cplusplus
5786 extern "C"
5788 #endif
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5791 char $ac_func ();
5792 /* The GNU C library defines this for functions which it implements
5793 to always fail with ENOSYS. Some functions are actually named
5794 something starting with __ and the normal name is an alias. */
5795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5796 choke me
5797 #else
5798 char (*f) () = $ac_func;
5799 #endif
5800 #ifdef __cplusplus
5802 #endif
5805 main ()
5807 return f != $ac_func;
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext conftest$ac_exeext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814 (eval $ac_link) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest$ac_exeext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 eval "$as_ac_var=yes"
5835 else
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 eval "$as_ac_var=no"
5841 rm -f conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5846 if test `eval echo '${'$as_ac_var'}'` = yes; then
5847 cat >>confdefs.h <<_ACEOF
5848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5849 _ACEOF
5852 done
5860 am_save_CPPFLAGS="$CPPFLAGS"
5862 for element in $INCICONV; do
5863 haveit=
5864 for x in $CPPFLAGS; do
5866 acl_save_prefix="$prefix"
5867 prefix="$acl_final_prefix"
5868 acl_save_exec_prefix="$exec_prefix"
5869 exec_prefix="$acl_final_exec_prefix"
5870 eval x=\"$x\"
5871 exec_prefix="$acl_save_exec_prefix"
5872 prefix="$acl_save_prefix"
5874 if test "X$x" = "X$element"; then
5875 haveit=yes
5876 break
5878 done
5879 if test -z "$haveit"; then
5880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5882 done
5885 echo "$as_me:$LINENO: checking for iconv" >&5
5886 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5887 if test "${am_cv_func_iconv+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5891 am_cv_func_iconv="no, consider installing GNU libiconv"
5892 am_cv_lib_iconv=no
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <stdlib.h>
5900 #include <iconv.h>
5902 main ()
5904 iconv_t cd = iconv_open("","");
5905 iconv(cd,NULL,NULL,NULL,NULL);
5906 iconv_close(cd);
5908 return 0;
5910 _ACEOF
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913 (eval $ac_link) 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -z "$ac_c_werror_flag"
5921 || test ! -s conftest.err'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest$ac_exeext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 am_cv_func_iconv=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5939 rm -f conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
5941 if test "$am_cv_func_iconv" != yes; then
5942 am_save_LIBS="$LIBS"
5943 LIBS="$LIBS $LIBICONV"
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <stdlib.h>
5951 #include <iconv.h>
5953 main ()
5955 iconv_t cd = iconv_open("","");
5956 iconv(cd,NULL,NULL,NULL,NULL);
5957 iconv_close(cd);
5959 return 0;
5961 _ACEOF
5962 rm -f conftest.$ac_objext conftest$ac_exeext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5964 (eval $ac_link) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest$ac_exeext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 am_cv_lib_iconv=yes
5985 am_cv_func_iconv=yes
5986 else
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5991 rm -f conftest.err conftest.$ac_objext \
5992 conftest$ac_exeext conftest.$ac_ext
5993 LIBS="$am_save_LIBS"
5997 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5998 echo "${ECHO_T}$am_cv_func_iconv" >&6
5999 if test "$am_cv_func_iconv" = yes; then
6001 cat >>confdefs.h <<\_ACEOF
6002 #define HAVE_ICONV 1
6003 _ACEOF
6006 if test "$am_cv_lib_iconv" = yes; then
6007 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6008 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6009 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6010 echo "${ECHO_T}$LIBICONV" >&6
6011 else
6012 CPPFLAGS="$am_save_CPPFLAGS"
6013 LIBICONV=
6014 LTLIBICONV=
6019 if test "$am_cv_func_iconv" = yes; then
6020 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6021 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6022 if test "${am_cv_proto_iconv+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6033 #include <stdlib.h>
6034 #include <iconv.h>
6035 extern
6036 #ifdef __cplusplus
6038 #endif
6039 #if defined(__STDC__) || defined(__cplusplus)
6040 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6041 #else
6042 size_t iconv();
6043 #endif
6046 main ()
6050 return 0;
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 am_cv_proto_iconv_arg1=""
6076 else
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6080 am_cv_proto_iconv_arg1="const"
6082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6083 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);"
6086 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6087 echo "$as_me:$LINENO: result: ${ac_t:-
6088 }$am_cv_proto_iconv" >&5
6089 echo "${ECHO_T}${ac_t:-
6090 }$am_cv_proto_iconv" >&6
6092 cat >>confdefs.h <<_ACEOF
6093 #define ICONV_CONST $am_cv_proto_iconv_arg1
6094 _ACEOF
6099 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6100 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6101 if test "${am_cv_langinfo_codeset+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 #include <langinfo.h>
6112 main ()
6114 char* cs = nl_langinfo(CODESET);
6116 return 0;
6118 _ACEOF
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6121 (eval $ac_link) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest$ac_exeext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 am_cv_langinfo_codeset=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 am_cv_langinfo_codeset=no
6148 rm -f conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6152 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6153 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6154 if test $am_cv_langinfo_codeset = yes; then
6156 cat >>confdefs.h <<\_ACEOF
6157 #define HAVE_LANGINFO_CODESET 1
6158 _ACEOF
6162 if test $ac_cv_header_locale_h = yes; then
6164 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6165 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6166 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <locale.h>
6177 main ()
6179 return LC_MESSAGES
6181 return 0;
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -z "$ac_c_werror_flag"
6194 || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try='test -s conftest$ac_exeext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 am_cv_val_LC_MESSAGES=yes
6207 else
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 am_cv_val_LC_MESSAGES=no
6213 rm -f conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6216 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6217 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6218 if test $am_cv_val_LC_MESSAGES = yes; then
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_LC_MESSAGES 1
6222 _ACEOF
6228 for ac_prog in bison
6230 # Extract the first word of "$ac_prog", so it can be a program name with args.
6231 set dummy $ac_prog; ac_word=$2
6232 echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6234 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 if test -n "$INTLBISON"; then
6238 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247 ac_cv_prog_INTLBISON="$ac_prog"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6251 done
6252 done
6256 INTLBISON=$ac_cv_prog_INTLBISON
6257 if test -n "$INTLBISON"; then
6258 echo "$as_me:$LINENO: result: $INTLBISON" >&5
6259 echo "${ECHO_T}$INTLBISON" >&6
6260 else
6261 echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6
6265 test -n "$INTLBISON" && break
6266 done
6268 if test -z "$INTLBISON"; then
6269 ac_verc_fail=yes
6270 else
6271 echo "$as_me:$LINENO: checking version of bison" >&5
6272 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6273 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6274 case $ac_prog_version in
6275 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6276 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6277 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6278 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6279 esac
6280 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6281 echo "${ECHO_T}$ac_prog_version" >&6
6283 if test $ac_verc_fail = yes; then
6284 INTLBISON=:
6302 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6303 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6304 # Check whether --enable-nls or --disable-nls was given.
6305 if test "${enable_nls+set}" = set; then
6306 enableval="$enable_nls"
6307 USE_NLS=$enableval
6308 else
6309 USE_NLS=yes
6311 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6312 echo "${ECHO_T}$USE_NLS" >&6
6317 BUILD_INCLUDED_LIBINTL=no
6318 USE_INCLUDED_LIBINTL=no
6320 LIBINTL=
6321 LTLIBINTL=
6322 POSUB=
6324 if test "$USE_NLS" = "yes"; then
6325 gt_use_preinstalled_gnugettext=no
6327 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6328 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6330 # Check whether --with-included-gettext or --without-included-gettext was given.
6331 if test "${with_included_gettext+set}" = set; then
6332 withval="$with_included_gettext"
6333 nls_cv_force_use_gnu_gettext=$withval
6334 else
6335 nls_cv_force_use_gnu_gettext=no
6337 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6338 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6340 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6341 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6348 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6349 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6350 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353 cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h. */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 #include <libintl.h>
6360 extern int _nl_msg_cat_cntr;
6361 extern int *_nl_domain_bindings;
6363 main ()
6365 bindtextdomain ("", "");
6366 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6368 return 0;
6370 _ACEOF
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_c_werror_flag"
6381 || test ! -s conftest.err'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest$ac_exeext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 gt_cv_func_gnugettext1_libc=yes
6394 else
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 gt_cv_func_gnugettext1_libc=no
6400 rm -f conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext conftest.$ac_ext
6403 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6404 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6406 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6410 use_additional=yes
6412 acl_save_prefix="$prefix"
6413 prefix="$acl_final_prefix"
6414 acl_save_exec_prefix="$exec_prefix"
6415 exec_prefix="$acl_final_exec_prefix"
6417 eval additional_includedir=\"$includedir\"
6418 eval additional_libdir=\"$libdir\"
6420 exec_prefix="$acl_save_exec_prefix"
6421 prefix="$acl_save_prefix"
6424 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6425 if test "${with_libintl_prefix+set}" = set; then
6426 withval="$with_libintl_prefix"
6428 if test "X$withval" = "Xno"; then
6429 use_additional=no
6430 else
6431 if test "X$withval" = "X"; then
6433 acl_save_prefix="$prefix"
6434 prefix="$acl_final_prefix"
6435 acl_save_exec_prefix="$exec_prefix"
6436 exec_prefix="$acl_final_exec_prefix"
6438 eval additional_includedir=\"$includedir\"
6439 eval additional_libdir=\"$libdir\"
6441 exec_prefix="$acl_save_exec_prefix"
6442 prefix="$acl_save_prefix"
6444 else
6445 additional_includedir="$withval/include"
6446 additional_libdir="$withval/lib"
6451 LIBINTL=
6452 LTLIBINTL=
6453 INCINTL=
6454 rpathdirs=
6455 ltrpathdirs=
6456 names_already_handled=
6457 names_next_round='intl '
6458 while test -n "$names_next_round"; do
6459 names_this_round="$names_next_round"
6460 names_next_round=
6461 for name in $names_this_round; do
6462 already_handled=
6463 for n in $names_already_handled; do
6464 if test "$n" = "$name"; then
6465 already_handled=yes
6466 break
6468 done
6469 if test -z "$already_handled"; then
6470 names_already_handled="$names_already_handled $name"
6471 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6472 eval value=\"\$HAVE_LIB$uppername\"
6473 if test -n "$value"; then
6474 if test "$value" = yes; then
6475 eval value=\"\$LIB$uppername\"
6476 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6477 eval value=\"\$LTLIB$uppername\"
6478 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6479 else
6482 else
6483 found_dir=
6484 found_la=
6485 found_so=
6486 found_a=
6487 if test $use_additional = yes; then
6488 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6489 found_dir="$additional_libdir"
6490 found_so="$additional_libdir/lib$name.$shlibext"
6491 if test -f "$additional_libdir/lib$name.la"; then
6492 found_la="$additional_libdir/lib$name.la"
6494 else
6495 if test -f "$additional_libdir/lib$name.$libext"; then
6496 found_dir="$additional_libdir"
6497 found_a="$additional_libdir/lib$name.$libext"
6498 if test -f "$additional_libdir/lib$name.la"; then
6499 found_la="$additional_libdir/lib$name.la"
6504 if test "X$found_dir" = "X"; then
6505 for x in $LDFLAGS $LTLIBINTL; do
6507 acl_save_prefix="$prefix"
6508 prefix="$acl_final_prefix"
6509 acl_save_exec_prefix="$exec_prefix"
6510 exec_prefix="$acl_final_exec_prefix"
6511 eval x=\"$x\"
6512 exec_prefix="$acl_save_exec_prefix"
6513 prefix="$acl_save_prefix"
6515 case "$x" in
6516 -L*)
6517 dir=`echo "X$x" | sed -e 's/^X-L//'`
6518 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6519 found_dir="$dir"
6520 found_so="$dir/lib$name.$shlibext"
6521 if test -f "$dir/lib$name.la"; then
6522 found_la="$dir/lib$name.la"
6524 else
6525 if test -f "$dir/lib$name.$libext"; then
6526 found_dir="$dir"
6527 found_a="$dir/lib$name.$libext"
6528 if test -f "$dir/lib$name.la"; then
6529 found_la="$dir/lib$name.la"
6534 esac
6535 if test "X$found_dir" != "X"; then
6536 break
6538 done
6540 if test "X$found_dir" != "X"; then
6541 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6542 if test "X$found_so" != "X"; then
6543 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6544 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6545 else
6546 haveit=
6547 for x in $ltrpathdirs; do
6548 if test "X$x" = "X$found_dir"; then
6549 haveit=yes
6550 break
6552 done
6553 if test -z "$haveit"; then
6554 ltrpathdirs="$ltrpathdirs $found_dir"
6556 if test "$hardcode_direct" = yes; then
6557 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6558 else
6559 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6560 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6561 haveit=
6562 for x in $rpathdirs; do
6563 if test "X$x" = "X$found_dir"; then
6564 haveit=yes
6565 break
6567 done
6568 if test -z "$haveit"; then
6569 rpathdirs="$rpathdirs $found_dir"
6571 else
6572 haveit=
6573 for x in $LDFLAGS $LIBINTL; do
6575 acl_save_prefix="$prefix"
6576 prefix="$acl_final_prefix"
6577 acl_save_exec_prefix="$exec_prefix"
6578 exec_prefix="$acl_final_exec_prefix"
6579 eval x=\"$x\"
6580 exec_prefix="$acl_save_exec_prefix"
6581 prefix="$acl_save_prefix"
6583 if test "X$x" = "X-L$found_dir"; then
6584 haveit=yes
6585 break
6587 done
6588 if test -z "$haveit"; then
6589 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6591 if test "$hardcode_minus_L" != no; then
6592 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6593 else
6594 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6599 else
6600 if test "X$found_a" != "X"; then
6601 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6602 else
6603 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6606 additional_includedir=
6607 case "$found_dir" in
6608 */lib | */lib/)
6609 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6610 additional_includedir="$basedir/include"
6612 esac
6613 if test "X$additional_includedir" != "X"; then
6614 if test "X$additional_includedir" != "X/usr/include"; then
6615 haveit=
6616 if test "X$additional_includedir" = "X/usr/local/include"; then
6617 if test -n "$GCC"; then
6618 case $host_os in
6619 linux*) haveit=yes;;
6620 esac
6623 if test -z "$haveit"; then
6624 for x in $CPPFLAGS $INCINTL; do
6626 acl_save_prefix="$prefix"
6627 prefix="$acl_final_prefix"
6628 acl_save_exec_prefix="$exec_prefix"
6629 exec_prefix="$acl_final_exec_prefix"
6630 eval x=\"$x\"
6631 exec_prefix="$acl_save_exec_prefix"
6632 prefix="$acl_save_prefix"
6634 if test "X$x" = "X-I$additional_includedir"; then
6635 haveit=yes
6636 break
6638 done
6639 if test -z "$haveit"; then
6640 if test -d "$additional_includedir"; then
6641 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6647 if test -n "$found_la"; then
6648 save_libdir="$libdir"
6649 case "$found_la" in
6650 */* | *\\*) . "$found_la" ;;
6651 *) . "./$found_la" ;;
6652 esac
6653 libdir="$save_libdir"
6654 for dep in $dependency_libs; do
6655 case "$dep" in
6656 -L*)
6657 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6658 if test "X$additional_libdir" != "X/usr/lib"; then
6659 haveit=
6660 if test "X$additional_libdir" = "X/usr/local/lib"; then
6661 if test -n "$GCC"; then
6662 case $host_os in
6663 linux*) haveit=yes;;
6664 esac
6667 if test -z "$haveit"; then
6668 haveit=
6669 for x in $LDFLAGS $LIBINTL; do
6671 acl_save_prefix="$prefix"
6672 prefix="$acl_final_prefix"
6673 acl_save_exec_prefix="$exec_prefix"
6674 exec_prefix="$acl_final_exec_prefix"
6675 eval x=\"$x\"
6676 exec_prefix="$acl_save_exec_prefix"
6677 prefix="$acl_save_prefix"
6679 if test "X$x" = "X-L$additional_libdir"; then
6680 haveit=yes
6681 break
6683 done
6684 if test -z "$haveit"; then
6685 if test -d "$additional_libdir"; then
6686 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6689 haveit=
6690 for x in $LDFLAGS $LTLIBINTL; do
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"
6700 if test "X$x" = "X-L$additional_libdir"; then
6701 haveit=yes
6702 break
6704 done
6705 if test -z "$haveit"; then
6706 if test -d "$additional_libdir"; then
6707 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6713 -R*)
6714 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6715 if test "$enable_rpath" != no; then
6716 haveit=
6717 for x in $rpathdirs; do
6718 if test "X$x" = "X$dir"; then
6719 haveit=yes
6720 break
6722 done
6723 if test -z "$haveit"; then
6724 rpathdirs="$rpathdirs $dir"
6726 haveit=
6727 for x in $ltrpathdirs; do
6728 if test "X$x" = "X$dir"; then
6729 haveit=yes
6730 break
6732 done
6733 if test -z "$haveit"; then
6734 ltrpathdirs="$ltrpathdirs $dir"
6738 -l*)
6739 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6741 *.la)
6742 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6745 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6746 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6748 esac
6749 done
6751 else
6752 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6753 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6757 done
6758 done
6759 if test "X$rpathdirs" != "X"; then
6760 if test -n "$hardcode_libdir_separator"; then
6761 alldirs=
6762 for found_dir in $rpathdirs; do
6763 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6764 done
6765 acl_save_libdir="$libdir"
6766 libdir="$alldirs"
6767 eval flag=\"$hardcode_libdir_flag_spec\"
6768 libdir="$acl_save_libdir"
6769 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6770 else
6771 for found_dir in $rpathdirs; do
6772 acl_save_libdir="$libdir"
6773 libdir="$found_dir"
6774 eval flag=\"$hardcode_libdir_flag_spec\"
6775 libdir="$acl_save_libdir"
6776 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6777 done
6780 if test "X$ltrpathdirs" != "X"; then
6781 for found_dir in $ltrpathdirs; do
6782 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6783 done
6786 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6787 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6788 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 gt_save_CPPFLAGS="$CPPFLAGS"
6792 CPPFLAGS="$CPPFLAGS $INCINTL"
6793 gt_save_LIBS="$LIBS"
6794 LIBS="$LIBS $LIBINTL"
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <libintl.h>
6802 extern int _nl_msg_cat_cntr;
6803 extern
6804 #ifdef __cplusplus
6806 #endif
6807 const char *_nl_expand_alias ();
6809 main ()
6811 bindtextdomain ("", "");
6812 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6814 return 0;
6816 _ACEOF
6817 rm -f conftest.$ac_objext conftest$ac_exeext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819 (eval $ac_link) 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 gt_cv_func_gnugettext1_libintl=yes
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6844 gt_cv_func_gnugettext1_libintl=no
6846 rm -f conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6849 LIBS="$LIBS $LIBICONV"
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <libintl.h>
6857 extern int _nl_msg_cat_cntr;
6858 extern
6859 #ifdef __cplusplus
6861 #endif
6862 const char *_nl_expand_alias ();
6864 main ()
6866 bindtextdomain ("", "");
6867 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6869 return 0;
6871 _ACEOF
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6874 (eval $ac_link) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 LIBINTL="$LIBINTL $LIBICONV"
6895 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6896 gt_cv_func_gnugettext1_libintl=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6906 CPPFLAGS="$gt_save_CPPFLAGS"
6907 LIBS="$gt_save_LIBS"
6909 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6910 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6913 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6914 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6915 && test "$PACKAGE" != gettext-runtime \
6916 && test "$PACKAGE" != gettext-tools; }; then
6917 gt_use_preinstalled_gnugettext=yes
6918 else
6919 LIBINTL=
6920 LTLIBINTL=
6921 INCINTL=
6925 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6926 nls_cv_use_gnu_gettext=yes
6930 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6931 BUILD_INCLUDED_LIBINTL=yes
6932 USE_INCLUDED_LIBINTL=yes
6933 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6934 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6935 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6938 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6939 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6940 CATOBJEXT=.gmo
6944 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6945 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define ENABLE_NLS 1
6949 _ACEOF
6951 else
6952 USE_NLS=no
6956 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6957 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6958 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6959 echo "${ECHO_T}$USE_NLS" >&6
6960 if test "$USE_NLS" = "yes"; then
6961 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6962 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6963 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6964 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6965 gt_source="external libintl"
6966 else
6967 gt_source="libc"
6969 else
6970 gt_source="included intl directory"
6972 echo "$as_me:$LINENO: result: $gt_source" >&5
6973 echo "${ECHO_T}$gt_source" >&6
6976 if test "$USE_NLS" = "yes"; then
6978 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6979 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6980 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6981 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6982 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6983 echo "${ECHO_T}$LIBINTL" >&6
6985 for element in $INCINTL; do
6986 haveit=
6987 for x in $CPPFLAGS; do
6989 acl_save_prefix="$prefix"
6990 prefix="$acl_final_prefix"
6991 acl_save_exec_prefix="$exec_prefix"
6992 exec_prefix="$acl_final_exec_prefix"
6993 eval x=\"$x\"
6994 exec_prefix="$acl_save_exec_prefix"
6995 prefix="$acl_save_prefix"
6997 if test "X$x" = "X$element"; then
6998 haveit=yes
6999 break
7001 done
7002 if test -z "$haveit"; then
7003 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7005 done
7010 cat >>confdefs.h <<\_ACEOF
7011 #define HAVE_GETTEXT 1
7012 _ACEOF
7015 cat >>confdefs.h <<\_ACEOF
7016 #define HAVE_DCGETTEXT 1
7017 _ACEOF
7021 POSUB=po
7025 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
7026 BUILD_INCLUDED_LIBINTL=yes
7033 nls_cv_header_intl=
7034 nls_cv_header_libgt=
7036 DATADIRNAME=share
7039 INSTOBJEXT=.mo
7042 GENCAT=gencat
7045 if test "$USE_INCLUDED_LIBINTL" = yes; then
7046 INTLOBJS="\$(GETTOBJS)"
7050 INTL_LIBTOOL_SUFFIX_PREFIX=
7054 INTLLIBS="$LIBINTL"
7062 # This replaces the extensive use of DEFS in the original Makefile.in.
7064 cat >>confdefs.h <<\_ACEOF
7065 #define IN_LIBINTL 1
7066 _ACEOF
7069 cat >>confdefs.h <<\_ACEOF
7070 #define IN_LIBRARY 1
7071 _ACEOF
7074 cat >>confdefs.h <<\_ACEOF
7075 #define DEPENDS_ON_LIBICONV 1
7076 _ACEOF
7079 cat >>confdefs.h <<\_ACEOF
7080 #define ENABLE_RELOCATABLE 1
7081 _ACEOF
7084 cat >>confdefs.h <<\_ACEOF
7085 #define NO_XMALLOC 1
7086 _ACEOF
7089 cat >>confdefs.h <<\_ACEOF
7090 #define set_relocation_prefix libintl_set_relocation_prefix
7091 _ACEOF
7094 cat >>confdefs.h <<\_ACEOF
7095 #define relocate libintl_relocate
7096 _ACEOF
7099 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7100 for ac_prog in aclocal
7102 # Extract the first word of "$ac_prog", so it can be a program name with args.
7103 set dummy $ac_prog; ac_word=$2
7104 echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7106 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 if test -n "$ACLOCAL"; then
7110 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_ACLOCAL="$ac_prog"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7123 done
7124 done
7128 ACLOCAL=$ac_cv_prog_ACLOCAL
7129 if test -n "$ACLOCAL"; then
7130 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
7131 echo "${ECHO_T}$ACLOCAL" >&6
7132 else
7133 echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6
7137 test -n "$ACLOCAL" && break
7138 done
7139 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
7141 for ac_prog in autoconf
7143 # Extract the first word of "$ac_prog", so it can be a program name with args.
7144 set dummy $ac_prog; ac_word=$2
7145 echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7147 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 if test -n "$AUTOCONF"; then
7151 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_AUTOCONF="$ac_prog"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7164 done
7165 done
7169 AUTOCONF=$ac_cv_prog_AUTOCONF
7170 if test -n "$AUTOCONF"; then
7171 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
7172 echo "${ECHO_T}$AUTOCONF" >&6
7173 else
7174 echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6
7178 test -n "$AUTOCONF" && break
7179 done
7180 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
7182 for ac_prog in autoheader
7184 # Extract the first word of "$ac_prog", so it can be a program name with args.
7185 set dummy $ac_prog; ac_word=$2
7186 echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7188 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 if test -n "$AUTOHEADER"; then
7192 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_AUTOHEADER="$ac_prog"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7205 done
7206 done
7210 AUTOHEADER=$ac_cv_prog_AUTOHEADER
7211 if test -n "$AUTOHEADER"; then
7212 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
7213 echo "${ECHO_T}$AUTOHEADER" >&6
7214 else
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7219 test -n "$AUTOHEADER" && break
7220 done
7221 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
7224 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7225 if test "${enable_maintainer_mode+set}" = set; then
7226 enableval="$enable_maintainer_mode"
7228 else
7229 enable_maintainer_mode=no
7231 if test "x$enable_maintainer_mode" = xno; then
7232 MAINT='#'
7233 else
7234 MAINT=
7238 # Additional info for config.intl.
7242 LIBINTL_DEP=
7243 INCINTL=
7244 case $USE_INCLUDED_LIBINTL in
7245 yes)
7246 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
7247 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
7248 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
7249 INCINTL='-I${top_builddir}/../intl'
7251 esac
7253 ac_config_files="$ac_config_files Makefile config.intl"
7255 cat >confcache <<\_ACEOF
7256 # This file is a shell script that caches the results of configure
7257 # tests run on this system so they can be shared between configure
7258 # scripts and configure runs, see configure's option --config-cache.
7259 # It is not useful on other systems. If it contains results you don't
7260 # want to keep, you may remove or edit it.
7262 # config.status only pays attention to the cache file if you give it
7263 # the --recheck option to rerun configure.
7265 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7266 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7267 # following values.
7269 _ACEOF
7271 # The following way of writing the cache mishandles newlines in values,
7272 # but we know of no workaround that is simple, portable, and efficient.
7273 # So, don't put newlines in cache variables' values.
7274 # Ultrix sh set writes to stderr and can't be redirected directly,
7275 # and sets the high bit in the cache file unless we assign to the vars.
7277 (set) 2>&1 |
7278 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7279 *ac_space=\ *)
7280 # `set' does not quote correctly, so add quotes (double-quote
7281 # substitution turns \\\\ into \\, and sed turns \\ into \).
7282 sed -n \
7283 "s/'/'\\\\''/g;
7284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7287 # `set' quotes correctly as required by POSIX, so do not add quotes.
7288 sed -n \
7289 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7291 esac;
7293 sed '
7294 t clear
7295 : clear
7296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7297 t end
7298 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7299 : end' >>confcache
7300 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7301 if test -w $cache_file; then
7302 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7303 cat confcache >$cache_file
7304 else
7305 echo "not updating unwritable cache $cache_file"
7308 rm -f confcache
7310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7311 # Let make expand exec_prefix.
7312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7314 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7315 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7316 # trailing colons and then remove the whole line if VPATH becomes empty
7317 # (actually we leave an empty line to preserve line numbers).
7318 if test "x$srcdir" = x.; then
7319 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7320 s/:*\$(srcdir):*/:/;
7321 s/:*\${srcdir}:*/:/;
7322 s/:*@srcdir@:*/:/;
7323 s/^\([^=]*=[ ]*\):*/\1/;
7324 s/:*$//;
7325 s/^[^=]*=[ ]*$//;
7329 DEFS=-DHAVE_CONFIG_H
7331 ac_libobjs=
7332 ac_ltlibobjs=
7333 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7334 # 1. Remove the extension, and $U if already installed.
7335 ac_i=`echo "$ac_i" |
7336 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7337 # 2. Add them.
7338 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7339 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7340 done
7341 LIBOBJS=$ac_libobjs
7343 LTLIBOBJS=$ac_ltlibobjs
7347 : ${CONFIG_STATUS=./config.status}
7348 ac_clean_files_save=$ac_clean_files
7349 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7350 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7351 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7352 cat >$CONFIG_STATUS <<_ACEOF
7353 #! $SHELL
7354 # Generated by $as_me.
7355 # Run this file to recreate the current configuration.
7356 # Compiler output produced by configure, useful for debugging
7357 # configure, is in config.log if it exists.
7359 debug=false
7360 ac_cs_recheck=false
7361 ac_cs_silent=false
7362 SHELL=\${CONFIG_SHELL-$SHELL}
7363 _ACEOF
7365 cat >>$CONFIG_STATUS <<\_ACEOF
7366 ## --------------------- ##
7367 ## M4sh Initialization. ##
7368 ## --------------------- ##
7370 # Be Bourne compatible
7371 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7372 emulate sh
7373 NULLCMD=:
7374 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7375 # is contrary to our usage. Disable this feature.
7376 alias -g '${1+"$@"}'='"$@"'
7377 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7378 set -o posix
7380 DUALCASE=1; export DUALCASE # for MKS sh
7382 # Support unset when possible.
7383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7384 as_unset=unset
7385 else
7386 as_unset=false
7390 # Work around bugs in pre-3.0 UWIN ksh.
7391 $as_unset ENV MAIL MAILPATH
7392 PS1='$ '
7393 PS2='> '
7394 PS4='+ '
7396 # NLS nuisances.
7397 for as_var in \
7398 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7399 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7400 LC_TELEPHONE LC_TIME
7402 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7403 eval $as_var=C; export $as_var
7404 else
7405 $as_unset $as_var
7407 done
7409 # Required to use basename.
7410 if expr a : '\(a\)' >/dev/null 2>&1; then
7411 as_expr=expr
7412 else
7413 as_expr=false
7416 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7417 as_basename=basename
7418 else
7419 as_basename=false
7423 # Name of the executable.
7424 as_me=`$as_basename "$0" ||
7425 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7426 X"$0" : 'X\(//\)$' \| \
7427 X"$0" : 'X\(/\)$' \| \
7428 . : '\(.\)' 2>/dev/null ||
7429 echo X/"$0" |
7430 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7431 /^X\/\(\/\/\)$/{ s//\1/; q; }
7432 /^X\/\(\/\).*/{ s//\1/; q; }
7433 s/.*/./; q'`
7436 # PATH needs CR, and LINENO needs CR and PATH.
7437 # Avoid depending upon Character Ranges.
7438 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7439 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7440 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7441 as_cr_digits='0123456789'
7442 as_cr_alnum=$as_cr_Letters$as_cr_digits
7444 # The user is always right.
7445 if test "${PATH_SEPARATOR+set}" != set; then
7446 echo "#! /bin/sh" >conf$$.sh
7447 echo "exit 0" >>conf$$.sh
7448 chmod +x conf$$.sh
7449 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7450 PATH_SEPARATOR=';'
7451 else
7452 PATH_SEPARATOR=:
7454 rm -f conf$$.sh
7458 as_lineno_1=$LINENO
7459 as_lineno_2=$LINENO
7460 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7461 test "x$as_lineno_1" != "x$as_lineno_2" &&
7462 test "x$as_lineno_3" = "x$as_lineno_2" || {
7463 # Find who we are. Look in the path if we contain no path at all
7464 # relative or not.
7465 case $0 in
7466 *[\\/]* ) as_myself=$0 ;;
7467 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7473 done
7476 esac
7477 # We did not find ourselves, most probably we were run as `sh COMMAND'
7478 # in which case we are not to be found in the path.
7479 if test "x$as_myself" = x; then
7480 as_myself=$0
7482 if test ! -f "$as_myself"; then
7483 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7484 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7485 { (exit 1); exit 1; }; }
7487 case $CONFIG_SHELL in
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for as_base in sh bash ksh sh5; do
7495 case $as_dir in
7497 if ("$as_dir/$as_base" -c '
7498 as_lineno_1=$LINENO
7499 as_lineno_2=$LINENO
7500 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7501 test "x$as_lineno_1" != "x$as_lineno_2" &&
7502 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7503 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7504 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7505 CONFIG_SHELL=$as_dir/$as_base
7506 export CONFIG_SHELL
7507 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7508 fi;;
7509 esac
7510 done
7511 done
7513 esac
7515 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7516 # uniformly replaced by the line number. The first 'sed' inserts a
7517 # line-number line before each line; the second 'sed' does the real
7518 # work. The second script uses 'N' to pair each line-number line
7519 # with the numbered line, and appends trailing '-' during
7520 # substitution so that $LINENO is not a special case at line end.
7521 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7522 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7523 sed '=' <$as_myself |
7524 sed '
7526 s,$,-,
7527 : loop
7528 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7529 t loop
7530 s,-$,,
7531 s,^['$as_cr_digits']*\n,,
7532 ' >$as_me.lineno &&
7533 chmod +x $as_me.lineno ||
7534 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7535 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7536 { (exit 1); exit 1; }; }
7538 # Don't try to exec as it changes $[0], causing all sort of problems
7539 # (the dirname of $[0] is not the place where we might find the
7540 # original and so on. Autoconf is especially sensible to this).
7541 . ./$as_me.lineno
7542 # Exit status is that of the last command.
7543 exit
7547 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7548 *c*,-n*) ECHO_N= ECHO_C='
7549 ' ECHO_T=' ' ;;
7550 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7551 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7552 esac
7554 if expr a : '\(a\)' >/dev/null 2>&1; then
7555 as_expr=expr
7556 else
7557 as_expr=false
7560 rm -f conf$$ conf$$.exe conf$$.file
7561 echo >conf$$.file
7562 if ln -s conf$$.file conf$$ 2>/dev/null; then
7563 # We could just check for DJGPP; but this test a) works b) is more generic
7564 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7565 if test -f conf$$.exe; then
7566 # Don't use ln at all; we don't have any links
7567 as_ln_s='cp -p'
7568 else
7569 as_ln_s='ln -s'
7571 elif ln conf$$.file conf$$ 2>/dev/null; then
7572 as_ln_s=ln
7573 else
7574 as_ln_s='cp -p'
7576 rm -f conf$$ conf$$.exe conf$$.file
7578 if mkdir -p . 2>/dev/null; then
7579 as_mkdir_p=:
7580 else
7581 test -d ./-p && rmdir ./-p
7582 as_mkdir_p=false
7585 as_executable_p="test -f"
7587 # Sed expression to map a string onto a valid CPP name.
7588 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7590 # Sed expression to map a string onto a valid variable name.
7591 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7594 # IFS
7595 # We need space, tab and new line, in precisely that order.
7596 as_nl='
7598 IFS=" $as_nl"
7600 # CDPATH.
7601 $as_unset CDPATH
7603 exec 6>&1
7605 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7606 # report actual input values of CONFIG_FILES etc. instead of their
7607 # values after options handling. Logging --version etc. is OK.
7608 exec 5>>config.log
7610 echo
7611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7612 ## Running $as_me. ##
7613 _ASBOX
7614 } >&5
7615 cat >&5 <<_CSEOF
7617 This file was extended by $as_me, which was
7618 generated by GNU Autoconf 2.59. Invocation command line was
7620 CONFIG_FILES = $CONFIG_FILES
7621 CONFIG_HEADERS = $CONFIG_HEADERS
7622 CONFIG_LINKS = $CONFIG_LINKS
7623 CONFIG_COMMANDS = $CONFIG_COMMANDS
7624 $ $0 $@
7626 _CSEOF
7627 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7628 echo >&5
7629 _ACEOF
7631 # Files that config.status was made for.
7632 if test -n "$ac_config_files"; then
7633 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7636 if test -n "$ac_config_headers"; then
7637 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7640 if test -n "$ac_config_links"; then
7641 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7644 if test -n "$ac_config_commands"; then
7645 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7648 cat >>$CONFIG_STATUS <<\_ACEOF
7650 ac_cs_usage="\
7651 \`$as_me' instantiates files from templates according to the
7652 current configuration.
7654 Usage: $0 [OPTIONS] [FILE]...
7656 -h, --help print this help, then exit
7657 -V, --version print version number, then exit
7658 -q, --quiet do not print progress messages
7659 -d, --debug don't remove temporary files
7660 --recheck update $as_me by reconfiguring in the same conditions
7661 --file=FILE[:TEMPLATE]
7662 instantiate the configuration file FILE
7663 --header=FILE[:TEMPLATE]
7664 instantiate the configuration header FILE
7666 Configuration files:
7667 $config_files
7669 Configuration headers:
7670 $config_headers
7672 Configuration commands:
7673 $config_commands
7675 Report bugs to <bug-autoconf@gnu.org>."
7676 _ACEOF
7678 cat >>$CONFIG_STATUS <<_ACEOF
7679 ac_cs_version="\\
7680 config.status
7681 configured by $0, generated by GNU Autoconf 2.59,
7682 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7684 Copyright (C) 2003 Free Software Foundation, Inc.
7685 This config.status script is free software; the Free Software Foundation
7686 gives unlimited permission to copy, distribute and modify it."
7687 srcdir=$srcdir
7688 INSTALL="$INSTALL"
7689 _ACEOF
7691 cat >>$CONFIG_STATUS <<\_ACEOF
7692 # If no file are specified by the user, then we need to provide default
7693 # value. By we need to know if files were specified by the user.
7694 ac_need_defaults=:
7695 while test $# != 0
7697 case $1 in
7698 --*=*)
7699 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7700 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7701 ac_shift=:
7704 ac_option=$1
7705 ac_optarg=$2
7706 ac_shift=shift
7708 *) # This is not an option, so the user has probably given explicit
7709 # arguments.
7710 ac_option=$1
7711 ac_need_defaults=false;;
7712 esac
7714 case $ac_option in
7715 # Handling of the options.
7716 _ACEOF
7717 cat >>$CONFIG_STATUS <<\_ACEOF
7718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7719 ac_cs_recheck=: ;;
7720 --version | --vers* | -V )
7721 echo "$ac_cs_version"; exit 0 ;;
7722 --he | --h)
7723 # Conflict between --help and --header
7724 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7725 Try \`$0 --help' for more information." >&5
7726 echo "$as_me: error: ambiguous option: $1
7727 Try \`$0 --help' for more information." >&2;}
7728 { (exit 1); exit 1; }; };;
7729 --help | --hel | -h )
7730 echo "$ac_cs_usage"; exit 0 ;;
7731 --debug | --d* | -d )
7732 debug=: ;;
7733 --file | --fil | --fi | --f )
7734 $ac_shift
7735 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7736 ac_need_defaults=false;;
7737 --header | --heade | --head | --hea )
7738 $ac_shift
7739 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7740 ac_need_defaults=false;;
7741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7742 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7743 ac_cs_silent=: ;;
7745 # This is an error.
7746 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7747 Try \`$0 --help' for more information." >&5
7748 echo "$as_me: error: unrecognized option: $1
7749 Try \`$0 --help' for more information." >&2;}
7750 { (exit 1); exit 1; }; } ;;
7752 *) ac_config_targets="$ac_config_targets $1" ;;
7754 esac
7755 shift
7756 done
7758 ac_configure_extra_args=
7760 if $ac_cs_silent; then
7761 exec 6>/dev/null
7762 ac_configure_extra_args="$ac_configure_extra_args --silent"
7765 _ACEOF
7766 cat >>$CONFIG_STATUS <<_ACEOF
7767 if \$ac_cs_recheck; then
7768 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7769 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7772 _ACEOF
7774 cat >>$CONFIG_STATUS <<_ACEOF
7776 # INIT-COMMANDS section.
7779 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7780 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7781 # from automake.
7782 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7783 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7784 LINGUAS="${LINGUAS-%UNSET%}"
7787 _ACEOF
7791 cat >>$CONFIG_STATUS <<\_ACEOF
7792 for ac_config_target in $ac_config_targets
7794 case "$ac_config_target" in
7795 # Handling of arguments.
7796 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7797 "config.intl" ) CONFIG_FILES="$CONFIG_FILES config.intl" ;;
7798 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7799 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7800 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7801 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7802 { (exit 1); exit 1; }; };;
7803 esac
7804 done
7806 # If the user did not use the arguments to specify the items to instantiate,
7807 # then the envvar interface is used. Set only those that are not.
7808 # We use the long form for the default assignment because of an extremely
7809 # bizarre bug on SunOS 4.1.3.
7810 if $ac_need_defaults; then
7811 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7812 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7813 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7816 # Have a temporary directory for convenience. Make it in the build tree
7817 # simply because there is no reason to put it here, and in addition,
7818 # creating and moving files from /tmp can sometimes cause problems.
7819 # Create a temporary directory, and hook for its removal unless debugging.
7820 $debug ||
7822 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7823 trap '{ (exit 1); exit 1; }' 1 2 13 15
7826 # Create a (secure) tmp directory for tmp files.
7829 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7830 test -n "$tmp" && test -d "$tmp"
7831 } ||
7833 tmp=./confstat$$-$RANDOM
7834 (umask 077 && mkdir $tmp)
7835 } ||
7837 echo "$me: cannot create a temporary directory in ." >&2
7838 { (exit 1); exit 1; }
7841 _ACEOF
7843 cat >>$CONFIG_STATUS <<_ACEOF
7846 # CONFIG_FILES section.
7849 # No need to generate the scripts if there are no CONFIG_FILES.
7850 # This happens for instance when ./config.status config.h
7851 if test -n "\$CONFIG_FILES"; then
7852 # Protect against being on the right side of a sed subst in config.status.
7853 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7854 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7855 s,@SHELL@,$SHELL,;t t
7856 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7857 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7858 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7859 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7860 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7861 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7862 s,@exec_prefix@,$exec_prefix,;t t
7863 s,@prefix@,$prefix,;t t
7864 s,@program_transform_name@,$program_transform_name,;t t
7865 s,@bindir@,$bindir,;t t
7866 s,@sbindir@,$sbindir,;t t
7867 s,@libexecdir@,$libexecdir,;t t
7868 s,@datadir@,$datadir,;t t
7869 s,@sysconfdir@,$sysconfdir,;t t
7870 s,@sharedstatedir@,$sharedstatedir,;t t
7871 s,@localstatedir@,$localstatedir,;t t
7872 s,@libdir@,$libdir,;t t
7873 s,@includedir@,$includedir,;t t
7874 s,@oldincludedir@,$oldincludedir,;t t
7875 s,@infodir@,$infodir,;t t
7876 s,@mandir@,$mandir,;t t
7877 s,@build_alias@,$build_alias,;t t
7878 s,@host_alias@,$host_alias,;t t
7879 s,@target_alias@,$target_alias,;t t
7880 s,@DEFS@,$DEFS,;t t
7881 s,@ECHO_C@,$ECHO_C,;t t
7882 s,@ECHO_N@,$ECHO_N,;t t
7883 s,@ECHO_T@,$ECHO_T,;t t
7884 s,@LIBS@,$LIBS,;t t
7885 s,@SET_MAKE@,$SET_MAKE,;t t
7886 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7887 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7888 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7889 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7890 s,@USE_NLS@,$USE_NLS,;t t
7891 s,@MSGFMT@,$MSGFMT,;t t
7892 s,@GMSGFMT@,$GMSGFMT,;t t
7893 s,@XGETTEXT@,$XGETTEXT,;t t
7894 s,@MSGMERGE@,$MSGMERGE,;t t
7895 s,@CC@,$CC,;t t
7896 s,@CFLAGS@,$CFLAGS,;t t
7897 s,@LDFLAGS@,$LDFLAGS,;t t
7898 s,@CPPFLAGS@,$CPPFLAGS,;t t
7899 s,@ac_ct_CC@,$ac_ct_CC,;t t
7900 s,@EXEEXT@,$EXEEXT,;t t
7901 s,@OBJEXT@,$OBJEXT,;t t
7902 s,@build@,$build,;t t
7903 s,@build_cpu@,$build_cpu,;t t
7904 s,@build_vendor@,$build_vendor,;t t
7905 s,@build_os@,$build_os,;t t
7906 s,@host@,$host,;t t
7907 s,@host_cpu@,$host_cpu,;t t
7908 s,@host_vendor@,$host_vendor,;t t
7909 s,@host_os@,$host_os,;t t
7910 s,@RANLIB@,$RANLIB,;t t
7911 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7912 s,@CPP@,$CPP,;t t
7913 s,@EGREP@,$EGREP,;t t
7914 s,@ALLOCA@,$ALLOCA,;t t
7915 s,@GLIBC21@,$GLIBC21,;t t
7916 s,@LIBICONV@,$LIBICONV,;t t
7917 s,@LTLIBICONV@,$LTLIBICONV,;t t
7918 s,@INTLBISON@,$INTLBISON,;t t
7919 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7920 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7921 s,@CATOBJEXT@,$CATOBJEXT,;t t
7922 s,@DATADIRNAME@,$DATADIRNAME,;t t
7923 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7924 s,@GENCAT@,$GENCAT,;t t
7925 s,@INTLOBJS@,$INTLOBJS,;t t
7926 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7927 s,@INTLLIBS@,$INTLLIBS,;t t
7928 s,@LIBINTL@,$LIBINTL,;t t
7929 s,@LTLIBINTL@,$LTLIBINTL,;t t
7930 s,@POSUB@,$POSUB,;t t
7931 s,@ACLOCAL@,$ACLOCAL,;t t
7932 s,@AUTOCONF@,$AUTOCONF,;t t
7933 s,@AUTOHEADER@,$AUTOHEADER,;t t
7934 s,@MAINT@,$MAINT,;t t
7935 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7936 s,@INCINTL@,$INCINTL,;t t
7937 s,@LIBOBJS@,$LIBOBJS,;t t
7938 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7939 CEOF
7941 _ACEOF
7943 cat >>$CONFIG_STATUS <<\_ACEOF
7944 # Split the substitutions into bite-sized pieces for seds with
7945 # small command number limits, like on Digital OSF/1 and HP-UX.
7946 ac_max_sed_lines=48
7947 ac_sed_frag=1 # Number of current file.
7948 ac_beg=1 # First line for current file.
7949 ac_end=$ac_max_sed_lines # Line after last line for current file.
7950 ac_more_lines=:
7951 ac_sed_cmds=
7952 while $ac_more_lines; do
7953 if test $ac_beg -gt 1; then
7954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7955 else
7956 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7958 if test ! -s $tmp/subs.frag; then
7959 ac_more_lines=false
7960 else
7961 # The purpose of the label and of the branching condition is to
7962 # speed up the sed processing (if there are no `@' at all, there
7963 # is no need to browse any of the substitutions).
7964 # These are the two extra sed commands mentioned above.
7965 (echo ':t
7966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7967 if test -z "$ac_sed_cmds"; then
7968 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7969 else
7970 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7972 ac_sed_frag=`expr $ac_sed_frag + 1`
7973 ac_beg=$ac_end
7974 ac_end=`expr $ac_end + $ac_max_sed_lines`
7976 done
7977 if test -z "$ac_sed_cmds"; then
7978 ac_sed_cmds=cat
7980 fi # test -n "$CONFIG_FILES"
7982 _ACEOF
7983 cat >>$CONFIG_STATUS <<\_ACEOF
7984 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7986 case $ac_file in
7987 - | *:- | *:-:* ) # input from stdin
7988 cat >$tmp/stdin
7989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7993 * ) ac_file_in=$ac_file.in ;;
7994 esac
7996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7999 X"$ac_file" : 'X\(//\)[^/]' \| \
8000 X"$ac_file" : 'X\(//\)$' \| \
8001 X"$ac_file" : 'X\(/\)' \| \
8002 . : '\(.\)' 2>/dev/null ||
8003 echo X"$ac_file" |
8004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8006 /^X\(\/\/\)$/{ s//\1/; q; }
8007 /^X\(\/\).*/{ s//\1/; q; }
8008 s/.*/./; q'`
8009 { if $as_mkdir_p; then
8010 mkdir -p "$ac_dir"
8011 else
8012 as_dir="$ac_dir"
8013 as_dirs=
8014 while test ! -d "$as_dir"; do
8015 as_dirs="$as_dir $as_dirs"
8016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8018 X"$as_dir" : 'X\(//\)[^/]' \| \
8019 X"$as_dir" : 'X\(//\)$' \| \
8020 X"$as_dir" : 'X\(/\)' \| \
8021 . : '\(.\)' 2>/dev/null ||
8022 echo X"$as_dir" |
8023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8025 /^X\(\/\/\)$/{ s//\1/; q; }
8026 /^X\(\/\).*/{ s//\1/; q; }
8027 s/.*/./; q'`
8028 done
8029 test ! -n "$as_dirs" || mkdir $as_dirs
8030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8032 { (exit 1); exit 1; }; }; }
8034 ac_builddir=.
8036 if test "$ac_dir" != .; then
8037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8038 # A "../" for each directory in $ac_dir_suffix.
8039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8040 else
8041 ac_dir_suffix= ac_top_builddir=
8044 case $srcdir in
8045 .) # No --srcdir option. We are building in place.
8046 ac_srcdir=.
8047 if test -z "$ac_top_builddir"; then
8048 ac_top_srcdir=.
8049 else
8050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8051 fi ;;
8052 [\\/]* | ?:[\\/]* ) # Absolute path.
8053 ac_srcdir=$srcdir$ac_dir_suffix;
8054 ac_top_srcdir=$srcdir ;;
8055 *) # Relative path.
8056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8058 esac
8060 # Do not use `cd foo && pwd` to compute absolute paths, because
8061 # the directories may not exist.
8062 case `pwd` in
8063 .) ac_abs_builddir="$ac_dir";;
8065 case "$ac_dir" in
8066 .) ac_abs_builddir=`pwd`;;
8067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8069 esac;;
8070 esac
8071 case $ac_abs_builddir in
8072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8074 case ${ac_top_builddir}. in
8075 .) ac_abs_top_builddir=$ac_abs_builddir;;
8076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8078 esac;;
8079 esac
8080 case $ac_abs_builddir in
8081 .) ac_abs_srcdir=$ac_srcdir;;
8083 case $ac_srcdir in
8084 .) ac_abs_srcdir=$ac_abs_builddir;;
8085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8087 esac;;
8088 esac
8089 case $ac_abs_builddir in
8090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8092 case $ac_top_srcdir in
8093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8096 esac;;
8097 esac
8100 case $INSTALL in
8101 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8102 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8103 esac
8105 if test x"$ac_file" != x-; then
8106 { echo "$as_me:$LINENO: creating $ac_file" >&5
8107 echo "$as_me: creating $ac_file" >&6;}
8108 rm -f "$ac_file"
8110 # Let's still pretend it is `configure' which instantiates (i.e., don't
8111 # use $as_me), people would be surprised to read:
8112 # /* config.h. Generated by config.status. */
8113 if test x"$ac_file" = x-; then
8114 configure_input=
8115 else
8116 configure_input="$ac_file. "
8118 configure_input=$configure_input"Generated from `echo $ac_file_in |
8119 sed 's,.*/,,'` by configure."
8121 # First look for the input files in the build tree, otherwise in the
8122 # src tree.
8123 ac_file_inputs=`IFS=:
8124 for f in $ac_file_in; do
8125 case $f in
8126 -) echo $tmp/stdin ;;
8127 [\\/$]*)
8128 # Absolute (can't be DOS-style, as IFS=:)
8129 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8130 echo "$as_me: error: cannot find input file: $f" >&2;}
8131 { (exit 1); exit 1; }; }
8132 echo "$f";;
8133 *) # Relative
8134 if test -f "$f"; then
8135 # Build tree
8136 echo "$f"
8137 elif test -f "$srcdir/$f"; then
8138 # Source tree
8139 echo "$srcdir/$f"
8140 else
8141 # /dev/null tree
8142 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8143 echo "$as_me: error: cannot find input file: $f" >&2;}
8144 { (exit 1); exit 1; }; }
8145 fi;;
8146 esac
8147 done` || { (exit 1); exit 1; }
8148 _ACEOF
8149 cat >>$CONFIG_STATUS <<_ACEOF
8150 sed "$ac_vpsub
8151 $extrasub
8152 _ACEOF
8153 cat >>$CONFIG_STATUS <<\_ACEOF
8155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8156 s,@configure_input@,$configure_input,;t t
8157 s,@srcdir@,$ac_srcdir,;t t
8158 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8159 s,@top_srcdir@,$ac_top_srcdir,;t t
8160 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8161 s,@builddir@,$ac_builddir,;t t
8162 s,@abs_builddir@,$ac_abs_builddir,;t t
8163 s,@top_builddir@,$ac_top_builddir,;t t
8164 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8165 s,@INSTALL@,$ac_INSTALL,;t t
8166 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8167 rm -f $tmp/stdin
8168 if test x"$ac_file" != x-; then
8169 mv $tmp/out $ac_file
8170 else
8171 cat $tmp/out
8172 rm -f $tmp/out
8175 done
8176 _ACEOF
8177 cat >>$CONFIG_STATUS <<\_ACEOF
8180 # CONFIG_HEADER section.
8183 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8184 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8186 # ac_d sets the value in "#define NAME VALUE" lines.
8187 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8188 ac_dB='[ ].*$,\1#\2'
8189 ac_dC=' '
8190 ac_dD=',;t'
8191 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8192 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8193 ac_uB='$,\1#\2define\3'
8194 ac_uC=' '
8195 ac_uD=',;t'
8197 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8198 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8199 case $ac_file in
8200 - | *:- | *:-:* ) # input from stdin
8201 cat >$tmp/stdin
8202 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8203 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8204 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8205 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8206 * ) ac_file_in=$ac_file.in ;;
8207 esac
8209 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8210 echo "$as_me: creating $ac_file" >&6;}
8212 # First look for the input files in the build tree, otherwise in the
8213 # src tree.
8214 ac_file_inputs=`IFS=:
8215 for f in $ac_file_in; do
8216 case $f in
8217 -) echo $tmp/stdin ;;
8218 [\\/$]*)
8219 # Absolute (can't be DOS-style, as IFS=:)
8220 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8221 echo "$as_me: error: cannot find input file: $f" >&2;}
8222 { (exit 1); exit 1; }; }
8223 # Do quote $f, to prevent DOS paths from being IFS'd.
8224 echo "$f";;
8225 *) # Relative
8226 if test -f "$f"; then
8227 # Build tree
8228 echo "$f"
8229 elif test -f "$srcdir/$f"; then
8230 # Source tree
8231 echo "$srcdir/$f"
8232 else
8233 # /dev/null tree
8234 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8235 echo "$as_me: error: cannot find input file: $f" >&2;}
8236 { (exit 1); exit 1; }; }
8237 fi;;
8238 esac
8239 done` || { (exit 1); exit 1; }
8240 # Remove the trailing spaces.
8241 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8243 _ACEOF
8245 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8246 # `conftest.undefs', that substitutes the proper values into
8247 # config.h.in to produce config.h. The first handles `#define'
8248 # templates, and the second `#undef' templates.
8249 # And first: Protect against being on the right side of a sed subst in
8250 # config.status. Protect against being in an unquoted here document
8251 # in config.status.
8252 rm -f conftest.defines conftest.undefs
8253 # Using a here document instead of a string reduces the quoting nightmare.
8254 # Putting comments in sed scripts is not portable.
8256 # `end' is used to avoid that the second main sed command (meant for
8257 # 0-ary CPP macros) applies to n-ary macro definitions.
8258 # See the Autoconf documentation for `clear'.
8259 cat >confdef2sed.sed <<\_ACEOF
8260 s/[\\&,]/\\&/g
8261 s,[\\$`],\\&,g
8262 t clear
8263 : clear
8264 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8265 t end
8266 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8267 : end
8268 _ACEOF
8269 # If some macros were called several times there might be several times
8270 # the same #defines, which is useless. Nevertheless, we may not want to
8271 # sort them, since we want the *last* AC-DEFINE to be honored.
8272 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8273 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8274 rm -f confdef2sed.sed
8276 # This sed command replaces #undef with comments. This is necessary, for
8277 # example, in the case of _POSIX_SOURCE, which is predefined and required
8278 # on some systems where configure will not decide to define it.
8279 cat >>conftest.undefs <<\_ACEOF
8280 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8281 _ACEOF
8283 # Break up conftest.defines because some shells have a limit on the size
8284 # of here documents, and old seds have small limits too (100 cmds).
8285 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8286 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8287 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8288 echo ' :' >>$CONFIG_STATUS
8289 rm -f conftest.tail
8290 while grep . conftest.defines >/dev/null
8292 # Write a limited-size here document to $tmp/defines.sed.
8293 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8294 # Speed up: don't consider the non `#define' lines.
8295 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8296 # Work around the forget-to-reset-the-flag bug.
8297 echo 't clr' >>$CONFIG_STATUS
8298 echo ': clr' >>$CONFIG_STATUS
8299 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8300 echo 'CEOF
8301 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8302 rm -f $tmp/in
8303 mv $tmp/out $tmp/in
8304 ' >>$CONFIG_STATUS
8305 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8306 rm -f conftest.defines
8307 mv conftest.tail conftest.defines
8308 done
8309 rm -f conftest.defines
8310 echo ' fi # grep' >>$CONFIG_STATUS
8311 echo >>$CONFIG_STATUS
8313 # Break up conftest.undefs because some shells have a limit on the size
8314 # of here documents, and old seds have small limits too (100 cmds).
8315 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8316 rm -f conftest.tail
8317 while grep . conftest.undefs >/dev/null
8319 # Write a limited-size here document to $tmp/undefs.sed.
8320 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8321 # Speed up: don't consider the non `#undef'
8322 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8323 # Work around the forget-to-reset-the-flag bug.
8324 echo 't clr' >>$CONFIG_STATUS
8325 echo ': clr' >>$CONFIG_STATUS
8326 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8327 echo 'CEOF
8328 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8329 rm -f $tmp/in
8330 mv $tmp/out $tmp/in
8331 ' >>$CONFIG_STATUS
8332 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8333 rm -f conftest.undefs
8334 mv conftest.tail conftest.undefs
8335 done
8336 rm -f conftest.undefs
8338 cat >>$CONFIG_STATUS <<\_ACEOF
8339 # Let's still pretend it is `configure' which instantiates (i.e., don't
8340 # use $as_me), people would be surprised to read:
8341 # /* config.h. Generated by config.status. */
8342 if test x"$ac_file" = x-; then
8343 echo "/* Generated by configure. */" >$tmp/config.h
8344 else
8345 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8347 cat $tmp/in >>$tmp/config.h
8348 rm -f $tmp/in
8349 if test x"$ac_file" != x-; then
8350 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8351 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8352 echo "$as_me: $ac_file is unchanged" >&6;}
8353 else
8354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8356 X"$ac_file" : 'X\(//\)[^/]' \| \
8357 X"$ac_file" : 'X\(//\)$' \| \
8358 X"$ac_file" : 'X\(/\)' \| \
8359 . : '\(.\)' 2>/dev/null ||
8360 echo X"$ac_file" |
8361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8363 /^X\(\/\/\)$/{ s//\1/; q; }
8364 /^X\(\/\).*/{ s//\1/; q; }
8365 s/.*/./; q'`
8366 { if $as_mkdir_p; then
8367 mkdir -p "$ac_dir"
8368 else
8369 as_dir="$ac_dir"
8370 as_dirs=
8371 while test ! -d "$as_dir"; do
8372 as_dirs="$as_dir $as_dirs"
8373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8375 X"$as_dir" : 'X\(//\)[^/]' \| \
8376 X"$as_dir" : 'X\(//\)$' \| \
8377 X"$as_dir" : 'X\(/\)' \| \
8378 . : '\(.\)' 2>/dev/null ||
8379 echo X"$as_dir" |
8380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8382 /^X\(\/\/\)$/{ s//\1/; q; }
8383 /^X\(\/\).*/{ s//\1/; q; }
8384 s/.*/./; q'`
8385 done
8386 test ! -n "$as_dirs" || mkdir $as_dirs
8387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8389 { (exit 1); exit 1; }; }; }
8391 rm -f $ac_file
8392 mv $tmp/config.h $ac_file
8394 else
8395 cat $tmp/config.h
8396 rm -f $tmp/config.h
8398 done
8399 _ACEOF
8400 cat >>$CONFIG_STATUS <<\_ACEOF
8403 # CONFIG_COMMANDS section.
8405 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8406 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8407 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8408 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8409 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8410 X"$ac_dest" : 'X\(//\)[^/]' \| \
8411 X"$ac_dest" : 'X\(//\)$' \| \
8412 X"$ac_dest" : 'X\(/\)' \| \
8413 . : '\(.\)' 2>/dev/null ||
8414 echo X"$ac_dest" |
8415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8417 /^X\(\/\/\)$/{ s//\1/; q; }
8418 /^X\(\/\).*/{ s//\1/; q; }
8419 s/.*/./; q'`
8420 { if $as_mkdir_p; then
8421 mkdir -p "$ac_dir"
8422 else
8423 as_dir="$ac_dir"
8424 as_dirs=
8425 while test ! -d "$as_dir"; do
8426 as_dirs="$as_dir $as_dirs"
8427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8429 X"$as_dir" : 'X\(//\)[^/]' \| \
8430 X"$as_dir" : 'X\(//\)$' \| \
8431 X"$as_dir" : 'X\(/\)' \| \
8432 . : '\(.\)' 2>/dev/null ||
8433 echo X"$as_dir" |
8434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8436 /^X\(\/\/\)$/{ s//\1/; q; }
8437 /^X\(\/\).*/{ s//\1/; q; }
8438 s/.*/./; q'`
8439 done
8440 test ! -n "$as_dirs" || mkdir $as_dirs
8441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8443 { (exit 1); exit 1; }; }; }
8445 ac_builddir=.
8447 if test "$ac_dir" != .; then
8448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8449 # A "../" for each directory in $ac_dir_suffix.
8450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8451 else
8452 ac_dir_suffix= ac_top_builddir=
8455 case $srcdir in
8456 .) # No --srcdir option. We are building in place.
8457 ac_srcdir=.
8458 if test -z "$ac_top_builddir"; then
8459 ac_top_srcdir=.
8460 else
8461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8462 fi ;;
8463 [\\/]* | ?:[\\/]* ) # Absolute path.
8464 ac_srcdir=$srcdir$ac_dir_suffix;
8465 ac_top_srcdir=$srcdir ;;
8466 *) # Relative path.
8467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8469 esac
8471 # Do not use `cd foo && pwd` to compute absolute paths, because
8472 # the directories may not exist.
8473 case `pwd` in
8474 .) ac_abs_builddir="$ac_dir";;
8476 case "$ac_dir" in
8477 .) ac_abs_builddir=`pwd`;;
8478 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8479 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8480 esac;;
8481 esac
8482 case $ac_abs_builddir in
8483 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8485 case ${ac_top_builddir}. in
8486 .) ac_abs_top_builddir=$ac_abs_builddir;;
8487 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8488 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8489 esac;;
8490 esac
8491 case $ac_abs_builddir in
8492 .) ac_abs_srcdir=$ac_srcdir;;
8494 case $ac_srcdir in
8495 .) ac_abs_srcdir=$ac_abs_builddir;;
8496 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8497 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8498 esac;;
8499 esac
8500 case $ac_abs_builddir in
8501 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8503 case $ac_top_srcdir in
8504 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8505 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8506 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8507 esac;;
8508 esac
8511 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8512 echo "$as_me: executing $ac_dest commands" >&6;}
8513 case $ac_dest in
8514 default-1 )
8515 for ac_file in $CONFIG_FILES; do
8516 # Support "outfile[:infile[:infile...]]"
8517 case "$ac_file" in
8518 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8519 esac
8520 # PO directories have a Makefile.in generated from Makefile.in.in.
8521 case "$ac_file" in */Makefile.in)
8522 # Adjust a relative srcdir.
8523 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8524 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8525 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8526 # In autoconf-2.13 it is called $ac_given_srcdir.
8527 # In autoconf-2.50 it is called $srcdir.
8528 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8529 case "$ac_given_srcdir" in
8530 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8531 /*) top_srcdir="$ac_given_srcdir" ;;
8532 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8533 esac
8534 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8535 rm -f "$ac_dir/POTFILES"
8536 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8537 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8538 POMAKEFILEDEPS="POTFILES.in"
8539 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8540 # on $ac_dir but don't depend on user-specified configuration
8541 # parameters.
8542 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8543 # The LINGUAS file contains the set of available languages.
8544 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8545 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8547 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8548 # Hide the ALL_LINGUAS assigment from automake.
8549 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8550 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8551 else
8552 # The set of available languages was given in configure.in.
8553 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8555 case "$ac_given_srcdir" in
8556 .) srcdirpre= ;;
8557 *) srcdirpre='$(srcdir)/' ;;
8558 esac
8559 POFILES=
8560 GMOFILES=
8561 UPDATEPOFILES=
8562 DUMMYPOFILES=
8563 for lang in $ALL_LINGUAS; do
8564 POFILES="$POFILES $srcdirpre$lang.po"
8565 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8566 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8567 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8568 done
8569 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8570 # environment variable.
8571 INST_LINGUAS=
8572 if test -n "$ALL_LINGUAS"; then
8573 for presentlang in $ALL_LINGUAS; do
8574 useit=no
8575 if test "%UNSET%" != "$LINGUAS"; then
8576 desiredlanguages="$LINGUAS"
8577 else
8578 desiredlanguages="$ALL_LINGUAS"
8580 for desiredlang in $desiredlanguages; do
8581 # Use the presentlang catalog if desiredlang is
8582 # a. equal to presentlang, or
8583 # b. a variant of presentlang (because in this case,
8584 # presentlang can be used as a fallback for messages
8585 # which are not translated in the desiredlang catalog).
8586 case "$desiredlang" in
8587 "$presentlang"*) useit=yes;;
8588 esac
8589 done
8590 if test $useit = yes; then
8591 INST_LINGUAS="$INST_LINGUAS $presentlang"
8593 done
8595 CATALOGS=
8596 if test -n "$INST_LINGUAS"; then
8597 for lang in $INST_LINGUAS; do
8598 CATALOGS="$CATALOGS $lang.gmo"
8599 done
8601 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8602 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"
8603 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8604 if test -f "$f"; then
8605 case "$f" in
8606 *.orig | *.bak | *~) ;;
8607 *) cat "$f" >> "$ac_dir/Makefile" ;;
8608 esac
8610 done
8613 esac
8614 done ;;
8615 esac
8616 done
8617 _ACEOF
8619 cat >>$CONFIG_STATUS <<\_ACEOF
8621 { (exit 0); exit 0; }
8622 _ACEOF
8623 chmod +x $CONFIG_STATUS
8624 ac_clean_files=$ac_clean_files_save
8627 # configure is writing to config.log, and then calls config.status.
8628 # config.status does its own redirection, appending to config.log.
8629 # Unfortunately, on DOS this fails, as config.log is still kept open
8630 # by configure, so config.status won't be able to write to it; its
8631 # output is simply discarded. So we exec the FD to /dev/null,
8632 # effectively closing config.log, so it can be properly (re)opened and
8633 # appended to by config.status. When coming back to configure, we
8634 # need to make the FD available again.
8635 if test "$no_create" != yes; then
8636 ac_cs_success=:
8637 ac_config_status_args=
8638 test "$silent" = yes &&
8639 ac_config_status_args="$ac_config_status_args --quiet"
8640 exec 5>/dev/null
8641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8642 exec 5>>config.log
8643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8644 # would make configure fail if this is the last instruction.
8645 $ac_cs_success || { (exit 1); exit 1; }