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