2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="xboard.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
724 program_transform_name
736 enable_option_checking
749 ac_precious_vars='build_alias
761 # Initialize some variables set by options.
763 ac_init_version=false
764 ac_unrecognized_opts=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name=s,x,x,
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
868 { (exit 1); exit 1; }; }
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
878 eval enable_$ac_useropt=no ;;
880 -docdir | --docdir | --docdi | --doc | --do)
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
895 { (exit 1); exit 1; }; }
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
920 -help | --help | --hel | --he | -h)
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 # Obsolete; use --without-fp.
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1069 -site=* | --site=* | --sit=*)
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1110 eval with_$ac_useropt=\$ac_optarg ;;
1112 -without-* | --without-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1117 { (exit 1); exit 1; }; }
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1181 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1182 { (exit 1); exit 1; }; } ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1200 # Be sure to have absolute directory names.
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1206 { (exit 1); exit 1; }; }
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1237 { (exit 1); exit 1; }; }
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1240 { (exit 1); exit 1; }; }
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1280 { (exit 1); exit 1; }; }
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1285 { (exit 1); exit 1; }; }
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures this package to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --x-includes=DIR X include files are in DIR
1370 --x-libraries=DIR X library files are in DIR
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 if test -n "$ac_init_help"; then
1383 --disable-option-checking ignore unrecognized --enable/--with options
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --disable-nls do not use Native Language Support
1387 --disable-rpath do not hardcode runtime library paths
1388 --enable-xpm libXpm will be used if found (default)
1389 --disable-xpm libXpm will not be used
1390 --enable-ptys force use of pseudo-ttys with child processes
1391 --disable-ptys force use of pipes with child processes
1392 --enable-zippy support interfacing a chess program to ICS (default)
1393 --disable-zippy do not support interfacing a chess program to ICS
1394 --enable-sigint sending SIGINT (^C) wakes up GNU Chess (default)
1395 --disable-sigint typing a command wakes up GNU Chess
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-Xaw3d use Xaw3d instead of Xaw
1401 --with-x use the X Window System
1402 --with-gnu-ld assume the C compiler uses GNU ld default=no
1403 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1404 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1405 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1406 --without-libintl-prefix don't search for libintl in includedir and libdir
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1417 XMKMF Path to xmkmf, Makefile generator for X Window System
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1451 .) # We are building in place.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1485 generated by GNU Autoconf 2.63
1487 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1488 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1494 cat >config.log <<_ACEOF
1495 This file contains any messages produced by compilers while
1496 running configure, to aid debugging if configure makes a mistake.
1498 It was created by $as_me, which was
1499 generated by GNU Autoconf 2.63. Invocation command line was
1511 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1512 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1513 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1514 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1515 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1517 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1518 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1520 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1521 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1522 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1523 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1524 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1525 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1526 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 test -z "$as_dir" && as_dir=.
1535 $as_echo "PATH: $as_dir"
1551 # Keep a trace of the command line.
1552 # Strip out --no-create and --no-recursion so they do not pile up.
1553 # Strip out --silent because we don't want to record it for future runs.
1554 # Also quote any args containing shell meta-characters.
1555 # Make two passes to allow for proper duplicate-argument suppression.
1559 ac_must_keep_next=false
1565 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567 | -silent | --silent | --silen | --sile | --sil)
1570 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1573 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1575 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1576 if test $ac_must_keep_next = true; then
1577 ac_must_keep_next=false # Got value, back to normal.
1580 *=* | --config-cache | -C | -disable-* | --disable-* \
1581 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1582 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1583 | -with-* | --with-* | -without-* | --without-* | --x)
1584 case "$ac_configure_args0 " in
1585 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1588 -* ) ac_must_keep_next=true ;;
1591 ac_configure_args="$ac_configure_args '$ac_arg'"
1596 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1597 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1599 # When interrupted or exit'd, cleanup temporary files, and complete
1600 # config.log. We remove comments because anyway the quotes in there
1601 # would cause problems or look ugly.
1602 # WARNING: Use '\'' to represent an apostrophe within the trap.
1603 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1604 trap 'exit_status=$?
1605 # Save into config.log some information that might help in debugging.
1610 ## ---------------- ##
1611 ## Cache variables. ##
1612 ## ---------------- ##
1615 # The following way of writing the cache mishandles newlines in values,
1617 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1618 eval ac_val=\$$ac_var
1622 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1623 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1626 _ | IFS | as_nl) ;; #(
1627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1628 *) $as_unset $ac_var ;;
1633 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1634 *${as_nl}ac_space=\ *)
1636 "s/'\''/'\''\\\\'\'''\''/g;
1637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1648 ## ----------------- ##
1649 ## Output variables. ##
1650 ## ----------------- ##
1653 for ac_var in $ac_subst_vars
1655 eval ac_val=\$$ac_var
1657 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 $as_echo "$ac_var='\''$ac_val'\''"
1663 if test -n "$ac_subst_files"; then
1665 ## ------------------- ##
1666 ## File substitutions. ##
1667 ## ------------------- ##
1670 for ac_var in $ac_subst_files
1672 eval ac_val=\$$ac_var
1674 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1676 $as_echo "$ac_var='\''$ac_val'\''"
1681 if test -s confdefs.h; then
1691 test "$ac_signal" != 0 &&
1692 $as_echo "$as_me: caught signal $ac_signal"
1693 $as_echo "$as_me: exit $exit_status"
1695 rm -f core *.core core.conftest.* &&
1696 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1699 for ac_signal in 1 2 13 15; do
1700 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1705 rm -f -r conftest* confdefs.h
1707 # Predefined preprocessor variables.
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_NAME "$PACKAGE_NAME"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_STRING "$PACKAGE_STRING"
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1734 # Let the site file select an alternate cache file if it wants to.
1735 # Prefer an explicitly selected file to automatically selected ones.
1738 if test -n "$CONFIG_SITE"; then
1739 ac_site_file1=$CONFIG_SITE
1740 elif test "x$prefix" != xNONE; then
1741 ac_site_file1=$prefix/share/config.site
1742 ac_site_file2=$prefix/etc/config.site
1744 ac_site_file1=$ac_default_prefix/share/config.site
1745 ac_site_file2=$ac_default_prefix/etc/config.site
1747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1749 test "x$ac_site_file" = xNONE && continue
1750 if test -r "$ac_site_file"; then
1751 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1753 sed 's/^/| /' "$ac_site_file" >&5
1758 if test -r "$cache_file"; then
1759 # Some versions of bash will fail to source /dev/null (special
1760 # files actually), so we avoid doing that.
1761 if test -f "$cache_file"; then
1762 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1763 $as_echo "$as_me: loading cache $cache_file" >&6;}
1765 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1766 *) . "./$cache_file";;
1770 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1771 $as_echo "$as_me: creating cache $cache_file" >&6;}
1775 # Check that the precious variables saved in the cache have kept the same
1777 ac_cache_corrupted=false
1778 for ac_var in $ac_precious_vars; do
1779 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1780 eval ac_new_set=\$ac_env_${ac_var}_set
1781 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1782 eval ac_new_val=\$ac_env_${ac_var}_value
1783 case $ac_old_set,$ac_new_set in
1785 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1786 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1787 ac_cache_corrupted=: ;;
1789 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1790 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1791 ac_cache_corrupted=: ;;
1794 if test "x$ac_old_val" != "x$ac_new_val"; then
1795 # differences in whitespace do not lead to failure.
1796 ac_old_val_w=`echo x $ac_old_val`
1797 ac_new_val_w=`echo x $ac_new_val`
1798 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1799 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1800 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1801 ac_cache_corrupted=:
1803 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1804 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1805 eval $ac_var=\$ac_old_val
1807 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1808 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1809 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1810 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1813 # Pass precious variables to config.status.
1814 if test "$ac_new_set" = set; then
1816 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 *) ac_arg=$ac_var=$ac_new_val ;;
1819 case " $ac_configure_args " in
1820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1821 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1825 if $ac_cache_corrupted; then
1826 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1829 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1830 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1831 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1832 { (exit 1); exit 1; }; }
1852 ac_cpp='$CPP $CPPFLAGS'
1853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1858 ac_config_headers="$ac_config_headers config.h"
1865 if test -z "$CFLAGS" ; then
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1876 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 $as_echo_n "checking for $ac_word... " >&6; }
1878 if test "${ac_cv_prog_CC+set}" = set; then
1879 $as_echo_n "(cached) " >&6
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1891 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 if test -n "$CC"; then
1903 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1904 $as_echo "$CC" >&6; }
1906 { $as_echo "$as_me:$LINENO: result: no" >&5
1907 $as_echo "no" >&6; }
1912 if test -z "$ac_cv_prog_CC"; then
1914 # Extract the first word of "gcc", so it can be a program name with args.
1915 set dummy gcc; ac_word=$2
1916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 $as_echo_n "checking for $ac_word... " >&6; }
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 $as_echo_n "(cached) " >&6
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_ac_ct_CC="gcc"
1932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 $as_echo "$ac_ct_CC" >&6; }
1946 { $as_echo "$as_me:$LINENO: result: no" >&5
1947 $as_echo "no" >&6; }
1950 if test "x$ac_ct_CC" = x; then
1953 case $cross_compiling:$ac_tool_warned in
1955 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1957 ac_tool_warned=yes ;;
1965 if test -z "$CC"; then
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}cc; ac_word=$2
1969 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 $as_echo_n "checking for $ac_word... " >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 $as_echo_n "(cached) " >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1984 ac_cv_prog_CC="${ac_tool_prefix}cc"
1985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test -n "$CC"; then
1996 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1997 $as_echo "$CC" >&6; }
1999 { $as_echo "$as_me:$LINENO: result: no" >&5
2000 $as_echo "no" >&6; }
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 $as_echo_n "checking for $ac_word... " >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 $as_echo_n "(cached) " >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected=yes
2030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 if test $ac_prog_rejected = yes; then
2038 # We found a bogon in the path, so make sure we never use it.
2039 set dummy $ac_cv_prog_CC
2041 if test $# != 0; then
2042 # We chose a different compiler from the bogus one.
2043 # However, it has the same basename, so the bogon will be chosen
2044 # first if we set CC to just the basename; use the full file name.
2046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2052 if test -n "$CC"; then
2053 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2054 $as_echo "$CC" >&6; }
2056 { $as_echo "$as_me:$LINENO: result: no" >&5
2057 $as_echo "no" >&6; }
2062 if test -z "$CC"; then
2063 if test -n "$ac_tool_prefix"; then
2064 for ac_prog in cl.exe
2066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 if test -n "$CC"; then
2095 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2096 $as_echo "$CC" >&6; }
2098 { $as_echo "$as_me:$LINENO: result: no" >&5
2099 $as_echo "no" >&6; }
2103 test -n "$CC" && break
2106 if test -z "$CC"; then
2108 for ac_prog in cl.exe
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2117 if test -n "$ac_ct_CC"; then
2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_ac_ct_CC="$ac_prog"
2128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 $as_echo "$ac_ct_CC" >&6; }
2142 { $as_echo "$as_me:$LINENO: result: no" >&5
2143 $as_echo "no" >&6; }
2147 test -n "$ac_ct_CC" && break
2150 if test "x$ac_ct_CC" = x; then
2153 case $cross_compiling:$ac_tool_warned in
2155 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2157 ac_tool_warned=yes ;;
2166 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details." >&5
2170 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }; }
2174 # Provide some information about the compiler.
2175 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2178 { (ac_try="$ac_compiler --version >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2184 $as_echo "$ac_try_echo") >&5
2185 (eval "$ac_compiler --version >&5") 2>&5
2187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2189 { (ac_try="$ac_compiler -v >&5"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2195 $as_echo "$ac_try_echo") >&5
2196 (eval "$ac_compiler -v >&5") 2>&5
2198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2206 $as_echo "$ac_try_echo") >&5
2207 (eval "$ac_compiler -V >&5") 2>&5
2209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2227 ac_clean_files_save=$ac_clean_files
2228 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2229 # Try to create an executable without -o first, disregard a.out.
2230 # It will help us diagnose broken compilers, and finding out an intuition
2232 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2233 $as_echo_n "checking for C compiler default output file name... " >&6; }
2234 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2236 # The possible output files:
2237 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2240 for ac_file in $ac_files
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2249 if { (ac_try="$ac_link_default"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2255 $as_echo "$ac_try_echo") >&5
2256 (eval "$ac_link_default") 2>&5
2258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2261 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2262 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2263 # so that the user can short-circuit this test for compilers unknown to
2265 for ac_file in $ac_files ''
2267 test -f "$ac_file" || continue
2269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2272 # We found the default executable, but exeext='' is most
2276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 # We set ac_cv_exeext here because the later test for it is not
2281 # safe: cross compilers may not add the suffix if given an `-o'
2282 # argument, so we may need to know it at that point already.
2283 # Even if this section looks crufty: it has the advantage of
2290 test "$ac_cv_exeext" = no && ac_cv_exeext=
2296 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2297 $as_echo "$ac_file" >&6; }
2298 if test -z "$ac_file"; then
2299 $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&5
2306 $as_echo "$as_me: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&2;}
2308 { (exit 77); exit 77; }; }; }
2311 ac_exeext=$ac_cv_exeext
2313 # Check that the compiler produces executables we can run. If not, either
2314 # the compiler is broken, or we cross compile.
2315 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2316 $as_echo_n "checking whether the C compiler works... " >&6; }
2317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2318 # If not cross compiling, check that we can run a simple program.
2319 if test "$cross_compiling" != yes; then
2320 if { ac_try='./$ac_file'
2321 { (case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2326 $as_echo "$ac_try_echo") >&5
2327 (eval "$ac_try") 2>&5
2329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 if test "$cross_compiling" = maybe; then
2336 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&5
2341 $as_echo "$as_me: error: cannot run C compiled programs.
2342 If you meant to cross compile, use \`--host'.
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }; }
2348 { $as_echo "$as_me:$LINENO: result: yes" >&5
2349 $as_echo "yes" >&6; }
2351 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2352 ac_clean_files=$ac_clean_files_save
2353 # Check that the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2356 $as_echo_n "checking whether we are cross compiling... " >&6; }
2357 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2358 $as_echo "$cross_compiling" >&6; }
2360 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2361 $as_echo_n "checking for suffix of executables... " >&6; }
2362 if { (ac_try="$ac_link"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2368 $as_echo "$ac_try_echo") >&5
2369 (eval "$ac_link") 2>&5
2371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; then
2373 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2374 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2375 # work properly (i.e., refer to `conftest.exe'), while it won't with
2377 for ac_file in conftest.exe conftest conftest.*; do
2378 test -f "$ac_file" || continue
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2390 See \`config.log' for more details." >&5
2391 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }; }
2396 rm -f conftest$ac_cv_exeext
2397 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2398 $as_echo "$ac_cv_exeext" >&6; }
2400 rm -f conftest.$ac_ext
2401 EXEEXT=$ac_cv_exeext
2403 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2404 $as_echo_n "checking for suffix of object files... " >&6; }
2405 if test "${ac_cv_objext+set}" = set; then
2406 $as_echo_n "(cached) " >&6
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2423 rm -f conftest.o conftest.obj
2424 if { (ac_try="$ac_compile"
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2430 $as_echo "$ac_try_echo") >&5
2431 (eval "$ac_compile") 2>&5
2433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; then
2435 for ac_file in conftest.o conftest.obj conftest.*; do
2436 test -f "$ac_file" || continue;
2438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2444 $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2450 See \`config.log' for more details." >&5
2451 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2452 See \`config.log' for more details." >&2;}
2453 { (exit 1); exit 1; }; }; }
2456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2458 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2459 $as_echo "$ac_cv_objext" >&6; }
2460 OBJEXT=$ac_cv_objext
2462 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2464 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2465 $as_echo_n "(cached) " >&6
2467 cat >conftest.$ac_ext <<_ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2485 rm -f conftest.$ac_objext
2486 if { (ac_try="$ac_compile"
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2492 $as_echo "$ac_try_echo") >&5
2493 (eval "$ac_compile") 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } && {
2500 test -z "$ac_c_werror_flag" ||
2501 test ! -s conftest.err
2502 } && test -s conftest.$ac_objext; then
2505 $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2517 if test $ac_compiler_gnu = yes; then
2522 ac_test_CFLAGS=${CFLAGS+set}
2523 ac_save_CFLAGS=$CFLAGS
2524 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2526 if test "${ac_cv_prog_cc_g+set}" = set; then
2527 $as_echo_n "(cached) " >&6
2529 ac_save_c_werror_flag=$ac_c_werror_flag
2530 ac_c_werror_flag=yes
2533 cat >conftest.$ac_ext <<_ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2548 rm -f conftest.$ac_objext
2549 if { (ac_try="$ac_compile"
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2555 $as_echo "$ac_try_echo") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2558 grep -v '^ *+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } && {
2563 test -z "$ac_c_werror_flag" ||
2564 test ! -s conftest.err
2565 } && test -s conftest.$ac_objext; then
2568 $as_echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 cat >conftest.$ac_ext <<_ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594 $as_echo "$ac_try_echo") >&5
2595 (eval "$ac_compile") 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } && {
2602 test -z "$ac_c_werror_flag" ||
2603 test ! -s conftest.err
2604 } && test -s conftest.$ac_objext; then
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 ac_c_werror_flag=$ac_save_c_werror_flag
2612 cat >conftest.$ac_ext <<_ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2627 rm -f conftest.$ac_objext
2628 if { (ac_try="$ac_compile"
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634 $as_echo "$ac_try_echo") >&5
2635 (eval "$ac_compile") 2>conftest.er1
2637 grep -v '^ *+' conftest.er1 >conftest.err
2639 cat conftest.err >&5
2640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } && {
2642 test -z "$ac_c_werror_flag" ||
2643 test ! -s conftest.err
2644 } && test -s conftest.$ac_objext; then
2647 $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_c_werror_flag=$ac_save_c_werror_flag
2662 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 $as_echo "$ac_cv_prog_cc_g" >&6; }
2664 if test "$ac_test_CFLAGS" = set; then
2665 CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667 if test "$GCC" = yes; then
2673 if test "$GCC" = yes; then
2679 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2681 if test "${ac_cv_prog_cc_c89+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2684 ac_cv_prog_cc_c89=no
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2710 s = g (p, va_arg (v,int));
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2716 function prototypes and stuff, but not '\xHH' hex character constants.
2717 These don't provoke an error unfortunately, instead are silently treated
2718 as 'x'. The following induces an error, until -std is added to get
2719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2720 array size at least. It's necessary to write '\x00'==0 to get something
2721 that's true only with -std. */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2725 inside strings and character constants. */
2727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2729 int test (int i, double x);
2730 struct s1 {int (*f) (int a);};
2731 struct s2 {int (*f) (double a);};
2732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2738 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2744 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2746 CC="$ac_save_CC $ac_arg"
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754 $as_echo "$ac_try_echo") >&5
2755 (eval "$ac_compile") 2>conftest.er1
2757 grep -v '^ *+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } && {
2762 test -z "$ac_c_werror_flag" ||
2763 test ! -s conftest.err
2764 } && test -s conftest.$ac_objext; then
2765 ac_cv_prog_cc_c89=$ac_arg
2767 $as_echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f core conftest.err conftest.$ac_objext
2774 test "x$ac_cv_prog_cc_c89" != "xno" && break
2776 rm -f conftest.$ac_ext
2781 case "x$ac_cv_prog_cc_c89" in
2783 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2784 $as_echo "none needed" >&6; } ;;
2786 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2787 $as_echo "unsupported" >&6; } ;;
2789 CC="$CC $ac_cv_prog_cc_c89"
2790 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2808 # On Suns, sometimes $CPP names a directory.
2809 if test -n "$CPP" && test -d "$CPP"; then
2812 if test -z "$CPP"; then
2813 if test "${ac_cv_prog_CPP+set}" = set; then
2814 $as_echo_n "(cached) " >&6
2816 # Double quotes because CPP needs to be expanded
2817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2820 for ac_c_preproc_warn_flag in '' yes
2822 # Use a header file that comes with gcc, so configuring glibc
2823 # with a fresh cross-compiler works.
2824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825 # <limits.h> exists even on freestanding compilers.
2826 # On the NeXT, cc -E runs the code through the compiler's parser,
2827 # not just through cpp. "Syntax error" is here to catch this case.
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2835 # include <limits.h>
2837 # include <assert.h>
2841 if { (ac_try="$ac_cpp conftest.$ac_ext"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2847 $as_echo "$ac_try_echo") >&5
2848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev/null && {
2855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2860 $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Broken: fails on valid input.
2867 rm -f conftest.err conftest.$ac_ext
2869 # OK, works on sane cases. Now check whether nonexistent headers
2870 # can be detected and how.
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2877 #include <ac_nonexistent.h>
2879 if { (ac_try="$ac_cpp conftest.$ac_ext"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null && {
2893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2896 # Broken: success on invalid input.
2899 $as_echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2902 # Passes both tests.
2907 rm -f conftest.err conftest.$ac_ext
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2924 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2925 $as_echo "$CPP" >&6; }
2927 for ac_c_preproc_warn_flag in '' yes
2929 # Use a header file that comes with gcc, so configuring glibc
2930 # with a fresh cross-compiler works.
2931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932 # <limits.h> exists even on freestanding compilers.
2933 # On the NeXT, cc -E runs the code through the compiler's parser,
2934 # not just through cpp. "Syntax error" is here to catch this case.
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2942 # include <limits.h>
2944 # include <assert.h>
2948 if { (ac_try="$ac_cpp conftest.$ac_ext"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null && {
2962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2963 test ! -s conftest.err
2967 $as_echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Broken: fails on valid input.
2974 rm -f conftest.err conftest.$ac_ext
2976 # OK, works on sane cases. Now check whether nonexistent headers
2977 # can be detected and how.
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2984 #include <ac_nonexistent.h>
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2992 $as_echo "$ac_try_echo") >&5
2993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null && {
3000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3003 # Broken: success on invalid input.
3006 $as_echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Passes both tests.
3014 rm -f conftest.err conftest.$ac_ext
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3022 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3025 See \`config.log' for more details." >&5
3026 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }; }
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3039 $as_echo_n "checking for library containing strerror... " >&6; }
3040 if test "${ac_cv_search_strerror+set}" = set; then
3041 $as_echo_n "(cached) " >&6
3043 ac_func_search_save_LIBS=$LIBS
3044 cat >conftest.$ac_ext <<_ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3051 /* Override any GCC internal prototype to avoid an error.
3052 Use char because int might match the return type of a GCC
3053 builtin and then its argument prototype would still apply. */
3066 for ac_lib in '' cposix; do
3067 if test -z "$ac_lib"; then
3068 ac_res="none required"
3071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3073 rm -f conftest.$ac_objext conftest$ac_exeext
3074 if { (ac_try="$ac_link"
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3080 $as_echo "$ac_try_echo") >&5
3081 (eval "$ac_link") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest$ac_exeext && {
3091 test "$cross_compiling" = yes ||
3092 $as_test_x conftest$ac_exeext
3094 ac_cv_search_strerror=$ac_res
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3102 rm -rf conftest.dSYM
3103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3105 if test "${ac_cv_search_strerror+set}" = set; then
3109 if test "${ac_cv_search_strerror+set}" = set; then
3112 ac_cv_search_strerror=no
3115 LIBS=$ac_func_search_save_LIBS
3117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3118 $as_echo "$ac_cv_search_strerror" >&6; }
3119 ac_res=$ac_cv_search_strerror
3120 if test "$ac_res" != no; then
3121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3126 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3127 if test -f "$ac_dir/install-sh"; then
3129 ac_install_sh="$ac_aux_dir/install-sh -c"
3131 elif test -f "$ac_dir/install.sh"; then
3133 ac_install_sh="$ac_aux_dir/install.sh -c"
3135 elif test -f "$ac_dir/shtool"; then
3137 ac_install_sh="$ac_aux_dir/shtool install -c"
3141 if test -z "$ac_aux_dir"; then
3142 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3143 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3144 { (exit 1); exit 1; }; }
3147 # These three variables are undocumented and unsupported,
3148 # and are intended to be withdrawn in a future Autoconf release.
3149 # They can cause serious problems if a builder's source tree is in a directory
3150 # whose full name contains unusual characters.
3151 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3152 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3153 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3156 # Find a good install program. We prefer a C program (faster),
3157 # so one script is as good as another. But avoid the broken or
3158 # incompatible versions:
3159 # SysV /etc/install, /usr/sbin/install
3160 # SunOS /usr/etc/install
3161 # IRIX /sbin/install
3163 # AmigaOS /C/install, which installs bootblocks on floppy discs
3164 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3167 # OS/2's system install, which has a completely different semantic
3168 # ./install, which can be erroneously created by make from ./install.sh.
3169 # Reject install programs that cannot install multiple files.
3170 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3171 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3172 if test -z "$INSTALL"; then
3173 if test "${ac_cv_path_install+set}" = set; then
3174 $as_echo_n "(cached) " >&6
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 # Account for people who put trailing slashes in PATH elements.
3183 ./ | .// | /cC/* | \
3184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3185 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3188 # OSF1 and SCO ODT 3.0 have their own names for install.
3189 # Don't use installbsd from OSF since it installs stuff as root
3191 for ac_prog in ginstall scoinst install; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3194 if test $ac_prog = install &&
3195 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196 # AIX install. It has an incompatible calling convention.
3198 elif test $ac_prog = install &&
3199 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3200 # program-specific install script used by HP pwplus--don't use.
3203 rm -rf conftest.one conftest.two conftest.dir
3204 echo one > conftest.one
3205 echo two > conftest.two
3207 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3208 test -s conftest.one && test -s conftest.two &&
3209 test -s conftest.dir/conftest.one &&
3210 test -s conftest.dir/conftest.two
3212 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3225 rm -rf conftest.one conftest.two conftest.dir
3228 if test "${ac_cv_path_install+set}" = set; then
3229 INSTALL=$ac_cv_path_install
3231 # As a last resort, use the slow shell script. Don't cache a
3232 # value for INSTALL within a source directory, because that will
3233 # break other packages using the cache if that directory is
3234 # removed, or if the value is a relative name.
3235 INSTALL=$ac_install_sh
3238 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3239 $as_echo "$INSTALL" >&6; }
3241 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3242 # It thinks the first close brace ends the variable substitution.
3243 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3245 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3247 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3249 for ac_prog in lex flex
3251 # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy $ac_prog; ac_word=$2
3253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_LEX+set}" = set; then
3256 $as_echo_n "(cached) " >&6
3258 if test -n "$LEX"; then
3259 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_LEX="$ac_prog"
3269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 if test -n "$LEX"; then
3280 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3281 $as_echo "$LEX" >&6; }
3283 { $as_echo "$as_me:$LINENO: result: no" >&5
3284 $as_echo "no" >&6; }
3288 test -n "$LEX" && break
3290 test -n "$LEX" || LEX="lex_not_found"
3292 if test "$LEX" != lex_not_found ; then
3293 for ac_prog in flex lex
3295 # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if test "${ac_cv_prog_LEX+set}" = set; then
3300 $as_echo_n "(cached) " >&6
3302 if test -n "$LEX"; then
3303 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 ac_cv_prog_LEX="$ac_prog"
3313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test -n "$LEX"; then
3324 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3325 $as_echo "$LEX" >&6; }
3327 { $as_echo "$as_me:$LINENO: result: no" >&5
3328 $as_echo "no" >&6; }
3332 test -n "$LEX" && break
3334 test -n "$LEX" || LEX=":"
3336 if test "x$LEX" != "x:"; then
3337 cat >conftest.l <<_ACEOF
3343 e { yyless (input () != 0); }
3344 f { unput (yytext[0]); }
3345 . { BEGIN INITIAL; }
3347 #ifdef YYTEXT_POINTER
3348 extern char *yytext;
3353 return ! yylex () + ! yywrap ();
3356 { (ac_try="$LEX conftest.l"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$LEX conftest.l") 2>&5
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }
3367 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
3368 $as_echo_n "checking lex output file root... " >&6; }
3369 if test "${ac_cv_prog_lex_root+set}" = set; then
3370 $as_echo_n "(cached) " >&6
3373 if test -f lex.yy.c; then
3374 ac_cv_prog_lex_root=lex.yy
3375 elif test -f lexyy.c; then
3376 ac_cv_prog_lex_root=lexyy
3378 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3379 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3380 { (exit 1); exit 1; }; }
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3384 $as_echo "$ac_cv_prog_lex_root" >&6; }
3385 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3387 if test -z "${LEXLIB+set}"; then
3388 { $as_echo "$as_me:$LINENO: checking lex library" >&5
3389 $as_echo_n "checking lex library... " >&6; }
3390 if test "${ac_cv_lib_lex+set}" = set; then
3391 $as_echo_n "(cached) " >&6
3395 ac_cv_lib_lex='none needed'
3396 for ac_lib in '' -lfl -ll; do
3397 LIBS="$ac_lib $ac_save_LIBS"
3398 cat >conftest.$ac_ext <<_ACEOF
3399 `cat $LEX_OUTPUT_ROOT.c`
3401 rm -f conftest.$ac_objext conftest$ac_exeext
3402 if { (ac_try="$ac_link"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_link") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest$ac_exeext && {
3419 test "$cross_compiling" = yes ||
3420 $as_test_x conftest$ac_exeext
3422 ac_cv_lib_lex=$ac_lib
3424 $as_echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3430 rm -rf conftest.dSYM
3431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3432 conftest$ac_exeext conftest.$ac_ext
3433 test "$ac_cv_lib_lex" != 'none needed' && break
3438 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3439 $as_echo "$ac_cv_lib_lex" >&6; }
3440 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3444 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3445 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3446 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3447 $as_echo_n "(cached) " >&6
3449 # POSIX says lex can declare yytext either as a pointer or an array; the
3450 # default is implementation-dependent. Figure out which it is, since
3451 # not all implementations provide the %pointer and %array declarations.
3452 ac_cv_prog_lex_yytext_pointer=no
3454 LIBS="$LEXLIB $ac_save_LIBS"
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #define YYTEXT_POINTER 1
3457 `cat $LEX_OUTPUT_ROOT.c`
3459 rm -f conftest.$ac_objext conftest$ac_exeext
3460 if { (ac_try="$ac_link"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3466 $as_echo "$ac_try_echo") >&5
3467 (eval "$ac_link") 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } && {
3474 test -z "$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3476 } && test -s conftest$ac_exeext && {
3477 test "$cross_compiling" = yes ||
3478 $as_test_x conftest$ac_exeext
3480 ac_cv_prog_lex_yytext_pointer=yes
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3488 rm -rf conftest.dSYM
3489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3490 conftest$ac_exeext conftest.$ac_ext
3494 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3495 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3496 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3498 cat >>confdefs.h <<\_ACEOF
3499 #define YYTEXT_POINTER 1
3503 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3507 for ac_prog in remsh rsh
3509 # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_RSH+set}" = set; then
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$RSH"; then
3517 ac_cv_prog_RSH="$RSH" # Let the user override the test.
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_RSH="$ac_prog"
3527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 if test -n "$RSH"; then
3538 { $as_echo "$as_me:$LINENO: result: $RSH" >&5
3539 $as_echo "$RSH" >&6; }
3541 { $as_echo "$as_me:$LINENO: result: no" >&5
3542 $as_echo "no" >&6; }
3546 test -n "$RSH" && break
3548 test -n "$RSH" || RSH="rsh"
3550 cat >>confdefs.h <<_ACEOF
3551 #define REMOTE_SHELL "$RSH"
3554 # Extract the first word of "nroff", so it can be a program name with args.
3555 set dummy nroff; ac_word=$2
3556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_NROFF+set}" = set; then
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$NROFF"; then
3562 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_NROFF="nroff -man"
3572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
3582 NROFF=$ac_cv_prog_NROFF
3583 if test -n "$NROFF"; then
3584 { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
3585 $as_echo "$NROFF" >&6; }
3587 { $as_echo "$as_me:$LINENO: result: no" >&5
3588 $as_echo "no" >&6; }
3593 for ac_prog in awk mawk gawk nawk
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_path_AWKPATH+set}" = set; then
3600 $as_echo_n "(cached) " >&6
3604 ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614 ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
3615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 AWKPATH=$ac_cv_path_AWKPATH
3626 if test -n "$AWKPATH"; then
3627 { $as_echo "$as_me:$LINENO: result: $AWKPATH" >&5
3628 $as_echo "$AWKPATH" >&6; }
3630 { $as_echo "$as_me:$LINENO: result: no" >&5
3631 $as_echo "no" >&6; }
3635 test -n "$AWKPATH" && break
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if test "${ac_cv_path_PERLPATH+set}" = set; then
3645 $as_echo_n "(cached) " >&6
3649 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 PERLPATH=$ac_cv_path_PERLPATH
3671 if test -n "$PERLPATH"; then
3672 { $as_echo "$as_me:$LINENO: result: $PERLPATH" >&5
3673 $as_echo "$PERLPATH" >&6; }
3675 { $as_echo "$as_me:$LINENO: result: no" >&5
3676 $as_echo "no" >&6; }
3680 test -n "$PERLPATH" && break
3685 # Check whether --with-Xaw3d was given.
3686 if test "${with_Xaw3d+set}" = set; then
3687 withval=$with_Xaw3d; cat >>confdefs.h <<\_ACEOF
3699 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3700 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3701 if test "${ac_cv_path_GREP+set}" = set; then
3702 $as_echo_n "(cached) " >&6
3704 if test -z "$GREP"; then
3705 ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
3717 # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3723 $as_echo_n 0123456789 >"conftest.in"
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 $as_echo 'GREP' >> "conftest.nl"
3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744 $ac_path_GREP_found && break 3
3749 if test -z "$ac_cv_path_GREP"; then
3750 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752 { (exit 1); exit 1; }; }
3755 ac_cv_path_GREP=$GREP
3759 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760 $as_echo "$ac_cv_path_GREP" >&6; }
3761 GREP="$ac_cv_path_GREP"
3764 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3765 $as_echo_n "checking for egrep... " >&6; }
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767 $as_echo_n "(cached) " >&6
3769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3770 then ac_cv_path_EGREP="$GREP -E"
3772 if test -z "$EGREP"; then
3773 ac_path_EGREP_found=false
3774 # Loop through the user's path and test for each of PROGNAME-LIST
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3779 test -z "$as_dir" && as_dir=.
3780 for ac_prog in egrep; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
3785 # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3791 $as_echo_n 0123456789 >"conftest.in"
3794 cat "conftest.in" "conftest.in" >"conftest.tmp"
3795 mv "conftest.tmp" "conftest.in"
3796 cp "conftest.in" "conftest.nl"
3797 $as_echo 'EGREP' >> "conftest.nl"
3798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800 ac_count=`expr $ac_count + 1`
3801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802 # Best one so far, save it but keep looking for a better one
3803 ac_cv_path_EGREP="$ac_path_EGREP"
3804 ac_path_EGREP_max=$ac_count
3806 # 10*(2^10) chars as input seems more than enough
3807 test $ac_count -gt 10 && break
3809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 $ac_path_EGREP_found && break 3
3817 if test -z "$ac_cv_path_EGREP"; then
3818 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3819 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3820 { (exit 1); exit 1; }; }
3823 ac_cv_path_EGREP=$EGREP
3828 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829 $as_echo "$ac_cv_path_EGREP" >&6; }
3830 EGREP="$ac_cv_path_EGREP"
3833 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834 $as_echo_n "checking for ANSI C header files... " >&6; }
3835 if test "${ac_cv_header_stdc+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3864 $as_echo "$ac_try_echo") >&5
3865 (eval "$ac_compile") 2>conftest.er1
3867 grep -v '^ *+' conftest.er1 >conftest.err
3869 cat conftest.err >&5
3870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && {
3872 test -z "$ac_c_werror_flag" ||
3873 test ! -s conftest.err
3874 } && test -s conftest.$ac_objext; then
3875 ac_cv_header_stdc=yes
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 ac_cv_header_stdc=no
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 if test $ac_cv_header_stdc = yes; then
3886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 $EGREP "memchr" >/dev/null 2>&1; then
3900 ac_cv_header_stdc=no
3906 if test $ac_cv_header_stdc = yes; then
3907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3908 cat >conftest.$ac_ext <<_ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 $EGREP "free" >/dev/null 2>&1; then
3921 ac_cv_header_stdc=no
3927 if test $ac_cv_header_stdc = yes; then
3928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3929 if test "$cross_compiling" = yes; then
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3940 #if ((' ' & 0x0FF) == 0x020)
3941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3944 # define ISLOWER(c) \
3945 (('a' <= (c) && (c) <= 'i') \
3946 || ('j' <= (c) && (c) <= 'r') \
3947 || ('s' <= (c) && (c) <= 'z'))
3948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3956 for (i = 0; i < 256; i++)
3957 if (XOR (islower (i), ISLOWER (i))
3958 || toupper (i) != TOUPPER (i))
3963 rm -f conftest$ac_exeext
3964 if { (ac_try="$ac_link"
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970 $as_echo "$ac_try_echo") >&5
3971 (eval "$ac_link") 2>&5
3973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3975 { (case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3980 $as_echo "$ac_try_echo") >&5
3981 (eval "$ac_try") 2>&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3987 $as_echo "$as_me: program exited with status $ac_status" >&5
3988 $as_echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3992 ac_cv_header_stdc=no
3994 rm -rf conftest.dSYM
3995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002 $as_echo "$ac_cv_header_stdc" >&6; }
4003 if test $ac_cv_header_stdc = yes; then
4005 cat >>confdefs.h <<\_ACEOF
4006 #define STDC_HEADERS 1
4011 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4012 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4013 if test "${ac_cv_header_time+set}" = set; then
4014 $as_echo_n "(cached) " >&6
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 #include <sys/types.h>
4023 #include <sys/time.h>
4029 if ((struct tm *) 0)
4035 rm -f conftest.$ac_objext
4036 if { (ac_try="$ac_compile"
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4042 $as_echo "$ac_try_echo") >&5
4043 (eval "$ac_compile") 2>conftest.er1
4045 grep -v '^ *+' conftest.er1 >conftest.err
4047 cat conftest.err >&5
4048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } && {
4050 test -z "$ac_c_werror_flag" ||
4051 test ! -s conftest.err
4052 } && test -s conftest.$ac_objext; then
4053 ac_cv_header_time=yes
4055 $as_echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 ac_cv_header_time=no
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4064 $as_echo "$ac_cv_header_time" >&6; }
4065 if test $ac_cv_header_time = yes; then
4067 cat >>confdefs.h <<\_ACEOF
4068 #define TIME_WITH_SYS_TIME 1
4073 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4074 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4075 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4076 $as_echo_n "(cached) " >&6
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 #include <sys/types.h>
4085 #include <sys/wait.h>
4087 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4090 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4098 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest.$ac_objext; then
4121 ac_cv_header_sys_wait_h=yes
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 ac_cv_header_sys_wait_h=no
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4132 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4133 if test $ac_cv_header_sys_wait_h = yes; then
4135 cat >>confdefs.h <<\_ACEOF
4136 #define HAVE_SYS_WAIT_H 1
4147 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4148 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4149 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4150 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4152 $as_echo_n "(cached) " >&6
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <sys/types.h>
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179 $as_echo "$ac_try_echo") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } && {
4187 test -z "$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 } && test -s conftest.$ac_objext; then
4190 eval "$as_ac_Header=yes"
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 eval "$as_ac_Header=no"
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 ac_res=`eval 'as_val=${'$as_ac_Header'}
4201 $as_echo "$as_val"'`
4202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4203 $as_echo "$ac_res" >&6; }
4204 as_val=`eval 'as_val=${'$as_ac_Header'}
4205 $as_echo "$as_val"'`
4206 if test "x$as_val" = x""yes; then
4207 cat >>confdefs.h <<_ACEOF
4208 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4211 ac_header_dirent=$ac_hdr; break
4215 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4216 if test $ac_header_dirent = dirent.h; then
4217 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4218 $as_echo_n "checking for library containing opendir... " >&6; }
4219 if test "${ac_cv_search_opendir+set}" = set; then
4220 $as_echo_n "(cached) " >&6
4222 ac_func_search_save_LIBS=$LIBS
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4230 /* Override any GCC internal prototype to avoid an error.
4231 Use char because int might match the return type of a GCC
4232 builtin and then its argument prototype would still apply. */
4245 for ac_lib in '' dir; do
4246 if test -z "$ac_lib"; then
4247 ac_res="none required"
4250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4252 rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (ac_try="$ac_link"
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4259 $as_echo "$ac_try_echo") >&5
4260 (eval "$ac_link") 2>conftest.er1
4262 grep -v '^ *+' conftest.er1 >conftest.err
4264 cat conftest.err >&5
4265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && {
4267 test -z "$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4269 } && test -s conftest$ac_exeext && {
4270 test "$cross_compiling" = yes ||
4271 $as_test_x conftest$ac_exeext
4273 ac_cv_search_opendir=$ac_res
4275 $as_echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4281 rm -rf conftest.dSYM
4282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4284 if test "${ac_cv_search_opendir+set}" = set; then
4288 if test "${ac_cv_search_opendir+set}" = set; then
4291 ac_cv_search_opendir=no
4294 LIBS=$ac_func_search_save_LIBS
4296 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4297 $as_echo "$ac_cv_search_opendir" >&6; }
4298 ac_res=$ac_cv_search_opendir
4299 if test "$ac_res" != no; then
4300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4305 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4306 $as_echo_n "checking for library containing opendir... " >&6; }
4307 if test "${ac_cv_search_opendir+set}" = set; then
4308 $as_echo_n "(cached) " >&6
4310 ac_func_search_save_LIBS=$LIBS
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4318 /* Override any GCC internal prototype to avoid an error.
4319 Use char because int might match the return type of a GCC
4320 builtin and then its argument prototype would still apply. */
4333 for ac_lib in '' x; do
4334 if test -z "$ac_lib"; then
4335 ac_res="none required"
4338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (ac_try="$ac_link"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4347 $as_echo "$ac_try_echo") >&5
4348 (eval "$ac_link") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest$ac_exeext && {
4358 test "$cross_compiling" = yes ||
4359 $as_test_x conftest$ac_exeext
4361 ac_cv_search_opendir=$ac_res
4363 $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4369 rm -rf conftest.dSYM
4370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4372 if test "${ac_cv_search_opendir+set}" = set; then
4376 if test "${ac_cv_search_opendir+set}" = set; then
4379 ac_cv_search_opendir=no
4382 LIBS=$ac_func_search_save_LIBS
4384 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4385 $as_echo "$ac_cv_search_opendir" >&6; }
4386 ac_res=$ac_cv_search_opendir
4387 if test "$ac_res" != no; then
4388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4394 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4395 $as_echo_n "checking return type of signal handlers... " >&6; }
4396 if test "${ac_cv_type_signal+set}" = set; then
4397 $as_echo_n "(cached) " >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <sys/types.h>
4411 return *(signal (0, 0)) (0) == 1;
4416 rm -f conftest.$ac_objext
4417 if { (ac_try="$ac_compile"
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4423 $as_echo "$ac_try_echo") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && {
4431 test -z "$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 } && test -s conftest.$ac_objext; then
4434 ac_cv_type_signal=int
4436 $as_echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_cv_type_signal=void
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4445 $as_echo "$ac_cv_type_signal" >&6; }
4447 cat >>confdefs.h <<_ACEOF
4448 #define RETSIGTYPE $ac_cv_type_signal
4452 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4462 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4463 inttypes.h stdint.h unistd.h
4465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4467 $as_echo_n "checking for $ac_header... " >&6; }
4468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4469 $as_echo_n "(cached) " >&6
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4479 #include <$ac_header>
4481 rm -f conftest.$ac_objext
4482 if { (ac_try="$ac_compile"
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4488 $as_echo "$ac_try_echo") >&5
4489 (eval "$ac_compile") 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } && {
4496 test -z "$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4498 } && test -s conftest.$ac_objext; then
4499 eval "$as_ac_Header=yes"
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 eval "$as_ac_Header=no"
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 ac_res=`eval 'as_val=${'$as_ac_Header'}
4510 $as_echo "$as_val"'`
4511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4512 $as_echo "$ac_res" >&6; }
4513 as_val=`eval 'as_val=${'$as_ac_Header'}
4514 $as_echo "$as_val"'`
4515 if test "x$as_val" = x""yes; then
4516 cat >>confdefs.h <<_ACEOF
4517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4530 for ac_header in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
4532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4534 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4535 $as_echo_n "checking for $ac_header... " >&6; }
4536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4537 $as_echo_n "(cached) " >&6
4539 ac_res=`eval 'as_val=${'$as_ac_Header'}
4540 $as_echo "$as_val"'`
4541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4542 $as_echo "$ac_res" >&6; }
4544 # Is the header compilable?
4545 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4546 $as_echo_n "checking $ac_header usability... " >&6; }
4547 cat >conftest.$ac_ext <<_ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4554 #include <$ac_header>
4556 rm -f conftest.$ac_objext
4557 if { (ac_try="$ac_compile"
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4563 $as_echo "$ac_try_echo") >&5
4564 (eval "$ac_compile") 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } && {
4571 test -z "$ac_c_werror_flag" ||
4572 test ! -s conftest.err
4573 } && test -s conftest.$ac_objext; then
4574 ac_header_compiler=yes
4576 $as_echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 ac_header_compiler=no
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4584 $as_echo "$ac_header_compiler" >&6; }
4586 # Is the header present?
4587 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4588 $as_echo_n "checking $ac_header presence... " >&6; }
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595 #include <$ac_header>
4597 if { (ac_try="$ac_cpp conftest.$ac_ext"
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4603 $as_echo "$ac_try_echo") >&5
4604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } >/dev/null && {
4611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4612 test ! -s conftest.err
4614 ac_header_preproc=yes
4616 $as_echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_header_preproc=no
4622 rm -f conftest.err conftest.$ac_ext
4623 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4624 $as_echo "$ac_header_preproc" >&6; }
4626 # So? What about this header?
4627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4630 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4633 ac_header_preproc=yes
4636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4637 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4639 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4641 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4643 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4645 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4647 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4651 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4652 $as_echo_n "checking for $ac_header... " >&6; }
4653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4654 $as_echo_n "(cached) " >&6
4656 eval "$as_ac_Header=\$ac_header_preproc"
4658 ac_res=`eval 'as_val=${'$as_ac_Header'}
4659 $as_echo "$as_val"'`
4660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4661 $as_echo "$ac_res" >&6; }
4664 as_val=`eval 'as_val=${'$as_ac_Header'}
4665 $as_echo "$as_val"'`
4666 if test "x$as_val" = x""yes; then
4667 cat >>confdefs.h <<_ACEOF
4668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 for ac_header in fcntl.h sys/fcntl.h
4679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4682 $as_echo_n "checking for $ac_header... " >&6; }
4683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4684 $as_echo_n "(cached) " >&6
4686 ac_res=`eval 'as_val=${'$as_ac_Header'}
4687 $as_echo "$as_val"'`
4688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4689 $as_echo "$ac_res" >&6; }
4691 # Is the header compilable?
4692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4693 $as_echo_n "checking $ac_header usability... " >&6; }
4694 cat >conftest.$ac_ext <<_ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 $ac_includes_default
4701 #include <$ac_header>
4703 rm -f conftest.$ac_objext
4704 if { (ac_try="$ac_compile"
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4710 $as_echo "$ac_try_echo") >&5
4711 (eval "$ac_compile") 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest.$ac_objext; then
4721 ac_header_compiler=yes
4723 $as_echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 ac_header_compiler=no
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731 $as_echo "$ac_header_compiler" >&6; }
4733 # Is the header present?
4734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4735 $as_echo_n "checking $ac_header presence... " >&6; }
4736 cat >conftest.$ac_ext <<_ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #include <$ac_header>
4744 if { (ac_try="$ac_cpp conftest.$ac_ext"
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750 $as_echo "$ac_try_echo") >&5
4751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753 grep -v '^ *+' conftest.er1 >conftest.err
4755 cat conftest.err >&5
4756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null && {
4758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4761 ac_header_preproc=yes
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 ac_header_preproc=no
4769 rm -f conftest.err conftest.$ac_ext
4770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4771 $as_echo "$ac_header_preproc" >&6; }
4773 # So? What about this header?
4774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4780 ac_header_preproc=yes
4783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4786 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4790 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4799 $as_echo_n "checking for $ac_header... " >&6; }
4800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4801 $as_echo_n "(cached) " >&6
4803 eval "$as_ac_Header=\$ac_header_preproc"
4805 ac_res=`eval 'as_val=${'$as_ac_Header'}
4806 $as_echo "$as_val"'`
4807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4808 $as_echo "$ac_res" >&6; }
4811 as_val=`eval 'as_val=${'$as_ac_Header'}
4812 $as_echo "$as_val"'`
4813 if test "x$as_val" = x""yes; then
4814 cat >>confdefs.h <<_ACEOF
4815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4824 for ac_header in sys/socket.h lan/socket.h
4826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4829 $as_echo_n "checking for $ac_header... " >&6; }
4830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4831 $as_echo_n "(cached) " >&6
4833 ac_res=`eval 'as_val=${'$as_ac_Header'}
4834 $as_echo "$as_val"'`
4835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4836 $as_echo "$ac_res" >&6; }
4838 # Is the header compilable?
4839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4840 $as_echo_n "checking $ac_header usability... " >&6; }
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 $ac_includes_default
4848 #include <$ac_header>
4850 rm -f conftest.$ac_objext
4851 if { (ac_try="$ac_compile"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858 (eval "$ac_compile") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } && {
4865 test -z "$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4867 } && test -s conftest.$ac_objext; then
4868 ac_header_compiler=yes
4870 $as_echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4873 ac_header_compiler=no
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 $as_echo "$ac_header_compiler" >&6; }
4880 # Is the header present?
4881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 $as_echo_n "checking $ac_header presence... " >&6; }
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 #include <$ac_header>
4891 if { (ac_try="$ac_cpp conftest.$ac_ext"
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4897 $as_echo "$ac_try_echo") >&5
4898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4900 grep -v '^ *+' conftest.er1 >conftest.err
4902 cat conftest.err >&5
4903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } >/dev/null && {
4905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4908 ac_header_preproc=yes
4910 $as_echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4913 ac_header_preproc=no
4916 rm -f conftest.err conftest.$ac_ext
4917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918 $as_echo "$ac_header_preproc" >&6; }
4920 # So? What about this header?
4921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4927 ac_header_preproc=yes
4930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4933 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4937 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4946 $as_echo_n "checking for $ac_header... " >&6; }
4947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4948 $as_echo_n "(cached) " >&6
4950 eval "$as_ac_Header=\$ac_header_preproc"
4952 ac_res=`eval 'as_val=${'$as_ac_Header'}
4953 $as_echo "$as_val"'`
4954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4955 $as_echo "$ac_res" >&6; }
4958 as_val=`eval 'as_val=${'$as_ac_Header'}
4959 $as_echo "$as_val"'`
4960 if test "x$as_val" = x""yes; then
4961 cat >>confdefs.h <<_ACEOF
4962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969 if test "${ac_cv_header_stddef_h+set}" = set; then
4970 { $as_echo "$as_me:$LINENO: checking for stddef.h" >&5
4971 $as_echo_n "checking for stddef.h... " >&6; }
4972 if test "${ac_cv_header_stddef_h+set}" = set; then
4973 $as_echo_n "(cached) " >&6
4975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4976 $as_echo "$ac_cv_header_stddef_h" >&6; }
4978 # Is the header compilable?
4979 { $as_echo "$as_me:$LINENO: checking stddef.h usability" >&5
4980 $as_echo_n "checking stddef.h usability... " >&6; }
4981 cat >conftest.$ac_ext <<_ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 $ac_includes_default
4990 rm -f conftest.$ac_objext
4991 if { (ac_try="$ac_compile"
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998 (eval "$ac_compile") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5008 ac_header_compiler=yes
5010 $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 ac_header_compiler=no
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5018 $as_echo "$ac_header_compiler" >&6; }
5020 # Is the header present?
5021 { $as_echo "$as_me:$LINENO: checking stddef.h presence" >&5
5022 $as_echo_n "checking stddef.h presence... " >&6; }
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5037 $as_echo "$ac_try_echo") >&5
5038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } >/dev/null && {
5045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5048 ac_header_preproc=yes
5050 $as_echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 ac_header_preproc=no
5056 rm -f conftest.err conftest.$ac_ext
5057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5058 $as_echo "$ac_header_preproc" >&6; }
5060 # So? What about this header?
5061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5063 { $as_echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
5064 $as_echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5065 { $as_echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
5066 $as_echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
5067 ac_header_preproc=yes
5070 { $as_echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
5071 $as_echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
5072 { $as_echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
5073 $as_echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
5074 { $as_echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
5075 $as_echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
5076 { $as_echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
5077 $as_echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
5078 { $as_echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
5079 $as_echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
5080 { $as_echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
5081 $as_echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
5085 { $as_echo "$as_me:$LINENO: checking for stddef.h" >&5
5086 $as_echo_n "checking for stddef.h... " >&6; }
5087 if test "${ac_cv_header_stddef_h+set}" = set; then
5088 $as_echo_n "(cached) " >&6
5090 ac_cv_header_stddef_h=$ac_header_preproc
5092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5093 $as_echo "$ac_cv_header_stddef_h" >&6; }
5096 if test "x$ac_cv_header_stddef_h" = x""yes; then
5099 cat >>confdefs.h <<\_ACEOF
5111 for ac_func in _getpty grantpt setitimer usleep
5113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5114 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5115 $as_echo_n "checking for $ac_func... " >&6; }
5116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5117 $as_echo_n "(cached) " >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5127 #define $ac_func innocuous_$ac_func
5129 /* System header to define __stub macros and hopefully few prototypes,
5130 which can conflict with char $ac_func (); below.
5131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132 <limits.h> exists even on freestanding compilers. */
5135 # include <limits.h>
5137 # include <assert.h>
5142 /* Override any GCC internal prototype to avoid an error.
5143 Use char because int might match the return type of a GCC
5144 builtin and then its argument prototype would still apply. */
5149 /* The GNU C library defines this for functions which it implements
5150 to always fail with ENOSYS. Some functions are actually named
5151 something starting with __ and the normal name is an alias. */
5152 #if defined __stub_$ac_func || defined __stub___$ac_func
5164 rm -f conftest.$ac_objext conftest$ac_exeext
5165 if { (ac_try="$ac_link"
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5171 $as_echo "$ac_try_echo") >&5
5172 (eval "$ac_link") 2>conftest.er1
5174 grep -v '^ *+' conftest.er1 >conftest.err
5176 cat conftest.err >&5
5177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && {
5179 test -z "$ac_c_werror_flag" ||
5180 test ! -s conftest.err
5181 } && test -s conftest$ac_exeext && {
5182 test "$cross_compiling" = yes ||
5183 $as_test_x conftest$ac_exeext
5185 eval "$as_ac_var=yes"
5187 $as_echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 eval "$as_ac_var=no"
5193 rm -rf conftest.dSYM
5194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5195 conftest$ac_exeext conftest.$ac_ext
5197 ac_res=`eval 'as_val=${'$as_ac_var'}
5198 $as_echo "$as_val"'`
5199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5200 $as_echo "$ac_res" >&6; }
5201 as_val=`eval 'as_val=${'$as_ac_var'}
5202 $as_echo "$as_val"'`
5203 if test "x$as_val" = x""yes; then
5204 cat >>confdefs.h <<_ACEOF
5205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5213 for ac_func in gettimeofday ftime
5215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5216 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5217 $as_echo_n "checking for $ac_func... " >&6; }
5218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5219 $as_echo_n "(cached) " >&6
5221 cat >conftest.$ac_ext <<_ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5229 #define $ac_func innocuous_$ac_func
5231 /* System header to define __stub macros and hopefully few prototypes,
5232 which can conflict with char $ac_func (); below.
5233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234 <limits.h> exists even on freestanding compilers. */
5237 # include <limits.h>
5239 # include <assert.h>
5244 /* Override any GCC internal prototype to avoid an error.
5245 Use char because int might match the return type of a GCC
5246 builtin and then its argument prototype would still apply. */
5251 /* The GNU C library defines this for functions which it implements
5252 to always fail with ENOSYS. Some functions are actually named
5253 something starting with __ and the normal name is an alias. */
5254 #if defined __stub_$ac_func || defined __stub___$ac_func
5266 rm -f conftest.$ac_objext conftest$ac_exeext
5267 if { (ac_try="$ac_link"
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5273 $as_echo "$ac_try_echo") >&5
5274 (eval "$ac_link") 2>conftest.er1
5276 grep -v '^ *+' conftest.er1 >conftest.err
5278 cat conftest.err >&5
5279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && {
5281 test -z "$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 } && test -s conftest$ac_exeext && {
5284 test "$cross_compiling" = yes ||
5285 $as_test_x conftest$ac_exeext
5287 eval "$as_ac_var=yes"
5289 $as_echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 eval "$as_ac_var=no"
5295 rm -rf conftest.dSYM
5296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5297 conftest$ac_exeext conftest.$ac_ext
5299 ac_res=`eval 'as_val=${'$as_ac_var'}
5300 $as_echo "$as_val"'`
5301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5302 $as_echo "$ac_res" >&6; }
5303 as_val=`eval 'as_val=${'$as_ac_var'}
5304 $as_echo "$as_val"'`
5305 if test "x$as_val" = x""yes; then
5306 cat >>confdefs.h <<_ACEOF
5307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5315 for ac_func in random rand48
5317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5318 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5319 $as_echo_n "checking for $ac_func... " >&6; }
5320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5321 $as_echo_n "(cached) " >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5331 #define $ac_func innocuous_$ac_func
5333 /* System header to define __stub macros and hopefully few prototypes,
5334 which can conflict with char $ac_func (); below.
5335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336 <limits.h> exists even on freestanding compilers. */
5339 # include <limits.h>
5341 # include <assert.h>
5346 /* Override any GCC internal prototype to avoid an error.
5347 Use char because int might match the return type of a GCC
5348 builtin and then its argument prototype would still apply. */
5353 /* The GNU C library defines this for functions which it implements
5354 to always fail with ENOSYS. Some functions are actually named
5355 something starting with __ and the normal name is an alias. */
5356 #if defined __stub_$ac_func || defined __stub___$ac_func
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5375 $as_echo "$ac_try_echo") >&5
5376 (eval "$ac_link") 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } && {
5383 test -z "$ac_c_werror_flag" ||
5384 test ! -s conftest.err
5385 } && test -s conftest$ac_exeext && {
5386 test "$cross_compiling" = yes ||
5387 $as_test_x conftest$ac_exeext
5389 eval "$as_ac_var=yes"
5391 $as_echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 eval "$as_ac_var=no"
5397 rm -rf conftest.dSYM
5398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5399 conftest$ac_exeext conftest.$ac_ext
5401 ac_res=`eval 'as_val=${'$as_ac_var'}
5402 $as_echo "$as_val"'`
5403 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5404 $as_echo "$ac_res" >&6; }
5405 as_val=`eval 'as_val=${'$as_ac_var'}
5406 $as_echo "$as_val"'`
5407 if test "x$as_val" = x""yes; then
5408 cat >>confdefs.h <<_ACEOF
5409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5417 for ac_func in gethostname sysinfo
5419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5421 $as_echo_n "checking for $ac_func... " >&6; }
5422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5423 $as_echo_n "(cached) " >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5433 #define $ac_func innocuous_$ac_func
5435 /* System header to define __stub macros and hopefully few prototypes,
5436 which can conflict with char $ac_func (); below.
5437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 <limits.h> exists even on freestanding compilers. */
5441 # include <limits.h>
5443 # include <assert.h>
5448 /* Override any GCC internal prototype to avoid an error.
5449 Use char because int might match the return type of a GCC
5450 builtin and then its argument prototype would still apply. */
5455 /* The GNU C library defines this for functions which it implements
5456 to always fail with ENOSYS. Some functions are actually named
5457 something starting with __ and the normal name is an alias. */
5458 #if defined __stub_$ac_func || defined __stub___$ac_func
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_link") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest$ac_exeext && {
5488 test "$cross_compiling" = yes ||
5489 $as_test_x conftest$ac_exeext
5491 eval "$as_ac_var=yes"
5493 $as_echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 eval "$as_ac_var=no"
5499 rm -rf conftest.dSYM
5500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5501 conftest$ac_exeext conftest.$ac_ext
5503 ac_res=`eval 'as_val=${'$as_ac_var'}
5504 $as_echo "$as_val"'`
5505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5506 $as_echo "$ac_res" >&6; }
5507 as_val=`eval 'as_val=${'$as_ac_var'}
5508 $as_echo "$as_val"'`
5509 if test "x$as_val" = x""yes; then
5510 cat >>confdefs.h <<_ACEOF
5511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5517 { $as_echo "$as_me:$LINENO: checking for setlocale" >&5
5518 $as_echo_n "checking for setlocale... " >&6; }
5519 if test "${ac_cv_func_setlocale+set}" = set; then
5520 $as_echo_n "(cached) " >&6
5522 cat >conftest.$ac_ext <<_ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
5529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5530 #define setlocale innocuous_setlocale
5532 /* System header to define __stub macros and hopefully few prototypes,
5533 which can conflict with char setlocale (); below.
5534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535 <limits.h> exists even on freestanding compilers. */
5538 # include <limits.h>
5540 # include <assert.h>
5545 /* Override any GCC internal prototype to avoid an error.
5546 Use char because int might match the return type of a GCC
5547 builtin and then its argument prototype would still apply. */
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined __stub_setlocale || defined __stub___setlocale
5562 return setlocale ();
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (ac_try="$ac_link"
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574 $as_echo "$ac_try_echo") >&5
5575 (eval "$ac_link") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest$ac_exeext && {
5585 test "$cross_compiling" = yes ||
5586 $as_test_x conftest$ac_exeext
5588 ac_cv_func_setlocale=yes
5590 $as_echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 ac_cv_func_setlocale=no
5596 rm -rf conftest.dSYM
5597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5598 conftest$ac_exeext conftest.$ac_ext
5600 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
5601 $as_echo "$ac_cv_func_setlocale" >&6; }
5602 if test "x$ac_cv_func_setlocale" = x""yes; then
5606 { $as_echo "$as_me:$LINENO: checking for setlocale in -li" >&5
5607 $as_echo_n "checking for setlocale in -li... " >&6; }
5608 if test "${ac_cv_lib_i_setlocale+set}" = set; then
5609 $as_echo_n "(cached) " >&6
5611 ac_check_lib_save_LIBS=$LIBS
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5620 /* Override any GCC internal prototype to avoid an error.
5621 Use char because int might match the return type of a GCC
5622 builtin and then its argument prototype would still apply. */
5630 return setlocale ();
5635 rm -f conftest.$ac_objext conftest$ac_exeext
5636 if { (ac_try="$ac_link"
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5642 $as_echo "$ac_try_echo") >&5
5643 (eval "$ac_link") 2>conftest.er1
5645 grep -v '^ *+' conftest.er1 >conftest.err
5647 cat conftest.err >&5
5648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } && {
5650 test -z "$ac_c_werror_flag" ||
5651 test ! -s conftest.err
5652 } && test -s conftest$ac_exeext && {
5653 test "$cross_compiling" = yes ||
5654 $as_test_x conftest$ac_exeext
5656 ac_cv_lib_i_setlocale=yes
5658 $as_echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5661 ac_cv_lib_i_setlocale=no
5664 rm -rf conftest.dSYM
5665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5666 conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_check_lib_save_LIBS
5669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_i_setlocale" >&5
5670 $as_echo "$ac_cv_lib_i_setlocale" >&6; }
5671 if test "x$ac_cv_lib_i_setlocale" = x""yes; then
5672 cat >>confdefs.h <<_ACEOF
5679 cat >>confdefs.h <<\_ACEOF
5689 { $as_echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
5690 $as_echo_n "checking for getpseudotty in -lseq... " >&6; }
5691 if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5694 ac_check_lib_save_LIBS=$LIBS
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5703 /* Override any GCC internal prototype to avoid an error.
5704 Use char because int might match the return type of a GCC
5705 builtin and then its argument prototype would still apply. */
5709 char getpseudotty ();
5713 return getpseudotty ();
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (ac_try="$ac_link"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726 (eval "$ac_link") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest$ac_exeext && {
5736 test "$cross_compiling" = yes ||
5737 $as_test_x conftest$ac_exeext
5739 ac_cv_lib_seq_getpseudotty=yes
5741 $as_echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 ac_cv_lib_seq_getpseudotty=no
5747 rm -rf conftest.dSYM
5748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5749 conftest$ac_exeext conftest.$ac_ext
5750 LIBS=$ac_check_lib_save_LIBS
5752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
5753 $as_echo "$ac_cv_lib_seq_getpseudotty" >&6; }
5754 if test "x$ac_cv_lib_seq_getpseudotty" = x""yes; then
5755 cat >>confdefs.h <<_ACEOF
5756 #define HAVE_LIBSEQ 1
5764 { $as_echo "$as_me:$LINENO: checking for X" >&5
5765 $as_echo_n "checking for X... " >&6; }
5768 # Check whether --with-x was given.
5769 if test "${with_x+set}" = set; then
5773 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5774 if test "x$with_x" = xno; then
5775 # The user explicitly disabled X.
5778 case $x_includes,$x_libraries in #(
5779 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
5780 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
5781 { (exit 1); exit 1; }; };; #(
5782 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5783 $as_echo_n "(cached) " >&6
5785 # One or both of the vars are not set, and there is no cached value.
5786 ac_x_includes=no ac_x_libraries=no
5787 rm -f -r conftest.dir
5788 if mkdir conftest.dir; then
5790 cat >Imakefile <<'_ACEOF'
5792 @echo incroot='${INCROOT}'
5794 @echo usrlibdir='${USRLIBDIR}'
5796 @echo libdir='${LIBDIR}'
5798 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5800 for ac_var in incroot usrlibdir libdir; do
5801 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5803 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5804 for ac_extension in a so sl dylib la dll; do
5805 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5806 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5807 ac_im_usrlibdir=$ac_im_libdir; break
5810 # Screen out bogus values from the imake configuration. They are
5811 # bogus both because they are the default anyway, and because
5812 # using them would break gcc on systems where it needs fixed includes.
5813 case $ac_im_incroot in
5814 /usr/include) ac_x_includes= ;;
5815 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5817 case $ac_im_usrlibdir in
5818 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5819 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5823 rm -f -r conftest.dir
5826 # Standard set of common directories for X headers.
5827 # Check X11 before X11Rn because it is often a symlink to the current release.
5839 /usr/local/X11/include
5840 /usr/local/X11R6/include
5841 /usr/local/X11R5/include
5842 /usr/local/X11R4/include
5844 /usr/local/include/X11
5845 /usr/local/include/X11R6
5846 /usr/local/include/X11R5
5847 /usr/local/include/X11R4
5851 /usr/XFree86/include/X11
5855 /usr/unsupported/include
5857 /usr/local/x11r5/include
5858 /usr/lpp/Xamples/include
5860 /usr/openwin/include
5861 /usr/openwin/share/include'
5863 if test "$ac_x_includes" = no; then
5864 # Guess where to find include files, by looking for Xlib.h.
5865 # First, try using that file with no special directory specified.
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #include <X11/Xlib.h>
5874 if { (ac_try="$ac_cpp conftest.$ac_ext"
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880 $as_echo "$ac_try_echo") >&5
5881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev/null && {
5888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5891 # We can compile using X headers with no special include directory.
5894 $as_echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 for ac_dir in $ac_x_header_dirs; do
5898 if test -r "$ac_dir/X11/Xlib.h"; then
5899 ac_x_includes=$ac_dir
5905 rm -f conftest.err conftest.$ac_ext
5906 fi # $ac_x_includes = no
5908 if test "$ac_x_libraries" = no; then
5909 # Check for the libraries.
5910 # See if we find them without any special options.
5911 # Don't add to $LIBS permanently.
5914 cat >conftest.$ac_ext <<_ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #include <X11/Xlib.h>
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (ac_try="$ac_link"
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937 (eval "$ac_link") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest$ac_exeext && {
5947 test "$cross_compiling" = yes ||
5948 $as_test_x conftest$ac_exeext
5951 # We can link X programs with no special library path.
5954 $as_echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5958 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5960 # Don't even attempt the hair of trying to link an X program!
5961 for ac_extension in a so sl dylib la dll; do
5962 if test -r "$ac_dir/libX11.$ac_extension"; then
5963 ac_x_libraries=$ac_dir
5970 rm -rf conftest.dSYM
5971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5972 conftest$ac_exeext conftest.$ac_ext
5973 fi # $ac_x_libraries = no
5975 case $ac_x_includes,$ac_x_libraries in #(
5977 # Didn't find X, or a directory has "'" in its name.
5978 ac_cv_have_x="have_x=no";; #(
5980 # Record where we found X for the cache.
5981 ac_cv_have_x="have_x=yes\
5982 ac_x_includes='$ac_x_includes'\
5983 ac_x_libraries='$ac_x_libraries'"
5989 eval "$ac_cv_have_x"
5992 if test "$have_x" != yes; then
5993 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
5994 $as_echo "$have_x" >&6; }
5997 # If each of the values was on the command line, it overrides each guess.
5998 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5999 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6000 # Update the cache value to reflect the command line values.
6001 ac_cv_have_x="have_x=yes\
6002 ac_x_includes='$x_includes'\
6003 ac_x_libraries='$x_libraries'"
6004 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6005 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6008 if test "$no_x" = yes; then
6009 # Not all programs may use this symbol, but it does not hurt to define it.
6011 cat >>confdefs.h <<\_ACEOF
6012 #define X_DISPLAY_MISSING 1
6015 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6017 if test -n "$x_includes"; then
6018 X_CFLAGS="$X_CFLAGS -I$x_includes"
6021 # It would also be nice to do this for all -L options, not just this one.
6022 if test -n "$x_libraries"; then
6023 X_LIBS="$X_LIBS -L$x_libraries"
6024 # For Solaris; some versions of Sun CC require a space after -R and
6025 # others require no space. Words are not sufficient . . . .
6026 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6027 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6028 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6029 ac_xsave_c_werror_flag=$ac_c_werror_flag
6030 ac_c_werror_flag=yes
6031 cat >conftest.$ac_ext <<_ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6046 rm -f conftest.$ac_objext conftest$ac_exeext
6047 if { (ac_try="$ac_link"
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6053 $as_echo "$ac_try_echo") >&5
6054 (eval "$ac_link") 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_c_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest$ac_exeext && {
6064 test "$cross_compiling" = yes ||
6065 $as_test_x conftest$ac_exeext
6067 { $as_echo "$as_me:$LINENO: result: no" >&5
6068 $as_echo "no" >&6; }
6069 X_LIBS="$X_LIBS -R$x_libraries"
6071 $as_echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 LIBS="$ac_xsave_LIBS -R $x_libraries"
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (ac_try="$ac_link"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098 (eval "$ac_link") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest$ac_exeext && {
6108 test "$cross_compiling" = yes ||
6109 $as_test_x conftest$ac_exeext
6111 { $as_echo "$as_me:$LINENO: result: yes" >&5
6112 $as_echo "yes" >&6; }
6113 X_LIBS="$X_LIBS -R $x_libraries"
6115 $as_echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6119 $as_echo "neither works" >&6; }
6122 rm -rf conftest.dSYM
6123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6124 conftest$ac_exeext conftest.$ac_ext
6127 rm -rf conftest.dSYM
6128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6129 conftest$ac_exeext conftest.$ac_ext
6130 ac_c_werror_flag=$ac_xsave_c_werror_flag
6134 # Check for system-dependent libraries X programs must link with.
6135 # Do this before checking for the system-independent R6 libraries
6136 # (-lICE), since we may need -lsocket or whatever for X linking.
6138 if test "$ISC" = yes; then
6139 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6141 # Martyn Johnson says this is needed for Ultrix, if the X
6142 # libraries were built with DECnet support. And Karl Berry says
6143 # the Alpha needs dnet_stub (dnet does not exist).
6144 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6152 /* Override any GCC internal prototype to avoid an error.
6153 Use char because int might match the return type of a GCC
6154 builtin and then its argument prototype would still apply. */
6158 char XOpenDisplay ();
6162 return XOpenDisplay ();
6167 rm -f conftest.$ac_objext conftest$ac_exeext
6168 if { (ac_try="$ac_link"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6174 $as_echo "$ac_try_echo") >&5
6175 (eval "$ac_link") 2>conftest.er1
6177 grep -v '^ *+' conftest.er1 >conftest.err
6179 cat conftest.err >&5
6180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } && {
6182 test -z "$ac_c_werror_flag" ||
6183 test ! -s conftest.err
6184 } && test -s conftest$ac_exeext && {
6185 test "$cross_compiling" = yes ||
6186 $as_test_x conftest$ac_exeext
6190 $as_echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6194 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6195 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6196 $as_echo_n "(cached) " >&6
6198 ac_check_lib_save_LIBS=$LIBS
6200 cat >conftest.$ac_ext <<_ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6207 /* Override any GCC internal prototype to avoid an error.
6208 Use char because int might match the return type of a GCC
6209 builtin and then its argument prototype would still apply. */
6217 return dnet_ntoa ();
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (ac_try="$ac_link"
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230 (eval "$ac_link") 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest$ac_exeext && {
6240 test "$cross_compiling" = yes ||
6241 $as_test_x conftest$ac_exeext
6243 ac_cv_lib_dnet_dnet_ntoa=yes
6245 $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_cv_lib_dnet_dnet_ntoa=no
6251 rm -rf conftest.dSYM
6252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6253 conftest$ac_exeext conftest.$ac_ext
6254 LIBS=$ac_check_lib_save_LIBS
6256 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6257 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6258 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6259 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6262 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6263 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6264 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6265 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6266 $as_echo_n "(cached) " >&6
6268 ac_check_lib_save_LIBS=$LIBS
6269 LIBS="-ldnet_stub $LIBS"
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6277 /* Override any GCC internal prototype to avoid an error.
6278 Use char because int might match the return type of a GCC
6279 builtin and then its argument prototype would still apply. */
6287 return dnet_ntoa ();
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (ac_try="$ac_link"
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299 $as_echo "$ac_try_echo") >&5
6300 (eval "$ac_link") 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest$ac_exeext && {
6310 test "$cross_compiling" = yes ||
6311 $as_test_x conftest$ac_exeext
6313 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6315 $as_echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 ac_cv_lib_dnet_stub_dnet_ntoa=no
6321 rm -rf conftest.dSYM
6322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6323 conftest$ac_exeext conftest.$ac_ext
6324 LIBS=$ac_check_lib_save_LIBS
6326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6327 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6328 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6329 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6335 rm -rf conftest.dSYM
6336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6337 conftest$ac_exeext conftest.$ac_ext
6338 LIBS="$ac_xsave_LIBS"
6340 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6341 # to get the SysV transport functions.
6342 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6344 # The nsl library prevents programs from opening the X display
6345 # on Irix 5.2, according to T.E. Dickey.
6346 # The functions gethostbyname, getservbyname, and inet_addr are
6347 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6348 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6349 $as_echo_n "checking for gethostbyname... " >&6; }
6350 if test "${ac_cv_func_gethostbyname+set}" = set; then
6351 $as_echo_n "(cached) " >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6361 #define gethostbyname innocuous_gethostbyname
6363 /* System header to define __stub macros and hopefully few prototypes,
6364 which can conflict with char gethostbyname (); below.
6365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6366 <limits.h> exists even on freestanding compilers. */
6369 # include <limits.h>
6371 # include <assert.h>
6374 #undef gethostbyname
6376 /* Override any GCC internal prototype to avoid an error.
6377 Use char because int might match the return type of a GCC
6378 builtin and then its argument prototype would still apply. */
6382 char gethostbyname ();
6383 /* The GNU C library defines this for functions which it implements
6384 to always fail with ENOSYS. Some functions are actually named
6385 something starting with __ and the normal name is an alias. */
6386 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6393 return gethostbyname ();
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (ac_try="$ac_link"
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6405 $as_echo "$ac_try_echo") >&5
6406 (eval "$ac_link") 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && {
6413 test -z "$ac_c_werror_flag" ||
6414 test ! -s conftest.err
6415 } && test -s conftest$ac_exeext && {
6416 test "$cross_compiling" = yes ||
6417 $as_test_x conftest$ac_exeext
6419 ac_cv_func_gethostbyname=yes
6421 $as_echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 ac_cv_func_gethostbyname=no
6427 rm -rf conftest.dSYM
6428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6429 conftest$ac_exeext conftest.$ac_ext
6431 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6432 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6434 if test $ac_cv_func_gethostbyname = no; then
6435 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6436 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6437 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6438 $as_echo_n "(cached) " >&6
6440 ac_check_lib_save_LIBS=$LIBS
6442 cat >conftest.$ac_ext <<_ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6449 /* Override any GCC internal prototype to avoid an error.
6450 Use char because int might match the return type of a GCC
6451 builtin and then its argument prototype would still apply. */
6455 char gethostbyname ();
6459 return gethostbyname ();
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (ac_try="$ac_link"
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6471 $as_echo "$ac_try_echo") >&5
6472 (eval "$ac_link") 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest$ac_exeext && {
6482 test "$cross_compiling" = yes ||
6483 $as_test_x conftest$ac_exeext
6485 ac_cv_lib_nsl_gethostbyname=yes
6487 $as_echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 ac_cv_lib_nsl_gethostbyname=no
6493 rm -rf conftest.dSYM
6494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6495 conftest$ac_exeext conftest.$ac_ext
6496 LIBS=$ac_check_lib_save_LIBS
6498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6499 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6500 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6504 if test $ac_cv_lib_nsl_gethostbyname = no; then
6505 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6506 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6507 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6508 $as_echo_n "(cached) " >&6
6510 ac_check_lib_save_LIBS=$LIBS
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6519 /* Override any GCC internal prototype to avoid an error.
6520 Use char because int might match the return type of a GCC
6521 builtin and then its argument prototype would still apply. */
6525 char gethostbyname ();
6529 return gethostbyname ();
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (ac_try="$ac_link"
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6541 $as_echo "$ac_try_echo") >&5
6542 (eval "$ac_link") 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } && {
6549 test -z "$ac_c_werror_flag" ||
6550 test ! -s conftest.err
6551 } && test -s conftest$ac_exeext && {
6552 test "$cross_compiling" = yes ||
6553 $as_test_x conftest$ac_exeext
6555 ac_cv_lib_bsd_gethostbyname=yes
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_cv_lib_bsd_gethostbyname=no
6563 rm -rf conftest.dSYM
6564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6565 conftest$ac_exeext conftest.$ac_ext
6566 LIBS=$ac_check_lib_save_LIBS
6568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6569 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6570 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
6571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6577 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6578 # socket/setsockopt and other routines are undefined under SCO ODT
6579 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6580 # on later versions), says Simon Leinen: it contains gethostby*
6581 # variants that don't use the name server (or something). -lsocket
6582 # must be given before -lnsl if both are needed. We assume that
6583 # if connect needs -lnsl, so does gethostbyname.
6584 { $as_echo "$as_me:$LINENO: checking for connect" >&5
6585 $as_echo_n "checking for connect... " >&6; }
6586 if test "${ac_cv_func_connect+set}" = set; then
6587 $as_echo_n "(cached) " >&6
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6597 #define connect innocuous_connect
6599 /* System header to define __stub macros and hopefully few prototypes,
6600 which can conflict with char connect (); below.
6601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6602 <limits.h> exists even on freestanding compilers. */
6605 # include <limits.h>
6607 # include <assert.h>
6612 /* Override any GCC internal prototype to avoid an error.
6613 Use char because int might match the return type of a GCC
6614 builtin and then its argument prototype would still apply. */
6619 /* The GNU C library defines this for functions which it implements
6620 to always fail with ENOSYS. Some functions are actually named
6621 something starting with __ and the normal name is an alias. */
6622 #if defined __stub_connect || defined __stub___connect
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (ac_try="$ac_link"
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641 $as_echo "$ac_try_echo") >&5
6642 (eval "$ac_link") 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest$ac_exeext && {
6652 test "$cross_compiling" = yes ||
6653 $as_test_x conftest$ac_exeext
6655 ac_cv_func_connect=yes
6657 $as_echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 ac_cv_func_connect=no
6663 rm -rf conftest.dSYM
6664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6665 conftest$ac_exeext conftest.$ac_ext
6667 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6668 $as_echo "$ac_cv_func_connect" >&6; }
6670 if test $ac_cv_func_connect = no; then
6671 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6672 $as_echo_n "checking for connect in -lsocket... " >&6; }
6673 if test "${ac_cv_lib_socket_connect+set}" = set; then
6674 $as_echo_n "(cached) " >&6
6676 ac_check_lib_save_LIBS=$LIBS
6677 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6678 cat >conftest.$ac_ext <<_ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (ac_try="$ac_link"
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6707 $as_echo "$ac_try_echo") >&5
6708 (eval "$ac_link") 2>conftest.er1
6710 grep -v '^ *+' conftest.er1 >conftest.err
6712 cat conftest.err >&5
6713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
6717 } && test -s conftest$ac_exeext && {
6718 test "$cross_compiling" = yes ||
6719 $as_test_x conftest$ac_exeext
6721 ac_cv_lib_socket_connect=yes
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_cv_lib_socket_connect=no
6729 rm -rf conftest.dSYM
6730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6731 conftest$ac_exeext conftest.$ac_ext
6732 LIBS=$ac_check_lib_save_LIBS
6734 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6735 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6736 if test "x$ac_cv_lib_socket_connect" = x""yes; then
6737 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6742 # Guillermo Gomez says -lposix is necessary on A/UX.
6743 { $as_echo "$as_me:$LINENO: checking for remove" >&5
6744 $as_echo_n "checking for remove... " >&6; }
6745 if test "${ac_cv_func_remove+set}" = set; then
6746 $as_echo_n "(cached) " >&6
6748 cat >conftest.$ac_ext <<_ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6756 #define remove innocuous_remove
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char remove (); below.
6760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6761 <limits.h> exists even on freestanding compilers. */
6764 # include <limits.h>
6766 # include <assert.h>
6771 /* Override any GCC internal prototype to avoid an error.
6772 Use char because int might match the return type of a GCC
6773 builtin and then its argument prototype would still apply. */
6778 /* The GNU C library defines this for functions which it implements
6779 to always fail with ENOSYS. Some functions are actually named
6780 something starting with __ and the normal name is an alias. */
6781 #if defined __stub_remove || defined __stub___remove
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (ac_try="$ac_link"
6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6800 $as_echo "$ac_try_echo") >&5
6801 (eval "$ac_link") 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && {
6808 test -z "$ac_c_werror_flag" ||
6809 test ! -s conftest.err
6810 } && test -s conftest$ac_exeext && {
6811 test "$cross_compiling" = yes ||
6812 $as_test_x conftest$ac_exeext
6814 ac_cv_func_remove=yes
6816 $as_echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_cv_func_remove=no
6822 rm -rf conftest.dSYM
6823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6824 conftest$ac_exeext conftest.$ac_ext
6826 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6827 $as_echo "$ac_cv_func_remove" >&6; }
6829 if test $ac_cv_func_remove = no; then
6830 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6831 $as_echo_n "checking for remove in -lposix... " >&6; }
6832 if test "${ac_cv_lib_posix_remove+set}" = set; then
6833 $as_echo_n "(cached) " >&6
6835 ac_check_lib_save_LIBS=$LIBS
6836 LIBS="-lposix $LIBS"
6837 cat >conftest.$ac_ext <<_ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6844 /* Override any GCC internal prototype to avoid an error.
6845 Use char because int might match the return type of a GCC
6846 builtin and then its argument prototype would still apply. */
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (ac_try="$ac_link"
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866 $as_echo "$ac_try_echo") >&5
6867 (eval "$ac_link") 2>conftest.er1
6869 grep -v '^ *+' conftest.er1 >conftest.err
6871 cat conftest.err >&5
6872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_c_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest$ac_exeext && {
6877 test "$cross_compiling" = yes ||
6878 $as_test_x conftest$ac_exeext
6880 ac_cv_lib_posix_remove=yes
6882 $as_echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_cv_lib_posix_remove=no
6888 rm -rf conftest.dSYM
6889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6890 conftest$ac_exeext conftest.$ac_ext
6891 LIBS=$ac_check_lib_save_LIBS
6893 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6894 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6895 if test "x$ac_cv_lib_posix_remove" = x""yes; then
6896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6901 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6902 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
6903 $as_echo_n "checking for shmat... " >&6; }
6904 if test "${ac_cv_func_shmat+set}" = set; then
6905 $as_echo_n "(cached) " >&6
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6915 #define shmat innocuous_shmat
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char shmat (); below.
6919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6920 <limits.h> exists even on freestanding compilers. */
6923 # include <limits.h>
6925 # include <assert.h>
6930 /* Override any GCC internal prototype to avoid an error.
6931 Use char because int might match the return type of a GCC
6932 builtin and then its argument prototype would still apply. */
6937 /* The GNU C library defines this for functions which it implements
6938 to always fail with ENOSYS. Some functions are actually named
6939 something starting with __ and the normal name is an alias. */
6940 #if defined __stub_shmat || defined __stub___shmat
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960 (eval "$ac_link") 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && {
6967 test -z "$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 } && test -s conftest$ac_exeext && {
6970 test "$cross_compiling" = yes ||
6971 $as_test_x conftest$ac_exeext
6973 ac_cv_func_shmat=yes
6975 $as_echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6981 rm -rf conftest.dSYM
6982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6983 conftest$ac_exeext conftest.$ac_ext
6985 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6986 $as_echo "$ac_cv_func_shmat" >&6; }
6988 if test $ac_cv_func_shmat = no; then
6989 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6990 $as_echo_n "checking for shmat in -lipc... " >&6; }
6991 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6992 $as_echo_n "(cached) " >&6
6994 ac_check_lib_save_LIBS=$LIBS
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7003 /* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7018 rm -f conftest.$ac_objext conftest$ac_exeext
7019 if { (ac_try="$ac_link"
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025 $as_echo "$ac_try_echo") >&5
7026 (eval "$ac_link") 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest$ac_exeext && {
7036 test "$cross_compiling" = yes ||
7037 $as_test_x conftest$ac_exeext
7039 ac_cv_lib_ipc_shmat=yes
7041 $as_echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_cv_lib_ipc_shmat=no
7047 rm -rf conftest.dSYM
7048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7049 conftest$ac_exeext conftest.$ac_ext
7050 LIBS=$ac_check_lib_save_LIBS
7052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7053 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7054 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7055 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7061 # Check for libraries that X11R6 Xt/Xaw programs need.
7062 ac_save_LDFLAGS=$LDFLAGS
7063 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7064 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7065 # check for ICE first), but we must link in the order -lSM -lICE or
7066 # we get undefined symbols. So assume we have SM if we have ICE.
7067 # These have to be linked with before -lX11, unlike the other
7068 # libraries we check for below, so use a different variable.
7069 # John Interrante, Karl Berry
7070 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7071 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7072 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7073 $as_echo_n "(cached) " >&6
7075 ac_check_lib_save_LIBS=$LIBS
7076 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7077 cat >conftest.$ac_ext <<_ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7084 /* Override any GCC internal prototype to avoid an error.
7085 Use char because int might match the return type of a GCC
7086 builtin and then its argument prototype would still apply. */
7090 char IceConnectionNumber ();
7094 return IceConnectionNumber ();
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107 (eval "$ac_link") 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest$ac_exeext && {
7117 test "$cross_compiling" = yes ||
7118 $as_test_x conftest$ac_exeext
7120 ac_cv_lib_ICE_IceConnectionNumber=yes
7122 $as_echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_cv_lib_ICE_IceConnectionNumber=no
7128 rm -rf conftest.dSYM
7129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7130 conftest$ac_exeext conftest.$ac_ext
7131 LIBS=$ac_check_lib_save_LIBS
7133 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7134 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7135 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7136 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7139 LDFLAGS=$ac_save_LDFLAGS
7143 if test -n "$no_x" ; then
7144 echo $PRODUCT requires the X Window System header files and libraries!
7145 echo They were not found on your system. See FAQ topic C.2.
7146 echo configure failed
7150 # Make sure we can run config.sub.
7151 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7152 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
7153 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
7154 { (exit 1); exit 1; }; }
7156 { $as_echo "$as_me:$LINENO: checking build system type" >&5
7157 $as_echo_n "checking build system type... " >&6; }
7158 if test "${ac_cv_build+set}" = set; then
7159 $as_echo_n "(cached) " >&6
7161 ac_build_alias=$build_alias
7162 test "x$ac_build_alias" = x &&
7163 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7164 test "x$ac_build_alias" = x &&
7165 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7166 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7167 { (exit 1); exit 1; }; }
7168 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7169 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
7170 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
7171 { (exit 1); exit 1; }; }
7174 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7175 $as_echo "$ac_cv_build" >&6; }
7176 case $ac_cv_build in
7178 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7179 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
7180 { (exit 1); exit 1; }; };;
7183 ac_save_IFS=$IFS; IFS='-'
7189 # Remember, the first character of IFS is used to create $*,
7190 # except with old shells:
7193 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7196 { $as_echo "$as_me:$LINENO: checking host system type" >&5
7197 $as_echo_n "checking host system type... " >&6; }
7198 if test "${ac_cv_host+set}" = set; then
7199 $as_echo_n "(cached) " >&6
7201 if test "x$host_alias" = x; then
7202 ac_cv_host=$ac_cv_build
7204 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7205 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7206 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7207 { (exit 1); exit 1; }; }
7211 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7212 $as_echo "$ac_cv_host" >&6; }
7215 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7216 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
7217 { (exit 1); exit 1; }; };;
7220 ac_save_IFS=$IFS; IFS='-'
7226 # Remember, the first character of IFS is used to create $*,
7227 # except with old shells:
7230 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7234 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7235 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7237 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7238 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7239 $as_echo_n "(cached) " >&6
7241 cat >conftest.make <<\_ACEOF
7244 @echo '@@@%%%=$(MAKE)=@@@%%%'
7246 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7247 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7249 eval ac_cv_prog_make_${ac_make}_set=yes;;
7251 eval ac_cv_prog_make_${ac_make}_set=no;;
7255 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7256 { $as_echo "$as_me:$LINENO: result: yes" >&5
7257 $as_echo "yes" >&6; }
7260 { $as_echo "$as_me:$LINENO: result: no" >&5
7261 $as_echo "no" >&6; }
7262 SET_MAKE="MAKE=${MAKE-make}"
7267 if test -n "$ac_aux_dir"; then
7268 case "$ac_aux_dir" in
7269 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7270 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7273 if test -z "$MKINSTALLDIRS"; then
7274 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7279 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7280 $as_echo_n "checking whether NLS is requested... " >&6; }
7281 # Check whether --enable-nls was given.
7282 if test "${enable_nls+set}" = set; then
7283 enableval=$enable_nls; USE_NLS=$enableval
7288 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7289 $as_echo "$USE_NLS" >&6; }
7296 # Prepare PATH_SEPARATOR.
7297 # The user is always right.
7298 if test "${PATH_SEPARATOR+set}" != set; then
7299 echo "#! /bin/sh" >conf$$.sh
7300 echo "exit 0" >>conf$$.sh
7302 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7310 # Find out how to test for executable files. Don't use a zero-byte file,
7311 # as systems may use methods other than mode bits to determine executability.
7312 cat >conf$$.file <<_ASEOF
7316 chmod +x conf$$.file
7317 if test -x conf$$.file >/dev/null 2>&1; then
7318 ac_executable_p="test -x"
7320 ac_executable_p="test -f"
7324 # Extract the first word of "msgfmt", so it can be a program name with args.
7325 set dummy msgfmt; ac_word=$2
7326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_path_MSGFMT+set}" = set; then
7329 $as_echo_n "(cached) " >&6
7333 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7336 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7337 for ac_dir in $PATH; do
7339 test -z "$ac_dir" && ac_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7342 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7343 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7344 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7351 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7355 MSGFMT="$ac_cv_path_MSGFMT"
7356 if test "$MSGFMT" != ":"; then
7357 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7358 $as_echo "$MSGFMT" >&6; }
7360 { $as_echo "$as_me:$LINENO: result: no" >&5
7361 $as_echo "no" >&6; }
7364 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7365 set dummy gmsgfmt; ac_word=$2
7366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7373 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7395 GMSGFMT=$ac_cv_path_GMSGFMT
7396 if test -n "$GMSGFMT"; then
7397 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7398 $as_echo "$GMSGFMT" >&6; }
7400 { $as_echo "$as_me:$LINENO: result: no" >&5
7401 $as_echo "no" >&6; }
7407 # Prepare PATH_SEPARATOR.
7408 # The user is always right.
7409 if test "${PATH_SEPARATOR+set}" != set; then
7410 echo "#! /bin/sh" >conf$$.sh
7411 echo "exit 0" >>conf$$.sh
7413 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7421 # Find out how to test for executable files. Don't use a zero-byte file,
7422 # as systems may use methods other than mode bits to determine executability.
7423 cat >conf$$.file <<_ASEOF
7427 chmod +x conf$$.file
7428 if test -x conf$$.file >/dev/null 2>&1; then
7429 ac_executable_p="test -x"
7431 ac_executable_p="test -f"
7435 # Extract the first word of "xgettext", so it can be a program name with args.
7436 set dummy xgettext; ac_word=$2
7437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7440 $as_echo_n "(cached) " >&6
7444 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7447 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7448 for ac_dir in $PATH; do
7450 test -z "$ac_dir" && ac_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7453 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7454 (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
7455 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7462 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7466 XGETTEXT="$ac_cv_path_XGETTEXT"
7467 if test "$XGETTEXT" != ":"; then
7468 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7469 $as_echo "$XGETTEXT" >&6; }
7471 { $as_echo "$as_me:$LINENO: result: no" >&5
7472 $as_echo "no" >&6; }
7478 # Prepare PATH_SEPARATOR.
7479 # The user is always right.
7480 if test "${PATH_SEPARATOR+set}" != set; then
7481 echo "#! /bin/sh" >conf$$.sh
7482 echo "exit 0" >>conf$$.sh
7484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7492 # Find out how to test for executable files. Don't use a zero-byte file,
7493 # as systems may use methods other than mode bits to determine executability.
7494 cat >conf$$.file <<_ASEOF
7498 chmod +x conf$$.file
7499 if test -x conf$$.file >/dev/null 2>&1; then
7500 ac_executable_p="test -x"
7502 ac_executable_p="test -f"
7506 # Extract the first word of "msgmerge", so it can be a program name with args.
7507 set dummy msgmerge; ac_word=$2
7508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7511 $as_echo_n "(cached) " >&6
7515 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7518 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7519 for ac_dir in $PATH; do
7521 test -z "$ac_dir" && ac_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7524 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7525 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7532 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7536 MSGMERGE="$ac_cv_path_MSGMERGE"
7537 if test "$MSGMERGE" != ":"; then
7538 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7539 $as_echo "$MSGMERGE" >&6; }
7541 { $as_echo "$as_me:$LINENO: result: no" >&5
7542 $as_echo "no" >&6; }
7546 if test "$GMSGFMT" != ":"; then
7547 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7548 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7551 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7552 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7553 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7558 if test "$XGETTEXT" != ":"; then
7559 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7560 (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
7563 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7564 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7570 ac_config_commands="$ac_config_commands default-1"
7574 if test "X$prefix" = "XNONE"; then
7575 acl_final_prefix="$ac_default_prefix"
7577 acl_final_prefix="$prefix"
7579 if test "X$exec_prefix" = "XNONE"; then
7580 acl_final_exec_prefix='${prefix}'
7582 acl_final_exec_prefix="$exec_prefix"
7584 acl_save_prefix="$prefix"
7585 prefix="$acl_final_prefix"
7586 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7587 prefix="$acl_save_prefix"
7590 # Check whether --with-gnu-ld was given.
7591 if test "${with_gnu_ld+set}" = set; then
7592 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7597 # Prepare PATH_SEPARATOR.
7598 # The user is always right.
7599 if test "${PATH_SEPARATOR+set}" != set; then
7600 echo "#! /bin/sh" >conf$$.sh
7601 echo "exit 0" >>conf$$.sh
7603 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7611 if test "$GCC" = yes; then
7612 # Check if gcc -print-prog-name=ld gives a path.
7613 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7614 $as_echo_n "checking for ld used by GCC... " >&6; }
7617 # gcc leaves a trailing carriage return which upsets mingw
7618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7623 # Accept absolute paths.
7624 [\\/]* | [A-Za-z]:[\\/]*)
7625 re_direlt='/[^/][^/]*/\.\./'
7626 # Canonicalize the path of ld
7627 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7628 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7629 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7631 test -z "$LD" && LD="$ac_prog"
7634 # If it fails, then pretend we aren't using GCC.
7638 # If it is relative, then search for the first ld in PATH.
7642 elif test "$with_gnu_ld" = yes; then
7643 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7644 $as_echo_n "checking for GNU ld... " >&6; }
7646 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7647 $as_echo_n "checking for non-GNU ld... " >&6; }
7649 if test "${acl_cv_path_LD+set}" = set; then
7650 $as_echo_n "(cached) " >&6
7652 if test -z "$LD"; then
7653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7654 for ac_dir in $PATH; do
7655 test -z "$ac_dir" && ac_dir=.
7656 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7657 acl_cv_path_LD="$ac_dir/$ac_prog"
7658 # Check to see if the program is GNU ld. I'd rather use --version,
7659 # but apparently some GNU ld's only accept -v.
7660 # Break only if it was the GNU/non-GNU ld that we prefer.
7661 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7662 test "$with_gnu_ld" != no && break
7664 test "$with_gnu_ld" != yes && break
7670 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7674 LD="$acl_cv_path_LD"
7675 if test -n "$LD"; then
7676 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7677 $as_echo "$LD" >&6; }
7679 { $as_echo "$as_me:$LINENO: result: no" >&5
7680 $as_echo "no" >&6; }
7682 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7683 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7684 { (exit 1); exit 1; }; }
7685 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7686 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7687 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7688 $as_echo_n "(cached) " >&6
7690 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7691 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7692 acl_cv_prog_gnu_ld=yes
7694 acl_cv_prog_gnu_ld=no
7697 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7698 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7699 with_gnu_ld=$acl_cv_prog_gnu_ld
7703 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7704 $as_echo_n "checking for shared library run path origin... " >&6; }
7705 if test "${acl_cv_rpath+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7709 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7710 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7716 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7717 $as_echo "$acl_cv_rpath" >&6; }
7719 libext="$acl_cv_libext"
7720 shlibext="$acl_cv_shlibext"
7721 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7722 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7723 hardcode_direct="$acl_cv_hardcode_direct"
7724 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7725 # Check whether --enable-rpath was given.
7726 if test "${enable_rpath+set}" = set; then
7727 enableval=$enable_rpath; :
7741 acl_save_prefix="$prefix"
7742 prefix="$acl_final_prefix"
7743 acl_save_exec_prefix="$exec_prefix"
7744 exec_prefix="$acl_final_exec_prefix"
7746 eval additional_includedir=\"$includedir\"
7747 eval additional_libdir=\"$libdir\"
7749 exec_prefix="$acl_save_exec_prefix"
7750 prefix="$acl_save_prefix"
7753 # Check whether --with-libiconv-prefix was given.
7754 if test "${with_libiconv_prefix+set}" = set; then
7755 withval=$with_libiconv_prefix;
7756 if test "X$withval" = "Xno"; then
7759 if test "X$withval" = "X"; then
7761 acl_save_prefix="$prefix"
7762 prefix="$acl_final_prefix"
7763 acl_save_exec_prefix="$exec_prefix"
7764 exec_prefix="$acl_final_exec_prefix"
7766 eval additional_includedir=\"$includedir\"
7767 eval additional_libdir=\"$libdir\"
7769 exec_prefix="$acl_save_exec_prefix"
7770 prefix="$acl_save_prefix"
7773 additional_includedir="$withval/include"
7774 additional_libdir="$withval/lib"
7785 names_already_handled=
7786 names_next_round='iconv '
7787 while test -n "$names_next_round"; do
7788 names_this_round="$names_next_round"
7790 for name in $names_this_round; do
7792 for n in $names_already_handled; do
7793 if test "$n" = "$name"; then
7798 if test -z "$already_handled"; then
7799 names_already_handled="$names_already_handled $name"
7800 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7801 eval value=\"\$HAVE_LIB$uppername\"
7802 if test -n "$value"; then
7803 if test "$value" = yes; then
7804 eval value=\"\$LIB$uppername\"
7805 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7806 eval value=\"\$LTLIB$uppername\"
7807 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7816 if test $use_additional = yes; then
7817 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7818 found_dir="$additional_libdir"
7819 found_so="$additional_libdir/lib$name.$shlibext"
7820 if test -f "$additional_libdir/lib$name.la"; then
7821 found_la="$additional_libdir/lib$name.la"
7824 if test -f "$additional_libdir/lib$name.$libext"; then
7825 found_dir="$additional_libdir"
7826 found_a="$additional_libdir/lib$name.$libext"
7827 if test -f "$additional_libdir/lib$name.la"; then
7828 found_la="$additional_libdir/lib$name.la"
7833 if test "X$found_dir" = "X"; then
7834 for x in $LDFLAGS $LTLIBICONV; do
7836 acl_save_prefix="$prefix"
7837 prefix="$acl_final_prefix"
7838 acl_save_exec_prefix="$exec_prefix"
7839 exec_prefix="$acl_final_exec_prefix"
7841 exec_prefix="$acl_save_exec_prefix"
7842 prefix="$acl_save_prefix"
7846 dir=`echo "X$x" | sed -e 's/^X-L//'`
7847 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7849 found_so="$dir/lib$name.$shlibext"
7850 if test -f "$dir/lib$name.la"; then
7851 found_la="$dir/lib$name.la"
7854 if test -f "$dir/lib$name.$libext"; then
7856 found_a="$dir/lib$name.$libext"
7857 if test -f "$dir/lib$name.la"; then
7858 found_la="$dir/lib$name.la"
7864 if test "X$found_dir" != "X"; then
7869 if test "X$found_dir" != "X"; then
7870 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7871 if test "X$found_so" != "X"; then
7872 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7873 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7876 for x in $ltrpathdirs; do
7877 if test "X$x" = "X$found_dir"; then
7882 if test -z "$haveit"; then
7883 ltrpathdirs="$ltrpathdirs $found_dir"
7885 if test "$hardcode_direct" = yes; then
7886 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7888 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7889 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7891 for x in $rpathdirs; do
7892 if test "X$x" = "X$found_dir"; then
7897 if test -z "$haveit"; then
7898 rpathdirs="$rpathdirs $found_dir"
7902 for x in $LDFLAGS $LIBICONV; do
7904 acl_save_prefix="$prefix"
7905 prefix="$acl_final_prefix"
7906 acl_save_exec_prefix="$exec_prefix"
7907 exec_prefix="$acl_final_exec_prefix"
7909 exec_prefix="$acl_save_exec_prefix"
7910 prefix="$acl_save_prefix"
7912 if test "X$x" = "X-L$found_dir"; then
7917 if test -z "$haveit"; then
7918 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7920 if test "$hardcode_minus_L" != no; then
7921 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7923 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7929 if test "X$found_a" != "X"; then
7930 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7932 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7935 additional_includedir=
7936 case "$found_dir" in
7938 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7939 additional_includedir="$basedir/include"
7942 if test "X$additional_includedir" != "X"; then
7943 if test "X$additional_includedir" != "X/usr/include"; then
7945 if test "X$additional_includedir" = "X/usr/local/include"; then
7946 if test -n "$GCC"; then
7948 linux*) haveit=yes;;
7952 if test -z "$haveit"; then
7953 for x in $CPPFLAGS $INCICONV; do
7955 acl_save_prefix="$prefix"
7956 prefix="$acl_final_prefix"
7957 acl_save_exec_prefix="$exec_prefix"
7958 exec_prefix="$acl_final_exec_prefix"
7960 exec_prefix="$acl_save_exec_prefix"
7961 prefix="$acl_save_prefix"
7963 if test "X$x" = "X-I$additional_includedir"; then
7968 if test -z "$haveit"; then
7969 if test -d "$additional_includedir"; then
7970 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7976 if test -n "$found_la"; then
7977 save_libdir="$libdir"
7979 */* | *\\*) . "$found_la" ;;
7980 *) . "./$found_la" ;;
7982 libdir="$save_libdir"
7983 for dep in $dependency_libs; do
7986 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7987 if test "X$additional_libdir" != "X/usr/lib"; then
7989 if test "X$additional_libdir" = "X/usr/local/lib"; then
7990 if test -n "$GCC"; then
7992 linux*) haveit=yes;;
7996 if test -z "$haveit"; then
7998 for x in $LDFLAGS $LIBICONV; do
8000 acl_save_prefix="$prefix"
8001 prefix="$acl_final_prefix"
8002 acl_save_exec_prefix="$exec_prefix"
8003 exec_prefix="$acl_final_exec_prefix"
8005 exec_prefix="$acl_save_exec_prefix"
8006 prefix="$acl_save_prefix"
8008 if test "X$x" = "X-L$additional_libdir"; then
8013 if test -z "$haveit"; then
8014 if test -d "$additional_libdir"; then
8015 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8019 for x in $LDFLAGS $LTLIBICONV; do
8021 acl_save_prefix="$prefix"
8022 prefix="$acl_final_prefix"
8023 acl_save_exec_prefix="$exec_prefix"
8024 exec_prefix="$acl_final_exec_prefix"
8026 exec_prefix="$acl_save_exec_prefix"
8027 prefix="$acl_save_prefix"
8029 if test "X$x" = "X-L$additional_libdir"; then
8034 if test -z "$haveit"; then
8035 if test -d "$additional_libdir"; then
8036 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8043 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8044 if test "$enable_rpath" != no; then
8046 for x in $rpathdirs; do
8047 if test "X$x" = "X$dir"; then
8052 if test -z "$haveit"; then
8053 rpathdirs="$rpathdirs $dir"
8056 for x in $ltrpathdirs; do
8057 if test "X$x" = "X$dir"; then
8062 if test -z "$haveit"; then
8063 ltrpathdirs="$ltrpathdirs $dir"
8068 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8071 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8074 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8075 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8081 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8082 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8088 if test "X$rpathdirs" != "X"; then
8089 if test -n "$hardcode_libdir_separator"; then
8091 for found_dir in $rpathdirs; do
8092 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8094 acl_save_libdir="$libdir"
8096 eval flag=\"$hardcode_libdir_flag_spec\"
8097 libdir="$acl_save_libdir"
8098 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8100 for found_dir in $rpathdirs; do
8101 acl_save_libdir="$libdir"
8103 eval flag=\"$hardcode_libdir_flag_spec\"
8104 libdir="$acl_save_libdir"
8105 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8109 if test "X$ltrpathdirs" != "X"; then
8110 for found_dir in $ltrpathdirs; do
8111 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8132 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8133 $as_echo_n "checking whether NLS is requested... " >&6; }
8134 # Check whether --enable-nls was given.
8135 if test "${enable_nls+set}" = set; then
8136 enableval=$enable_nls; USE_NLS=$enableval
8141 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
8142 $as_echo "$USE_NLS" >&6; }
8151 if test "$USE_NLS" = "yes"; then
8152 gt_use_preinstalled_gnugettext=no
8159 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8160 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8161 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
8162 $as_echo_n "(cached) " >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 #include <libintl.h>
8171 extern int _nl_msg_cat_cntr;
8172 extern int *_nl_domain_bindings;
8176 bindtextdomain ("", "");
8177 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (ac_try="$ac_link"
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189 $as_echo "$ac_try_echo") >&5
8190 (eval "$ac_link") 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest$ac_exeext && {
8200 test "$cross_compiling" = yes ||
8201 $as_test_x conftest$ac_exeext
8203 gt_cv_func_gnugettext1_libc=yes
8205 $as_echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 gt_cv_func_gnugettext1_libc=no
8211 rm -rf conftest.dSYM
8212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8213 conftest$ac_exeext conftest.$ac_ext
8215 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
8216 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8218 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8224 am_save_CPPFLAGS="$CPPFLAGS"
8226 for element in $INCICONV; do
8228 for x in $CPPFLAGS; do
8230 acl_save_prefix="$prefix"
8231 prefix="$acl_final_prefix"
8232 acl_save_exec_prefix="$exec_prefix"
8233 exec_prefix="$acl_final_exec_prefix"
8235 exec_prefix="$acl_save_exec_prefix"
8236 prefix="$acl_save_prefix"
8238 if test "X$x" = "X$element"; then
8243 if test -z "$haveit"; then
8244 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8249 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
8250 $as_echo_n "checking for iconv... " >&6; }
8251 if test "${am_cv_func_iconv+set}" = set; then
8252 $as_echo_n "(cached) " >&6
8255 am_cv_func_iconv="no, consider installing GNU libiconv"
8257 cat >conftest.$ac_ext <<_ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8268 iconv_t cd = iconv_open("","");
8269 iconv(cd,NULL,NULL,NULL,NULL);
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8282 $as_echo "$ac_try_echo") >&5
8283 (eval "$ac_link") 2>conftest.er1
8285 grep -v '^ *+' conftest.er1 >conftest.err
8287 cat conftest.err >&5
8288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } && {
8290 test -z "$ac_c_werror_flag" ||
8291 test ! -s conftest.err
8292 } && test -s conftest$ac_exeext && {
8293 test "$cross_compiling" = yes ||
8294 $as_test_x conftest$ac_exeext
8296 am_cv_func_iconv=yes
8298 $as_echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8304 rm -rf conftest.dSYM
8305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8306 conftest$ac_exeext conftest.$ac_ext
8307 if test "$am_cv_func_iconv" != yes; then
8308 am_save_LIBS="$LIBS"
8309 LIBS="$LIBS $LIBICONV"
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8321 iconv_t cd = iconv_open("","");
8322 iconv(cd,NULL,NULL,NULL,NULL);
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (ac_try="$ac_link"
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336 (eval "$ac_link") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1 >conftest.err
8340 cat conftest.err >&5
8341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest$ac_exeext && {
8346 test "$cross_compiling" = yes ||
8347 $as_test_x conftest$ac_exeext
8350 am_cv_func_iconv=yes
8352 $as_echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8358 rm -rf conftest.dSYM
8359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8360 conftest$ac_exeext conftest.$ac_ext
8361 LIBS="$am_save_LIBS"
8365 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8366 $as_echo "$am_cv_func_iconv" >&6; }
8367 if test "$am_cv_func_iconv" = yes; then
8369 cat >>confdefs.h <<\_ACEOF
8370 #define HAVE_ICONV 1
8374 if test "$am_cv_lib_iconv" = yes; then
8375 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8376 $as_echo_n "checking how to link with libiconv... " >&6; }
8377 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
8378 $as_echo "$LIBICONV" >&6; }
8380 CPPFLAGS="$am_save_CPPFLAGS"
8392 acl_save_prefix="$prefix"
8393 prefix="$acl_final_prefix"
8394 acl_save_exec_prefix="$exec_prefix"
8395 exec_prefix="$acl_final_exec_prefix"
8397 eval additional_includedir=\"$includedir\"
8398 eval additional_libdir=\"$libdir\"
8400 exec_prefix="$acl_save_exec_prefix"
8401 prefix="$acl_save_prefix"
8404 # Check whether --with-libintl-prefix was given.
8405 if test "${with_libintl_prefix+set}" = set; then
8406 withval=$with_libintl_prefix;
8407 if test "X$withval" = "Xno"; then
8410 if test "X$withval" = "X"; then
8412 acl_save_prefix="$prefix"
8413 prefix="$acl_final_prefix"
8414 acl_save_exec_prefix="$exec_prefix"
8415 exec_prefix="$acl_final_exec_prefix"
8417 eval additional_includedir=\"$includedir\"
8418 eval additional_libdir=\"$libdir\"
8420 exec_prefix="$acl_save_exec_prefix"
8421 prefix="$acl_save_prefix"
8424 additional_includedir="$withval/include"
8425 additional_libdir="$withval/lib"
8436 names_already_handled=
8437 names_next_round='intl '
8438 while test -n "$names_next_round"; do
8439 names_this_round="$names_next_round"
8441 for name in $names_this_round; do
8443 for n in $names_already_handled; do
8444 if test "$n" = "$name"; then
8449 if test -z "$already_handled"; then
8450 names_already_handled="$names_already_handled $name"
8451 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8452 eval value=\"\$HAVE_LIB$uppername\"
8453 if test -n "$value"; then
8454 if test "$value" = yes; then
8455 eval value=\"\$LIB$uppername\"
8456 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8457 eval value=\"\$LTLIB$uppername\"
8458 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8467 if test $use_additional = yes; then
8468 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8469 found_dir="$additional_libdir"
8470 found_so="$additional_libdir/lib$name.$shlibext"
8471 if test -f "$additional_libdir/lib$name.la"; then
8472 found_la="$additional_libdir/lib$name.la"
8475 if test -f "$additional_libdir/lib$name.$libext"; then
8476 found_dir="$additional_libdir"
8477 found_a="$additional_libdir/lib$name.$libext"
8478 if test -f "$additional_libdir/lib$name.la"; then
8479 found_la="$additional_libdir/lib$name.la"
8484 if test "X$found_dir" = "X"; then
8485 for x in $LDFLAGS $LTLIBINTL; do
8487 acl_save_prefix="$prefix"
8488 prefix="$acl_final_prefix"
8489 acl_save_exec_prefix="$exec_prefix"
8490 exec_prefix="$acl_final_exec_prefix"
8492 exec_prefix="$acl_save_exec_prefix"
8493 prefix="$acl_save_prefix"
8497 dir=`echo "X$x" | sed -e 's/^X-L//'`
8498 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8500 found_so="$dir/lib$name.$shlibext"
8501 if test -f "$dir/lib$name.la"; then
8502 found_la="$dir/lib$name.la"
8505 if test -f "$dir/lib$name.$libext"; then
8507 found_a="$dir/lib$name.$libext"
8508 if test -f "$dir/lib$name.la"; then
8509 found_la="$dir/lib$name.la"
8515 if test "X$found_dir" != "X"; then
8520 if test "X$found_dir" != "X"; then
8521 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8522 if test "X$found_so" != "X"; then
8523 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8524 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8527 for x in $ltrpathdirs; do
8528 if test "X$x" = "X$found_dir"; then
8533 if test -z "$haveit"; then
8534 ltrpathdirs="$ltrpathdirs $found_dir"
8536 if test "$hardcode_direct" = yes; then
8537 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8539 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8540 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8542 for x in $rpathdirs; do
8543 if test "X$x" = "X$found_dir"; then
8548 if test -z "$haveit"; then
8549 rpathdirs="$rpathdirs $found_dir"
8553 for x in $LDFLAGS $LIBINTL; do
8555 acl_save_prefix="$prefix"
8556 prefix="$acl_final_prefix"
8557 acl_save_exec_prefix="$exec_prefix"
8558 exec_prefix="$acl_final_exec_prefix"
8560 exec_prefix="$acl_save_exec_prefix"
8561 prefix="$acl_save_prefix"
8563 if test "X$x" = "X-L$found_dir"; then
8568 if test -z "$haveit"; then
8569 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8571 if test "$hardcode_minus_L" != no; then
8572 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8574 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8580 if test "X$found_a" != "X"; then
8581 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8583 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8586 additional_includedir=
8587 case "$found_dir" in
8589 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8590 additional_includedir="$basedir/include"
8593 if test "X$additional_includedir" != "X"; then
8594 if test "X$additional_includedir" != "X/usr/include"; then
8596 if test "X$additional_includedir" = "X/usr/local/include"; then
8597 if test -n "$GCC"; then
8599 linux*) haveit=yes;;
8603 if test -z "$haveit"; then
8604 for x in $CPPFLAGS $INCINTL; do
8606 acl_save_prefix="$prefix"
8607 prefix="$acl_final_prefix"
8608 acl_save_exec_prefix="$exec_prefix"
8609 exec_prefix="$acl_final_exec_prefix"
8611 exec_prefix="$acl_save_exec_prefix"
8612 prefix="$acl_save_prefix"
8614 if test "X$x" = "X-I$additional_includedir"; then
8619 if test -z "$haveit"; then
8620 if test -d "$additional_includedir"; then
8621 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8627 if test -n "$found_la"; then
8628 save_libdir="$libdir"
8630 */* | *\\*) . "$found_la" ;;
8631 *) . "./$found_la" ;;
8633 libdir="$save_libdir"
8634 for dep in $dependency_libs; do
8637 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8638 if test "X$additional_libdir" != "X/usr/lib"; then
8640 if test "X$additional_libdir" = "X/usr/local/lib"; then
8641 if test -n "$GCC"; then
8643 linux*) haveit=yes;;
8647 if test -z "$haveit"; then
8649 for x in $LDFLAGS $LIBINTL; do
8651 acl_save_prefix="$prefix"
8652 prefix="$acl_final_prefix"
8653 acl_save_exec_prefix="$exec_prefix"
8654 exec_prefix="$acl_final_exec_prefix"
8656 exec_prefix="$acl_save_exec_prefix"
8657 prefix="$acl_save_prefix"
8659 if test "X$x" = "X-L$additional_libdir"; then
8664 if test -z "$haveit"; then
8665 if test -d "$additional_libdir"; then
8666 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8670 for x in $LDFLAGS $LTLIBINTL; do
8672 acl_save_prefix="$prefix"
8673 prefix="$acl_final_prefix"
8674 acl_save_exec_prefix="$exec_prefix"
8675 exec_prefix="$acl_final_exec_prefix"
8677 exec_prefix="$acl_save_exec_prefix"
8678 prefix="$acl_save_prefix"
8680 if test "X$x" = "X-L$additional_libdir"; then
8685 if test -z "$haveit"; then
8686 if test -d "$additional_libdir"; then
8687 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8694 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8695 if test "$enable_rpath" != no; then
8697 for x in $rpathdirs; do
8698 if test "X$x" = "X$dir"; then
8703 if test -z "$haveit"; then
8704 rpathdirs="$rpathdirs $dir"
8707 for x in $ltrpathdirs; do
8708 if test "X$x" = "X$dir"; then
8713 if test -z "$haveit"; then
8714 ltrpathdirs="$ltrpathdirs $dir"
8719 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8722 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8725 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8726 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8732 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8733 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8739 if test "X$rpathdirs" != "X"; then
8740 if test -n "$hardcode_libdir_separator"; then
8742 for found_dir in $rpathdirs; do
8743 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8745 acl_save_libdir="$libdir"
8747 eval flag=\"$hardcode_libdir_flag_spec\"
8748 libdir="$acl_save_libdir"
8749 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8751 for found_dir in $rpathdirs; do
8752 acl_save_libdir="$libdir"
8754 eval flag=\"$hardcode_libdir_flag_spec\"
8755 libdir="$acl_save_libdir"
8756 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8760 if test "X$ltrpathdirs" != "X"; then
8761 for found_dir in $ltrpathdirs; do
8762 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8766 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8767 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8768 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8769 $as_echo_n "(cached) " >&6
8771 gt_save_CPPFLAGS="$CPPFLAGS"
8772 CPPFLAGS="$CPPFLAGS $INCINTL"
8773 gt_save_LIBS="$LIBS"
8774 LIBS="$LIBS $LIBINTL"
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 #include <libintl.h>
8782 extern int _nl_msg_cat_cntr;
8787 const char *_nl_expand_alias ();
8791 bindtextdomain ("", "");
8792 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (ac_try="$ac_link"
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8804 $as_echo "$ac_try_echo") >&5
8805 (eval "$ac_link") 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest$ac_exeext && {
8815 test "$cross_compiling" = yes ||
8816 $as_test_x conftest$ac_exeext
8818 gt_cv_func_gnugettext1_libintl=yes
8820 $as_echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 gt_cv_func_gnugettext1_libintl=no
8826 rm -rf conftest.dSYM
8827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8828 conftest$ac_exeext conftest.$ac_ext
8829 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8830 LIBS="$LIBS $LIBICONV"
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 #include <libintl.h>
8838 extern int _nl_msg_cat_cntr;
8843 const char *_nl_expand_alias ();
8847 bindtextdomain ("", "");
8848 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (ac_try="$ac_link"
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860 $as_echo "$ac_try_echo") >&5
8861 (eval "$ac_link") 2>conftest.er1
8863 grep -v '^ *+' conftest.er1 >conftest.err
8865 cat conftest.err >&5
8866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && {
8868 test -z "$ac_c_werror_flag" ||
8869 test ! -s conftest.err
8870 } && test -s conftest$ac_exeext && {
8871 test "$cross_compiling" = yes ||
8872 $as_test_x conftest$ac_exeext
8874 LIBINTL="$LIBINTL $LIBICONV"
8875 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8876 gt_cv_func_gnugettext1_libintl=yes
8879 $as_echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8885 rm -rf conftest.dSYM
8886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8887 conftest$ac_exeext conftest.$ac_ext
8889 CPPFLAGS="$gt_save_CPPFLAGS"
8890 LIBS="$gt_save_LIBS"
8892 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8893 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
8896 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8897 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8898 && test "$PACKAGE" != gettext-runtime \
8899 && test "$PACKAGE" != gettext-tools; }; then
8900 gt_use_preinstalled_gnugettext=yes
8909 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8910 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8912 cat >>confdefs.h <<\_ACEOF
8913 #define ENABLE_NLS 1
8921 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
8922 $as_echo_n "checking whether to use NLS... " >&6; }
8923 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
8924 $as_echo "$USE_NLS" >&6; }
8925 if test "$USE_NLS" = "yes"; then
8926 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
8927 $as_echo_n "checking where the gettext function comes from... " >&6; }
8928 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8929 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8930 gt_source="external libintl"
8935 gt_source="included intl directory"
8937 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
8938 $as_echo "$gt_source" >&6; }
8941 if test "$USE_NLS" = "yes"; then
8943 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8944 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8945 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
8946 $as_echo_n "checking how to link with libintl... " >&6; }
8947 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
8948 $as_echo "$LIBINTL" >&6; }
8950 for element in $INCINTL; do
8952 for x in $CPPFLAGS; do
8954 acl_save_prefix="$prefix"
8955 prefix="$acl_final_prefix"
8956 acl_save_exec_prefix="$exec_prefix"
8957 exec_prefix="$acl_final_exec_prefix"
8959 exec_prefix="$acl_save_exec_prefix"
8960 prefix="$acl_save_prefix"
8962 if test "X$x" = "X$element"; then
8967 if test -z "$haveit"; then
8968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8975 cat >>confdefs.h <<\_ACEOF
8976 #define HAVE_GETTEXT 1
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_DCGETTEXT 1
9004 cat >>confdefs.h <<\_ACEOF
9005 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
9008 cat >>confdefs.h <<\_ACEOF
9009 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
9012 if test "$GCC" = yes; then
9013 CONF_CFLAGS="-fwritable-strings"
9017 CONF_CFLAGS="-Aa -D_HPUX_SOURCE"
9021 if test -d /opt/hppd/include/X11; then
9022 X_CFLAGS="$X_CFLAGS -I/opt/hppd/include"
9023 X_LIBS="$X_LIBS -L/opt/hppd/lib"
9024 elif test -d /usr/contrib/X11R5/include; then
9025 X_CFLAGS="$X_CFLAGS -I/usr/contrib/X11R5/include"
9026 X_LIBS="$X_LIBS -L/usr/contrib/X11R5/lib"
9027 elif test -d /usr/contrib/mitX11R5/include; then
9028 X_CFLAGS="$X_CFLAGS -I/usr/contrib/mitX11R5/include"
9029 X_LIBS="$X_LIBS -L/usr/contrib/mitX11R5/lib"
9030 elif test -d /MIT/X11R5/include; then
9031 X_CFLAGS="$X_CFLAGS -I/MIT/X11R5/include"
9032 X_LIBS="$X_LIBS -L/MIT/X11R5/lib"
9033 elif test -d /usr/local/include/X11R5; then
9034 X_CFLAGS="$X_CFLAGS -I/usr/local/include/X11R5"
9035 X_LIBS="$X_LIBS -L/usr/local/lib/X11R5"
9037 if test -d /usr/include/X11R5; then
9038 X_CFLAGS="$X_CFLAGS -I/usr/include/X11R5"
9039 X_LIBS="$X_LIBS -L/usr/lib/X11R5 -L/usr/lib/X11R4"
9040 elif test -d /usr/include/X11R4; then
9041 X_CFLAGS="$X_CFLAGS -I/usr/include/X11R4"
9042 X_LIBS="$X_LIBS -L/usr/lib/X11R4"
9047 cat >>confdefs.h <<\_ACEOF
9054 if test "$GCC" = yes; then
9055 CONF_CFLAGS="-fwritable-strings"
9059 *-*-aix3* | *-*-bosx* )
9060 cat >>confdefs.h <<\_ACEOF
9061 #define PTY_ITERATION for (c = 0; !c; c++)
9064 cat >>confdefs.h <<\_ACEOF
9065 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
9068 cat >>confdefs.h <<\_ACEOF
9069 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
9075 cat >>confdefs.h <<\_ACEOF
9076 #define FIRST_PTY_LETTER 'A'
9079 cat >>confdefs.h <<\_ACEOF
9080 #define LAST_PTY_LETTER 'P'
9086 cat >>confdefs.h <<\_ACEOF
9093 cat >>confdefs.h <<\_ACEOF
9094 #define FIRST_PTY_LETTER 'z'
9097 cat >>confdefs.h <<\_ACEOF
9098 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%x", i);
9101 cat >>confdefs.h <<\_ACEOF
9102 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty%x", i);
9105 cat >>confdefs.h <<\_ACEOF
9111 *-*-iris* | *-*-irix3* )
9112 cat >>confdefs.h <<\_ACEOF
9113 #define PTY_ITERATION for (c = 0; !c; c++)
9116 cat >>confdefs.h <<\_ACEOF
9117 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
9120 cat >>confdefs.h <<\_ACEOF
9121 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyq%d", minor(stb.st_rdev));
9129 *-*-sunos4* | *-*-solaris1* )
9132 if test "$GCC" = yes; then
9133 PRE_XMULIB="-static"
9134 POST_XMULIB="-dynamic"
9136 PRE_XMULIB="-Bstatic"
9137 POST_XMULIB="-Bdynamic"
9141 *-*-sunos5* | *-*-solaris2* )
9144 X_LIBS="$X_LIBS -lelf"
9148 cat >>confdefs.h <<\_ACEOF
9149 #define PTY_ITERATION for (i = 0; ; i++)
9152 cat >>confdefs.h <<\_ACEOF
9153 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptyp%d", i);
9156 cat >>confdefs.h <<\_ACEOF
9157 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%d", i);
9162 *-*-dynix* | *-*-ptx* )
9168 *-*-usg5-4* | *-*-sysvr4* )
9171 *-*-usg* | *-*-sysv* | *-*-aix* )
9175 if test "$GCC" = yes; then
9176 CONF_CFLAGS="-fwritable-strings"
9181 # Check whether --enable-xpm was given.
9182 if test "${enable_xpm+set}" = set; then
9183 enableval=$enable_xpm; enable_xpm="$enableval"
9189 if test "$enable_xpm" = "yes"; then
9190 save_cflags="$CFLAGS"
9191 CFLAGS="$CFLAGS $X_CFLAGS"
9192 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9194 for ac_header in X11/xpm.h
9196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9198 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 $as_echo_n "checking for $ac_header... " >&6; }
9200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9201 $as_echo_n "(cached) " >&6
9203 ac_res=`eval 'as_val=${'$as_ac_Header'}
9204 $as_echo "$as_val"'`
9205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9206 $as_echo "$ac_res" >&6; }
9208 # Is the header compilable?
9209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9210 $as_echo_n "checking $ac_header usability... " >&6; }
9211 cat >conftest.$ac_ext <<_ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 $ac_includes_default
9218 #include <$ac_header>
9220 rm -f conftest.$ac_objext
9221 if { (ac_try="$ac_compile"
9223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224 *) ac_try_echo=$ac_try;;
9226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9227 $as_echo "$ac_try_echo") >&5
9228 (eval "$ac_compile") 2>conftest.er1
9230 grep -v '^ *+' conftest.er1 >conftest.err
9232 cat conftest.err >&5
9233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } && {
9235 test -z "$ac_c_werror_flag" ||
9236 test ! -s conftest.err
9237 } && test -s conftest.$ac_objext; then
9238 ac_header_compiler=yes
9240 $as_echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 ac_header_compiler=no
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9248 $as_echo "$ac_header_compiler" >&6; }
9250 # Is the header present?
9251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9252 $as_echo_n "checking $ac_header presence... " >&6; }
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 #include <$ac_header>
9261 if { (ac_try="$ac_cpp conftest.$ac_ext"
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9267 $as_echo "$ac_try_echo") >&5
9268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } >/dev/null && {
9275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9276 test ! -s conftest.err
9278 ac_header_preproc=yes
9280 $as_echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 ac_header_preproc=no
9286 rm -f conftest.err conftest.$ac_ext
9287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9288 $as_echo "$ac_header_preproc" >&6; }
9290 # So? What about this header?
9291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9297 ac_header_preproc=yes
9300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9303 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9307 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 $as_echo_n "checking for $ac_header... " >&6; }
9317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9318 $as_echo_n "(cached) " >&6
9320 eval "$as_ac_Header=\$ac_header_preproc"
9322 ac_res=`eval 'as_val=${'$as_ac_Header'}
9323 $as_echo "$as_val"'`
9324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9325 $as_echo "$ac_res" >&6; }
9328 as_val=`eval 'as_val=${'$as_ac_Header'}
9329 $as_echo "$as_val"'`
9330 if test "x$as_val" = x""yes; then
9331 cat >>confdefs.h <<_ACEOF
9332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9339 CFLAGS="$save_cflags"
9340 if test "$ac_cv_header_X11_xpm_h" = "yes"; then
9341 save_ldflags="$LDFLAGS"
9342 LDFLAGS="$LDFLAGS $X_LIBS"
9343 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9344 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9345 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9346 $as_echo_n "(cached) " >&6
9348 ac_check_lib_save_LIBS=$LIBS
9349 LIBS="-lXpm $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9350 cat >conftest.$ac_ext <<_ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9357 /* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9363 char XpmReadFileToPixmap ();
9367 return XpmReadFileToPixmap ();
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (ac_try="$ac_link"
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9379 $as_echo "$ac_try_echo") >&5
9380 (eval "$ac_link") 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest$ac_exeext && {
9390 test "$cross_compiling" = yes ||
9391 $as_test_x conftest$ac_exeext
9393 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9395 $as_echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9401 rm -rf conftest.dSYM
9402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403 conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9406 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9407 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9408 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
9409 X_PRE_LIBS="-lXpm $X_PRE_LIBS"; cat >>confdefs.h <<\_ACEOF
9410 #define HAVE_LIBXPM 1
9415 LDFLAGS="$save_ldflags"
9424 { $as_echo "$as_me:$LINENO: checking whether ptys or pipes should be used" >&5
9425 $as_echo_n "checking whether ptys or pipes should be used... " >&6; }
9426 # Check whether --enable-ptys was given.
9427 if test "${enable_ptys+set}" = set; then
9428 enableval=$enable_ptys; if test "$enableval" = yes; then
9430 { $as_echo "$as_me:$LINENO: result: ptys (user override)" >&5
9431 $as_echo "ptys (user override)" >&6; }
9433 if test "$enableval" = no; then
9435 { $as_echo "$as_me:$LINENO: result: pipes (user override)" >&5
9436 $as_echo "pipes (user override)" >&6; }
9439 if test "$USE_PTYS" = 1; then
9440 { $as_echo "$as_me:$LINENO: result: ptys" >&5
9441 $as_echo "ptys" >&6; }
9443 { $as_echo "$as_me:$LINENO: result: pipes" >&5
9444 $as_echo "pipes" >&6; }
9448 cat >>confdefs.h <<_ACEOF
9449 #define USE_PTYS $USE_PTYS
9453 # Check whether --enable-zippy was given.
9454 if test "${enable_zippy+set}" = set; then
9455 enableval=$enable_zippy; enable_zippy="$enableval"
9460 if test "$enable_zippy" = yes; then
9461 cat >>confdefs.h <<\_ACEOF
9471 # Check whether --enable-sigint was given.
9472 if test "${enable_sigint+set}" = set; then
9473 enableval=$enable_sigint; if test "$enableval" = yes; then
9474 cat >>confdefs.h <<\_ACEOF
9480 cat >>confdefs.h <<\_ACEOF
9487 cat >>confdefs.h <<_ACEOF
9488 #define PRODUCT "$PRODUCT"
9491 cat >>confdefs.h <<_ACEOF
9492 #define VERSION "$VERSION"
9495 cat >>confdefs.h <<_ACEOF
9496 #define PATCHLEVEL "$PATCHLEVEL"
9503 ac_config_files="$ac_config_files Makefile cmail xboard.texinfo po/Makefile.in"
9505 ac_config_commands="$ac_config_commands default"
9507 cat >confcache <<\_ACEOF
9508 # This file is a shell script that caches the results of configure
9509 # tests run on this system so they can be shared between configure
9510 # scripts and configure runs, see configure's option --config-cache.
9511 # It is not useful on other systems. If it contains results you don't
9512 # want to keep, you may remove or edit it.
9514 # config.status only pays attention to the cache file if you give it
9515 # the --recheck option to rerun configure.
9517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9523 # The following way of writing the cache mishandles newlines in values,
9524 # but we know of no workaround that is simple, portable, and efficient.
9525 # So, we kill variables containing newlines.
9526 # Ultrix sh set writes to stderr and can't be redirected directly,
9527 # and sets the high bit in the cache file unless we assign to the vars.
9529 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9530 eval ac_val=\$$ac_var
9534 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9538 _ | IFS | as_nl) ;; #(
9539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9540 *) $as_unset $ac_var ;;
9546 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9547 *${as_nl}ac_space=\ *)
9548 # `set' does not quote correctly, so add quotes (double-quote
9549 # substitution turns \\\\ into \\, and sed turns \\ into \).
9552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9555 # `set' quotes correctly as required by POSIX, so do not add quotes.
9556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9565 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9567 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9569 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9570 if test -w "$cache_file"; then
9571 test "x$cache_file" != "x/dev/null" &&
9572 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9573 $as_echo "$as_me: updating cache $cache_file" >&6;}
9574 cat confcache >$cache_file
9576 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9577 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9583 # Let make expand exec_prefix.
9584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9586 DEFS=-DHAVE_CONFIG_H
9590 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9591 # 1. Remove the extension, and $U if already installed.
9592 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9593 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9594 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9595 # will be set to the directory where LIBOBJS objects are built.
9596 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9597 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9601 LTLIBOBJS=$ac_ltlibobjs
9605 : ${CONFIG_STATUS=./config.status}
9607 ac_clean_files_save=$ac_clean_files
9608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9609 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9610 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9611 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9613 # Generated by $as_me.
9614 # Run this file to recreate the current configuration.
9615 # Compiler output produced by configure, useful for debugging
9616 # configure, is in config.log if it exists.
9621 SHELL=\${CONFIG_SHELL-$SHELL}
9624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9625 ## --------------------- ##
9626 ## M4sh Initialization. ##
9627 ## --------------------- ##
9629 # Be more Bourne compatible
9630 DUALCASE=1; export DUALCASE # for MKS sh
9631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9635 # is contrary to our usage. Disable this feature.
9636 alias -g '${1+"$@"}'='"$@"'
9637 setopt NO_GLOB_SUBST
9639 case `(set -o) 2>/dev/null` in
9640 *posix*) set -o posix ;;
9649 # Avoid depending upon Character Ranges.
9650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9653 as_cr_digits='0123456789'
9654 as_cr_alnum=$as_cr_Letters$as_cr_digits
9659 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9660 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9663 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9664 as_echo='printf %s\n'
9665 as_echo_n='printf %s'
9667 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9668 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9669 as_echo_n='/usr/ucb/echo -n'
9671 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9672 as_echo_n_body='eval
9676 expr "X$arg" : "X\\(.*\\)$as_nl";
9677 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9679 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9681 export as_echo_n_body
9682 as_echo_n='sh -c $as_echo_n_body as_echo'
9685 as_echo='sh -c $as_echo_body as_echo'
9688 # The user is always right.
9689 if test "${PATH_SEPARATOR+set}" != set; then
9691 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9692 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9697 # Support unset when possible.
9698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9706 # We need space, tab and new line, in precisely that order. Quoting is
9707 # there to prevent editors from complaining about space-tab.
9708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9709 # splitting by setting IFS to empty value.)
9712 # Find who we are. Look in the path if we contain no directory separator.
9714 *[\\/]* ) as_myself=$0 ;;
9715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 test -z "$as_dir" && as_dir=.
9720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9726 # We did not find ourselves, most probably we were run as `sh COMMAND'
9727 # in which case we are not to be found in the path.
9728 if test "x$as_myself" = x; then
9731 if test ! -f "$as_myself"; then
9732 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9733 { (exit 1); exit 1; }
9736 # Work around bugs in pre-3.0 UWIN ksh.
9737 for as_var in ENV MAIL MAILPATH
9738 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9750 # Required to use basename.
9751 if expr a : '\(a\)' >/dev/null 2>&1 &&
9752 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9758 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9759 as_basename=basename
9765 # Name of the executable.
9766 as_me=`$as_basename -- "$0" ||
9767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9768 X"$0" : 'X\(//\)$' \| \
9769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9771 sed '/^.*\/\([^/][^/]*\)\/*$/{
9792 test "x$as_lineno_1" != "x$as_lineno_2" &&
9793 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9795 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9796 # uniformly replaced by the line number. The first 'sed' inserts a
9797 # line-number line after each line using $LINENO; the second 'sed'
9798 # does the real work. The second script uses 'N' to pair each
9799 # line-number line with the line containing $LINENO, and appends
9800 # trailing '-' during substitution so that $LINENO is not a special
9802 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9803 # scripts with optimization help from Paolo Bonzini. Blame Lee
9804 # E. McMahon (1931-1989) for sed's syntax. :-)
9816 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9820 chmod +x "$as_me.lineno" ||
9821 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9822 { (exit 1); exit 1; }; }
9824 # Don't try to exec as it changes $[0], causing all sort of problems
9825 # (the dirname of $[0] is not the place where we might find the
9826 # original and so on. Autoconf is especially sensitive to this).
9828 # Exit status is that of the last command.
9833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9839 ECHO_C= ECHO_N= ECHO_T=
9842 case `echo 'x\c'` in
9843 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9849 if expr a : '\(a\)' >/dev/null 2>&1 &&
9850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9856 rm -f conf$$ conf$$.exe conf$$.file
9857 if test -d conf$$.dir; then
9858 rm -f conf$$.dir/conf$$.file
9861 mkdir conf$$.dir 2>/dev/null
9863 if (echo >conf$$.file) 2>/dev/null; then
9864 if ln -s conf$$.file conf$$ 2>/dev/null; then
9866 # ... but there are two gotchas:
9867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9869 # In both cases, we have to default to `cp -p'.
9870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9872 elif ln conf$$.file conf$$ 2>/dev/null; then
9880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9881 rmdir conf$$.dir 2>/dev/null
9883 if mkdir -p . 2>/dev/null; then
9886 test -d ./-p && rmdir ./-p
9890 if test -x / >/dev/null 2>&1; then
9893 if ls -dL / >/dev/null 2>&1; then
9900 if test -d "$1"; then
9906 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9907 ???[sx]*):;;*)false;;esac;fi
9911 as_executable_p=$as_test_x
9913 # Sed expression to map a string onto a valid CPP name.
9914 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9916 # Sed expression to map a string onto a valid variable name.
9917 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9922 # Save the log message, to keep $[0] and so on meaningful, and to
9923 # report actual input values of CONFIG_FILES etc. instead of their
9924 # values after options handling.
9926 This file was extended by $as_me, which was
9927 generated by GNU Autoconf 2.63. Invocation command line was
9929 CONFIG_FILES = $CONFIG_FILES
9930 CONFIG_HEADERS = $CONFIG_HEADERS
9931 CONFIG_LINKS = $CONFIG_LINKS
9932 CONFIG_COMMANDS = $CONFIG_COMMANDS
9935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9940 case $ac_config_files in *"
9941 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9944 case $ac_config_headers in *"
9945 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9950 # Files that config.status was made for.
9951 config_files="$ac_config_files"
9952 config_headers="$ac_config_headers"
9953 config_commands="$ac_config_commands"
9957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9959 \`$as_me' instantiates files from templates according to the
9960 current configuration.
9962 Usage: $0 [OPTION]... [FILE]...
9964 -h, --help print this help, then exit
9965 -V, --version print version number and configuration settings, then exit
9966 -q, --quiet, --silent
9967 do not print progress messages
9968 -d, --debug don't remove temporary files
9969 --recheck update $as_me by reconfiguring in the same conditions
9970 --file=FILE[:TEMPLATE]
9971 instantiate the configuration file FILE
9972 --header=FILE[:TEMPLATE]
9973 instantiate the configuration header FILE
9975 Configuration files:
9978 Configuration headers:
9981 Configuration commands:
9984 Report bugs to <bug-autoconf@gnu.org>."
9987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9990 configured by $0, generated by GNU Autoconf 2.63,
9991 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9993 Copyright (C) 2008 Free Software Foundation, Inc.
9994 This config.status script is free software; the Free Software Foundation
9995 gives unlimited permission to copy, distribute and modify it."
10000 test -n "\$AWK" || AWK=awk
10003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10004 # The default lists apply if the user does not specify any file.
10010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10011 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10022 # Handling of the options.
10023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10026 $as_echo "$ac_cs_version"; exit ;;
10027 --debug | --debu | --deb | --de | --d | -d )
10029 --file | --fil | --fi | --f )
10032 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10034 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10035 ac_need_defaults=false;;
10036 --header | --heade | --head | --hea )
10039 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10041 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10042 ac_need_defaults=false;;
10044 # Conflict between --help and --header
10045 { $as_echo "$as_me: error: ambiguous option: $1
10046 Try \`$0 --help' for more information." >&2
10047 { (exit 1); exit 1; }; };;
10048 --help | --hel | -h )
10049 $as_echo "$ac_cs_usage"; exit ;;
10050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10054 # This is an error.
10055 -*) { $as_echo "$as_me: error: unrecognized option: $1
10056 Try \`$0 --help' for more information." >&2
10057 { (exit 1); exit 1; }; } ;;
10059 *) ac_config_targets="$ac_config_targets $1"
10060 ac_need_defaults=false ;;
10066 ac_configure_extra_args=
10068 if $ac_cs_silent; then
10070 ac_configure_extra_args="$ac_configure_extra_args --silent"
10074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10075 if \$ac_cs_recheck; then
10076 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10078 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10079 CONFIG_SHELL='$SHELL'
10080 export CONFIG_SHELL
10085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10090 ## Running $as_me. ##
10096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10100 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10101 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10103 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10104 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10105 LINGUAS="${LINGUAS-%UNSET%}"
10110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10112 # Handling of arguments.
10113 for ac_config_target in $ac_config_targets
10115 case $ac_config_target in
10116 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10117 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10118 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10119 "cmail") CONFIG_FILES="$CONFIG_FILES cmail" ;;
10120 "xboard.texinfo") CONFIG_FILES="$CONFIG_FILES xboard.texinfo" ;;
10121 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10122 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10124 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10125 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10126 { (exit 1); exit 1; }; };;
10131 # If the user did not use the arguments to specify the items to instantiate,
10132 # then the envvar interface is used. Set only those that are not.
10133 # We use the long form for the default assignment because of an extremely
10134 # bizarre bug on SunOS 4.1.3.
10135 if $ac_need_defaults; then
10136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10138 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10141 # Have a temporary directory for convenience. Make it in the build tree
10142 # simply because there is no reason against having it here, and in addition,
10143 # creating and moving files from /tmp can sometimes cause problems.
10144 # Hook for its removal unless debugging.
10145 # Note that there is a small window in which the directory will not be cleaned:
10146 # after its creation but before its name has been assigned to `$tmp'.
10150 trap 'exit_status=$?
10151 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10153 trap '{ (exit 1); exit 1; }' 1 2 13 15
10155 # Create a (secure) tmp directory for tmp files.
10158 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10159 test -n "$tmp" && test -d "$tmp"
10162 tmp=./conf$$-$RANDOM
10163 (umask 077 && mkdir "$tmp")
10166 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10167 { (exit 1); exit 1; }
10170 # Set up the scripts for CONFIG_FILES section.
10171 # No need to generate them if there are no CONFIG_FILES.
10172 # This happens for instance with `./config.status config.h'.
10173 if test -n "$CONFIG_FILES"; then
10177 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10178 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10181 ac_cs_awk_cr=$ac_cr
10184 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10189 echo "cat >conf$$subs.awk <<_ACEOF" &&
10190 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10192 } >conf$$subs.sh ||
10193 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10194 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10195 { (exit 1); exit 1; }; }
10196 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10198 for ac_last_try in false false false false false :; do
10199 . ./conf$$subs.sh ||
10200 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10201 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10202 { (exit 1); exit 1; }; }
10204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10205 if test $ac_delim_n = $ac_delim_num; then
10207 elif $ac_last_try; then
10208 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10209 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10210 { (exit 1); exit 1; }; }
10212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10215 rm -f conf$$subs.sh
10217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10218 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10222 s/^/S["/; s/!.*/"]=/
10232 s/\(.\{148\}\).*/\1/
10234 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10246 s/\(.\{148\}\).*/\1/
10248 s/["\\]/\\&/g; s/^/"/; s/$/"/
10252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10257 ' <conf$$subs.awk | sed '
10262 ' >>$CONFIG_STATUS || ac_write_fail=1
10263 rm -f conf$$subs.awk
10264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10266 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10267 for (key in S) S_is_set[key] = 1
10273 nfields = split(line, field, "@")
10275 len = length(field[1])
10276 for (i = 2; i < nfields; i++) {
10278 keylen = length(key)
10279 if (S_is_set[key]) {
10281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10282 len += length(value) + length(field[++i])
10293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10294 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10295 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10298 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10299 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10300 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10301 { (exit 1); exit 1; }; }
10304 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10305 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10306 # trailing colons and then remove the whole line if VPATH becomes empty
10307 # (actually we leave an empty line to preserve line numbers).
10308 if test "x$srcdir" = x.; then
10309 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10310 s/:*\$(srcdir):*/:/
10311 s/:*\${srcdir}:*/:/
10313 s/^\([^=]*=[ ]*\):*/\1/
10319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10320 fi # test -n "$CONFIG_FILES"
10322 # Set up the scripts for CONFIG_HEADERS section.
10323 # No need to generate them if there are no CONFIG_HEADERS.
10324 # This happens for instance with `./config.status Makefile'.
10325 if test -n "$CONFIG_HEADERS"; then
10326 cat >"$tmp/defines.awk" <<\_ACAWK ||
10330 # Transform confdefs.h into an awk script `defines.awk', embedded as
10331 # here-document in config.status, that substitutes the proper values into
10332 # config.h.in to produce config.h.
10334 # Create a delimiter string that does not exist in confdefs.h, to ease
10335 # handling of long lines.
10337 for ac_last_try in false false :; do
10338 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10339 if test -z "$ac_t"; then
10341 elif $ac_last_try; then
10342 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10343 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10344 { (exit 1); exit 1; }; }
10346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10350 # For the awk script, D is an array of macro values keyed by name,
10351 # likewise P contains macro parameters if any. Preserve backslash
10352 # newline sequences.
10354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10356 s/.\{148\}/&'"$ac_delim"'/g
10359 s/^[ ]*#[ ]*define[ ][ ]*/ /
10366 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10368 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10373 D["\1"]=" \3\\\\\\n"\\/p
10375 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10380 s/.\{148\}/&'"$ac_delim"'/g
10385 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10388 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10390 ' <confdefs.h | sed '
10391 s/'"$ac_delim"'/"\\\
10392 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10395 for (key in D) D_is_set[key] = 1
10398 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10400 split(line, arg, " ")
10401 if (arg[1] == "#") {
10405 defundef = substr(arg[1], 2)
10408 split(mac1, mac2, "(") #)
10410 prefix = substr(line, 1, index(line, defundef) - 1)
10411 if (D_is_set[macro]) {
10412 # Preserve the white space surrounding the "#".
10413 print prefix "define", macro P[macro] D[macro]
10416 # Replace #undef with comments. This is necessary, for example,
10417 # in the case of _POSIX_SOURCE, which is predefined and required
10418 # on some systems where configure will not decide to define it.
10419 if (defundef == "undef") {
10420 print "/*", prefix defundef, macro, "*/"
10428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10429 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10430 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10431 { (exit 1); exit 1; }; }
10432 fi # test -n "$CONFIG_HEADERS"
10435 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10440 :[FHLC]) ac_mode=$ac_tag; continue;;
10442 case $ac_mode$ac_tag in
10444 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10445 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10446 { (exit 1); exit 1; }; };;
10447 :[FH]-) ac_tag=-:-;;
10448 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10465 -) ac_f="$tmp/stdin";;
10466 *) # Look for the file first in the build tree, then in the source tree
10467 # (if the path is not absolute). The absolute path cannot be DOS-style,
10468 # because $ac_f cannot contain `:'.
10472 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10474 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10475 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10476 { (exit 1); exit 1; }; };;
10478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10479 ac_file_inputs="$ac_file_inputs '$ac_f'"
10482 # Let's still pretend it is `configure' which instantiates (i.e., don't
10483 # use $as_me), people would be surprised to read:
10484 # /* config.h. Generated by config.status. */
10485 configure_input='Generated from '`
10486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10488 if test x"$ac_file" != x-; then
10489 configure_input="$ac_file. $configure_input"
10490 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10491 $as_echo "$as_me: creating $ac_file" >&6;}
10493 # Neutralize special characters interpreted by sed in replacement strings.
10494 case $configure_input in #(
10495 *\&* | *\|* | *\\* )
10496 ac_sed_conf_input=`$as_echo "$configure_input" |
10497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10498 *) ac_sed_conf_input=$configure_input;;
10502 *:-:* | *:-) cat >"$tmp/stdin" \
10503 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10504 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10505 { (exit 1); exit 1; }; } ;;
10510 ac_dir=`$as_dirname -- "$ac_file" ||
10511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10512 X"$ac_file" : 'X\(//\)[^/]' \| \
10513 X"$ac_file" : 'X\(//\)$' \| \
10514 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10515 $as_echo X"$ac_file" |
10516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10520 /^X\(\/\/\)[^/].*/{
10535 -*) as_dir=./$as_dir;;
10537 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10541 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10542 *) as_qdir=$as_dir;;
10544 as_dirs="'$as_qdir' $as_dirs"
10545 as_dir=`$as_dirname -- "$as_dir" ||
10546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10547 X"$as_dir" : 'X\(//\)[^/]' \| \
10548 X"$as_dir" : 'X\(//\)$' \| \
10549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10550 $as_echo X"$as_dir" |
10551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10555 /^X\(\/\/\)[^/].*/{
10568 test -d "$as_dir" && break
10570 test -z "$as_dirs" || eval "mkdir $as_dirs"
10571 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10572 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10573 { (exit 1); exit 1; }; }; }
10577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10580 # A ".." for each directory in $ac_dir_suffix.
10581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10582 case $ac_top_builddir_sub in
10583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10587 ac_abs_top_builddir=$ac_pwd
10588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10589 # for backward compatibility:
10590 ac_top_builddir=$ac_top_build_prefix
10593 .) # We are building in place.
10595 ac_top_srcdir=$ac_top_builddir_sub
10596 ac_abs_top_srcdir=$ac_pwd ;;
10597 [\\/]* | ?:[\\/]* ) # Absolute name.
10598 ac_srcdir=$srcdir$ac_dir_suffix;
10599 ac_top_srcdir=$srcdir
10600 ac_abs_top_srcdir=$srcdir ;;
10601 *) # Relative name.
10602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10603 ac_top_srcdir=$ac_top_build_prefix$srcdir
10604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10617 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10622 # If the template does not know about datarootdir, expand it.
10623 # FIXME: This hack should be removed a few years after 2.60.
10624 ac_datarootdir_hack=; ac_datarootdir_seen=
10637 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10638 *datarootdir*) ac_datarootdir_seen=yes;;
10639 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10640 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10641 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10644 ac_datarootdir_hack='
10645 s&@datadir@&$datadir&g
10646 s&@docdir@&$docdir&g
10647 s&@infodir@&$infodir&g
10648 s&@localedir@&$localedir&g
10649 s&@mandir@&$mandir&g
10650 s&\\\${datarootdir}&$datarootdir&g' ;;
10654 # Neutralize VPATH when `$srcdir' = `.'.
10655 # Shell code in configure.ac might set extrasub.
10656 # FIXME: do we really want to maintain this feature?
10657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10658 ac_sed_extra="$ac_vpsub
10661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10664 s|@configure_input@|$ac_sed_conf_input|;t t
10665 s&@top_builddir@&$ac_top_builddir_sub&;t t
10666 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10667 s&@srcdir@&$ac_srcdir&;t t
10668 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10669 s&@top_srcdir@&$ac_top_srcdir&;t t
10670 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10671 s&@builddir@&$ac_builddir&;t t
10672 s&@abs_builddir@&$ac_abs_builddir&;t t
10673 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10674 s&@INSTALL@&$ac_INSTALL&;t t
10675 $ac_datarootdir_hack
10677 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10678 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10679 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10680 { (exit 1); exit 1; }; }
10682 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10683 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10684 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10685 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10686 which seems to be undefined. Please make sure it is defined." >&5
10687 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10688 which seems to be undefined. Please make sure it is defined." >&2;}
10692 -) cat "$tmp/out" && rm -f "$tmp/out";;
10693 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10695 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10696 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10697 { (exit 1); exit 1; }; }
10703 if test x"$ac_file" != x-; then
10705 $as_echo "/* $configure_input */" \
10706 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10707 } >"$tmp/config.h" \
10708 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10710 { (exit 1); exit 1; }; }
10711 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10712 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10713 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10716 mv "$tmp/config.h" "$ac_file" \
10717 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10718 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10719 { (exit 1); exit 1; }; }
10722 $as_echo "/* $configure_input */" \
10723 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10724 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10725 $as_echo "$as_me: error: could not create -" >&2;}
10726 { (exit 1); exit 1; }; }
10730 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10731 $as_echo "$as_me: executing $ac_file commands" >&6;}
10736 case $ac_file$ac_mode in
10738 for ac_file in $CONFIG_FILES; do
10739 # Support "outfile[:infile[:infile...]]"
10741 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10743 # PO directories have a Makefile.in generated from Makefile.in.in.
10744 case "$ac_file" in */Makefile.in)
10745 # Adjust a relative srcdir.
10746 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10747 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10748 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10749 # In autoconf-2.13 it is called $ac_given_srcdir.
10750 # In autoconf-2.50 it is called $srcdir.
10751 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10752 case "$ac_given_srcdir" in
10753 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10754 /*) top_srcdir="$ac_given_srcdir" ;;
10755 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10757 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10758 rm -f "$ac_dir/POTFILES"
10759 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10760 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10761 POMAKEFILEDEPS="POTFILES.in"
10762 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10763 # on $ac_dir but don't depend on user-specified configuration
10765 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10766 # The LINGUAS file contains the set of available languages.
10767 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10768 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10770 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10771 # Hide the ALL_LINGUAS assigment from automake.
10772 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10773 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10775 # The set of available languages was given in configure.in.
10776 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10778 case "$ac_given_srcdir" in
10780 *) srcdirpre='$(srcdir)/' ;;
10786 for lang in $ALL_LINGUAS; do
10787 POFILES="$POFILES $srcdirpre$lang.po"
10788 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10789 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10790 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10792 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10793 # environment variable.
10795 if test -n "$ALL_LINGUAS"; then
10796 for presentlang in $ALL_LINGUAS; do
10798 if test "%UNSET%" != "$LINGUAS"; then
10799 desiredlanguages="$LINGUAS"
10801 desiredlanguages="$ALL_LINGUAS"
10803 for desiredlang in $desiredlanguages; do
10804 # Use the presentlang catalog if desiredlang is
10805 # a. equal to presentlang, or
10806 # b. a variant of presentlang (because in this case,
10807 # presentlang can be used as a fallback for messages
10808 # which are not translated in the desiredlang catalog).
10809 case "$desiredlang" in
10810 "$presentlang"*) useit=yes;;
10813 if test $useit = yes; then
10814 INST_LINGUAS="$INST_LINGUAS $presentlang"
10819 if test -n "$INST_LINGUAS"; then
10820 for lang in $INST_LINGUAS; do
10821 CATALOGS="$CATALOGS $lang.gmo"
10824 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10825 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"
10826 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10827 if test -f "$f"; then
10829 *.orig | *.bak | *~) ;;
10830 *) cat "$f" >> "$ac_dir/Makefile" ;;
10838 "default":C) test -z "$CONFIG_HEADERS" || date > stamp-h
10846 { (exit 0); exit 0; }
10848 chmod +x $CONFIG_STATUS
10849 ac_clean_files=$ac_clean_files_save
10851 test $ac_write_fail = 0 ||
10852 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10853 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10854 { (exit 1); exit 1; }; }
10857 # configure is writing to config.log, and then calls config.status.
10858 # config.status does its own redirection, appending to config.log.
10859 # Unfortunately, on DOS this fails, as config.log is still kept open
10860 # by configure, so config.status won't be able to write to it; its
10861 # output is simply discarded. So we exec the FD to /dev/null,
10862 # effectively closing config.log, so it can be properly (re)opened and
10863 # appended to by config.status. When coming back to configure, we
10864 # need to make the FD available again.
10865 if test "$no_create" != yes; then
10867 ac_config_status_args=
10868 test "$silent" = yes &&
10869 ac_config_status_args="$ac_config_status_args --quiet"
10871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10874 # would make configure fail if this is the last instruction.
10875 $ac_cs_success || { (exit 1); exit 1; }
10877 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10878 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10879 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}