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