2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
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"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
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`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
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}
266 # Identity of this package.
273 ac_unique_file="xboard.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LEX LEXLIB LEX_OUTPUT_ROOT RSH NROFF NROFFFLAGS AWKPATH PERLPATH XAW_LIBS EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB PRE_XMULIB POST_XMULIB CONF_CFLAGS CONF_LDFLAGS ZIPPY_O ZIPPY_H PRODUCT VERSION PATCHLEVEL LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
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'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
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 ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
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" ;;
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'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
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 ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
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 ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
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'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
608 # Obsolete; use --with-x.
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 ;;
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 ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
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
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
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.
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
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
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 ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
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; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
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}
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
774 # Report the --help message.
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.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
787 Defaults for the options are specified in brackets.
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 \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
814 For better control, use the options below.
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]
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --disable-nls do not use Native Language Support
851 --disable-rpath do not hardcode runtime library paths
852 --enable-xpm libXpm will be used if found (default)
853 --disable-xpm libXpm will not be used
854 --enable-ptys force use of pseudo-ttys with child processes
855 --disable-ptys force use of pipes with child processes
856 --enable-zippy support interfacing a chess program to ICS (default)
857 --disable-zippy do not support interfacing a chess program to ICS
858 --enable-sigint sending SIGINT (^C) wakes up GNU Chess (default)
859 --disable-sigint typing a command wakes up GNU Chess
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-Xaw3d use Xaw3d instead of Xaw
865 --with-x use the X Window System
866 --with-gnu-ld assume the C compiler uses GNU ld default=no
867 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
868 --without-libiconv-prefix don't search for libiconv in includedir and libdir
869 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
870 --without-libintl-prefix don't search for libintl in includedir and libdir
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 ac_dir_suffix= ac_top_builddir=
903 .) # No --srcdir option. We are building in place.
905 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
920 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
921 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
922 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
925 # Check for guested configure; otherwise get Cygnus style configure.
926 if test -f $ac_srcdir/configure.gnu; then
928 $SHELL $ac_srcdir/configure.gnu --help=recursive
929 elif test -f $ac_srcdir/configure; then
931 $SHELL $ac_srcdir/configure --help=recursive
932 elif test -f $ac_srcdir/configure.ac ||
933 test -f $ac_srcdir/configure.in; then
937 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 test -n "$ac_init_help" && exit 0
944 if $ac_init_version; then
947 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
948 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
959 It was created by $as_me, which was
960 generated by GNU Autoconf 2.57. Invocation command line was
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994 test -z "$as_dir" && as_dir=.
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1019 ac_must_keep_next=false
1025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1029 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1033 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036 if test $ac_must_keep_next = true; then
1037 ac_must_keep_next=false # Got value, back to normal.
1040 *=* | --config-cache | -C | -disable-* | --disable-* \
1041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043 | -with-* | --with-* | -without-* | --without-* | --x)
1044 case "$ac_configure_args0 " in
1045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1048 -* ) ac_must_keep_next=true ;;
1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052 # Get rid of the leading space.
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log. We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067 # Save into config.log some information that might help in debugging.
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1077 # The following way of writing the cache mishandles newlines in values,
1080 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1083 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1100 for ac_var in $ac_subst_vars
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1107 if test -n "$ac_subst_files"; then
1114 for ac_var in $ac_subst_files
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1122 if test -s confdefs.h; then
1129 sed "/^$/d" confdefs.h | sort
1132 test "$ac_signal" != 0 &&
1133 echo "$as_me: caught signal $ac_signal"
1134 echo "$as_me: exit $exit_status"
1136 rm -f core core.* *.core &&
1137 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1140 for ac_signal in 1 2 13 15; do
1141 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1150 # Predefined preprocessor variables.
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180 if test "x$prefix" != xNONE; then
1181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1186 for ac_site_file in $CONFIG_SITE; do
1187 if test -r "$ac_site_file"; then
1188 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190 sed 's/^/| /' "$ac_site_file" >&5
1195 if test -r "$cache_file"; then
1196 # Some versions of bash will fail to source /dev/null (special
1197 # files actually), so we avoid doing that.
1198 if test -f "$cache_file"; then
1199 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1202 [\\/]* | ?:[\\/]* ) . $cache_file;;
1203 *) . ./$cache_file;;
1207 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1212 # Check that the precious variables saved in the cache have kept the same
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218 eval ac_new_set=\$ac_env_${ac_var}_set
1219 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220 eval ac_new_val="\$ac_env_${ac_var}_value"
1221 case $ac_old_set,$ac_new_set in
1223 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225 ac_cache_corrupted=: ;;
1227 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229 ac_cache_corrupted=: ;;
1232 if test "x$ac_old_val" != "x$ac_new_val"; then
1233 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1236 echo "$as_me: former value: $ac_old_val" >&2;}
1237 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1238 echo "$as_me: current value: $ac_new_val" >&2;}
1239 ac_cache_corrupted=:
1242 # Pass precious variables to config.status.
1243 if test "$ac_new_set" = set; then
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 *) ac_arg=$ac_var=$ac_new_val ;;
1249 case " $ac_configure_args " in
1250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1251 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1255 if $ac_cache_corrupted; then
1256 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260 { (exit 1); exit 1; }; }
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287 ac_config_headers="$ac_config_headers config.h"
1294 if test -z "$CFLAGS" ; then
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302 if test -n "$ac_tool_prefix"; then
1303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1305 echo "$as_me:$LINENO: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 if test -n "$CC"; then
1311 ac_cv_prog_CC="$CC" # Let the user override the test.
1313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1317 test -z "$as_dir" && as_dir=.
1318 for ac_exec_ext in '' $ac_executable_extensions; do
1319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330 if test -n "$CC"; then
1331 echo "$as_me:$LINENO: result: $CC" >&5
1332 echo "${ECHO_T}$CC" >&6
1334 echo "$as_me:$LINENO: result: no" >&5
1335 echo "${ECHO_T}no" >&6
1339 if test -z "$ac_cv_prog_CC"; then
1341 # Extract the first word of "gcc", so it can be a program name with args.
1342 set dummy gcc; ac_word=$2
1343 echo "$as_me:$LINENO: checking for $ac_word" >&5
1344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 if test -n "$ac_ct_CC"; then
1349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1355 test -z "$as_dir" && as_dir=.
1356 for ac_exec_ext in '' $ac_executable_extensions; do
1357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1358 ac_cv_prog_ac_ct_CC="gcc"
1359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1368 if test -n "$ac_ct_CC"; then
1369 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1370 echo "${ECHO_T}$ac_ct_CC" >&6
1372 echo "$as_me:$LINENO: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1381 if test -z "$CC"; then
1382 if test -n "$ac_tool_prefix"; then
1383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}cc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC="$CC" # Let the user override the test.
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 test -z "$as_dir" && as_dir=.
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400 ac_cv_prog_CC="${ac_tool_prefix}cc"
1401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410 if test -n "$CC"; then
1411 echo "$as_me:$LINENO: result: $CC" >&5
1412 echo "${ECHO_T}$CC" >&6
1414 echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1419 if test -z "$ac_cv_prog_CC"; then
1421 # Extract the first word of "cc", so it can be a program name with args.
1422 set dummy cc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 if test -n "$ac_ct_CC"; then
1429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_prog_ac_ct_CC="cc"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1448 if test -n "$ac_ct_CC"; then
1449 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1450 echo "${ECHO_T}$ac_ct_CC" >&6
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1462 if test -z "$CC"; then
1463 # Extract the first word of "cc", so it can be a program name with args.
1464 set dummy cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1482 ac_prog_rejected=yes
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 if test $ac_prog_rejected = yes; then
1493 # We found a bogon in the path, so make sure we never use it.
1494 set dummy $ac_cv_prog_CC
1496 if test $# != 0; then
1497 # We chose a different compiler from the bogus one.
1498 # However, it has the same basename, so the bogon will be chosen
1499 # first if we set CC to just the basename; use the full file name.
1501 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1555 test -n "$CC" && break
1558 if test -z "$CC"; then
1562 # Extract the first word of "$ac_prog", so it can be a program name with args.
1563 set dummy $ac_prog; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="$ac_prog"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1597 test -n "$ac_ct_CC" && break
1606 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1607 See \`config.log' for more details." >&5
1608 echo "$as_me: error: no acceptable C compiler found in \$PATH
1609 See \`config.log' for more details." >&2;}
1610 { (exit 1); exit 1; }; }
1612 # Provide some information about the compiler.
1613 echo "$as_me:$LINENO:" \
1614 "checking for C compiler version" >&5
1615 ac_compiler=`set X $ac_compile; echo $2`
1616 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1617 (eval $ac_compiler --version </dev/null >&5) 2>&5
1619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1620 (exit $ac_status); }
1621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1622 (eval $ac_compiler -v </dev/null >&5) 2>&5
1624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 (exit $ac_status); }
1626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1627 (eval $ac_compiler -V </dev/null >&5) 2>&5
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }
1632 cat >conftest.$ac_ext <<_ACEOF
1633 #line $LINENO "configure"
1636 cat confdefs.h >>conftest.$ac_ext
1637 cat >>conftest.$ac_ext <<_ACEOF
1638 /* end confdefs.h. */
1648 ac_clean_files_save=$ac_clean_files
1649 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1650 # Try to create an executable without -o first, disregard a.out.
1651 # It will help us diagnose broken compilers, and finding out an intuition
1653 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1654 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1655 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1656 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1657 (eval $ac_link_default) 2>&5
1659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1660 (exit $ac_status); }; then
1661 # Find the output, starting from the most likely. This scheme is
1662 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1665 # Be careful to initialize this variable, since it used to be cached.
1666 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1668 # b.out is created by i960 compilers.
1669 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1671 test -f "$ac_file" || continue
1673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1676 # This is the source file.
1679 # We found the default executable, but exeext='' is most
1683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1684 # FIXME: I believe we export ac_cv_exeext for Libtool,
1685 # but it would be cool to find out if it's true. Does anybody
1686 # maintain Libtool? --akim.
1694 echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1698 See \`config.log' for more details." >&5
1699 echo "$as_me: error: C compiler cannot create executables
1700 See \`config.log' for more details." >&2;}
1701 { (exit 77); exit 77; }; }
1704 ac_exeext=$ac_cv_exeext
1705 echo "$as_me:$LINENO: result: $ac_file" >&5
1706 echo "${ECHO_T}$ac_file" >&6
1708 # Check the compiler produces executables we can run. If not, either
1709 # the compiler is broken, or we cross compile.
1710 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1711 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1712 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1713 # If not cross compiling, check that we can run a simple program.
1714 if test "$cross_compiling" != yes; then
1715 if { ac_try='./$ac_file'
1716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }; }; then
1723 if test "$cross_compiling" = maybe; then
1726 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1727 If you meant to cross compile, use \`--host'.
1728 See \`config.log' for more details." >&5
1729 echo "$as_me: error: cannot run C compiled programs.
1730 If you meant to cross compile, use \`--host'.
1731 See \`config.log' for more details." >&2;}
1732 { (exit 1); exit 1; }; }
1736 echo "$as_me:$LINENO: result: yes" >&5
1737 echo "${ECHO_T}yes" >&6
1739 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1740 ac_clean_files=$ac_clean_files_save
1741 # Check the compiler produces executables we can run. If not, either
1742 # the compiler is broken, or we cross compile.
1743 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1744 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1745 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1746 echo "${ECHO_T}$cross_compiling" >&6
1748 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1749 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1751 (eval $ac_link) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }; then
1755 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1756 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1757 # work properly (i.e., refer to `conftest.exe'), while it won't with
1759 for ac_file in conftest.exe conftest conftest.*; do
1760 test -f "$ac_file" || continue
1762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1763 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1770 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1771 See \`config.log' for more details." >&5
1772 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1773 See \`config.log' for more details." >&2;}
1774 { (exit 1); exit 1; }; }
1777 rm -f conftest$ac_cv_exeext
1778 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1779 echo "${ECHO_T}$ac_cv_exeext" >&6
1781 rm -f conftest.$ac_ext
1782 EXEEXT=$ac_cv_exeext
1784 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1785 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1786 if test "${ac_cv_objext+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 cat >conftest.$ac_ext <<_ACEOF
1790 #line $LINENO "configure"
1793 cat confdefs.h >>conftest.$ac_ext
1794 cat >>conftest.$ac_ext <<_ACEOF
1795 /* end confdefs.h. */
1805 rm -f conftest.o conftest.obj
1806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1807 (eval $ac_compile) 2>&5
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; then
1811 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1814 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1819 echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1823 See \`config.log' for more details." >&5
1824 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1825 See \`config.log' for more details." >&2;}
1826 { (exit 1); exit 1; }; }
1829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1831 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1832 echo "${ECHO_T}$ac_cv_objext" >&6
1833 OBJEXT=$ac_cv_objext
1835 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1836 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1837 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 cat >conftest.$ac_ext <<_ACEOF
1841 #line $LINENO "configure"
1844 cat confdefs.h >>conftest.$ac_ext
1845 cat >>conftest.$ac_ext <<_ACEOF
1846 /* end confdefs.h. */
1859 rm -f conftest.$ac_objext
1860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1861 (eval $ac_compile) 2>&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); } &&
1865 { ac_try='test -s conftest.$ac_objext'
1866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }; }; then
1873 echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 rm -f conftest.$ac_objext conftest.$ac_ext
1879 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1882 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1883 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1884 GCC=`test $ac_compiler_gnu = yes && echo yes`
1885 ac_test_CFLAGS=${CFLAGS+set}
1886 ac_save_CFLAGS=$CFLAGS
1888 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1889 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1890 if test "${ac_cv_prog_cc_g+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 cat >conftest.$ac_ext <<_ACEOF
1894 #line $LINENO "configure"
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h. */
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -s conftest.$ac_objext'
1916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }; }; then
1923 echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1930 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1931 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1932 if test "$ac_test_CFLAGS" = set; then
1933 CFLAGS=$ac_save_CFLAGS
1934 elif test $ac_cv_prog_cc_g = yes; then
1935 if test "$GCC" = yes; then
1941 if test "$GCC" = yes; then
1947 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1948 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1949 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 ac_cv_prog_cc_stdc=no
1954 cat >conftest.$ac_ext <<_ACEOF
1955 #line $LINENO "configure"
1958 cat confdefs.h >>conftest.$ac_ext
1959 cat >>conftest.$ac_ext <<_ACEOF
1960 /* end confdefs.h. */
1963 #include <sys/types.h>
1964 #include <sys/stat.h>
1965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1966 struct buf { int x; };
1967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1968 static char *e (p, i)
1974 static char *f (char * (*g) (char **, int), char **p, ...)
1979 s = g (p, va_arg (v,int));
1983 int test (int i, double x);
1984 struct s1 {int (*f) (int a);};
1985 struct s2 {int (*f) (double a);};
1986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1997 # Don't try gcc -ansi; that turns off useful extensions and
1998 # breaks some systems' header files.
1999 # AIX -qlanglvl=ansi
2000 # Ultrix and OSF/1 -std1
2001 # HP-UX 10.20 and later -Ae
2002 # HP-UX older versions -Aa -D_HPUX_SOURCE
2003 # SVR4 -Xc -D__EXTENSIONS__
2004 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2006 CC="$ac_save_CC $ac_arg"
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); } &&
2013 { ac_try='test -s conftest.$ac_objext'
2014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; }; then
2019 ac_cv_prog_cc_stdc=$ac_arg
2022 echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2026 rm -f conftest.$ac_objext
2028 rm -f conftest.$ac_ext conftest.$ac_objext
2033 case "x$ac_cv_prog_cc_stdc" in
2035 echo "$as_me:$LINENO: result: none needed" >&5
2036 echo "${ECHO_T}none needed" >&6 ;;
2038 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2039 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2040 CC="$CC $ac_cv_prog_cc_stdc" ;;
2043 # Some people use a C++ compiler to compile C. Since we use `exit',
2044 # in C++ we need to declare it. In case someone uses the same compiler
2045 # for both compiling C and C++ we need to have the C++ compiler decide
2046 # the declaration of exit, since it's the most demanding environment.
2047 cat >conftest.$ac_ext <<_ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 for ac_declaration in \
2066 '#include <stdlib.h>' \
2067 'extern "C" void std::exit (int) throw (); using std::exit;' \
2068 'extern "C" void std::exit (int); using std::exit;' \
2069 'extern "C" void exit (int) throw ();' \
2070 'extern "C" void exit (int);' \
2073 cat >conftest.$ac_ext <<_ACEOF
2074 #line $LINENO "configure"
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2109 rm -f conftest.$ac_objext conftest.$ac_ext
2110 cat >conftest.$ac_ext <<_ACEOF
2111 #line $LINENO "configure"
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h. */
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128 (eval $ac_compile) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); } &&
2132 { ac_try='test -s conftest.$ac_objext'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2140 echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2144 rm -f conftest.$ac_objext conftest.$ac_ext
2147 if test -n "$ac_declaration"; then
2148 echo '#ifdef __cplusplus' >>confdefs.h
2149 echo $ac_declaration >>confdefs.h
2150 echo '#endif' >>confdefs.h
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2158 rm -f conftest.$ac_objext conftest.$ac_ext
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2170 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2171 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2172 # On Suns, sometimes $CPP names a directory.
2173 if test -n "$CPP" && test -d "$CPP"; then
2176 if test -z "$CPP"; then
2177 if test "${ac_cv_prog_CPP+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 # Double quotes because CPP needs to be expanded
2181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2184 for ac_c_preproc_warn_flag in '' yes
2186 # Use a header file that comes with gcc, so configuring glibc
2187 # with a fresh cross-compiler works.
2188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2189 # <limits.h> exists even on freestanding compilers.
2190 # On the NeXT, cc -E runs the code through the compiler's parser,
2191 # not just through cpp. "Syntax error" is here to catch this case.
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #line $LINENO "configure"
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2200 # include <limits.h>
2202 # include <assert.h>
2206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2209 grep -v '^ *+' conftest.er1 >conftest.err
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } >/dev/null; then
2214 if test -s conftest.err; then
2215 ac_cpp_err=$ac_c_preproc_warn_flag
2222 if test -z "$ac_cpp_err"; then
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2228 # Broken: fails on valid input.
2231 rm -f conftest.err conftest.$ac_ext
2233 # OK, works on sane cases. Now check whether non-existent headers
2234 # can be detected and how.
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h. */
2242 #include <ac_nonexistent.h>
2244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2247 grep -v '^ *+' conftest.er1 >conftest.err
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } >/dev/null; then
2252 if test -s conftest.err; then
2253 ac_cpp_err=$ac_c_preproc_warn_flag
2260 if test -z "$ac_cpp_err"; then
2261 # Broken: success on invalid input.
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2267 # Passes both tests.
2271 rm -f conftest.err conftest.$ac_ext
2274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2275 rm -f conftest.err conftest.$ac_ext
2276 if $ac_preproc_ok; then
2288 echo "$as_me:$LINENO: result: $CPP" >&5
2289 echo "${ECHO_T}$CPP" >&6
2291 for ac_c_preproc_warn_flag in '' yes
2293 # Use a header file that comes with gcc, so configuring glibc
2294 # with a fresh cross-compiler works.
2295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2296 # <limits.h> exists even on freestanding compilers.
2297 # On the NeXT, cc -E runs the code through the compiler's parser,
2298 # not just through cpp. "Syntax error" is here to catch this case.
2299 cat >conftest.$ac_ext <<_ACEOF
2300 #line $LINENO "configure"
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2307 # include <limits.h>
2309 # include <assert.h>
2313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316 grep -v '^ *+' conftest.er1 >conftest.err
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } >/dev/null; then
2321 if test -s conftest.err; then
2322 ac_cpp_err=$ac_c_preproc_warn_flag
2329 if test -z "$ac_cpp_err"; then
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 # Broken: fails on valid input.
2338 rm -f conftest.err conftest.$ac_ext
2340 # OK, works on sane cases. Now check whether non-existent headers
2341 # can be detected and how.
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2349 #include <ac_nonexistent.h>
2351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1 >conftest.err
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } >/dev/null; then
2359 if test -s conftest.err; then
2360 ac_cpp_err=$ac_c_preproc_warn_flag
2367 if test -z "$ac_cpp_err"; then
2368 # Broken: success on invalid input.
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 # Passes both tests.
2378 rm -f conftest.err conftest.$ac_ext
2381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2382 rm -f conftest.err conftest.$ac_ext
2383 if $ac_preproc_ok; then
2386 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2389 See \`config.log' for more details." >&2;}
2390 { (exit 1); exit 1; }; }
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2401 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2402 if test "${ac_cv_search_strerror+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 ac_func_search_save_LIBS=$LIBS
2406 ac_cv_search_strerror=no
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2415 /* Override any gcc2 internal prototype to avoid an error. */
2419 /* We use char because int might match the return type of a gcc2
2420 builtin and then its argument prototype would still apply. */
2430 rm -f conftest.$ac_objext conftest$ac_exeext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2432 (eval $ac_link) 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -s conftest$ac_exeext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 ac_cv_search_strerror="none required"
2444 echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2449 if test "$ac_cv_search_strerror" = no; then
2450 for ac_lib in cposix; do
2451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2460 /* Override any gcc2 internal prototype to avoid an error. */
2464 /* We use char because int might match the return type of a gcc2
2465 builtin and then its argument prototype would still apply. */
2475 rm -f conftest.$ac_objext conftest$ac_exeext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477 (eval $ac_link) 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -s conftest$ac_exeext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 ac_cv_search_strerror="-l$ac_lib"
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2497 LIBS=$ac_func_search_save_LIBS
2499 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2500 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2501 if test "$ac_cv_search_strerror" != no; then
2502 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2508 if test -f $ac_dir/install-sh; then
2510 ac_install_sh="$ac_aux_dir/install-sh -c"
2512 elif test -f $ac_dir/install.sh; then
2514 ac_install_sh="$ac_aux_dir/install.sh -c"
2516 elif test -f $ac_dir/shtool; then
2518 ac_install_sh="$ac_aux_dir/shtool install -c"
2522 if test -z "$ac_aux_dir"; then
2523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2524 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2525 { (exit 1); exit 1; }; }
2527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2531 # Find a good install program. We prefer a C program (faster),
2532 # so one script is as good as another. But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # ./install, which can be erroneously created by make from ./install.sh.
2543 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2544 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2545 if test -z "$INSTALL"; then
2546 if test "${ac_cv_path_install+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 # Account for people who put trailing slashes in PATH elements.
2556 ./ | .// | /cC/* | \
2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2560 # OSF1 and SCO ODT 3.0 have their own names for install.
2561 # Don't use installbsd from OSF since it installs stuff as root
2563 for ac_prog in ginstall scoinst install; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2566 if test $ac_prog = install &&
2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568 # AIX install. It has an incompatible calling convention.
2570 elif test $ac_prog = install &&
2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # program-specific install script used by HP pwplus--don't use.
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2587 if test "${ac_cv_path_install+set}" = set; then
2588 INSTALL=$ac_cv_path_install
2590 # As a last resort, use the slow shell script. We don't cache a
2591 # path for INSTALL within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the path is relative.
2594 INSTALL=$ac_install_sh
2597 echo "$as_me:$LINENO: result: $INSTALL" >&5
2598 echo "${ECHO_T}$INSTALL" >&6
2600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2601 # It thinks the first close brace ends the variable substitution.
2602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608 for ac_prog in lex flex
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_LEX+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$LEX"; then
2618 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_LEX="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 if test -n "$LEX"; then
2638 echo "$as_me:$LINENO: result: $LEX" >&5
2639 echo "${ECHO_T}$LEX" >&6
2641 echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2645 test -n "$LEX" && break
2647 test -n "$LEX" || LEX="lex_not_found"
2649 if test "$LEX" != lex_not_found ; then
2650 for ac_prog in flex lex
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_LEX+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 if test -n "$LEX"; then
2660 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_LEX="$ac_prog"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 if test -n "$LEX"; then
2680 echo "$as_me:$LINENO: result: $LEX" >&5
2681 echo "${ECHO_T}$LEX" >&6
2683 echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2687 test -n "$LEX" && break
2689 test -n "$LEX" || LEX=":"
2691 if test -z "$LEXLIB"
2693 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2694 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2695 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 ac_check_lib_save_LIBS=$LIBS
2700 cat >conftest.$ac_ext <<_ACEOF
2701 #line $LINENO "configure"
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2708 /* Override any gcc2 internal prototype to avoid an error. */
2712 /* We use char because int might match the return type of a gcc2
2713 builtin and then its argument prototype would still apply. */
2723 rm -f conftest.$ac_objext conftest$ac_exeext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2725 (eval $ac_link) 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -s conftest$ac_exeext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_lib_fl_yywrap=yes
2737 echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2740 ac_cv_lib_fl_yywrap=no
2742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2743 LIBS=$ac_check_lib_save_LIBS
2745 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2746 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2747 if test $ac_cv_lib_fl_yywrap = yes; then
2750 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2751 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2752 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_check_lib_save_LIBS=$LIBS
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2765 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2780 rm -f conftest.$ac_objext conftest$ac_exeext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2782 (eval $ac_link) 2>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -s conftest$ac_exeext'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2792 ac_cv_lib_l_yywrap=yes
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 ac_cv_lib_l_yywrap=no
2799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2800 LIBS=$ac_check_lib_save_LIBS
2802 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2803 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2804 if test $ac_cv_lib_l_yywrap = yes; then
2812 if test "x$LEX" != "x:"; then
2813 echo "$as_me:$LINENO: checking lex output file root" >&5
2814 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2815 if test "${ac_cv_prog_lex_root+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 # The minimal lex program is just a single line: %%. But some broken lexes
2819 # (Solaris, I think it was) want two %% lines, so accommodate them.
2820 cat >conftest.l <<_ACEOF
2824 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2825 (eval $LEX conftest.l) 2>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829 if test -f lex.yy.c; then
2830 ac_cv_prog_lex_root=lex.yy
2831 elif test -f lexyy.c; then
2832 ac_cv_prog_lex_root=lexyy
2834 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2835 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2836 { (exit 1); exit 1; }; }
2839 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2840 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2842 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2844 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2845 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2846 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 # POSIX says lex can declare yytext either as a pointer or an array; the
2850 # default is implementation-dependent. Figure out which it is, since
2851 # not all implementations provide the %pointer and %array declarations.
2852 ac_cv_prog_lex_yytext_pointer=no
2853 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2855 LIBS="$LIBS $LEXLIB"
2856 cat >conftest.$ac_ext <<_ACEOF
2857 `cat $LEX_OUTPUT_ROOT.c`
2859 rm -f conftest.$ac_objext conftest$ac_exeext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861 (eval $ac_link) 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest$ac_exeext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 ac_cv_prog_lex_yytext_pointer=yes
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2879 rm -f "${LEX_OUTPUT_ROOT}.c"
2882 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2883 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2884 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2886 cat >>confdefs.h <<\_ACEOF
2887 #define YYTEXT_POINTER 1
2894 for ac_prog in remsh rsh
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_RSH+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$RSH"; then
2904 ac_cv_prog_RSH="$RSH" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_RSH="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 if test -n "$RSH"; then
2924 echo "$as_me:$LINENO: result: $RSH" >&5
2925 echo "${ECHO_T}$RSH" >&6
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 test -n "$RSH" && break
2933 test -n "$RSH" || RSH="rsh"
2935 cat >>confdefs.h <<_ACEOF
2936 #define REMOTE_SHELL "$RSH"
2939 # Extract the first word of "nroff", so it can be a program name with args.
2940 set dummy nroff; ac_word=$2
2941 echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943 if test "${ac_cv_prog_NROFF+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$NROFF"; then
2947 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_NROFF="nroff -man"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
2966 NROFF=$ac_cv_prog_NROFF
2967 if test -n "$NROFF"; then
2968 echo "$as_me:$LINENO: result: $NROFF" >&5
2969 echo "${ECHO_T}$NROFF" >&6
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2976 for ac_prog in awk mawk gawk nawk
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_path_AWKPATH+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 AWKPATH=$ac_cv_path_AWKPATH
3009 if test -n "$AWKPATH"; then
3010 echo "$as_me:$LINENO: result: $AWKPATH" >&5
3011 echo "${ECHO_T}$AWKPATH" >&6
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3017 test -n "$AWKPATH" && break
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_path_PERLPATH+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 PERLPATH=$ac_cv_path_PERLPATH
3053 if test -n "$PERLPATH"; then
3054 echo "$as_me:$LINENO: result: $PERLPATH" >&5
3055 echo "${ECHO_T}$PERLPATH" >&6
3057 echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3061 test -n "$PERLPATH" && break
3066 # Check whether --with-Xaw3d or --without-Xaw3d was given.
3067 if test "${with_Xaw3d+set}" = set; then
3068 withval="$with_Xaw3d"
3069 cat >>confdefs.h <<\_ACEOF
3080 echo "$as_me:$LINENO: checking for egrep" >&5
3081 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3082 if test "${ac_cv_prog_egrep+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3086 then ac_cv_prog_egrep='grep -E'
3087 else ac_cv_prog_egrep='egrep'
3090 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3091 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3092 EGREP=$ac_cv_prog_egrep
3095 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3097 if test "${ac_cv_header_stdc+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122 (eval $ac_compile) 2>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -s conftest.$ac_objext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 ac_cv_header_stdc=yes
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 ac_cv_header_stdc=no
3139 rm -f conftest.$ac_objext conftest.$ac_ext
3141 if test $ac_cv_header_stdc = yes; then
3142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3143 cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 $EGREP "memchr" >/dev/null 2>&1; then
3157 ac_cv_header_stdc=no
3163 if test $ac_cv_header_stdc = yes; then
3164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3165 cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "free" >/dev/null 2>&1; then
3179 ac_cv_header_stdc=no
3185 if test $ac_cv_header_stdc = yes; then
3186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3187 if test "$cross_compiling" = yes; then
3190 cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3198 #if ((' ' & 0x0FF) == 0x020)
3199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3202 # define ISLOWER(c) \
3203 (('a' <= (c) && (c) <= 'i') \
3204 || ('j' <= (c) && (c) <= 'r') \
3205 || ('s' <= (c) && (c) <= 'z'))
3206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3214 for (i = 0; i < 256; i++)
3215 if (XOR (islower (i), ISLOWER (i))
3216 || toupper (i) != TOUPPER (i))
3221 rm -f conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223 (eval $ac_link) 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3234 echo "$as_me: program exited with status $ac_status" >&5
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3239 ac_cv_header_stdc=no
3241 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3245 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3246 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3247 if test $ac_cv_header_stdc = yes; then
3249 cat >>confdefs.h <<\_ACEOF
3250 #define STDC_HEADERS 1
3255 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3256 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3257 if test "${ac_cv_header_time+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <sys/types.h>
3268 #include <sys/time.h>
3274 if ((struct tm *) 0)
3280 rm -f conftest.$ac_objext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_cv_header_time=yes
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 ac_cv_header_time=no
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3301 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3302 echo "${ECHO_T}$ac_cv_header_time" >&6
3303 if test $ac_cv_header_time = yes; then
3305 cat >>confdefs.h <<\_ACEOF
3306 #define TIME_WITH_SYS_TIME 1
3311 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3312 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3313 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <sys/types.h>
3324 #include <sys/wait.h>
3326 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3329 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3337 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_header_sys_wait_h=yes
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_cv_header_sys_wait_h=no
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3363 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3364 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3365 if test $ac_cv_header_sys_wait_h = yes; then
3367 cat >>confdefs.h <<\_ACEOF
3368 #define HAVE_SYS_WAIT_H 1
3379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3380 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3381 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #include <sys/types.h>
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 eval "$as_ac_Header=yes"
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 eval "$as_ac_Header=no"
3424 rm -f conftest.$ac_objext conftest.$ac_ext
3426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3429 cat >>confdefs.h <<_ACEOF
3430 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3433 ac_header_dirent=$ac_hdr; break
3437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3438 if test $ac_header_dirent = dirent.h; then
3439 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3440 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3441 if test "${ac_cv_search_opendir+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_func_search_save_LIBS=$LIBS
3445 ac_cv_search_opendir=no
3446 cat >conftest.$ac_ext <<_ACEOF
3447 #line $LINENO "configure"
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3454 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3469 rm -f conftest.$ac_objext conftest$ac_exeext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3471 (eval $ac_link) 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -s conftest$ac_exeext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_search_opendir="none required"
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3488 if test "$ac_cv_search_opendir" = no; then
3489 for ac_lib in dir; do
3490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3491 cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3499 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3514 rm -f conftest.$ac_objext conftest$ac_exeext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516 (eval $ac_link) 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -s conftest$ac_exeext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_cv_search_opendir="-l$ac_lib"
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3536 LIBS=$ac_func_search_save_LIBS
3538 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3539 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3540 if test "$ac_cv_search_opendir" != no; then
3541 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3546 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3547 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3548 if test "${ac_cv_search_opendir+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 ac_func_search_save_LIBS=$LIBS
3552 ac_cv_search_opendir=no
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line $LINENO "configure"
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578 (eval $ac_link) 2>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -s conftest$ac_exeext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_search_opendir="none required"
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3595 if test "$ac_cv_search_opendir" = no; then
3597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3598 cat >conftest.$ac_ext <<_ACEOF
3599 #line $LINENO "configure"
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3610 /* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -s conftest$ac_exeext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 ac_cv_search_opendir="-l$ac_lib"
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3643 LIBS=$ac_func_search_save_LIBS
3645 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3646 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3647 if test "$ac_cv_search_opendir" != no; then
3648 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3654 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3655 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3656 if test "${ac_cv_type_signal+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 cat >conftest.$ac_ext <<_ACEOF
3660 #line $LINENO "configure"
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include <sys/types.h>
3672 extern "C" void (*signal (int, void (*)(int)))(int);
3674 void (*signal ()) ();
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_cv_type_signal=void
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 ac_cv_type_signal=int
3704 rm -f conftest.$ac_objext conftest.$ac_ext
3706 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3707 echo "${ECHO_T}$ac_cv_type_signal" >&6
3709 cat >>confdefs.h <<_ACEOF
3710 #define RETSIGTYPE $ac_cv_type_signal
3714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3724 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3725 inttypes.h stdint.h unistd.h
3727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3728 echo "$as_me:$LINENO: checking for $ac_header" >&5
3729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 $ac_includes_default
3742 #include <$ac_header>
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -s conftest.$ac_objext'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3756 eval "$as_ac_Header=yes"
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3761 eval "$as_ac_Header=no"
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3768 cat >>confdefs.h <<_ACEOF
3769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3782 for ac_header in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
3784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 # Is the header compilable?
3795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line $LINENO "configure"
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 $ac_includes_default
3805 #include <$ac_header>
3807 rm -f conftest.$ac_objext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_header_compiler=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_header_compiler=no
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3828 echo "${ECHO_T}$ac_header_compiler" >&6
3830 # Is the header present?
3831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3834 #line $LINENO "configure"
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #include <$ac_header>
3842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3845 grep -v '^ *+' conftest.er1 >conftest.err
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } >/dev/null; then
3850 if test -s conftest.err; then
3851 ac_cpp_err=$ac_c_preproc_warn_flag
3858 if test -z "$ac_cpp_err"; then
3859 ac_header_preproc=yes
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 ac_header_preproc=no
3866 rm -f conftest.err conftest.$ac_ext
3867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3868 echo "${ECHO_T}$ac_header_preproc" >&6
3870 # So? What about this header?
3871 case $ac_header_compiler:$ac_header_preproc in
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3879 ## ------------------------------------ ##
3880 ## Report this to bug-autoconf@gnu.org. ##
3881 ## ------------------------------------ ##
3884 sed "s/^/$as_me: WARNING: /" >&2
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3895 ## ------------------------------------ ##
3896 ## Report this to bug-autoconf@gnu.org. ##
3897 ## ------------------------------------ ##
3900 sed "s/^/$as_me: WARNING: /" >&2
3903 echo "$as_me:$LINENO: checking for $ac_header" >&5
3904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 eval "$as_ac_Header=$ac_header_preproc"
3910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3915 cat >>confdefs.h <<_ACEOF
3916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3925 for ac_header in fcntl.h sys/fcntl.h
3927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3929 echo "$as_me:$LINENO: checking for $ac_header" >&5
3930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3937 # Is the header compilable?
3938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3940 cat >conftest.$ac_ext <<_ACEOF
3941 #line $LINENO "configure"
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 $ac_includes_default
3948 #include <$ac_header>
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_header_compiler=yes
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_header_compiler=no
3969 rm -f conftest.$ac_objext conftest.$ac_ext
3970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3971 echo "${ECHO_T}$ac_header_compiler" >&6
3973 # Is the header present?
3974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3976 cat >conftest.$ac_ext <<_ACEOF
3977 #line $LINENO "configure"
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 #include <$ac_header>
3985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3988 grep -v '^ *+' conftest.er1 >conftest.err
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } >/dev/null; then
3993 if test -s conftest.err; then
3994 ac_cpp_err=$ac_c_preproc_warn_flag
4001 if test -z "$ac_cpp_err"; then
4002 ac_header_preproc=yes
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 ac_header_preproc=no
4009 rm -f conftest.err conftest.$ac_ext
4010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4011 echo "${ECHO_T}$ac_header_preproc" >&6
4013 # So? What about this header?
4014 case $ac_header_compiler:$ac_header_preproc in
4016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4022 ## ------------------------------------ ##
4023 ## Report this to bug-autoconf@gnu.org. ##
4024 ## ------------------------------------ ##
4027 sed "s/^/$as_me: WARNING: /" >&2
4030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4038 ## ------------------------------------ ##
4039 ## Report this to bug-autoconf@gnu.org. ##
4040 ## ------------------------------------ ##
4043 sed "s/^/$as_me: WARNING: /" >&2
4046 echo "$as_me:$LINENO: checking for $ac_header" >&5
4047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 eval "$as_ac_Header=$ac_header_preproc"
4053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4058 cat >>confdefs.h <<_ACEOF
4059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4068 for ac_header in sys/socket.h lan/socket.h
4070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072 echo "$as_me:$LINENO: checking for $ac_header" >&5
4073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4080 # Is the header compilable?
4081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4084 #line $LINENO "configure"
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 $ac_includes_default
4091 #include <$ac_header>
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_header_compiler=yes
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110 ac_header_compiler=no
4112 rm -f conftest.$ac_objext conftest.$ac_ext
4113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4114 echo "${ECHO_T}$ac_header_compiler" >&6
4116 # Is the header present?
4117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4120 #line $LINENO "configure"
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 #include <$ac_header>
4128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } >/dev/null; then
4136 if test -s conftest.err; then
4137 ac_cpp_err=$ac_c_preproc_warn_flag
4144 if test -z "$ac_cpp_err"; then
4145 ac_header_preproc=yes
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 ac_header_preproc=no
4152 rm -f conftest.err conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4154 echo "${ECHO_T}$ac_header_preproc" >&6
4156 # So? What about this header?
4157 case $ac_header_compiler:$ac_header_preproc in
4159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4165 ## ------------------------------------ ##
4166 ## Report this to bug-autoconf@gnu.org. ##
4167 ## ------------------------------------ ##
4170 sed "s/^/$as_me: WARNING: /" >&2
4173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4181 ## ------------------------------------ ##
4182 ## Report this to bug-autoconf@gnu.org. ##
4183 ## ------------------------------------ ##
4186 sed "s/^/$as_me: WARNING: /" >&2
4189 echo "$as_me:$LINENO: checking for $ac_header" >&5
4190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 eval "$as_ac_Header=$ac_header_preproc"
4196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4201 cat >>confdefs.h <<_ACEOF
4202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 if test "${ac_cv_header_stddef_h+set}" = set; then
4210 echo "$as_me:$LINENO: checking for stddef.h" >&5
4211 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
4212 if test "${ac_cv_header_stddef_h+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4216 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
4218 # Is the header compilable?
4219 echo "$as_me:$LINENO: checking stddef.h usability" >&5
4220 echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
4221 cat >conftest.$ac_ext <<_ACEOF
4222 #line $LINENO "configure"
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 $ac_includes_default
4231 rm -f conftest.$ac_objext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_header_compiler=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_header_compiler=no
4250 rm -f conftest.$ac_objext conftest.$ac_ext
4251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4252 echo "${ECHO_T}$ac_header_compiler" >&6
4254 # Is the header present?
4255 echo "$as_me:$LINENO: checking stddef.h presence" >&5
4256 echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev/null; then
4274 if test -s conftest.err; then
4275 ac_cpp_err=$ac_c_preproc_warn_flag
4282 if test -z "$ac_cpp_err"; then
4283 ac_header_preproc=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 ac_header_preproc=no
4290 rm -f conftest.err conftest.$ac_ext
4291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4292 echo "${ECHO_T}$ac_header_preproc" >&6
4294 # So? What about this header?
4295 case $ac_header_compiler:$ac_header_preproc in
4297 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
4298 echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4299 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
4300 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
4303 ## ------------------------------------ ##
4304 ## Report this to bug-autoconf@gnu.org. ##
4305 ## ------------------------------------ ##
4308 sed "s/^/$as_me: WARNING: /" >&2
4311 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
4312 echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
4313 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
4314 echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
4315 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
4316 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
4319 ## ------------------------------------ ##
4320 ## Report this to bug-autoconf@gnu.org. ##
4321 ## ------------------------------------ ##
4324 sed "s/^/$as_me: WARNING: /" >&2
4327 echo "$as_me:$LINENO: checking for stddef.h" >&5
4328 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
4329 if test "${ac_cv_header_stddef_h+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 ac_cv_header_stddef_h=$ac_header_preproc
4334 echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4335 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
4338 if test $ac_cv_header_stddef_h = yes; then
4341 cat >>confdefs.h <<\_ACEOF
4353 for ac_func in _getpty grantpt setitimer usleep
4355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4356 echo "$as_me:$LINENO: checking for $ac_func" >&5
4357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4358 if eval "test \"\${$as_ac_var+set}\" = set"; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4362 #line $LINENO "configure"
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 /* System header to define __stub macros and hopefully few prototypes,
4369 which can conflict with char $ac_func (); below.
4370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371 <limits.h> exists even on freestanding compilers. */
4373 # include <limits.h>
4375 # include <assert.h>
4377 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4385 /* The GNU C library defines this for functions which it implements
4386 to always fail with ENOSYS. Some functions are actually named
4387 something starting with __ and the normal name is an alias. */
4388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4391 char (*f) () = $ac_func;
4400 return f != $ac_func;
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -s conftest$ac_exeext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 eval "$as_ac_var=yes"
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 eval "$as_ac_var=no"
4424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4428 if test `eval echo '${'$as_ac_var'}'` = yes; then
4429 cat >>confdefs.h <<_ACEOF
4430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4438 for ac_func in gettimeofday ftime
4440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4441 echo "$as_me:$LINENO: checking for $ac_func" >&5
4442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4443 if eval "test \"\${$as_ac_var+set}\" = set"; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 /* System header to define __stub macros and hopefully few prototypes,
4454 which can conflict with char $ac_func (); below.
4455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4456 <limits.h> exists even on freestanding compilers. */
4458 # include <limits.h>
4460 # include <assert.h>
4462 /* Override any gcc2 internal prototype to avoid an error. */
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4470 /* The GNU C library defines this for functions which it implements
4471 to always fail with ENOSYS. Some functions are actually named
4472 something starting with __ and the normal name is an alias. */
4473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476 char (*f) () = $ac_func;
4485 return f != $ac_func;
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -s conftest$ac_exeext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 eval "$as_ac_var=yes"
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 eval "$as_ac_var=no"
4509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4513 if test `eval echo '${'$as_ac_var'}'` = yes; then
4514 cat >>confdefs.h <<_ACEOF
4515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4523 for ac_func in random rand48
4525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4526 echo "$as_me:$LINENO: checking for $ac_func" >&5
4527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_var+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 cat >conftest.$ac_ext <<_ACEOF
4532 #line $LINENO "configure"
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char $ac_func (); below.
4540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 <limits.h> exists even on freestanding compilers. */
4543 # include <limits.h>
4545 # include <assert.h>
4547 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4555 /* The GNU C library defines this for functions which it implements
4556 to always fail with ENOSYS. Some functions are actually named
4557 something starting with __ and the normal name is an alias. */
4558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4561 char (*f) () = $ac_func;
4570 return f != $ac_func;
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577 (eval $ac_link) 2>&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -s conftest$ac_exeext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 eval "$as_ac_var=yes"
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 eval "$as_ac_var=no"
4594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4598 if test `eval echo '${'$as_ac_var'}'` = yes; then
4599 cat >>confdefs.h <<_ACEOF
4600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4608 for ac_func in gethostname sysinfo
4610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4611 echo "$as_me:$LINENO: checking for $ac_func" >&5
4612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4613 if eval "test \"\${$as_ac_var+set}\" = set"; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4617 #line $LINENO "configure"
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 /* System header to define __stub macros and hopefully few prototypes,
4624 which can conflict with char $ac_func (); below.
4625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4626 <limits.h> exists even on freestanding compilers. */
4628 # include <limits.h>
4630 # include <assert.h>
4632 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4640 /* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4646 char (*f) () = $ac_func;
4655 return f != $ac_func;
4660 rm -f conftest.$ac_objext conftest$ac_exeext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662 (eval $ac_link) 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -s conftest$ac_exeext'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 eval "$as_ac_var=yes"
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 eval "$as_ac_var=no"
4679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4683 if test `eval echo '${'$as_ac_var'}'` = yes; then
4684 cat >>confdefs.h <<_ACEOF
4685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4691 echo "$as_me:$LINENO: checking for setlocale" >&5
4692 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
4693 if test "${ac_cv_func_setlocale+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 /* System header to define __stub macros and hopefully few prototypes,
4704 which can conflict with char setlocale (); below.
4705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4706 <limits.h> exists even on freestanding compilers. */
4708 # include <limits.h>
4710 # include <assert.h>
4712 /* Override any gcc2 internal prototype to avoid an error. */
4717 /* We use char because int might match the return type of a gcc2
4718 builtin and then its argument prototype would still apply. */
4720 /* The GNU C library defines this for functions which it implements
4721 to always fail with ENOSYS. Some functions are actually named
4722 something starting with __ and the normal name is an alias. */
4723 #if defined (__stub_setlocale) || defined (__stub___setlocale)
4726 char (*f) () = setlocale;
4735 return f != setlocale;
4740 rm -f conftest.$ac_objext conftest$ac_exeext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4742 (eval $ac_link) 2>&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -s conftest$ac_exeext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_func_setlocale=yes
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 ac_cv_func_setlocale=no
4759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4761 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
4762 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
4763 if test $ac_cv_func_setlocale = yes; then
4767 echo "$as_me:$LINENO: checking for setlocale in -li" >&5
4768 echo $ECHO_N "checking for setlocale in -li... $ECHO_C" >&6
4769 if test "${ac_cv_lib_i_setlocale+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 ac_check_lib_save_LIBS=$LIBS
4774 cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4782 /* Override any gcc2 internal prototype to avoid an error. */
4786 /* We use char because int might match the return type of a gcc2
4787 builtin and then its argument prototype would still apply. */
4797 rm -f conftest.$ac_objext conftest$ac_exeext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4799 (eval $ac_link) 2>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_lib_i_setlocale=yes
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 ac_cv_lib_i_setlocale=no
4816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4817 LIBS=$ac_check_lib_save_LIBS
4819 echo "$as_me:$LINENO: result: $ac_cv_lib_i_setlocale" >&5
4820 echo "${ECHO_T}$ac_cv_lib_i_setlocale" >&6
4821 if test $ac_cv_lib_i_setlocale = yes; then
4822 cat >>confdefs.h <<_ACEOF
4829 cat >>confdefs.h <<\_ACEOF
4839 echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
4840 echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
4841 if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 ac_check_lib_save_LIBS=$LIBS
4846 cat >conftest.$ac_ext <<_ACEOF
4847 #line $LINENO "configure"
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4860 char getpseudotty ();
4869 rm -f conftest.$ac_objext conftest$ac_exeext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4871 (eval $ac_link) 2>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -s conftest$ac_exeext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_lib_seq_getpseudotty=yes
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ac_cv_lib_seq_getpseudotty=no
4888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4889 LIBS=$ac_check_lib_save_LIBS
4891 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
4892 echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
4893 if test $ac_cv_lib_seq_getpseudotty = yes; then
4894 cat >>confdefs.h <<_ACEOF
4895 #define HAVE_LIBSEQ 1
4903 echo "$as_me:$LINENO: checking for X" >&5
4904 echo $ECHO_N "checking for X... $ECHO_C" >&6
4907 # Check whether --with-x or --without-x was given.
4908 if test "${with_x+set}" = set; then
4912 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4913 if test "x$with_x" = xno; then
4914 # The user explicitly disabled X.
4917 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4918 # Both variables are already set.
4921 if test "${ac_cv_have_x+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 # One or both of the vars are not set, and there is no cached value.
4925 ac_x_includes=no ac_x_libraries=no
4927 if mkdir conftest.dir; then
4929 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4930 cat >Imakefile <<'_ACEOF'
4932 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4934 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4935 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4936 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4937 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4938 for ac_extension in a so sl; do
4939 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4940 test -f $ac_im_libdir/libX11.$ac_extension; then
4941 ac_im_usrlibdir=$ac_im_libdir; break
4944 # Screen out bogus values from the imake configuration. They are
4945 # bogus both because they are the default anyway, and because
4946 # using them would break gcc on systems where it needs fixed includes.
4947 case $ac_im_incroot in
4949 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4951 case $ac_im_usrlibdir in
4953 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4960 # Standard set of common directories for X headers.
4961 # Check X11 before X11Rn because it is often a symlink to the current release.
4973 /usr/local/X11/include
4974 /usr/local/X11R6/include
4975 /usr/local/X11R5/include
4976 /usr/local/X11R4/include
4978 /usr/local/include/X11
4979 /usr/local/include/X11R6
4980 /usr/local/include/X11R5
4981 /usr/local/include/X11R4
4985 /usr/XFree86/include/X11
4989 /usr/unsupported/include
4991 /usr/local/x11r5/include
4992 /usr/lpp/Xamples/include
4994 /usr/openwin/include
4995 /usr/openwin/share/include'
4997 if test "$ac_x_includes" = no; then
4998 # Guess where to find include files, by looking for Intrinsic.h.
4999 # First, try using that file with no special directory specified.
5000 cat >conftest.$ac_ext <<_ACEOF
5001 #line $LINENO "configure"
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <X11/Intrinsic.h>
5009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev/null; then
5017 if test -s conftest.err; then
5018 ac_cpp_err=$ac_c_preproc_warn_flag
5025 if test -z "$ac_cpp_err"; then
5026 # We can compile using X headers with no special include directory.
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5032 for ac_dir in $ac_x_header_dirs; do
5033 if test -r "$ac_dir/X11/Intrinsic.h"; then
5034 ac_x_includes=$ac_dir
5039 rm -f conftest.err conftest.$ac_ext
5040 fi # $ac_x_includes = no
5042 if test "$ac_x_libraries" = no; then
5043 # Check for the libraries.
5044 # See if we find them without any special options.
5045 # Don't add to $LIBS permanently.
5048 cat >conftest.$ac_ext <<_ACEOF
5049 #line $LINENO "configure"
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 #include <X11/Intrinsic.h>
5064 rm -f conftest.$ac_objext conftest$ac_exeext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066 (eval $ac_link) 2>&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -s conftest$ac_exeext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5077 # We can link X programs with no special library path.
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5084 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5086 # Don't even attempt the hair of trying to link an X program!
5087 for ac_extension in a so sl; do
5088 if test -r $ac_dir/libXt.$ac_extension; then
5089 ac_x_libraries=$ac_dir
5095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5096 fi # $ac_x_libraries = no
5098 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5099 # Didn't find X anywhere. Cache the known absence of X.
5100 ac_cv_have_x="have_x=no"
5102 # Record where we found X for the cache.
5103 ac_cv_have_x="have_x=yes \
5104 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5109 eval "$ac_cv_have_x"
5112 if test "$have_x" != yes; then
5113 echo "$as_me:$LINENO: result: $have_x" >&5
5114 echo "${ECHO_T}$have_x" >&6
5117 # If each of the values was on the command line, it overrides each guess.
5118 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5119 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5120 # Update the cache value to reflect the command line values.
5121 ac_cv_have_x="have_x=yes \
5122 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5123 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5124 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5127 if test "$no_x" = yes; then
5128 # Not all programs may use this symbol, but it does not hurt to define it.
5130 cat >>confdefs.h <<\_ACEOF
5131 #define X_DISPLAY_MISSING 1
5134 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5136 if test -n "$x_includes"; then
5137 X_CFLAGS="$X_CFLAGS -I$x_includes"
5140 # It would also be nice to do this for all -L options, not just this one.
5141 if test -n "$x_libraries"; then
5142 X_LIBS="$X_LIBS -L$x_libraries"
5143 # For Solaris; some versions of Sun CC require a space after -R and
5144 # others require no space. Words are not sufficient . . . .
5145 case `(uname -sr) 2>/dev/null` in
5147 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5148 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5149 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5150 cat >conftest.$ac_ext <<_ACEOF
5151 #line $LINENO "configure"
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5166 rm -f conftest.$ac_objext conftest$ac_exeext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5168 (eval $ac_link) 2>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -s conftest$ac_exeext'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5186 if test $ac_R_nospace = yes; then
5187 echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6
5189 X_LIBS="$X_LIBS -R$x_libraries"
5191 LIBS="$ac_xsave_LIBS -R $x_libraries"
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5208 rm -f conftest.$ac_objext conftest$ac_exeext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210 (eval $ac_link) 2>&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -s conftest$ac_exeext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5228 if test $ac_R_space = yes; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230 echo "${ECHO_T}yes" >&6
5231 X_LIBS="$X_LIBS -R $x_libraries"
5233 echo "$as_me:$LINENO: result: neither works" >&5
5234 echo "${ECHO_T}neither works" >&6
5241 # Check for system-dependent libraries X programs must link with.
5242 # Do this before checking for the system-independent R6 libraries
5243 # (-lICE), since we may need -lsocket or whatever for X linking.
5245 if test "$ISC" = yes; then
5246 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5248 # Martyn Johnson says this is needed for Ultrix, if the X
5249 # libraries were built with DECnet support. And Karl Berry says
5250 # the Alpha needs dnet_stub (dnet does not exist).
5251 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5260 /* Override any gcc2 internal prototype to avoid an error. */
5264 /* We use char because int might match the return type of a gcc2
5265 builtin and then its argument prototype would still apply. */
5266 char XOpenDisplay ();
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277 (eval $ac_link) 2>&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -s conftest$ac_exeext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5293 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5294 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 ac_check_lib_save_LIBS=$LIBS
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5307 /* Override any gcc2 internal prototype to avoid an error. */
5311 /* We use char because int might match the return type of a gcc2
5312 builtin and then its argument prototype would still apply. */
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5324 (eval $ac_link) 2>&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -s conftest$ac_exeext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_cv_lib_dnet_dnet_ntoa=yes
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 ac_cv_lib_dnet_dnet_ntoa=no
5341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5342 LIBS=$ac_check_lib_save_LIBS
5344 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5345 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5346 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5347 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5350 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5351 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5352 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5353 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 ac_check_lib_save_LIBS=$LIBS
5357 LIBS="-ldnet_stub $LIBS"
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5366 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -s conftest$ac_exeext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 ac_cv_lib_dnet_stub_dnet_ntoa=no
5400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5404 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5405 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5406 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5412 LIBS="$ac_xsave_LIBS"
5414 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5415 # to get the SysV transport functions.
5416 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5418 # The nsl library prevents programs from opening the X display
5419 # on Irix 5.2, according to T.E. Dickey.
5420 # The functions gethostbyname, getservbyname, and inet_addr are
5421 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5422 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5423 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5424 if test "${ac_cv_func_gethostbyname+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 /* System header to define __stub macros and hopefully few prototypes,
5435 which can conflict with char gethostbyname (); below.
5436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5437 <limits.h> exists even on freestanding compilers. */
5439 # include <limits.h>
5441 # include <assert.h>
5443 /* Override any gcc2 internal prototype to avoid an error. */
5448 /* We use char because int might match the return type of a gcc2
5449 builtin and then its argument prototype would still apply. */
5450 char gethostbyname ();
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5457 char (*f) () = gethostbyname;
5466 return f != gethostbyname;
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473 (eval $ac_link) 2>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try='test -s conftest$ac_exeext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 ac_cv_func_gethostbyname=yes
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 ac_cv_func_gethostbyname=no
5490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5492 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5493 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5495 if test $ac_cv_func_gethostbyname = no; then
5496 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5497 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5498 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 ac_check_lib_save_LIBS=$LIBS
5503 cat >conftest.$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5515 /* We use char because int might match the return type of a gcc2
5516 builtin and then its argument prototype would still apply. */
5517 char gethostbyname ();
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_lib_nsl_gethostbyname=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_cv_lib_nsl_gethostbyname=no
5545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5546 LIBS=$ac_check_lib_save_LIBS
5548 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5549 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5550 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5551 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5554 if test $ac_cv_lib_nsl_gethostbyname = no; then
5555 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5556 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5557 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 ac_check_lib_save_LIBS=$LIBS
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5570 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5576 char gethostbyname ();
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 (eval $ac_link) 2>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -s conftest$ac_exeext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_lib_bsd_gethostbyname=yes
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_cv_lib_bsd_gethostbyname=no
5604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5605 LIBS=$ac_check_lib_save_LIBS
5607 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5608 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5609 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5616 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5617 # socket/setsockopt and other routines are undefined under SCO ODT
5618 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5619 # on later versions), says Simon Leinen: it contains gethostby*
5620 # variants that don't use the name server (or something). -lsocket
5621 # must be given before -lnsl if both are needed. We assume that
5622 # if connect needs -lnsl, so does gethostbyname.
5623 echo "$as_me:$LINENO: checking for connect" >&5
5624 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5625 if test "${ac_cv_func_connect+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 cat >conftest.$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 /* System header to define __stub macros and hopefully few prototypes,
5636 which can conflict with char connect (); below.
5637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5638 <limits.h> exists even on freestanding compilers. */
5640 # include <limits.h>
5642 # include <assert.h>
5644 /* Override any gcc2 internal prototype to avoid an error. */
5649 /* We use char because int might match the return type of a gcc2
5650 builtin and then its argument prototype would still apply. */
5652 /* The GNU C library defines this for functions which it implements
5653 to always fail with ENOSYS. Some functions are actually named
5654 something starting with __ and the normal name is an alias. */
5655 #if defined (__stub_connect) || defined (__stub___connect)
5658 char (*f) () = connect;
5667 return f != connect;
5672 rm -f conftest.$ac_objext conftest$ac_exeext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_func_connect=yes
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_cv_func_connect=no
5691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5694 echo "${ECHO_T}$ac_cv_func_connect" >&6
5696 if test $ac_cv_func_connect = no; then
5697 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5698 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5699 if test "${ac_cv_lib_socket_connect+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 ac_check_lib_save_LIBS=$LIBS
5703 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5704 cat >conftest.$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5712 /* Override any gcc2 internal prototype to avoid an error. */
5716 /* We use char because int might match the return type of a gcc2
5717 builtin and then its argument prototype would still apply. */
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_cv_lib_socket_connect=yes
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 ac_cv_lib_socket_connect=no
5746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5747 LIBS=$ac_check_lib_save_LIBS
5749 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5750 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5751 if test $ac_cv_lib_socket_connect = yes; then
5752 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5757 # Guillermo Gomez says -lposix is necessary on A/UX.
5758 echo "$as_me:$LINENO: checking for remove" >&5
5759 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5760 if test "${ac_cv_func_remove+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 /* System header to define __stub macros and hopefully few prototypes,
5771 which can conflict with char remove (); below.
5772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5773 <limits.h> exists even on freestanding compilers. */
5775 # include <limits.h>
5777 # include <assert.h>
5779 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5787 /* The GNU C library defines this for functions which it implements
5788 to always fail with ENOSYS. Some functions are actually named
5789 something starting with __ and the normal name is an alias. */
5790 #if defined (__stub_remove) || defined (__stub___remove)
5793 char (*f) () = remove;
5807 rm -f conftest.$ac_objext conftest$ac_exeext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -s conftest$ac_exeext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_cv_func_remove=yes
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 ac_cv_func_remove=no
5826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5828 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5829 echo "${ECHO_T}$ac_cv_func_remove" >&6
5831 if test $ac_cv_func_remove = no; then
5832 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5833 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5834 if test "${ac_cv_lib_posix_remove+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 ac_check_lib_save_LIBS=$LIBS
5838 LIBS="-lposix $LIBS"
5839 cat >conftest.$ac_ext <<_ACEOF
5840 #line $LINENO "configure"
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5847 /* Override any gcc2 internal prototype to avoid an error. */
5851 /* We use char because int might match the return type of a gcc2
5852 builtin and then its argument prototype would still apply. */
5862 rm -f conftest.$ac_objext conftest$ac_exeext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5864 (eval $ac_link) 2>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -s conftest$ac_exeext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_lib_posix_remove=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_lib_posix_remove=no
5881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5884 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5885 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5886 if test $ac_cv_lib_posix_remove = yes; then
5887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5892 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5893 echo "$as_me:$LINENO: checking for shmat" >&5
5894 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5895 if test "${ac_cv_func_shmat+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 cat >conftest.$ac_ext <<_ACEOF
5899 #line $LINENO "configure"
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 /* System header to define __stub macros and hopefully few prototypes,
5906 which can conflict with char shmat (); below.
5907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5908 <limits.h> exists even on freestanding compilers. */
5910 # include <limits.h>
5912 # include <assert.h>
5914 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */
5922 /* The GNU C library defines this for functions which it implements
5923 to always fail with ENOSYS. Some functions are actually named
5924 something starting with __ and the normal name is an alias. */
5925 #if defined (__stub_shmat) || defined (__stub___shmat)
5928 char (*f) () = shmat;
5942 rm -f conftest.$ac_objext conftest$ac_exeext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5944 (eval $ac_link) 2>&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -s conftest$ac_exeext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_cv_func_shmat=yes
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5963 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5964 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5966 if test $ac_cv_func_shmat = no; then
5967 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5968 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5969 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_check_lib_save_LIBS=$LIBS
5974 cat >conftest.$ac_ext <<_ACEOF
5975 #line $LINENO "configure"
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5982 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -s conftest$ac_exeext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_lib_ipc_shmat=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_cv_lib_ipc_shmat=no
6016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6017 LIBS=$ac_check_lib_save_LIBS
6019 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6020 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6021 if test $ac_cv_lib_ipc_shmat = yes; then
6022 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6028 # Check for libraries that X11R6 Xt/Xaw programs need.
6029 ac_save_LDFLAGS=$LDFLAGS
6030 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6031 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6032 # check for ICE first), but we must link in the order -lSM -lICE or
6033 # we get undefined symbols. So assume we have SM if we have ICE.
6034 # These have to be linked with before -lX11, unlike the other
6035 # libraries we check for below, so use a different variable.
6036 # John Interrante, Karl Berry
6037 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6038 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6039 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 ac_check_lib_save_LIBS=$LIBS
6043 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6044 cat >conftest.$ac_ext <<_ACEOF
6045 #line $LINENO "configure"
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6052 /* Override any gcc2 internal prototype to avoid an error. */
6056 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */
6058 char IceConnectionNumber ();
6062 IceConnectionNumber ();
6067 rm -f conftest.$ac_objext conftest$ac_exeext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069 (eval $ac_link) 2>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } &&
6073 { ac_try='test -s conftest$ac_exeext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_lib_ICE_IceConnectionNumber=yes
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_cv_lib_ICE_IceConnectionNumber=no
6086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6087 LIBS=$ac_check_lib_save_LIBS
6089 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6090 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6091 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6092 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6095 LDFLAGS=$ac_save_LDFLAGS
6099 if test -n "$no_x" ; then
6100 echo $PRODUCT requires the X Window System header files and libraries!
6101 echo They were not found on your system. See FAQ topic C.2.
6102 echo configure failed
6106 # Make sure we can run config.sub.
6107 $ac_config_sub sun4 >/dev/null 2>&1 ||
6108 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6109 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6110 { (exit 1); exit 1; }; }
6112 echo "$as_me:$LINENO: checking build system type" >&5
6113 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6114 if test "${ac_cv_build+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 ac_cv_build_alias=$build_alias
6118 test -z "$ac_cv_build_alias" &&
6119 ac_cv_build_alias=`$ac_config_guess`
6120 test -z "$ac_cv_build_alias" &&
6121 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6122 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6123 { (exit 1); exit 1; }; }
6124 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6125 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6126 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6127 { (exit 1); exit 1; }; }
6130 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6131 echo "${ECHO_T}$ac_cv_build" >&6
6133 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6134 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6135 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6138 echo "$as_me:$LINENO: checking host system type" >&5
6139 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6140 if test "${ac_cv_host+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_cv_host_alias=$host_alias
6144 test -z "$ac_cv_host_alias" &&
6145 ac_cv_host_alias=$ac_cv_build_alias
6146 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6147 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6148 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6149 { (exit 1); exit 1; }; }
6152 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6153 echo "${ECHO_T}$ac_cv_host" >&6
6155 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6156 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6157 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6161 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6162 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6163 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cat >conftest.make <<\_ACEOF
6169 @echo 'ac_maketemp="$(MAKE)"'
6171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6172 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6173 if test -n "$ac_maketemp"; then
6174 eval ac_cv_prog_make_${ac_make}_set=yes
6176 eval ac_cv_prog_make_${ac_make}_set=no
6180 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6181 echo "$as_me:$LINENO: result: yes" >&5
6182 echo "${ECHO_T}yes" >&6
6185 echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6
6187 SET_MAKE="MAKE=${MAKE-make}"
6192 if test -n "$ac_aux_dir"; then
6193 case "$ac_aux_dir" in
6194 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6195 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6198 if test -z "$MKINSTALLDIRS"; then
6199 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6204 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6205 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6206 # Check whether --enable-nls or --disable-nls was given.
6207 if test "${enable_nls+set}" = set; then
6208 enableval="$enable_nls"
6213 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6214 echo "${ECHO_T}$USE_NLS" >&6
6221 # Prepare PATH_SEPARATOR.
6222 # The user is always right.
6223 if test "${PATH_SEPARATOR+set}" != set; then
6224 echo "#! /bin/sh" >conf$$.sh
6225 echo "exit 0" >>conf$$.sh
6227 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6235 # Find out how to test for executable files. Don't use a zero-byte file,
6236 # as systems may use methods other than mode bits to determine executability.
6237 cat >conf$$.file <<_ASEOF
6241 chmod +x conf$$.file
6242 if test -x conf$$.file >/dev/null 2>&1; then
6243 ac_executable_p="test -x"
6245 ac_executable_p="test -f"
6249 # Extract the first word of "msgfmt", so it can be a program name with args.
6250 set dummy msgfmt; ac_word=$2
6251 echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253 if test "${ac_cv_path_MSGFMT+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6261 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6262 for ac_dir in $PATH; do
6264 test -z "$ac_dir" && ac_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6267 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6268 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6269 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6276 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6280 MSGFMT="$ac_cv_path_MSGFMT"
6281 if test "$MSGFMT" != ":"; then
6282 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6283 echo "${ECHO_T}$MSGFMT" >&6
6285 echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6
6289 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6290 set dummy gmsgfmt; ac_word=$2
6291 echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6293 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6319 GMSGFMT=$ac_cv_path_GMSGFMT
6321 if test -n "$GMSGFMT"; then
6322 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6323 echo "${ECHO_T}$GMSGFMT" >&6
6325 echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6331 # Prepare PATH_SEPARATOR.
6332 # The user is always right.
6333 if test "${PATH_SEPARATOR+set}" != set; then
6334 echo "#! /bin/sh" >conf$$.sh
6335 echo "exit 0" >>conf$$.sh
6337 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6345 # Find out how to test for executable files. Don't use a zero-byte file,
6346 # as systems may use methods other than mode bits to determine executability.
6347 cat >conf$$.file <<_ASEOF
6351 chmod +x conf$$.file
6352 if test -x conf$$.file >/dev/null 2>&1; then
6353 ac_executable_p="test -x"
6355 ac_executable_p="test -f"
6359 # Extract the first word of "xgettext", so it can be a program name with args.
6360 set dummy xgettext; ac_word=$2
6361 echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6371 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6372 for ac_dir in $PATH; do
6374 test -z "$ac_dir" && ac_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6377 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6378 (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
6379 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6386 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6390 XGETTEXT="$ac_cv_path_XGETTEXT"
6391 if test "$XGETTEXT" != ":"; then
6392 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6393 echo "${ECHO_T}$XGETTEXT" >&6
6395 echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6402 # Prepare PATH_SEPARATOR.
6403 # The user is always right.
6404 if test "${PATH_SEPARATOR+set}" != set; then
6405 echo "#! /bin/sh" >conf$$.sh
6406 echo "exit 0" >>conf$$.sh
6408 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6416 # Find out how to test for executable files. Don't use a zero-byte file,
6417 # as systems may use methods other than mode bits to determine executability.
6418 cat >conf$$.file <<_ASEOF
6422 chmod +x conf$$.file
6423 if test -x conf$$.file >/dev/null 2>&1; then
6424 ac_executable_p="test -x"
6426 ac_executable_p="test -f"
6430 # Extract the first word of "msgmerge", so it can be a program name with args.
6431 set dummy msgmerge; ac_word=$2
6432 echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6442 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6443 for ac_dir in $PATH; do
6445 test -z "$ac_dir" && ac_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6448 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6449 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6456 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6460 MSGMERGE="$ac_cv_path_MSGMERGE"
6461 if test "$MSGMERGE" != ":"; then
6462 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6463 echo "${ECHO_T}$MSGMERGE" >&6
6465 echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6
6470 if test "$GMSGFMT" != ":"; then
6471 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6472 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6475 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6476 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6477 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6482 if test "$XGETTEXT" != ":"; then
6483 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6484 (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
6487 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6488 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6494 ac_config_commands="$ac_config_commands default-1"
6498 if test "X$prefix" = "XNONE"; then
6499 acl_final_prefix="$ac_default_prefix"
6501 acl_final_prefix="$prefix"
6503 if test "X$exec_prefix" = "XNONE"; then
6504 acl_final_exec_prefix='${prefix}'
6506 acl_final_exec_prefix="$exec_prefix"
6508 acl_save_prefix="$prefix"
6509 prefix="$acl_final_prefix"
6510 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6511 prefix="$acl_save_prefix"
6514 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6515 if test "${with_gnu_ld+set}" = set; then
6516 withval="$with_gnu_ld"
6517 test "$withval" = no || with_gnu_ld=yes
6521 # Prepare PATH_SEPARATOR.
6522 # The user is always right.
6523 if test "${PATH_SEPARATOR+set}" != set; then
6524 echo "#! /bin/sh" >conf$$.sh
6525 echo "exit 0" >>conf$$.sh
6527 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6535 if test "$GCC" = yes; then
6536 # Check if gcc -print-prog-name=ld gives a path.
6537 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6538 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6541 # gcc leaves a trailing carriage return which upsets mingw
6542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6547 # Accept absolute paths.
6548 [\\/]* | [A-Za-z]:[\\/]*)
6549 re_direlt='/[^/][^/]*/\.\./'
6550 # Canonicalize the path of ld
6551 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6552 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6553 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6555 test -z "$LD" && LD="$ac_prog"
6558 # If it fails, then pretend we aren't using GCC.
6562 # If it is relative, then search for the first ld in PATH.
6566 elif test "$with_gnu_ld" = yes; then
6567 echo "$as_me:$LINENO: checking for GNU ld" >&5
6568 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6570 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6571 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6573 if test "${acl_cv_path_LD+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 if test -z "$LD"; then
6577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6578 for ac_dir in $PATH; do
6579 test -z "$ac_dir" && ac_dir=.
6580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6581 acl_cv_path_LD="$ac_dir/$ac_prog"
6582 # Check to see if the program is GNU ld. I'd rather use --version,
6583 # but apparently some GNU ld's only accept -v.
6584 # Break only if it was the GNU/non-GNU ld that we prefer.
6585 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6586 test "$with_gnu_ld" != no && break
6588 test "$with_gnu_ld" != yes && break
6594 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6598 LD="$acl_cv_path_LD"
6599 if test -n "$LD"; then
6600 echo "$as_me:$LINENO: result: $LD" >&5
6601 echo "${ECHO_T}$LD" >&6
6603 echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6
6606 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6607 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6608 { (exit 1); exit 1; }; }
6609 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6610 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6611 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6615 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6616 acl_cv_prog_gnu_ld=yes
6618 acl_cv_prog_gnu_ld=no
6621 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6622 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6623 with_gnu_ld=$acl_cv_prog_gnu_ld
6627 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6628 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6629 if test "${acl_cv_rpath+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6634 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6640 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6641 echo "${ECHO_T}$acl_cv_rpath" >&6
6643 libext="$acl_cv_libext"
6644 shlibext="$acl_cv_shlibext"
6645 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6646 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6647 hardcode_direct="$acl_cv_hardcode_direct"
6648 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6649 # Check whether --enable-rpath or --disable-rpath was given.
6650 if test "${enable_rpath+set}" = set; then
6651 enableval="$enable_rpath"
6665 acl_save_prefix="$prefix"
6666 prefix="$acl_final_prefix"
6667 acl_save_exec_prefix="$exec_prefix"
6668 exec_prefix="$acl_final_exec_prefix"
6670 eval additional_includedir=\"$includedir\"
6671 eval additional_libdir=\"$libdir\"
6673 exec_prefix="$acl_save_exec_prefix"
6674 prefix="$acl_save_prefix"
6677 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6678 if test "${with_libiconv_prefix+set}" = set; then
6679 withval="$with_libiconv_prefix"
6681 if test "X$withval" = "Xno"; then
6684 if test "X$withval" = "X"; then
6686 acl_save_prefix="$prefix"
6687 prefix="$acl_final_prefix"
6688 acl_save_exec_prefix="$exec_prefix"
6689 exec_prefix="$acl_final_exec_prefix"
6691 eval additional_includedir=\"$includedir\"
6692 eval additional_libdir=\"$libdir\"
6694 exec_prefix="$acl_save_exec_prefix"
6695 prefix="$acl_save_prefix"
6698 additional_includedir="$withval/include"
6699 additional_libdir="$withval/lib"
6709 names_already_handled=
6710 names_next_round='iconv '
6711 while test -n "$names_next_round"; do
6712 names_this_round="$names_next_round"
6714 for name in $names_this_round; do
6716 for n in $names_already_handled; do
6717 if test "$n" = "$name"; then
6722 if test -z "$already_handled"; then
6723 names_already_handled="$names_already_handled $name"
6724 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6725 eval value=\"\$HAVE_LIB$uppername\"
6726 if test -n "$value"; then
6727 if test "$value" = yes; then
6728 eval value=\"\$LIB$uppername\"
6729 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6730 eval value=\"\$LTLIB$uppername\"
6731 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6740 if test $use_additional = yes; then
6741 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6742 found_dir="$additional_libdir"
6743 found_so="$additional_libdir/lib$name.$shlibext"
6744 if test -f "$additional_libdir/lib$name.la"; then
6745 found_la="$additional_libdir/lib$name.la"
6748 if test -f "$additional_libdir/lib$name.$libext"; then
6749 found_dir="$additional_libdir"
6750 found_a="$additional_libdir/lib$name.$libext"
6751 if test -f "$additional_libdir/lib$name.la"; then
6752 found_la="$additional_libdir/lib$name.la"
6757 if test "X$found_dir" = "X"; then
6758 for x in $LDFLAGS $LTLIBICONV; do
6760 acl_save_prefix="$prefix"
6761 prefix="$acl_final_prefix"
6762 acl_save_exec_prefix="$exec_prefix"
6763 exec_prefix="$acl_final_exec_prefix"
6765 exec_prefix="$acl_save_exec_prefix"
6766 prefix="$acl_save_prefix"
6770 dir=`echo "X$x" | sed -e 's/^X-L//'`
6771 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6773 found_so="$dir/lib$name.$shlibext"
6774 if test -f "$dir/lib$name.la"; then
6775 found_la="$dir/lib$name.la"
6778 if test -f "$dir/lib$name.$libext"; then
6780 found_a="$dir/lib$name.$libext"
6781 if test -f "$dir/lib$name.la"; then
6782 found_la="$dir/lib$name.la"
6788 if test "X$found_dir" != "X"; then
6793 if test "X$found_dir" != "X"; then
6794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6795 if test "X$found_so" != "X"; then
6796 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6797 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6800 for x in $ltrpathdirs; do
6801 if test "X$x" = "X$found_dir"; then
6806 if test -z "$haveit"; then
6807 ltrpathdirs="$ltrpathdirs $found_dir"
6809 if test "$hardcode_direct" = yes; then
6810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6812 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6815 for x in $rpathdirs; do
6816 if test "X$x" = "X$found_dir"; then
6821 if test -z "$haveit"; then
6822 rpathdirs="$rpathdirs $found_dir"
6826 for x in $LDFLAGS $LIBICONV; do
6828 acl_save_prefix="$prefix"
6829 prefix="$acl_final_prefix"
6830 acl_save_exec_prefix="$exec_prefix"
6831 exec_prefix="$acl_final_exec_prefix"
6833 exec_prefix="$acl_save_exec_prefix"
6834 prefix="$acl_save_prefix"
6836 if test "X$x" = "X-L$found_dir"; then
6841 if test -z "$haveit"; then
6842 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6844 if test "$hardcode_minus_L" != no; then
6845 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6847 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6853 if test "X$found_a" != "X"; then
6854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6856 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6859 additional_includedir=
6860 case "$found_dir" in
6862 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6863 additional_includedir="$basedir/include"
6866 if test "X$additional_includedir" != "X"; then
6867 if test "X$additional_includedir" != "X/usr/include"; then
6869 if test "X$additional_includedir" = "X/usr/local/include"; then
6870 if test -n "$GCC"; then
6872 linux*) haveit=yes;;
6876 if test -z "$haveit"; then
6877 for x in $CPPFLAGS $INCICONV; do
6879 acl_save_prefix="$prefix"
6880 prefix="$acl_final_prefix"
6881 acl_save_exec_prefix="$exec_prefix"
6882 exec_prefix="$acl_final_exec_prefix"
6884 exec_prefix="$acl_save_exec_prefix"
6885 prefix="$acl_save_prefix"
6887 if test "X$x" = "X-I$additional_includedir"; then
6892 if test -z "$haveit"; then
6893 if test -d "$additional_includedir"; then
6894 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6900 if test -n "$found_la"; then
6901 save_libdir="$libdir"
6903 */* | *\\*) . "$found_la" ;;
6904 *) . "./$found_la" ;;
6906 libdir="$save_libdir"
6907 for dep in $dependency_libs; do
6910 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6911 if test "X$additional_libdir" != "X/usr/lib"; then
6913 if test "X$additional_libdir" = "X/usr/local/lib"; then
6914 if test -n "$GCC"; then
6916 linux*) haveit=yes;;
6920 if test -z "$haveit"; then
6922 for x in $LDFLAGS $LIBICONV; do
6924 acl_save_prefix="$prefix"
6925 prefix="$acl_final_prefix"
6926 acl_save_exec_prefix="$exec_prefix"
6927 exec_prefix="$acl_final_exec_prefix"
6929 exec_prefix="$acl_save_exec_prefix"
6930 prefix="$acl_save_prefix"
6932 if test "X$x" = "X-L$additional_libdir"; then
6937 if test -z "$haveit"; then
6938 if test -d "$additional_libdir"; then
6939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6943 for x in $LDFLAGS $LTLIBICONV; do
6945 acl_save_prefix="$prefix"
6946 prefix="$acl_final_prefix"
6947 acl_save_exec_prefix="$exec_prefix"
6948 exec_prefix="$acl_final_exec_prefix"
6950 exec_prefix="$acl_save_exec_prefix"
6951 prefix="$acl_save_prefix"
6953 if test "X$x" = "X-L$additional_libdir"; then
6958 if test -z "$haveit"; then
6959 if test -d "$additional_libdir"; then
6960 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6967 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6968 if test "$enable_rpath" != no; then
6970 for x in $rpathdirs; do
6971 if test "X$x" = "X$dir"; then
6976 if test -z "$haveit"; then
6977 rpathdirs="$rpathdirs $dir"
6980 for x in $ltrpathdirs; do
6981 if test "X$x" = "X$dir"; then
6986 if test -z "$haveit"; then
6987 ltrpathdirs="$ltrpathdirs $dir"
6992 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6995 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6998 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7005 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7006 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7012 if test "X$rpathdirs" != "X"; then
7013 if test -n "$hardcode_libdir_separator"; then
7015 for found_dir in $rpathdirs; do
7016 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7018 acl_save_libdir="$libdir"
7020 eval flag=\"$hardcode_libdir_flag_spec\"
7021 libdir="$acl_save_libdir"
7022 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7024 for found_dir in $rpathdirs; do
7025 acl_save_libdir="$libdir"
7027 eval flag=\"$hardcode_libdir_flag_spec\"
7028 libdir="$acl_save_libdir"
7029 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7033 if test "X$ltrpathdirs" != "X"; then
7034 for found_dir in $ltrpathdirs; do
7035 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7056 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7057 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7058 # Check whether --enable-nls or --disable-nls was given.
7059 if test "${enable_nls+set}" = set; then
7060 enableval="$enable_nls"
7065 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7066 echo "${ECHO_T}$USE_NLS" >&6
7075 if test "$USE_NLS" = "yes"; then
7076 gt_use_preinstalled_gnugettext=no
7083 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7084 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7085 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.$ac_ext <<_ACEOF
7089 #line $LINENO "configure"
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 #include <libintl.h>
7096 extern int _nl_msg_cat_cntr;
7097 extern int *_nl_domain_bindings;
7101 bindtextdomain ("", "");
7102 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -s conftest$ac_exeext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7119 gt_cv_func_gnugettext1_libc=yes
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 gt_cv_func_gnugettext1_libc=no
7126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7129 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7131 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7137 am_save_CPPFLAGS="$CPPFLAGS"
7139 for element in $INCICONV; do
7141 for x in $CPPFLAGS; do
7143 acl_save_prefix="$prefix"
7144 prefix="$acl_final_prefix"
7145 acl_save_exec_prefix="$exec_prefix"
7146 exec_prefix="$acl_final_exec_prefix"
7148 exec_prefix="$acl_save_exec_prefix"
7149 prefix="$acl_save_prefix"
7151 if test "X$x" = "X$element"; then
7156 if test -z "$haveit"; then
7157 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7162 echo "$as_me:$LINENO: checking for iconv" >&5
7163 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7164 if test "${am_cv_func_iconv+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 am_cv_func_iconv="no, consider installing GNU libiconv"
7170 cat >conftest.$ac_ext <<_ACEOF
7171 #line $LINENO "configure"
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7182 iconv_t cd = iconv_open("","");
7183 iconv(cd,NULL,NULL,NULL,NULL);
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 am_cv_func_iconv=yes
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7208 if test "$am_cv_func_iconv" != yes; then
7209 am_save_LIBS="$LIBS"
7210 LIBS="$LIBS $LIBICONV"
7211 cat >conftest.$ac_ext <<_ACEOF
7212 #line $LINENO "configure"
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7223 iconv_t cd = iconv_open("","");
7224 iconv(cd,NULL,NULL,NULL,NULL);
7230 rm -f conftest.$ac_objext conftest$ac_exeext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7232 (eval $ac_link) 2>&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -s conftest$ac_exeext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7243 am_cv_func_iconv=yes
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7250 LIBS="$am_save_LIBS"
7254 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7255 echo "${ECHO_T}$am_cv_func_iconv" >&6
7256 if test "$am_cv_func_iconv" = yes; then
7258 cat >>confdefs.h <<\_ACEOF
7259 #define HAVE_ICONV 1
7263 if test "$am_cv_lib_iconv" = yes; then
7264 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7265 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7266 echo "$as_me:$LINENO: result: $LIBICONV" >&5
7267 echo "${ECHO_T}$LIBICONV" >&6
7269 CPPFLAGS="$am_save_CPPFLAGS"
7281 acl_save_prefix="$prefix"
7282 prefix="$acl_final_prefix"
7283 acl_save_exec_prefix="$exec_prefix"
7284 exec_prefix="$acl_final_exec_prefix"
7286 eval additional_includedir=\"$includedir\"
7287 eval additional_libdir=\"$libdir\"
7289 exec_prefix="$acl_save_exec_prefix"
7290 prefix="$acl_save_prefix"
7293 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
7294 if test "${with_libintl_prefix+set}" = set; then
7295 withval="$with_libintl_prefix"
7297 if test "X$withval" = "Xno"; then
7300 if test "X$withval" = "X"; then
7302 acl_save_prefix="$prefix"
7303 prefix="$acl_final_prefix"
7304 acl_save_exec_prefix="$exec_prefix"
7305 exec_prefix="$acl_final_exec_prefix"
7307 eval additional_includedir=\"$includedir\"
7308 eval additional_libdir=\"$libdir\"
7310 exec_prefix="$acl_save_exec_prefix"
7311 prefix="$acl_save_prefix"
7314 additional_includedir="$withval/include"
7315 additional_libdir="$withval/lib"
7325 names_already_handled=
7326 names_next_round='intl '
7327 while test -n "$names_next_round"; do
7328 names_this_round="$names_next_round"
7330 for name in $names_this_round; do
7332 for n in $names_already_handled; do
7333 if test "$n" = "$name"; then
7338 if test -z "$already_handled"; then
7339 names_already_handled="$names_already_handled $name"
7340 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7341 eval value=\"\$HAVE_LIB$uppername\"
7342 if test -n "$value"; then
7343 if test "$value" = yes; then
7344 eval value=\"\$LIB$uppername\"
7345 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7346 eval value=\"\$LTLIB$uppername\"
7347 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7356 if test $use_additional = yes; then
7357 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7358 found_dir="$additional_libdir"
7359 found_so="$additional_libdir/lib$name.$shlibext"
7360 if test -f "$additional_libdir/lib$name.la"; then
7361 found_la="$additional_libdir/lib$name.la"
7364 if test -f "$additional_libdir/lib$name.$libext"; then
7365 found_dir="$additional_libdir"
7366 found_a="$additional_libdir/lib$name.$libext"
7367 if test -f "$additional_libdir/lib$name.la"; then
7368 found_la="$additional_libdir/lib$name.la"
7373 if test "X$found_dir" = "X"; then
7374 for x in $LDFLAGS $LTLIBINTL; do
7376 acl_save_prefix="$prefix"
7377 prefix="$acl_final_prefix"
7378 acl_save_exec_prefix="$exec_prefix"
7379 exec_prefix="$acl_final_exec_prefix"
7381 exec_prefix="$acl_save_exec_prefix"
7382 prefix="$acl_save_prefix"
7386 dir=`echo "X$x" | sed -e 's/^X-L//'`
7387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7389 found_so="$dir/lib$name.$shlibext"
7390 if test -f "$dir/lib$name.la"; then
7391 found_la="$dir/lib$name.la"
7394 if test -f "$dir/lib$name.$libext"; then
7396 found_a="$dir/lib$name.$libext"
7397 if test -f "$dir/lib$name.la"; then
7398 found_la="$dir/lib$name.la"
7404 if test "X$found_dir" != "X"; then
7409 if test "X$found_dir" != "X"; then
7410 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7411 if test "X$found_so" != "X"; then
7412 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7413 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7416 for x in $ltrpathdirs; do
7417 if test "X$x" = "X$found_dir"; then
7422 if test -z "$haveit"; then
7423 ltrpathdirs="$ltrpathdirs $found_dir"
7425 if test "$hardcode_direct" = yes; then
7426 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7428 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7429 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7431 for x in $rpathdirs; do
7432 if test "X$x" = "X$found_dir"; then
7437 if test -z "$haveit"; then
7438 rpathdirs="$rpathdirs $found_dir"
7442 for x in $LDFLAGS $LIBINTL; do
7444 acl_save_prefix="$prefix"
7445 prefix="$acl_final_prefix"
7446 acl_save_exec_prefix="$exec_prefix"
7447 exec_prefix="$acl_final_exec_prefix"
7449 exec_prefix="$acl_save_exec_prefix"
7450 prefix="$acl_save_prefix"
7452 if test "X$x" = "X-L$found_dir"; then
7457 if test -z "$haveit"; then
7458 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7460 if test "$hardcode_minus_L" != no; then
7461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7463 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7469 if test "X$found_a" != "X"; then
7470 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7472 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7475 additional_includedir=
7476 case "$found_dir" in
7478 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7479 additional_includedir="$basedir/include"
7482 if test "X$additional_includedir" != "X"; then
7483 if test "X$additional_includedir" != "X/usr/include"; then
7485 if test "X$additional_includedir" = "X/usr/local/include"; then
7486 if test -n "$GCC"; then
7488 linux*) haveit=yes;;
7492 if test -z "$haveit"; then
7493 for x in $CPPFLAGS $INCINTL; do
7495 acl_save_prefix="$prefix"
7496 prefix="$acl_final_prefix"
7497 acl_save_exec_prefix="$exec_prefix"
7498 exec_prefix="$acl_final_exec_prefix"
7500 exec_prefix="$acl_save_exec_prefix"
7501 prefix="$acl_save_prefix"
7503 if test "X$x" = "X-I$additional_includedir"; then
7508 if test -z "$haveit"; then
7509 if test -d "$additional_includedir"; then
7510 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7516 if test -n "$found_la"; then
7517 save_libdir="$libdir"
7519 */* | *\\*) . "$found_la" ;;
7520 *) . "./$found_la" ;;
7522 libdir="$save_libdir"
7523 for dep in $dependency_libs; do
7526 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7527 if test "X$additional_libdir" != "X/usr/lib"; then
7529 if test "X$additional_libdir" = "X/usr/local/lib"; then
7530 if test -n "$GCC"; then
7532 linux*) haveit=yes;;
7536 if test -z "$haveit"; then
7538 for x in $LDFLAGS $LIBINTL; do
7540 acl_save_prefix="$prefix"
7541 prefix="$acl_final_prefix"
7542 acl_save_exec_prefix="$exec_prefix"
7543 exec_prefix="$acl_final_exec_prefix"
7545 exec_prefix="$acl_save_exec_prefix"
7546 prefix="$acl_save_prefix"
7548 if test "X$x" = "X-L$additional_libdir"; then
7553 if test -z "$haveit"; then
7554 if test -d "$additional_libdir"; then
7555 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7559 for x in $LDFLAGS $LTLIBINTL; do
7561 acl_save_prefix="$prefix"
7562 prefix="$acl_final_prefix"
7563 acl_save_exec_prefix="$exec_prefix"
7564 exec_prefix="$acl_final_exec_prefix"
7566 exec_prefix="$acl_save_exec_prefix"
7567 prefix="$acl_save_prefix"
7569 if test "X$x" = "X-L$additional_libdir"; then
7574 if test -z "$haveit"; then
7575 if test -d "$additional_libdir"; then
7576 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7583 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7584 if test "$enable_rpath" != no; then
7586 for x in $rpathdirs; do
7587 if test "X$x" = "X$dir"; then
7592 if test -z "$haveit"; then
7593 rpathdirs="$rpathdirs $dir"
7596 for x in $ltrpathdirs; do
7597 if test "X$x" = "X$dir"; then
7602 if test -z "$haveit"; then
7603 ltrpathdirs="$ltrpathdirs $dir"
7608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7614 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7615 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7621 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7622 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7628 if test "X$rpathdirs" != "X"; then
7629 if test -n "$hardcode_libdir_separator"; then
7631 for found_dir in $rpathdirs; do
7632 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7634 acl_save_libdir="$libdir"
7636 eval flag=\"$hardcode_libdir_flag_spec\"
7637 libdir="$acl_save_libdir"
7638 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7640 for found_dir in $rpathdirs; do
7641 acl_save_libdir="$libdir"
7643 eval flag=\"$hardcode_libdir_flag_spec\"
7644 libdir="$acl_save_libdir"
7645 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7649 if test "X$ltrpathdirs" != "X"; then
7650 for found_dir in $ltrpathdirs; do
7651 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7655 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7656 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7657 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 gt_save_CPPFLAGS="$CPPFLAGS"
7661 CPPFLAGS="$CPPFLAGS $INCINTL"
7662 gt_save_LIBS="$LIBS"
7663 LIBS="$LIBS $LIBINTL"
7664 cat >conftest.$ac_ext <<_ACEOF
7665 #line $LINENO "configure"
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 #include <libintl.h>
7672 extern int _nl_msg_cat_cntr;
7677 const char *_nl_expand_alias ();
7681 bindtextdomain ("", "");
7682 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 gt_cv_func_gnugettext1_libintl=yes
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 gt_cv_func_gnugettext1_libintl=no
7706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7707 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7708 LIBS="$LIBS $LIBICONV"
7709 cat >conftest.$ac_ext <<_ACEOF
7710 #line $LINENO "configure"
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716 #include <libintl.h>
7717 extern int _nl_msg_cat_cntr;
7722 const char *_nl_expand_alias ();
7726 bindtextdomain ("", "");
7727 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7732 rm -f conftest.$ac_objext conftest$ac_exeext
7733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7734 (eval $ac_link) 2>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -s conftest$ac_exeext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 LIBINTL="$LIBINTL $LIBICONV"
7745 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7746 gt_cv_func_gnugettext1_libintl=yes
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7755 CPPFLAGS="$gt_save_CPPFLAGS"
7756 LIBS="$gt_save_LIBS"
7758 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7759 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7762 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7763 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7764 && test "$PACKAGE" != gettext-runtime \
7765 && test "$PACKAGE" != gettext-tools; }; then
7766 gt_use_preinstalled_gnugettext=yes
7775 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7776 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7778 cat >>confdefs.h <<\_ACEOF
7779 #define ENABLE_NLS 1
7787 echo "$as_me:$LINENO: checking whether to use NLS" >&5
7788 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
7789 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7790 echo "${ECHO_T}$USE_NLS" >&6
7791 if test "$USE_NLS" = "yes"; then
7792 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7793 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
7794 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7795 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7796 gt_source="external libintl"
7801 gt_source="included intl directory"
7803 echo "$as_me:$LINENO: result: $gt_source" >&5
7804 echo "${ECHO_T}$gt_source" >&6
7807 if test "$USE_NLS" = "yes"; then
7809 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7810 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7811 echo "$as_me:$LINENO: checking how to link with libintl" >&5
7812 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7813 echo "$as_me:$LINENO: result: $LIBINTL" >&5
7814 echo "${ECHO_T}$LIBINTL" >&6
7816 for element in $INCINTL; do
7818 for x in $CPPFLAGS; do
7820 acl_save_prefix="$prefix"
7821 prefix="$acl_final_prefix"
7822 acl_save_exec_prefix="$exec_prefix"
7823 exec_prefix="$acl_final_exec_prefix"
7825 exec_prefix="$acl_save_exec_prefix"
7826 prefix="$acl_save_prefix"
7828 if test "X$x" = "X$element"; then
7833 if test -z "$haveit"; then
7834 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7841 cat >>confdefs.h <<\_ACEOF
7842 #define HAVE_GETTEXT 1
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DCGETTEXT 1
7870 cat >>confdefs.h <<\_ACEOF
7871 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
7874 cat >>confdefs.h <<\_ACEOF
7875 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
7878 if test "$GCC" = yes; then
7879 CONF_CFLAGS="-fwritable-strings"
7883 CONF_CFLAGS="-Aa -D_HPUX_SOURCE"
7887 if test -d /opt/hppd/include/X11; then
7888 X_CFLAGS="$X_CFLAGS -I/opt/hppd/include"
7889 X_LIBS="$X_LIBS -L/opt/hppd/lib"
7890 elif test -d /usr/contrib/X11R5/include; then
7891 X_CFLAGS="$X_CFLAGS -I/usr/contrib/X11R5/include"
7892 X_LIBS="$X_LIBS -L/usr/contrib/X11R5/lib"
7893 elif test -d /usr/contrib/mitX11R5/include; then
7894 X_CFLAGS="$X_CFLAGS -I/usr/contrib/mitX11R5/include"
7895 X_LIBS="$X_LIBS -L/usr/contrib/mitX11R5/lib"
7896 elif test -d /MIT/X11R5/include; then
7897 X_CFLAGS="$X_CFLAGS -I/MIT/X11R5/include"
7898 X_LIBS="$X_LIBS -L/MIT/X11R5/lib"
7899 elif test -d /usr/local/include/X11R5; then
7900 X_CFLAGS="$X_CFLAGS -I/usr/local/include/X11R5"
7901 X_LIBS="$X_LIBS -L/usr/local/lib/X11R5"
7903 if test -d /usr/include/X11R5; then
7904 X_CFLAGS="$X_CFLAGS -I/usr/include/X11R5"
7905 X_LIBS="$X_LIBS -L/usr/lib/X11R5 -L/usr/lib/X11R4"
7906 elif test -d /usr/include/X11R4; then
7907 X_CFLAGS="$X_CFLAGS -I/usr/include/X11R4"
7908 X_LIBS="$X_LIBS -L/usr/lib/X11R4"
7913 cat >>confdefs.h <<\_ACEOF
7920 if test "$GCC" = yes; then
7921 CONF_CFLAGS="-fwritable-strings"
7925 *-*-aix3* | *-*-bosx* )
7926 cat >>confdefs.h <<\_ACEOF
7927 #define PTY_ITERATION for (c = 0; !c; c++)
7930 cat >>confdefs.h <<\_ACEOF
7931 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
7934 cat >>confdefs.h <<\_ACEOF
7935 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
7941 cat >>confdefs.h <<\_ACEOF
7942 #define FIRST_PTY_LETTER 'A'
7945 cat >>confdefs.h <<\_ACEOF
7946 #define LAST_PTY_LETTER 'P'
7952 cat >>confdefs.h <<\_ACEOF
7959 cat >>confdefs.h <<\_ACEOF
7960 #define FIRST_PTY_LETTER 'z'
7963 cat >>confdefs.h <<\_ACEOF
7964 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%x", i);
7967 cat >>confdefs.h <<\_ACEOF
7968 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty%x", i);
7971 cat >>confdefs.h <<\_ACEOF
7977 *-*-iris* | *-*-irix3* )
7978 cat >>confdefs.h <<\_ACEOF
7979 #define PTY_ITERATION for (c = 0; !c; c++)
7982 cat >>confdefs.h <<\_ACEOF
7983 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
7986 cat >>confdefs.h <<\_ACEOF
7987 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyq%d", minor(stb.st_rdev));
7995 *-*-sunos4* | *-*-solaris1* )
7998 if test "$GCC" = yes; then
7999 PRE_XMULIB="-static"
8000 POST_XMULIB="-dynamic"
8002 PRE_XMULIB="-Bstatic"
8003 POST_XMULIB="-Bdynamic"
8007 *-*-sunos5* | *-*-solaris2* )
8010 X_LIBS="$X_LIBS -lelf"
8014 cat >>confdefs.h <<\_ACEOF
8015 #define PTY_ITERATION for (i = 0; ; i++)
8018 cat >>confdefs.h <<\_ACEOF
8019 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptyp%d", i);
8022 cat >>confdefs.h <<\_ACEOF
8023 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%d", i);
8028 *-*-dynix* | *-*-ptx* )
8034 *-*-usg5-4* | *-*-sysvr4* )
8037 *-*-usg* | *-*-sysv* | *-*-aix* )
8041 if test "$GCC" = yes; then
8042 CONF_CFLAGS="-fwritable-strings"
8047 # Check whether --enable-xpm or --disable-xpm was given.
8048 if test "${enable_xpm+set}" = set; then
8049 enableval="$enable_xpm"
8050 enable_xpm="$enableval"
8055 if test "$enable_xpm" = "yes"; then
8056 save_cflags="$CFLAGS"
8057 CFLAGS="$CFLAGS $X_CFLAGS"
8058 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8060 for ac_header in X11/xpm.h
8062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8064 echo "$as_me:$LINENO: checking for $ac_header" >&5
8065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8072 # Is the header compilable?
8073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 $ac_includes_default
8083 #include <$ac_header>
8085 rm -f conftest.$ac_objext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8087 (eval $ac_compile) 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -s conftest.$ac_objext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_header_compiler=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_header_compiler=no
8104 rm -f conftest.$ac_objext conftest.$ac_ext
8105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8106 echo "${ECHO_T}$ac_header_compiler" >&6
8108 # Is the header present?
8109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8111 cat >conftest.$ac_ext <<_ACEOF
8112 #line $LINENO "configure"
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 #include <$ac_header>
8120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } >/dev/null; then
8128 if test -s conftest.err; then
8129 ac_cpp_err=$ac_c_preproc_warn_flag
8136 if test -z "$ac_cpp_err"; then
8137 ac_header_preproc=yes
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 ac_header_preproc=no
8144 rm -f conftest.err conftest.$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8146 echo "${ECHO_T}$ac_header_preproc" >&6
8148 # So? What about this header?
8149 case $ac_header_compiler:$ac_header_preproc in
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8157 ## ------------------------------------ ##
8158 ## Report this to bug-autoconf@gnu.org. ##
8159 ## ------------------------------------ ##
8162 sed "s/^/$as_me: WARNING: /" >&2
8165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8173 ## ------------------------------------ ##
8174 ## Report this to bug-autoconf@gnu.org. ##
8175 ## ------------------------------------ ##
8178 sed "s/^/$as_me: WARNING: /" >&2
8181 echo "$as_me:$LINENO: checking for $ac_header" >&5
8182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 eval "$as_ac_Header=$ac_header_preproc"
8188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8193 cat >>confdefs.h <<_ACEOF
8194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8201 CFLAGS="$save_cflags"
8202 if test "$ac_cv_header_X11_xpm_h" = "yes"; then
8203 save_ldflags="$LDFLAGS"
8204 LDFLAGS="$LDFLAGS $X_LIBS"
8205 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8206 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8207 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 ac_check_lib_save_LIBS=$LIBS
8211 LIBS="-lXpm $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8220 /* Override any gcc2 internal prototype to avoid an error. */
8224 /* We use char because int might match the return type of a gcc2
8225 builtin and then its argument prototype would still apply. */
8226 char XpmReadFileToPixmap ();
8230 XpmReadFileToPixmap ();
8235 rm -f conftest.$ac_objext conftest$ac_exeext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237 (eval $ac_link) 2>&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8252 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8255 LIBS=$ac_check_lib_save_LIBS
8257 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8258 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8259 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8260 X_PRE_LIBS="-lXpm $X_PRE_LIBS"; cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_LIBXPM 1
8266 LDFLAGS="$save_ldflags"
8275 echo "$as_me:$LINENO: checking whether ptys or pipes should be used" >&5
8276 echo $ECHO_N "checking whether ptys or pipes should be used... $ECHO_C" >&6
8277 # Check whether --enable-ptys or --disable-ptys was given.
8278 if test "${enable_ptys+set}" = set; then
8279 enableval="$enable_ptys"
8280 if test "$enableval" = yes; then
8282 echo "$as_me:$LINENO: result: ptys (user override)" >&5
8283 echo "${ECHO_T}ptys (user override)" >&6
8285 if test "$enableval" = no; then
8287 echo "$as_me:$LINENO: result: pipes (user override)" >&5
8288 echo "${ECHO_T}pipes (user override)" >&6
8291 if test "$USE_PTYS" = 1; then
8292 echo "$as_me:$LINENO: result: ptys" >&5
8293 echo "${ECHO_T}ptys" >&6
8295 echo "$as_me:$LINENO: result: pipes" >&5
8296 echo "${ECHO_T}pipes" >&6
8299 cat >>confdefs.h <<_ACEOF
8300 #define USE_PTYS $USE_PTYS
8304 # Check whether --enable-zippy or --disable-zippy was given.
8305 if test "${enable_zippy+set}" = set; then
8306 enableval="$enable_zippy"
8307 enable_zippy="$enableval"
8311 if test "$enable_zippy" = yes; then
8312 cat >>confdefs.h <<\_ACEOF
8322 # Check whether --enable-sigint or --disable-sigint was given.
8323 if test "${enable_sigint+set}" = set; then
8324 enableval="$enable_sigint"
8325 if test "$enableval" = yes; then
8326 cat >>confdefs.h <<\_ACEOF
8332 cat >>confdefs.h <<\_ACEOF
8338 cat >>confdefs.h <<_ACEOF
8339 #define PRODUCT "$PRODUCT"
8342 cat >>confdefs.h <<_ACEOF
8343 #define VERSION "$VERSION"
8346 cat >>confdefs.h <<_ACEOF
8347 #define PATCHLEVEL "$PATCHLEVEL"
8354 ac_config_files="$ac_config_files Makefile cmail xboard.texinfo po/Makefile.in"
8355 ac_config_commands="$ac_config_commands default"
8356 cat >confcache <<\_ACEOF
8357 # This file is a shell script that caches the results of configure
8358 # tests run on this system so they can be shared between configure
8359 # scripts and configure runs, see configure's option --config-cache.
8360 # It is not useful on other systems. If it contains results you don't
8361 # want to keep, you may remove or edit it.
8363 # config.status only pays attention to the cache file if you give it
8364 # the --recheck option to rerun configure.
8366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8372 # The following way of writing the cache mishandles newlines in values,
8373 # but we know of no workaround that is simple, portable, and efficient.
8374 # So, don't put newlines in cache variables' values.
8375 # Ultrix sh set writes to stderr and can't be redirected directly,
8376 # and sets the high bit in the cache file unless we assign to the vars.
8379 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8381 # `set' does not quote correctly, so add quotes (double-quote
8382 # substitution turns \\\\ into \\, and sed turns \\ into \).
8385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8388 # `set' quotes correctly as required by POSIX, so do not add quotes.
8390 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8399 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8401 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8402 if test -w $cache_file; then
8403 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8404 cat confcache >$cache_file
8406 echo "not updating unwritable cache $cache_file"
8411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8412 # Let make expand exec_prefix.
8413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8415 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8416 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8417 # trailing colons and then remove the whole line if VPATH becomes empty
8418 # (actually we leave an empty line to preserve line numbers).
8419 if test "x$srcdir" = x.; then
8420 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8421 s/:*\$(srcdir):*/:/;
8422 s/:*\${srcdir}:*/:/;
8424 s/^\([^=]*=[ ]*\):*/\1/;
8430 DEFS=-DHAVE_CONFIG_H
8434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8435 # 1. Remove the extension, and $U if already installed.
8436 ac_i=`echo "$ac_i" |
8437 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8439 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8440 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8444 LTLIBOBJS=$ac_ltlibobjs
8448 : ${CONFIG_STATUS=./config.status}
8449 ac_clean_files_save=$ac_clean_files
8450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8451 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8452 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8453 cat >$CONFIG_STATUS <<_ACEOF
8455 # Generated by $as_me.
8456 # Run this file to recreate the current configuration.
8457 # Compiler output produced by configure, useful for debugging
8458 # configure, is in config.log if it exists.
8463 SHELL=\${CONFIG_SHELL-$SHELL}
8466 cat >>$CONFIG_STATUS <<\_ACEOF
8467 ## --------------------- ##
8468 ## M4sh Initialization. ##
8469 ## --------------------- ##
8471 # Be Bourne compatible
8472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8475 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8476 # is contrary to our usage. Disable this feature.
8477 alias -g '${1+"$@"}'='"$@"'
8478 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8482 # Support unset when possible.
8483 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8490 # Work around bugs in pre-3.0 UWIN ksh.
8491 $as_unset ENV MAIL MAILPATH
8498 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8499 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8500 LC_TELEPHONE LC_TIME
8502 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8503 eval $as_var=C; export $as_var
8509 # Required to use basename.
8510 if expr a : '\(a\)' >/dev/null 2>&1; then
8516 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8517 as_basename=basename
8523 # Name of the executable.
8524 as_me=`$as_basename "$0" ||
8525 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8526 X"$0" : 'X\(//\)$' \| \
8527 X"$0" : 'X\(/\)$' \| \
8528 . : '\(.\)' 2>/dev/null ||
8530 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8531 /^X\/\(\/\/\)$/{ s//\1/; q; }
8532 /^X\/\(\/\).*/{ s//\1/; q; }
8536 # PATH needs CR, and LINENO needs CR and PATH.
8537 # Avoid depending upon Character Ranges.
8538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8541 as_cr_digits='0123456789'
8542 as_cr_alnum=$as_cr_Letters$as_cr_digits
8544 # The user is always right.
8545 if test "${PATH_SEPARATOR+set}" != set; then
8546 echo "#! /bin/sh" >conf$$.sh
8547 echo "exit 0" >>conf$$.sh
8549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8560 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8561 test "x$as_lineno_1" != "x$as_lineno_2" &&
8562 test "x$as_lineno_3" = "x$as_lineno_2" || {
8563 # Find who we are. Look in the path if we contain no path at all
8566 *[\\/]* ) as_myself=$0 ;;
8567 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir=.
8572 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8577 # We did not find ourselves, most probably we were run as `sh COMMAND'
8578 # in which case we are not to be found in the path.
8579 if test "x$as_myself" = x; then
8582 if test ! -f "$as_myself"; then
8583 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8584 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8585 { (exit 1); exit 1; }; }
8587 case $CONFIG_SHELL in
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8593 test -z "$as_dir" && as_dir=.
8594 for as_base in sh bash ksh sh5; do
8597 if ("$as_dir/$as_base" -c '
8600 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8601 test "x$as_lineno_1" != "x$as_lineno_2" &&
8602 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8603 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8604 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8605 CONFIG_SHELL=$as_dir/$as_base
8607 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8615 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8616 # uniformly replaced by the line number. The first 'sed' inserts a
8617 # line-number line before each line; the second 'sed' does the real
8618 # work. The second script uses 'N' to pair each line-number line
8619 # with the numbered line, and appends trailing '-' during
8620 # substitution so that $LINENO is not a special case at line end.
8621 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8622 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8623 sed '=' <$as_myself |
8628 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8631 s,^['$as_cr_digits']*\n,,
8633 chmod +x $as_me.lineno ||
8634 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8635 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8636 { (exit 1); exit 1; }; }
8638 # Don't try to exec as it changes $[0], causing all sort of problems
8639 # (the dirname of $[0] is not the place where we might find the
8640 # original and so on. Autoconf is especially sensible to this).
8642 # Exit status is that of the last command.
8647 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8648 *c*,-n*) ECHO_N= ECHO_C='
8650 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8651 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8654 if expr a : '\(a\)' >/dev/null 2>&1; then
8660 rm -f conf$$ conf$$.exe conf$$.file
8662 if ln -s conf$$.file conf$$ 2>/dev/null; then
8663 # We could just check for DJGPP; but this test a) works b) is more generic
8664 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8665 if test -f conf$$.exe; then
8666 # Don't use ln at all; we don't have any links
8671 elif ln conf$$.file conf$$ 2>/dev/null; then
8676 rm -f conf$$ conf$$.exe conf$$.file
8678 if mkdir -p . 2>/dev/null; then
8684 as_executable_p="test -f"
8686 # Sed expression to map a string onto a valid CPP name.
8687 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8689 # Sed expression to map a string onto a valid variable name.
8690 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8694 # We need space, tab and new line, in precisely that order.
8704 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8705 # report actual input values of CONFIG_FILES etc. instead of their
8706 # values after options handling. Logging --version etc. is OK.
8710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8711 ## Running $as_me. ##
8716 This file was extended by $as_me, which was
8717 generated by GNU Autoconf 2.57. Invocation command line was
8719 CONFIG_FILES = $CONFIG_FILES
8720 CONFIG_HEADERS = $CONFIG_HEADERS
8721 CONFIG_LINKS = $CONFIG_LINKS
8722 CONFIG_COMMANDS = $CONFIG_COMMANDS
8726 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8730 # Files that config.status was made for.
8731 if test -n "$ac_config_files"; then
8732 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8735 if test -n "$ac_config_headers"; then
8736 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8739 if test -n "$ac_config_links"; then
8740 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8743 if test -n "$ac_config_commands"; then
8744 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8747 cat >>$CONFIG_STATUS <<\_ACEOF
8750 \`$as_me' instantiates files from templates according to the
8751 current configuration.
8753 Usage: $0 [OPTIONS] [FILE]...
8755 -h, --help print this help, then exit
8756 -V, --version print version number, then exit
8757 -q, --quiet do not print progress messages
8758 -d, --debug don't remove temporary files
8759 --recheck update $as_me by reconfiguring in the same conditions
8760 --file=FILE[:TEMPLATE]
8761 instantiate the configuration file FILE
8762 --header=FILE[:TEMPLATE]
8763 instantiate the configuration header FILE
8765 Configuration files:
8768 Configuration headers:
8771 Configuration commands:
8774 Report bugs to <bug-autoconf@gnu.org>."
8777 cat >>$CONFIG_STATUS <<_ACEOF
8780 configured by $0, generated by GNU Autoconf 2.57,
8781 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8783 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8784 Free Software Foundation, Inc.
8785 This config.status script is free software; the Free Software Foundation
8786 gives unlimited permission to copy, distribute and modify it."
8791 cat >>$CONFIG_STATUS <<\_ACEOF
8792 # If no file are specified by the user, then we need to provide default
8793 # value. By we need to know if files were specified by the user.
8799 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8800 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8808 *) # This is not an option, so the user has probably given explicit
8811 ac_need_defaults=false;;
8815 # Handling of the options.
8817 cat >>$CONFIG_STATUS <<\_ACEOF
8818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8820 --version | --vers* | -V )
8821 echo "$ac_cs_version"; exit 0 ;;
8823 # Conflict between --help and --header
8824 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8825 Try \`$0 --help' for more information." >&5
8826 echo "$as_me: error: ambiguous option: $1
8827 Try \`$0 --help' for more information." >&2;}
8828 { (exit 1); exit 1; }; };;
8829 --help | --hel | -h )
8830 echo "$ac_cs_usage"; exit 0 ;;
8831 --debug | --d* | -d )
8833 --file | --fil | --fi | --f )
8835 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8836 ac_need_defaults=false;;
8837 --header | --heade | --head | --hea )
8839 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8840 ac_need_defaults=false;;
8841 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8842 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8846 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8847 Try \`$0 --help' for more information." >&5
8848 echo "$as_me: error: unrecognized option: $1
8849 Try \`$0 --help' for more information." >&2;}
8850 { (exit 1); exit 1; }; } ;;
8852 *) ac_config_targets="$ac_config_targets $1" ;;
8858 ac_configure_extra_args=
8860 if $ac_cs_silent; then
8862 ac_configure_extra_args="$ac_configure_extra_args --silent"
8866 cat >>$CONFIG_STATUS <<_ACEOF
8867 if \$ac_cs_recheck; then
8868 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8869 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8874 cat >>$CONFIG_STATUS <<_ACEOF
8876 # INIT-COMMANDS section.
8879 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8880 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8882 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8883 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8884 LINGUAS="${LINGUAS-%UNSET%}"
8891 cat >>$CONFIG_STATUS <<\_ACEOF
8892 for ac_config_target in $ac_config_targets
8894 case "$ac_config_target" in
8895 # Handling of arguments.
8896 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8897 "cmail" ) CONFIG_FILES="$CONFIG_FILES cmail" ;;
8898 "xboard.texinfo" ) CONFIG_FILES="$CONFIG_FILES xboard.texinfo" ;;
8899 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8900 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8901 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8902 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8904 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8905 { (exit 1); exit 1; }; };;
8909 # If the user did not use the arguments to specify the items to instantiate,
8910 # then the envvar interface is used. Set only those that are not.
8911 # We use the long form for the default assignment because of an extremely
8912 # bizarre bug on SunOS 4.1.3.
8913 if $ac_need_defaults; then
8914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8919 # Have a temporary directory for convenience. Make it in the build tree
8920 # simply because there is no reason to put it here, and in addition,
8921 # creating and moving files from /tmp can sometimes cause problems.
8922 # Create a temporary directory, and hook for its removal unless debugging.
8925 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8926 trap '{ (exit 1); exit 1; }' 1 2 13 15
8929 # Create a (secure) tmp directory for tmp files.
8932 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8933 test -n "$tmp" && test -d "$tmp"
8936 tmp=./confstat$$-$RANDOM
8937 (umask 077 && mkdir $tmp)
8940 echo "$me: cannot create a temporary directory in ." >&2
8941 { (exit 1); exit 1; }
8946 cat >>$CONFIG_STATUS <<_ACEOF
8949 # CONFIG_FILES section.
8952 # No need to generate the scripts if there are no CONFIG_FILES.
8953 # This happens for instance when ./config.status config.h
8954 if test -n "\$CONFIG_FILES"; then
8955 # Protect against being on the right side of a sed subst in config.status.
8956 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8957 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8958 s,@SHELL@,$SHELL,;t t
8959 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8960 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8961 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8962 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8963 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8964 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8965 s,@exec_prefix@,$exec_prefix,;t t
8966 s,@prefix@,$prefix,;t t
8967 s,@program_transform_name@,$program_transform_name,;t t
8968 s,@bindir@,$bindir,;t t
8969 s,@sbindir@,$sbindir,;t t
8970 s,@libexecdir@,$libexecdir,;t t
8971 s,@datadir@,$datadir,;t t
8972 s,@sysconfdir@,$sysconfdir,;t t
8973 s,@sharedstatedir@,$sharedstatedir,;t t
8974 s,@localstatedir@,$localstatedir,;t t
8975 s,@libdir@,$libdir,;t t
8976 s,@includedir@,$includedir,;t t
8977 s,@oldincludedir@,$oldincludedir,;t t
8978 s,@infodir@,$infodir,;t t
8979 s,@mandir@,$mandir,;t t
8980 s,@build_alias@,$build_alias,;t t
8981 s,@host_alias@,$host_alias,;t t
8982 s,@target_alias@,$target_alias,;t t
8984 s,@ECHO_C@,$ECHO_C,;t t
8985 s,@ECHO_N@,$ECHO_N,;t t
8986 s,@ECHO_T@,$ECHO_T,;t t
8989 s,@CFLAGS@,$CFLAGS,;t t
8990 s,@LDFLAGS@,$LDFLAGS,;t t
8991 s,@CPPFLAGS@,$CPPFLAGS,;t t
8992 s,@ac_ct_CC@,$ac_ct_CC,;t t
8993 s,@EXEEXT@,$EXEEXT,;t t
8994 s,@OBJEXT@,$OBJEXT,;t t
8996 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8997 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8998 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9000 s,@LEXLIB@,$LEXLIB,;t t
9001 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9003 s,@NROFF@,$NROFF,;t t
9004 s,@NROFFFLAGS@,$NROFFFLAGS,;t t
9005 s,@AWKPATH@,$AWKPATH,;t t
9006 s,@PERLPATH@,$PERLPATH,;t t
9007 s,@XAW_LIBS@,$XAW_LIBS,;t t
9008 s,@EGREP@,$EGREP,;t t
9009 s,@X_CFLAGS@,$X_CFLAGS,;t t
9010 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9011 s,@X_LIBS@,$X_LIBS,;t t
9012 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9013 s,@build@,$build,;t t
9014 s,@build_cpu@,$build_cpu,;t t
9015 s,@build_vendor@,$build_vendor,;t t
9016 s,@build_os@,$build_os,;t t
9018 s,@host_cpu@,$host_cpu,;t t
9019 s,@host_vendor@,$host_vendor,;t t
9020 s,@host_os@,$host_os,;t t
9021 s,@SET_MAKE@,$SET_MAKE,;t t
9022 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9023 s,@USE_NLS@,$USE_NLS,;t t
9024 s,@MSGFMT@,$MSGFMT,;t t
9025 s,@GMSGFMT@,$GMSGFMT,;t t
9026 s,@XGETTEXT@,$XGETTEXT,;t t
9027 s,@MSGMERGE@,$MSGMERGE,;t t
9028 s,@LIBICONV@,$LIBICONV,;t t
9029 s,@LTLIBICONV@,$LTLIBICONV,;t t
9030 s,@INTLLIBS@,$INTLLIBS,;t t
9031 s,@LIBINTL@,$LIBINTL,;t t
9032 s,@LTLIBINTL@,$LTLIBINTL,;t t
9033 s,@POSUB@,$POSUB,;t t
9034 s,@PRE_XMULIB@,$PRE_XMULIB,;t t
9035 s,@POST_XMULIB@,$POST_XMULIB,;t t
9036 s,@CONF_CFLAGS@,$CONF_CFLAGS,;t t
9037 s,@CONF_LDFLAGS@,$CONF_LDFLAGS,;t t
9038 s,@ZIPPY_O@,$ZIPPY_O,;t t
9039 s,@ZIPPY_H@,$ZIPPY_H,;t t
9040 s,@PRODUCT@,$PRODUCT,;t t
9041 s,@VERSION@,$VERSION,;t t
9042 s,@PATCHLEVEL@,$PATCHLEVEL,;t t
9043 s,@LIBOBJS@,$LIBOBJS,;t t
9044 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9049 cat >>$CONFIG_STATUS <<\_ACEOF
9050 # Split the substitutions into bite-sized pieces for seds with
9051 # small command number limits, like on Digital OSF/1 and HP-UX.
9053 ac_sed_frag=1 # Number of current file.
9054 ac_beg=1 # First line for current file.
9055 ac_end=$ac_max_sed_lines # Line after last line for current file.
9058 while $ac_more_lines; do
9059 if test $ac_beg -gt 1; then
9060 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9062 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9064 if test ! -s $tmp/subs.frag; then
9067 # The purpose of the label and of the branching condition is to
9068 # speed up the sed processing (if there are no `@' at all, there
9069 # is no need to browse any of the substitutions).
9070 # These are the two extra sed commands mentioned above.
9072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9073 if test -z "$ac_sed_cmds"; then
9074 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9076 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9078 ac_sed_frag=`expr $ac_sed_frag + 1`
9080 ac_end=`expr $ac_end + $ac_max_sed_lines`
9083 if test -z "$ac_sed_cmds"; then
9086 fi # test -n "$CONFIG_FILES"
9089 cat >>$CONFIG_STATUS <<\_ACEOF
9090 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9093 - | *:- | *:-:* ) # input from stdin
9095 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9096 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9097 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9099 * ) ac_file_in=$ac_file.in ;;
9102 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9103 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9105 X"$ac_file" : 'X\(//\)[^/]' \| \
9106 X"$ac_file" : 'X\(//\)$' \| \
9107 X"$ac_file" : 'X\(/\)' \| \
9108 . : '\(.\)' 2>/dev/null ||
9110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9112 /^X\(\/\/\)$/{ s//\1/; q; }
9113 /^X\(\/\).*/{ s//\1/; q; }
9115 { if $as_mkdir_p; then
9120 while test ! -d "$as_dir"; do
9121 as_dirs="$as_dir $as_dirs"
9122 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9124 X"$as_dir" : 'X\(//\)[^/]' \| \
9125 X"$as_dir" : 'X\(//\)$' \| \
9126 X"$as_dir" : 'X\(/\)' \| \
9127 . : '\(.\)' 2>/dev/null ||
9129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9131 /^X\(\/\/\)$/{ s//\1/; q; }
9132 /^X\(\/\).*/{ s//\1/; q; }
9135 test ! -n "$as_dirs" || mkdir $as_dirs
9136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9138 { (exit 1); exit 1; }; }; }
9142 if test "$ac_dir" != .; then
9143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9144 # A "../" for each directory in $ac_dir_suffix.
9145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9147 ac_dir_suffix= ac_top_builddir=
9151 .) # No --srcdir option. We are building in place.
9153 if test -z "$ac_top_builddir"; then
9156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9158 [\\/]* | ?:[\\/]* ) # Absolute path.
9159 ac_srcdir=$srcdir$ac_dir_suffix;
9160 ac_top_srcdir=$srcdir ;;
9162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9163 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9165 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9167 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9168 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9169 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9170 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9174 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9175 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9178 if test x"$ac_file" != x-; then
9179 { echo "$as_me:$LINENO: creating $ac_file" >&5
9180 echo "$as_me: creating $ac_file" >&6;}
9183 # Let's still pretend it is `configure' which instantiates (i.e., don't
9184 # use $as_me), people would be surprised to read:
9185 # /* config.h. Generated by config.status. */
9186 if test x"$ac_file" = x-; then
9189 configure_input="$ac_file. "
9191 configure_input=$configure_input"Generated from `echo $ac_file_in |
9192 sed 's,.*/,,'` by configure."
9194 # First look for the input files in the build tree, otherwise in the
9196 ac_file_inputs=`IFS=:
9197 for f in $ac_file_in; do
9199 -) echo $tmp/stdin ;;
9201 # Absolute (can't be DOS-style, as IFS=:)
9202 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9203 echo "$as_me: error: cannot find input file: $f" >&2;}
9204 { (exit 1); exit 1; }; }
9207 if test -f "$f"; then
9210 elif test -f "$srcdir/$f"; then
9215 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9216 echo "$as_me: error: cannot find input file: $f" >&2;}
9217 { (exit 1); exit 1; }; }
9220 done` || { (exit 1); exit 1; }
9222 cat >>$CONFIG_STATUS <<_ACEOF
9226 cat >>$CONFIG_STATUS <<\_ACEOF
9228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9229 s,@configure_input@,$configure_input,;t t
9230 s,@srcdir@,$ac_srcdir,;t t
9231 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9232 s,@top_srcdir@,$ac_top_srcdir,;t t
9233 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9234 s,@builddir@,$ac_builddir,;t t
9235 s,@abs_builddir@,$ac_abs_builddir,;t t
9236 s,@top_builddir@,$ac_top_builddir,;t t
9237 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9238 s,@INSTALL@,$ac_INSTALL,;t t
9239 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9241 if test x"$ac_file" != x-; then
9242 mv $tmp/out $ac_file
9250 cat >>$CONFIG_STATUS <<\_ACEOF
9253 # CONFIG_HEADER section.
9256 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9257 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9259 # ac_d sets the value in "#define NAME VALUE" lines.
9260 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9261 ac_dB='[ ].*$,\1#\2'
9264 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9265 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9266 ac_uB='$,\1#\2define\3'
9270 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9273 - | *:- | *:-:* ) # input from stdin
9275 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9277 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9279 * ) ac_file_in=$ac_file.in ;;
9282 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9283 echo "$as_me: creating $ac_file" >&6;}
9285 # First look for the input files in the build tree, otherwise in the
9287 ac_file_inputs=`IFS=:
9288 for f in $ac_file_in; do
9290 -) echo $tmp/stdin ;;
9292 # Absolute (can't be DOS-style, as IFS=:)
9293 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9294 echo "$as_me: error: cannot find input file: $f" >&2;}
9295 { (exit 1); exit 1; }; }
9298 if test -f "$f"; then
9301 elif test -f "$srcdir/$f"; then
9306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9307 echo "$as_me: error: cannot find input file: $f" >&2;}
9308 { (exit 1); exit 1; }; }
9311 done` || { (exit 1); exit 1; }
9312 # Remove the trailing spaces.
9313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9318 # `conftest.undefs', that substitutes the proper values into
9319 # config.h.in to produce config.h. The first handles `#define'
9320 # templates, and the second `#undef' templates.
9321 # And first: Protect against being on the right side of a sed subst in
9322 # config.status. Protect against being in an unquoted here document
9324 rm -f conftest.defines conftest.undefs
9325 # Using a here document instead of a string reduces the quoting nightmare.
9326 # Putting comments in sed scripts is not portable.
9328 # `end' is used to avoid that the second main sed command (meant for
9329 # 0-ary CPP macros) applies to n-ary macro definitions.
9330 # See the Autoconf documentation for `clear'.
9331 cat >confdef2sed.sed <<\_ACEOF
9336 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9338 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9341 # If some macros were called several times there might be several times
9342 # the same #defines, which is useless. Nevertheless, we may not want to
9343 # sort them, since we want the *last* AC-DEFINE to be honored.
9344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9346 rm -f confdef2sed.sed
9348 # This sed command replaces #undef with comments. This is necessary, for
9349 # example, in the case of _POSIX_SOURCE, which is predefined and required
9350 # on some systems where configure will not decide to define it.
9351 cat >>conftest.undefs <<\_ACEOF
9352 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9355 # Break up conftest.defines because some shells have a limit on the size
9356 # of here documents, and old seds have small limits too (100 cmds).
9357 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9358 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9359 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9360 echo ' :' >>$CONFIG_STATUS
9362 while grep . conftest.defines >/dev/null
9364 # Write a limited-size here document to $tmp/defines.sed.
9365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9366 # Speed up: don't consider the non `#define' lines.
9367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9368 # Work around the forget-to-reset-the-flag bug.
9369 echo 't clr' >>$CONFIG_STATUS
9370 echo ': clr' >>$CONFIG_STATUS
9371 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9373 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9377 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9378 rm -f conftest.defines
9379 mv conftest.tail conftest.defines
9381 rm -f conftest.defines
9382 echo ' fi # grep' >>$CONFIG_STATUS
9383 echo >>$CONFIG_STATUS
9385 # Break up conftest.undefs because some shells have a limit on the size
9386 # of here documents, and old seds have small limits too (100 cmds).
9387 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9389 while grep . conftest.undefs >/dev/null
9391 # Write a limited-size here document to $tmp/undefs.sed.
9392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9393 # Speed up: don't consider the non `#undef'
9394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9395 # Work around the forget-to-reset-the-flag bug.
9396 echo 't clr' >>$CONFIG_STATUS
9397 echo ': clr' >>$CONFIG_STATUS
9398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9405 rm -f conftest.undefs
9406 mv conftest.tail conftest.undefs
9408 rm -f conftest.undefs
9410 cat >>$CONFIG_STATUS <<\_ACEOF
9411 # Let's still pretend it is `configure' which instantiates (i.e., don't
9412 # use $as_me), people would be surprised to read:
9413 # /* config.h. Generated by config.status. */
9414 if test x"$ac_file" = x-; then
9415 echo "/* Generated by configure. */" >$tmp/config.h
9417 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9419 cat $tmp/in >>$tmp/config.h
9421 if test x"$ac_file" != x-; then
9422 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9424 echo "$as_me: $ac_file is unchanged" >&6;}
9426 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9428 X"$ac_file" : 'X\(//\)[^/]' \| \
9429 X"$ac_file" : 'X\(//\)$' \| \
9430 X"$ac_file" : 'X\(/\)' \| \
9431 . : '\(.\)' 2>/dev/null ||
9433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9435 /^X\(\/\/\)$/{ s//\1/; q; }
9436 /^X\(\/\).*/{ s//\1/; q; }
9438 { if $as_mkdir_p; then
9443 while test ! -d "$as_dir"; do
9444 as_dirs="$as_dir $as_dirs"
9445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9447 X"$as_dir" : 'X\(//\)[^/]' \| \
9448 X"$as_dir" : 'X\(//\)$' \| \
9449 X"$as_dir" : 'X\(/\)' \| \
9450 . : '\(.\)' 2>/dev/null ||
9452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9454 /^X\(\/\/\)$/{ s//\1/; q; }
9455 /^X\(\/\).*/{ s//\1/; q; }
9458 test ! -n "$as_dirs" || mkdir $as_dirs
9459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9461 { (exit 1); exit 1; }; }; }
9464 mv $tmp/config.h $ac_file
9472 cat >>$CONFIG_STATUS <<\_ACEOF
9475 # CONFIG_COMMANDS section.
9477 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9478 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9479 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9480 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9481 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9482 X"$ac_dest" : 'X\(//\)[^/]' \| \
9483 X"$ac_dest" : 'X\(//\)$' \| \
9484 X"$ac_dest" : 'X\(/\)' \| \
9485 . : '\(.\)' 2>/dev/null ||
9487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9489 /^X\(\/\/\)$/{ s//\1/; q; }
9490 /^X\(\/\).*/{ s//\1/; q; }
9494 if test "$ac_dir" != .; then
9495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9496 # A "../" for each directory in $ac_dir_suffix.
9497 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9499 ac_dir_suffix= ac_top_builddir=
9503 .) # No --srcdir option. We are building in place.
9505 if test -z "$ac_top_builddir"; then
9508 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9510 [\\/]* | ?:[\\/]* ) # Absolute path.
9511 ac_srcdir=$srcdir$ac_dir_suffix;
9512 ac_top_srcdir=$srcdir ;;
9514 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9515 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9517 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9519 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9520 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9521 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9522 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9525 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9526 echo "$as_me: executing $ac_dest commands" >&6;}
9529 for ac_file in $CONFIG_FILES; do
9530 # Support "outfile[:infile[:infile...]]"
9532 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9534 # PO directories have a Makefile.in generated from Makefile.in.in.
9535 case "$ac_file" in */Makefile.in)
9536 # Adjust a relative srcdir.
9537 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9538 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9539 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9540 # In autoconf-2.13 it is called $ac_given_srcdir.
9541 # In autoconf-2.50 it is called $srcdir.
9542 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9543 case "$ac_given_srcdir" in
9544 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9545 /*) top_srcdir="$ac_given_srcdir" ;;
9546 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9548 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9549 rm -f "$ac_dir/POTFILES"
9550 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9551 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9552 POMAKEFILEDEPS="POTFILES.in"
9553 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9554 # on $ac_dir but don't depend on user-specified configuration
9556 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9557 # The LINGUAS file contains the set of available languages.
9558 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9559 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9561 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9562 # Hide the ALL_LINGUAS assigment from automake.
9563 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9564 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9566 # The set of available languages was given in configure.in.
9567 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9569 case "$ac_given_srcdir" in
9571 *) srcdirpre='$(srcdir)/' ;;
9577 for lang in $ALL_LINGUAS; do
9578 POFILES="$POFILES $srcdirpre$lang.po"
9579 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9580 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9581 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9583 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9584 # environment variable.
9586 if test -n "$ALL_LINGUAS"; then
9587 for presentlang in $ALL_LINGUAS; do
9589 if test "%UNSET%" != "$LINGUAS"; then
9590 desiredlanguages="$LINGUAS"
9592 desiredlanguages="$ALL_LINGUAS"
9594 for desiredlang in $desiredlanguages; do
9595 # Use the presentlang catalog if desiredlang is
9596 # a. equal to presentlang, or
9597 # b. a variant of presentlang (because in this case,
9598 # presentlang can be used as a fallback for messages
9599 # which are not translated in the desiredlang catalog).
9600 case "$desiredlang" in
9601 "$presentlang"*) useit=yes;;
9604 if test $useit = yes; then
9605 INST_LINGUAS="$INST_LINGUAS $presentlang"
9610 if test -n "$INST_LINGUAS"; then
9611 for lang in $INST_LINGUAS; do
9612 CATALOGS="$CATALOGS $lang.gmo"
9615 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9616 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"
9617 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9618 if test -f "$f"; then
9620 *.orig | *.bak | *~) ;;
9621 *) cat "$f" >> "$ac_dir/Makefile" ;;
9629 default ) test -z "$CONFIG_HEADERS" || date > stamp-h
9636 cat >>$CONFIG_STATUS <<\_ACEOF
9638 { (exit 0); exit 0; }
9640 chmod +x $CONFIG_STATUS
9641 ac_clean_files=$ac_clean_files_save
9644 # configure is writing to config.log, and then calls config.status.
9645 # config.status does its own redirection, appending to config.log.
9646 # Unfortunately, on DOS this fails, as config.log is still kept open
9647 # by configure, so config.status won't be able to write to it; its
9648 # output is simply discarded. So we exec the FD to /dev/null,
9649 # effectively closing config.log, so it can be properly (re)opened and
9650 # appended to by config.status. When coming back to configure, we
9651 # need to make the FD available again.
9652 if test "$no_create" != yes; then
9654 ac_config_status_args=
9655 test "$silent" = yes &&
9656 ac_config_status_args="$ac_config_status_args --quiet"
9658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9661 # would make configure fail if this is the last instruction.
9662 $ac_cs_success || { (exit 1); exit 1; }