2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for w3m 0.5.2.
5 # Report bugs to <satodai@w3m.jp>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='w3m'
577 PACKAGE_VERSION='0.5.2'
578 PACKAGE_STRING='w3m 0.5.2'
579 PACKAGE_BUGREPORT='satodai@w3m.jp'
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
716 INSTALL_W3MIMGDISPLAY
741 USE_EXTERNAL_URI_LOADER
774 ac_precious_vars='build_alias
785 # Initialize some variables set by options.
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name=s,x,x,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890 { (exit 1); exit 1; }; }
891 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892 eval enable_$ac_feature=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 -enable-* | --enable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911 eval enable_$ac_feature=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
926 -help | --help | --hel | --he | -h)
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 # Obsolete; use --without-fp.
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1075 -site=* | --site=* | --sit=*)
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1102 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108 eval with_$ac_package=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_$ac_package=no ;;
1120 # Obsolete; use --with-x.
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 { echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 # Be sure to have absolute directory names.
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1174 eval ac_val=\$$ac_var
1176 [\\/$]* | ?:[\\/]* ) continue;;
1177 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 { echo "$as_me: error: Working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$0" : 'X\(//\)[^/]' \| \
1224 X"$0" : 'X\(//\)$' \| \
1225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1249 ac_srcdir_defaulted=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1285 \`configure' configures w3m 0.5.2 to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/w3m]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of w3m 0.5.2:";;
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-m17n do not use m17n
1358 --disable-unicode do not use unicode
1359 --enable-messagel10n=LL message l10n instead of NLS
1360 --enable-japanese=CODE support Japanese CODE=(S|E|J|U)
1361 --disable-nls do not use Native Language Support
1362 --disable-rpath do not hardcode runtime library paths
1363 --disable-color disable color for vt100 terminal
1364 --disable-ansi-color disable ansi color escape sequence
1365 --disable-bgcolor disable to set background color
1366 --enable-image=DEVS enable inline image handler for DEVS
1367 DEVS may be comma separeted: x11,fb,fb+s
1368 default: autodetected.
1369 'no' means disable inline image
1370 --disable-xface disable xface support
1371 --enable-keymap=w3m|lynx default keybind style(w3m or lynx)
1372 --disable-menu disable popup menu
1373 --disable-mouse disable mouse operation
1374 --disable-history disable URL history
1375 --disable-alarm disable alarm
1376 --disable-cookie disable cookie
1377 --disable-nntp disable NNTP
1378 --enable-gopher enable GOPHER
1379 --disable-dict disable dictionary lookup (see README.dict)
1380 --disable-help-cgi disable help cgi
1381 --disable-external-uri-loader disable external URI loader
1382 --disable-w3mmailer disable w3mmailer
1383 --disable-ipv6 disable IPv6
1384 --disable-sslverify verify SSL certificate
1385 --disable-digest-auth disable digest auth
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1390 --with-charset=CHARSET
1391 --with-gnu-ld assume the C compiler uses GNU ld default=no
1392 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1393 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1394 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1395 --without-libintl-prefix don't search for libintl in includedir and libdir
1396 --with-imagelib=IMAGELIBS image library
1397 IMAGELIBS may be space separeted list of:
1398 gtk2 gdk-pixbuf imlib imlib2
1399 --with-migemo=MIGEMO_COMMAND migemo command
1400 --with-editor=EDITOR default editor (/usr/bin/vi)
1401 --with-mailer=MAILER default mailer (/usr/bin/mail)
1402 --with-browser=BROWSER default browser (/usr/bin/mozilla)
1403 --with-ssl=PREFIX support https protocol
1404 --with-termlib=LIBS terminal library
1405 LIBS is space separated list of:
1406 terminfo mytinfo termcap ncurses curses
1407 --with-gc=PREFIX libgc PREFIX
1409 Some influential environment variables:
1410 CC C compiler command
1411 CFLAGS C compiler flags
1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413 nonstandard directory <lib dir>
1414 LIBS libraries to pass to the linker, e.g. -l<library>
1415 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1416 you have headers in a nonstandard directory <include dir>
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.
1422 Report bugs to <satodai@w3m.jp>.
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" || continue
1434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 ac_abs_top_builddir=$ac_pwd
1445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir=$ac_top_build_prefix
1450 .) # We are building in place.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1474 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1484 generated by GNU Autoconf 2.61
1486 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1487 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1493 cat >config.log <<_ACEOF
1494 This file contains any messages produced by compilers while
1495 running configure, to aid debugging if configure makes a mistake.
1497 It was created by w3m $as_me 0.5.2, which was
1498 generated by GNU Autoconf 2.61. Invocation command line was
1510 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1511 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1512 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1513 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1514 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1516 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1517 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1519 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1520 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1521 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1522 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1523 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1524 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1525 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 test -z "$as_dir" && as_dir=.
1534 echo "PATH: $as_dir"
1550 # Keep a trace of the command line.
1551 # Strip out --no-create and --no-recursion so they do not pile up.
1552 # Strip out --silent because we don't want to record it for future runs.
1553 # Also quote any args containing shell meta-characters.
1554 # Make two passes to allow for proper duplicate-argument suppression.
1558 ac_must_keep_next=false
1564 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1566 | -silent | --silent | --silen | --sile | --sil)
1569 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1572 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1574 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1575 if test $ac_must_keep_next = true; then
1576 ac_must_keep_next=false # Got value, back to normal.
1579 *=* | --config-cache | -C | -disable-* | --disable-* \
1580 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1581 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1582 | -with-* | --with-* | -without-* | --without-* | --x)
1583 case "$ac_configure_args0 " in
1584 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1587 -* ) ac_must_keep_next=true ;;
1590 ac_configure_args="$ac_configure_args '$ac_arg'"
1595 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1596 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1598 # When interrupted or exit'd, cleanup temporary files, and complete
1599 # config.log. We remove comments because anyway the quotes in there
1600 # would cause problems or look ugly.
1601 # WARNING: Use '\'' to represent an apostrophe within the trap.
1602 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1603 trap 'exit_status=$?
1604 # Save into config.log some information that might help in debugging.
1609 ## ---------------- ##
1610 ## Cache variables. ##
1611 ## ---------------- ##
1614 # The following way of writing the cache mishandles newlines in values,
1616 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1617 eval ac_val=\$$ac_var
1621 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1622 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1625 _ | IFS | as_nl) ;; #(
1626 *) $as_unset $ac_var ;;
1631 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1632 *${as_nl}ac_space=\ *)
1634 "s/'\''/'\''\\\\'\'''\''/g;
1635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1646 ## ----------------- ##
1647 ## Output variables. ##
1648 ## ----------------- ##
1651 for ac_var in $ac_subst_vars
1653 eval ac_val=\$$ac_var
1655 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1657 echo "$ac_var='\''$ac_val'\''"
1661 if test -n "$ac_subst_files"; then
1663 ## ------------------- ##
1664 ## File substitutions. ##
1665 ## ------------------- ##
1668 for ac_var in $ac_subst_files
1670 eval ac_val=\$$ac_var
1672 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1674 echo "$ac_var='\''$ac_val'\''"
1679 if test -s confdefs.h; then
1689 test "$ac_signal" != 0 &&
1690 echo "$as_me: caught signal $ac_signal"
1691 echo "$as_me: exit $exit_status"
1693 rm -f core *.core core.conftest.* &&
1694 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1697 for ac_signal in 1 2 13 15; do
1698 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1702 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1703 rm -f -r conftest* confdefs.h
1705 # Predefined preprocessor variables.
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_NAME "$PACKAGE_NAME"
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_STRING "$PACKAGE_STRING"
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1732 # Let the site file select an alternate cache file if it wants to.
1733 # Prefer explicitly selected file to automatically selected ones.
1734 if test -n "$CONFIG_SITE"; then
1735 set x "$CONFIG_SITE"
1736 elif test "x$prefix" != xNONE; then
1737 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1739 set x "$ac_default_prefix/share/config.site" \
1740 "$ac_default_prefix/etc/config.site"
1745 if test -r "$ac_site_file"; then
1746 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1747 echo "$as_me: loading site script $ac_site_file" >&6;}
1748 sed 's/^/| /' "$ac_site_file" >&5
1753 if test -r "$cache_file"; then
1754 # Some versions of bash will fail to source /dev/null (special
1755 # files actually), so we avoid doing that.
1756 if test -f "$cache_file"; then
1757 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1758 echo "$as_me: loading cache $cache_file" >&6;}
1760 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1761 *) . "./$cache_file";;
1765 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1766 echo "$as_me: creating cache $cache_file" >&6;}
1770 # Check that the precious variables saved in the cache have kept the same
1772 ac_cache_corrupted=false
1773 for ac_var in $ac_precious_vars; do
1774 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1775 eval ac_new_set=\$ac_env_${ac_var}_set
1776 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1777 eval ac_new_val=\$ac_env_${ac_var}_value
1778 case $ac_old_set,$ac_new_set in
1780 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1781 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1784 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1785 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1786 ac_cache_corrupted=: ;;
1789 if test "x$ac_old_val" != "x$ac_new_val"; then
1790 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1791 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1792 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1793 echo "$as_me: former value: $ac_old_val" >&2;}
1794 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1795 echo "$as_me: current value: $ac_new_val" >&2;}
1796 ac_cache_corrupted=:
1799 # Pass precious variables to config.status.
1800 if test "$ac_new_set" = set; then
1802 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 *) ac_arg=$ac_var=$ac_new_val ;;
1805 case " $ac_configure_args " in
1806 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1807 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1811 if $ac_cache_corrupted; then
1812 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1813 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1814 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1815 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1816 { (exit 1); exit 1; }; }
1844 ac_cpp='$CPP $CPPFLAGS'
1845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE "$PACKAGE"
1856 cat >>confdefs.h <<_ACEOF
1857 #define VERSION "$VERSION"
1865 cat >>confdefs.h <<\_ACEOF
1871 W3M_LANG=${LC_ALL:-$LANG}
1872 ac_config_headers="$ac_config_headers config.h"
1874 for ac_prog in gawk mawk nawk awk
1876 # Extract the first word of "$ac_prog", so it can be a program name with args.
1877 set dummy $ac_prog; ac_word=$2
1878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880 if test "${ac_cv_prog_AWK+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$AWK"; then
1884 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 ac_cv_prog_AWK="$ac_prog"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$AWK"; then
1905 { echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6; }
1908 { echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6; }
1913 test -n "$AWK" && break
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 if test -n "$CC"; then
1951 { echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6; }
1954 { echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6; }
1960 if test -z "$ac_cv_prog_CC"; then
1962 # Extract the first word of "gcc", so it can be a program name with args.
1963 set dummy gcc; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$ac_ct_CC"; then
1970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 ac_cv_prog_ac_ct_CC="gcc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990 if test -n "$ac_ct_CC"; then
1991 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1992 echo "${ECHO_T}$ac_ct_CC" >&6; }
1994 { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1998 if test "x$ac_ct_CC" = x; then
2001 case $cross_compiling:$ac_tool_warned in
2003 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2004 whose name does not start with the host triplet. If you think this
2005 configuration is useful to you, please write to autoconf@gnu.org." >&5
2006 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2007 whose name does not start with the host triplet. If you think this
2008 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2009 ac_tool_warned=yes ;;
2017 if test -z "$CC"; then
2018 if test -n "$ac_tool_prefix"; then
2019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2020 set dummy ${ac_tool_prefix}cc; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 if test -n "$CC"; then
2027 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2036 ac_cv_prog_CC="${ac_tool_prefix}cc"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test -n "$CC"; then
2048 { echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6; }
2051 { echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6; }
2058 if test -z "$CC"; then
2059 # Extract the first word of "cc", so it can be a program name with args.
2060 set dummy cc; ac_word=$2
2061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2078 ac_prog_rejected=yes
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 if test $ac_prog_rejected = yes; then
2090 # We found a bogon in the path, so make sure we never use it.
2091 set dummy $ac_cv_prog_CC
2093 if test $# != 0; then
2094 # We chose a different compiler from the bogus one.
2095 # However, it has the same basename, so the bogon will be chosen
2096 # first if we set CC to just the basename; use the full file name.
2098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2104 if test -n "$CC"; then
2105 { echo "$as_me:$LINENO: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6; }
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2114 if test -z "$CC"; then
2115 if test -n "$ac_tool_prefix"; then
2116 for ac_prog in cl.exe
2118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122 if test "${ac_cv_prog_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 if test -n "$CC"; then
2126 ac_cv_prog_CC="$CC" # Let the user override the test.
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 if test -n "$CC"; then
2147 { echo "$as_me:$LINENO: result: $CC" >&5
2148 echo "${ECHO_T}$CC" >&6; }
2150 { echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6; }
2155 test -n "$CC" && break
2158 if test -z "$CC"; then
2160 for ac_prog in cl.exe
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test -n "$ac_ct_CC"; then
2170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_ac_ct_CC="$ac_prog"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190 if test -n "$ac_ct_CC"; then
2191 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192 echo "${ECHO_T}$ac_ct_CC" >&6; }
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2199 test -n "$ac_ct_CC" && break
2202 if test "x$ac_ct_CC" = x; then
2205 case $cross_compiling:$ac_tool_warned in
2207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2208 whose name does not start with the host triplet. If you think this
2209 configuration is useful to you, please write to autoconf@gnu.org." >&5
2210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet. If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2213 ac_tool_warned=yes ;;
2222 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: no acceptable C compiler found in \$PATH
2225 See \`config.log' for more details." >&2;}
2226 { (exit 1); exit 1; }; }
2228 # Provide some information about the compiler.
2229 echo "$as_me:$LINENO: checking for C compiler version" >&5
2230 ac_compiler=`set X $ac_compile; echo $2`
2231 { (ac_try="$ac_compiler --version >&5"
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237 (eval "$ac_compiler --version >&5") 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }
2241 { (ac_try="$ac_compiler -v >&5"
2243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244 *) ac_try_echo=$ac_try;;
2246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2247 (eval "$ac_compiler -v >&5") 2>&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }
2251 { (ac_try="$ac_compiler -V >&5"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_compiler -V >&5") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 ac_clean_files_save=$ac_clean_files
2278 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279 # Try to create an executable without -o first, disregard a.out.
2280 # It will help us diagnose broken compilers, and finding out an intuition
2282 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2283 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2284 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2286 # List of possible output files, starting from the most likely.
2287 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2288 # only as a last resort. b.out is created by i960 compilers.
2289 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2291 # The IRIX 6 linker writes into existing files which may not be
2292 # executable, retaining their permissions. Remove them first so a
2293 # subsequent execution test works.
2295 for ac_file in $ac_files
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2304 if { (ac_try="$ac_link_default"
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_link_default") 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2315 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2316 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2317 # so that the user can short-circuit this test for compilers unknown to
2319 for ac_file in $ac_files ''
2321 test -f "$ac_file" || continue
2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2326 # We found the default executable, but exeext='' is most
2330 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 # We set ac_cv_exeext here because the later test for it is not
2335 # safe: cross compilers may not add the suffix if given an `-o'
2336 # argument, so we may need to know it at that point already.
2337 # Even if this section looks crufty: it has the advantage of
2344 test "$ac_cv_exeext" = no && ac_cv_exeext=
2350 { echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6; }
2352 if test -z "$ac_file"; then
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360 { (exit 77); exit 77; }; }
2363 ac_exeext=$ac_cv_exeext
2365 # Check that the compiler produces executables we can run. If not, either
2366 # the compiler is broken, or we cross compile.
2367 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2368 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2369 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2370 # If not cross compiling, check that we can run a simple program.
2371 if test "$cross_compiling" != yes; then
2372 if { ac_try='./$ac_file'
2373 { (case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_try") 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 if test "$cross_compiling" = maybe; then
2387 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'.
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: cannot run C compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2397 { echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6; }
2400 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2401 ac_clean_files=$ac_clean_files_save
2402 # Check that the compiler produces executables we can run. If not, either
2403 # the compiler is broken, or we cross compile.
2404 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2405 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2406 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2407 echo "${ECHO_T}$cross_compiling" >&6; }
2409 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2410 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2411 if { (ac_try="$ac_link"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link") 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2422 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2423 # work properly (i.e., refer to `conftest.exe'), while it won't with
2425 for ac_file in conftest.exe conftest conftest.*; do
2426 test -f "$ac_file" || continue
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2429 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest$ac_cv_exeext
2443 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2444 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2446 rm -f conftest.$ac_ext
2447 EXEEXT=$ac_cv_exeext
2449 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2450 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2451 if test "${ac_cv_objext+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 cat >conftest.$ac_ext <<_ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2469 rm -f conftest.o conftest.obj
2470 if { (ac_try="$ac_compile"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compile") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; then
2480 for ac_file in conftest.o conftest.obj conftest.*; do
2481 test -f "$ac_file" || continue;
2483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2484 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2495 See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2501 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2502 echo "${ECHO_T}$ac_cv_objext" >&6; }
2503 OBJEXT=$ac_cv_objext
2505 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2506 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2507 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_compile") 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } && {
2542 test -z "$ac_c_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest.$ac_objext; then
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2557 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2558 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2559 GCC=`test $ac_compiler_gnu = yes && echo yes`
2560 ac_test_CFLAGS=${CFLAGS+set}
2561 ac_save_CFLAGS=$CFLAGS
2562 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2563 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_cc_g+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 ac_save_c_werror_flag=$ac_c_werror_flag
2568 ac_c_werror_flag=yes
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_compile") 2>conftest.er1
2595 grep -v '^ *+' conftest.er1 >conftest.err
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } && {
2600 test -z "$ac_c_werror_flag" ||
2601 test ! -s conftest.err
2602 } && test -s conftest.$ac_objext; then
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2609 cat >conftest.$ac_ext <<_ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (ac_try="$ac_compile"
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_compile") 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } && {
2638 test -z "$ac_c_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest.$ac_objext; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_c_werror_flag=$ac_save_c_werror_flag
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2663 rm -f conftest.$ac_objext
2664 if { (ac_try="$ac_compile"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compile") 2>conftest.er1
2672 grep -v '^ *+' conftest.er1 >conftest.err
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } && {
2677 test -z "$ac_c_werror_flag" ||
2678 test ! -s conftest.err
2679 } && test -s conftest.$ac_objext; then
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_c_werror_flag=$ac_save_c_werror_flag
2697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2699 if test "$ac_test_CFLAGS" = set; then
2700 CFLAGS=$ac_save_CFLAGS
2701 elif test $ac_cv_prog_cc_g = yes; then
2702 if test "$GCC" = yes; then
2708 if test "$GCC" = yes; then
2714 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2715 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_cc_c89+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 ac_cv_prog_cc_c89=no
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2729 #include <sys/types.h>
2730 #include <sys/stat.h>
2731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2732 struct buf { int x; };
2733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2734 static char *e (p, i)
2740 static char *f (char * (*g) (char **, int), char **p, ...)
2745 s = g (p, va_arg (v,int));
2750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2751 function prototypes and stuff, but not '\xHH' hex character constants.
2752 These don't provoke an error unfortunately, instead are silently treated
2753 as 'x'. The following induces an error, until -std is added to get
2754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2755 array size at least. It's necessary to write '\x00'==0 to get something
2756 that's true only with -std. */
2757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2760 inside strings and character constants. */
2762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2764 int test (int i, double x);
2765 struct s1 {int (*f) (int a);};
2766 struct s2 {int (*f) (double a);};
2767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2781 CC="$ac_save_CC $ac_arg"
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } && {
2796 test -z "$ac_c_werror_flag" ||
2797 test ! -s conftest.err
2798 } && test -s conftest.$ac_objext; then
2799 ac_cv_prog_cc_c89=$ac_arg
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f core conftest.err conftest.$ac_objext
2808 test "x$ac_cv_prog_cc_c89" != "xno" && break
2810 rm -f conftest.$ac_ext
2815 case "x$ac_cv_prog_cc_c89" in
2817 { echo "$as_me:$LINENO: result: none needed" >&5
2818 echo "${ECHO_T}none needed" >&6; } ;;
2820 { echo "$as_me:$LINENO: result: unsupported" >&5
2821 echo "${ECHO_T}unsupported" >&6; } ;;
2823 CC="$CC $ac_cv_prog_cc_c89"
2824 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2841 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2842 # On Suns, sometimes $CPP names a directory.
2843 if test -n "$CPP" && test -d "$CPP"; then
2846 if test -z "$CPP"; then
2847 if test "${ac_cv_prog_CPP+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 # Double quotes because CPP needs to be expanded
2851 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2854 for ac_c_preproc_warn_flag in '' yes
2856 # Use a header file that comes with gcc, so configuring glibc
2857 # with a fresh cross-compiler works.
2858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2859 # <limits.h> exists even on freestanding compilers.
2860 # On the NeXT, cc -E runs the code through the compiler's parser,
2861 # not just through cpp. "Syntax error" is here to catch this case.
2862 cat >conftest.$ac_ext <<_ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2869 # include <limits.h>
2871 # include <assert.h>
2875 if { (ac_try="$ac_cpp conftest.$ac_ext"
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev/null && {
2888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 # Broken: fails on valid input.
2900 rm -f conftest.err conftest.$ac_ext
2902 # OK, works on sane cases. Now check whether nonexistent headers
2903 # can be detected and how.
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ac_nonexistent.h>
2912 if { (ac_try="$ac_cpp conftest.$ac_ext"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null && {
2925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2926 test ! -s conftest.err
2928 # Broken: success on invalid input.
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 # Passes both tests.
2939 rm -f conftest.err conftest.$ac_ext
2942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2943 rm -f conftest.err conftest.$ac_ext
2944 if $ac_preproc_ok; then
2956 { echo "$as_me:$LINENO: result: $CPP" >&5
2957 echo "${ECHO_T}$CPP" >&6; }
2959 for ac_c_preproc_warn_flag in '' yes
2961 # Use a header file that comes with gcc, so configuring glibc
2962 # with a fresh cross-compiler works.
2963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964 # <limits.h> exists even on freestanding compilers.
2965 # On the NeXT, cc -E runs the code through the compiler's parser,
2966 # not just through cpp. "Syntax error" is here to catch this case.
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2974 # include <limits.h>
2976 # include <assert.h>
2980 if { (ac_try="$ac_cpp conftest.$ac_ext"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null && {
2993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2994 test ! -s conftest.err
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 # Broken: fails on valid input.
3005 rm -f conftest.err conftest.$ac_ext
3007 # OK, works on sane cases. Now check whether nonexistent headers
3008 # can be detected and how.
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015 #include <ac_nonexistent.h>
3017 if { (ac_try="$ac_cpp conftest.$ac_ext"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null && {
3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3033 # Broken: success on invalid input.
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 # Passes both tests.
3044 rm -f conftest.err conftest.$ac_ext
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048 rm -f conftest.err conftest.$ac_ext
3049 if $ac_preproc_ok; then
3052 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3067 if test -f "$ac_dir/install-sh"; then
3069 ac_install_sh="$ac_aux_dir/install-sh -c"
3071 elif test -f "$ac_dir/install.sh"; then
3073 ac_install_sh="$ac_aux_dir/install.sh -c"
3075 elif test -f "$ac_dir/shtool"; then
3077 ac_install_sh="$ac_aux_dir/shtool install -c"
3081 if test -z "$ac_aux_dir"; then
3082 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3083 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3084 { (exit 1); exit 1; }; }
3087 # These three variables are undocumented and unsupported,
3088 # and are intended to be withdrawn in a future Autoconf release.
3089 # They can cause serious problems if a builder's source tree is in a directory
3090 # whose full name contains unusual characters.
3091 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3092 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3093 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3096 # Find a good install program. We prefer a C program (faster),
3097 # so one script is as good as another. But avoid the broken or
3098 # incompatible versions:
3099 # SysV /etc/install, /usr/sbin/install
3100 # SunOS /usr/etc/install
3101 # IRIX /sbin/install
3103 # AmigaOS /C/install, which installs bootblocks on floppy discs
3104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3107 # OS/2's system install, which has a completely different semantic
3108 # ./install, which can be erroneously created by make from ./install.sh.
3109 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3110 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3111 if test -z "$INSTALL"; then
3112 if test "${ac_cv_path_install+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 # Account for people who put trailing slashes in PATH elements.
3122 ./ | .// | /cC/* | \
3123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3124 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3127 # OSF1 and SCO ODT 3.0 have their own names for install.
3128 # Don't use installbsd from OSF since it installs stuff as root
3130 for ac_prog in ginstall scoinst install; do
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3133 if test $ac_prog = install &&
3134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3135 # AIX install. It has an incompatible calling convention.
3137 elif test $ac_prog = install &&
3138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3139 # program-specific install script used by HP pwplus--don't use.
3142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3155 if test "${ac_cv_path_install+set}" = set; then
3156 INSTALL=$ac_cv_path_install
3158 # As a last resort, use the slow shell script. Don't cache a
3159 # value for INSTALL within a source directory, because that will
3160 # break other packages using the cache if that directory is
3161 # removed, or if the value is a relative name.
3162 INSTALL=$ac_install_sh
3165 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3166 echo "${ECHO_T}$INSTALL" >&6; }
3168 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3169 # It thinks the first close brace ends the variable substitution.
3170 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3172 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3174 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3176 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3177 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3179 if test "$LN_S" = "ln -s"; then
3180 { echo "$as_me:$LINENO: result: yes" >&5
3181 echo "${ECHO_T}yes" >&6; }
3183 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3184 echo "${ECHO_T}no, using $LN_S" >&6; }
3187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 cat >conftest.make <<\_ACEOF
3196 @echo '@@@%%%=$(MAKE)=@@@%%%'
3198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3201 eval ac_cv_prog_make_${ac_make}_set=yes;;
3203 eval ac_cv_prog_make_${ac_make}_set=no;;
3207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3208 { echo "$as_me:$LINENO: result: yes" >&5
3209 echo "${ECHO_T}yes" >&6; }
3212 { echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6; }
3214 SET_MAKE="MAKE=${MAKE-make}"
3217 if test -n "$ac_tool_prefix"; then
3218 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_RANLIB+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if test -n "$RANLIB"; then
3226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 RANLIB=$ac_cv_prog_RANLIB
3246 if test -n "$RANLIB"; then
3247 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3248 echo "${ECHO_T}$RANLIB" >&6; }
3250 { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3256 if test -z "$ac_cv_prog_RANLIB"; then
3257 ac_ct_RANLIB=$RANLIB
3258 # Extract the first word of "ranlib", so it can be a program name with args.
3259 set dummy ranlib; ac_word=$2
3260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 if test -n "$ac_ct_RANLIB"; then
3266 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_RANLIB="ranlib"
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3286 if test -n "$ac_ct_RANLIB"; then
3287 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3288 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3290 { echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6; }
3294 if test "x$ac_ct_RANLIB" = x; then
3297 case $cross_compiling:$ac_tool_warned in
3299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3300 whose name does not start with the host triplet. If you think this
3301 configuration is useful to you, please write to autoconf@gnu.org." >&5
3302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3303 whose name does not start with the host triplet. If you think this
3304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3305 ac_tool_warned=yes ;;
3307 RANLIB=$ac_ct_RANLIB
3310 RANLIB="$ac_cv_prog_RANLIB"
3315 # Extract the first word of "$ac_prog", so it can be a program name with args.
3316 set dummy $ac_prog; ac_word=$2
3317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3319 if test "${ac_cv_path_PERL+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 PERL=$ac_cv_path_PERL
3346 if test -n "$PERL"; then
3347 { echo "$as_me:$LINENO: result: $PERL" >&5
3348 echo "${ECHO_T}$PERL" >&6; }
3350 { echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6; }
3355 test -n "$PERL" && break
3357 test -n "$PERL" || PERL="/usr/local/bin/perl"
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3365 if test "${ac_cv_path_NKF+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 ac_cv_path_NKF="$NKF" # Let the user override the test with a path.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_path_NKF="$as_dir/$ac_word$ac_exec_ext"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$NKF"; then
3393 { echo "$as_me:$LINENO: result: $NKF" >&5
3394 echo "${ECHO_T}$NKF" >&6; }
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3401 test -n "$NKF" && break
3403 test -n "$NKF" || NKF="/usr/local/bin/nkf"
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_path_MAN+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 ac_cv_path_MAN="$MAN" # Let the user override the test with a path.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_path_MAN="$as_dir/$ac_word$ac_exec_ext"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 if test -n "$MAN"; then
3439 { echo "$as_me:$LINENO: result: $MAN" >&5
3440 echo "${ECHO_T}$MAN" >&6; }
3442 { echo "$as_me:$LINENO: result: no" >&5
3443 echo "${ECHO_T}no" >&6; }
3447 test -n "$MAN" && break
3449 test -n "$MAN" || MAN="/usr/bin/man"
3451 # Make sure we can run config.sub.
3452 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3453 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3454 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3455 { (exit 1); exit 1; }; }
3457 { echo "$as_me:$LINENO: checking build system type" >&5
3458 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3459 if test "${ac_cv_build+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 ac_build_alias=$build_alias
3463 test "x$ac_build_alias" = x &&
3464 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3465 test "x$ac_build_alias" = x &&
3466 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3467 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3468 { (exit 1); exit 1; }; }
3469 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3470 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3471 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3472 { (exit 1); exit 1; }; }
3475 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3476 echo "${ECHO_T}$ac_cv_build" >&6; }
3477 case $ac_cv_build in
3479 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3480 echo "$as_me: error: invalid value of canonical build" >&2;}
3481 { (exit 1); exit 1; }; };;
3484 ac_save_IFS=$IFS; IFS='-'
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3494 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3497 { echo "$as_me:$LINENO: checking host system type" >&5
3498 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3499 if test "${ac_cv_host+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test "x$host_alias" = x; then
3503 ac_cv_host=$ac_cv_build
3505 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3506 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3507 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3508 { (exit 1); exit 1; }; }
3512 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3513 echo "${ECHO_T}$ac_cv_host" >&6; }
3516 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3517 echo "$as_me: error: invalid value of canonical host" >&2;}
3518 { (exit 1); exit 1; }; };;
3521 ac_save_IFS=$IFS; IFS='-'
3527 # Remember, the first character of IFS is used to create $*,
3528 # except with old shells:
3531 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3543 cat >>confdefs.h <<_ACEOF
3544 #define W3M_TARGET $W3M_TARGET
3557 WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
3558 { echo "$as_me:$LINENO: checking if m17n support is enabled" >&5
3559 echo $ECHO_N "checking if m17n support is enabled... $ECHO_C" >&6; }
3560 # Check whether --enable-m17n was given.
3561 if test "${enable_m17n+set}" = set; then
3562 enableval=$enable_m17n;
3567 { echo "$as_me:$LINENO: result: $enable_m17n" >&5
3568 echo "${ECHO_T}$enable_m17n" >&6; }
3569 if test x"$enable_m17n" = xno; then
3575 display_charset='WC_CES_US_ASCII'
3576 system_charset='WC_CES_US_ASCII'
3577 document_charset='WC_CES_US_ASCII'
3579 cat >>confdefs.h <<\_ACEOF
3583 WCTARGET="libwc/libwc.a"
3584 WCCFLAGS='-I$(srcdir) -I$(srcdir)/..'
3585 wcinclude='-I$(srcdir)/libwc'
3586 wclib="-L./libwc -lwc"
3587 { echo "$as_me:$LINENO: checking if unicode support is enabled" >&5
3588 echo $ECHO_N "checking if unicode support is enabled... $ECHO_C" >&6; }
3589 # Check whether --enable-unicode was given.
3590 if test "${enable_unicode+set}" = set; then
3591 enableval=$enable_unicode;
3593 enable_unicode="yes"
3596 { echo "$as_me:$LINENO: result: $enable_unicode" >&5
3597 echo "${ECHO_T}$enable_unicode" >&6; }
3598 if test x"$enable_m17n" = xyes; then
3601 charset=$enable_m17n
3603 if test x"$enable_unicode" = xyes; then
3604 WCCFLAGS="-DUSE_UNICODE $WCCFLAGS"
3605 if test x"$charset" = xUS-ASCII; then
3608 cat >>confdefs.h <<\_ACEOF
3609 #define USE_UNICODE 1
3613 { echo "$as_me:$LINENO: checking if message l10n" >&5
3614 echo $ECHO_N "checking if message l10n... $ECHO_C" >&6; }
3615 # Check whether --enable-messagel10n was given.
3616 if test "${enable_messagel10n+set}" = set; then
3617 enableval=$enable_messagel10n;
3619 enable_messagel10n="no"
3622 if test x$enable_messagel10n = xyes; then
3623 enable_messagel10n="ja";
3625 { echo "$as_me:$LINENO: result: $enable_messagel10n" >&5
3626 echo "${ECHO_T}$enable_messagel10n" >&6; }
3627 if test x$enable_messagel10n = xno; then
3630 POSUBST="\$(top_srcdir)/posubst"
3631 POLANG="$enable_messagel10n"
3633 { echo "$as_me:$LINENO: checking if japanese support is enabled" >&5
3634 echo $ECHO_N "checking if japanese support is enabled... $ECHO_C" >&6; }
3635 # Check whether --enable-japanese was given.
3636 if test "${enable_japanese+set}" = set; then
3637 enableval=$enable_japanese;
3639 enable_japanese="no"
3642 { echo "$as_me:$LINENO: result: $enable_japanese" >&5
3643 echo "${ECHO_T}$enable_japanese" >&6; }
3644 if test x"$enable_japanese" = xno; then
3648 case "$enable_japanese" in
3649 E*) charset=EUC-JP;;
3650 S*) charset=Shift_JIS;;
3651 J*) charset=ISO-2022-JP;;
3655 display_charset=$charset
3656 { echo "$as_me:$LINENO: checking which charset is used for display" >&5
3657 echo $ECHO_N "checking which charset is used for display... $ECHO_C" >&6; }
3659 # Check whether --with-charset was given.
3660 if test "${with_charset+set}" = set; then
3661 withval=$with_charset; test x"with_charset" = xyes || display_charset="$with_charset"
3664 { echo "$as_me:$LINENO: result: $display_charset" >&5
3665 echo "${ECHO_T}$display_charset" >&6; }
3666 display_charset=`awk '$1 == "'$display_charset'" {print $2}' $srcdir/charset-list`
3667 case "$display_charset" in
3668 WC_CES_ISO_2022_JP*)
3669 system_charset=WC_CES_EUC_JP
3670 document_charset=WC_CES_EUC_JP
3673 system_charset=$display_charset
3675 document_charset=WC_CES_EUC_JP
3677 WC_CES_ISO_2022_CN|WC_CES_HZ_GB_2312)
3678 system_charset=WC_CES_EUC_CN
3679 document_charset=WC_CES_EUC_CN
3682 system_charset=$display_charset
3684 document_charset=WC_CES_EUC_TW
3687 system_charset=WC_CES_EUC_KR
3688 document_charset=WC_CES_EUC_KR
3691 system_charset=$display_charset
3692 document_charset=$display_charset
3696 W3M_LANGDEF=`echo $w3m_lang | tr 'a-z' 'A-Z'`
3697 W3M_LANG=$W3M_LANGDEF
3698 cat >>confdefs.h <<_ACEOF
3699 #define W3M_LANG $W3M_LANG
3702 cat >>confdefs.h <<_ACEOF
3703 #define WCTARGET "$WCTARGET"
3706 cat >>confdefs.h <<_ACEOF
3707 #define WCCFLAGS "$WCCFLAGS"
3710 CFLAGS="$CFLAGS $wcinclude"
3711 W3M_LIBS="$W3M_LIBS $wclib"
3712 cat >>confdefs.h <<_ACEOF
3713 #define DISPLAY_CHARSET $display_charset
3716 cat >>confdefs.h <<_ACEOF
3717 #define SYSTEM_CHARSET $system_charset
3720 cat >>confdefs.h <<_ACEOF
3721 #define DOCUMENT_CHARSET $document_charset
3724 if test x$enable_messagel10n = xno; then
3727 if test -n "$ac_aux_dir"; then
3728 case "$ac_aux_dir" in
3729 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3730 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3733 if test -z "$MKINSTALLDIRS"; then
3734 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3739 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3740 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
3741 # Check whether --enable-nls was given.
3742 if test "${enable_nls+set}" = set; then
3743 enableval=$enable_nls; USE_NLS=$enableval
3748 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
3749 echo "${ECHO_T}$USE_NLS" >&6; }
3756 # Prepare PATH_SEPARATOR.
3757 # The user is always right.
3758 if test "${PATH_SEPARATOR+set}" != set; then
3759 echo "#! /bin/sh" >conf$$.sh
3760 echo "exit 0" >>conf$$.sh
3762 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3770 # Find out how to test for executable files. Don't use a zero-byte file,
3771 # as systems may use methods other than mode bits to determine executability.
3772 cat >conf$$.file <<_ASEOF
3776 chmod +x conf$$.file
3777 if test -x conf$$.file >/dev/null 2>&1; then
3778 ac_executable_p="test -x"
3780 ac_executable_p="test -f"
3784 # Extract the first word of "msgfmt", so it can be a program name with args.
3785 set dummy msgfmt; ac_word=$2
3786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3788 if test "${ac_cv_path_MSGFMT+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3796 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3797 for ac_dir in $PATH; do
3799 test -z "$ac_dir" && ac_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3802 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3803 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3804 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3811 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3815 MSGFMT="$ac_cv_path_MSGFMT"
3816 if test "$MSGFMT" != ":"; then
3817 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
3818 echo "${ECHO_T}$MSGFMT" >&6; }
3820 { echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6; }
3824 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3825 set dummy gmsgfmt; ac_word=$2
3826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3828 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3843 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3855 GMSGFMT=$ac_cv_path_GMSGFMT
3856 if test -n "$GMSGFMT"; then
3857 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3858 echo "${ECHO_T}$GMSGFMT" >&6; }
3860 { echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6; }
3867 # Prepare PATH_SEPARATOR.
3868 # The user is always right.
3869 if test "${PATH_SEPARATOR+set}" != set; then
3870 echo "#! /bin/sh" >conf$$.sh
3871 echo "exit 0" >>conf$$.sh
3873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3881 # Find out how to test for executable files. Don't use a zero-byte file,
3882 # as systems may use methods other than mode bits to determine executability.
3883 cat >conf$$.file <<_ASEOF
3887 chmod +x conf$$.file
3888 if test -x conf$$.file >/dev/null 2>&1; then
3889 ac_executable_p="test -x"
3891 ac_executable_p="test -f"
3895 # Extract the first word of "xgettext", so it can be a program name with args.
3896 set dummy xgettext; ac_word=$2
3897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3899 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3907 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3908 for ac_dir in $PATH; do
3910 test -z "$ac_dir" && ac_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3913 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3914 (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
3915 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3922 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3926 XGETTEXT="$ac_cv_path_XGETTEXT"
3927 if test "$XGETTEXT" != ":"; then
3928 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3929 echo "${ECHO_T}$XGETTEXT" >&6; }
3931 { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3938 # Prepare PATH_SEPARATOR.
3939 # The user is always right.
3940 if test "${PATH_SEPARATOR+set}" != set; then
3941 echo "#! /bin/sh" >conf$$.sh
3942 echo "exit 0" >>conf$$.sh
3944 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3952 # Find out how to test for executable files. Don't use a zero-byte file,
3953 # as systems may use methods other than mode bits to determine executability.
3954 cat >conf$$.file <<_ASEOF
3958 chmod +x conf$$.file
3959 if test -x conf$$.file >/dev/null 2>&1; then
3960 ac_executable_p="test -x"
3962 ac_executable_p="test -f"
3966 # Extract the first word of "msgmerge", so it can be a program name with args.
3967 set dummy msgmerge; ac_word=$2
3968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3978 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3979 for ac_dir in $PATH; do
3981 test -z "$ac_dir" && ac_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3984 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3985 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3992 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3996 MSGMERGE="$ac_cv_path_MSGMERGE"
3997 if test "$MSGMERGE" != ":"; then
3998 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3999 echo "${ECHO_T}$MSGMERGE" >&6; }
4001 { echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6; }
4006 if test "$GMSGFMT" != ":"; then
4007 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4008 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4011 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4012 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4013 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4018 if test "$XGETTEXT" != ":"; then
4019 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4020 (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
4023 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4024 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4030 ac_config_commands="$ac_config_commands default-1"
4034 if test "X$prefix" = "XNONE"; then
4035 acl_final_prefix="$ac_default_prefix"
4037 acl_final_prefix="$prefix"
4039 if test "X$exec_prefix" = "XNONE"; then
4040 acl_final_exec_prefix='${prefix}'
4042 acl_final_exec_prefix="$exec_prefix"
4044 acl_save_prefix="$prefix"
4045 prefix="$acl_final_prefix"
4046 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4047 prefix="$acl_save_prefix"
4050 # Check whether --with-gnu-ld was given.
4051 if test "${with_gnu_ld+set}" = set; then
4052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4057 # Prepare PATH_SEPARATOR.
4058 # The user is always right.
4059 if test "${PATH_SEPARATOR+set}" != set; then
4060 echo "#! /bin/sh" >conf$$.sh
4061 echo "exit 0" >>conf$$.sh
4063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4071 if test "$GCC" = yes; then
4072 # Check if gcc -print-prog-name=ld gives a path.
4073 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4074 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4077 # gcc leaves a trailing carriage return which upsets mingw
4078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4083 # Accept absolute paths.
4084 [\\/]* | [A-Za-z]:[\\/]*)
4085 re_direlt='/[^/][^/]*/\.\./'
4086 # Canonicalize the path of ld
4087 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4088 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4089 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4091 test -z "$LD" && LD="$ac_prog"
4094 # If it fails, then pretend we aren't using GCC.
4098 # If it is relative, then search for the first ld in PATH.
4102 elif test "$with_gnu_ld" = yes; then
4103 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4104 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4106 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4107 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4109 if test "${acl_cv_path_LD+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 if test -z "$LD"; then
4113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4114 for ac_dir in $PATH; do
4115 test -z "$ac_dir" && ac_dir=.
4116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4117 acl_cv_path_LD="$ac_dir/$ac_prog"
4118 # Check to see if the program is GNU ld. I'd rather use --version,
4119 # but apparently some GNU ld's only accept -v.
4120 # Break only if it was the GNU/non-GNU ld that we prefer.
4121 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4122 *GNU* | *'with BFD'*)
4123 test "$with_gnu_ld" != no && break ;;
4125 test "$with_gnu_ld" != yes && break ;;
4131 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4135 LD="$acl_cv_path_LD"
4136 if test -n "$LD"; then
4137 { echo "$as_me:$LINENO: result: $LD" >&5
4138 echo "${ECHO_T}$LD" >&6; }
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4145 { (exit 1); exit 1; }; }
4146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4148 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4152 case `$LD -v 2>&1 </dev/null` in
4153 *GNU* | *'with BFD'*)
4154 acl_cv_prog_gnu_ld=yes ;;
4156 acl_cv_prog_gnu_ld=no ;;
4159 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4160 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
4161 with_gnu_ld=$acl_cv_prog_gnu_ld
4165 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4166 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
4167 if test "${acl_cv_rpath+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4172 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4178 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4179 echo "${ECHO_T}$acl_cv_rpath" >&6; }
4181 libext="$acl_cv_libext"
4182 shlibext="$acl_cv_shlibext"
4183 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4184 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4185 hardcode_direct="$acl_cv_hardcode_direct"
4186 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4187 # Check whether --enable-rpath was given.
4188 if test "${enable_rpath+set}" = set; then
4189 enableval=$enable_rpath; :
4203 acl_save_prefix="$prefix"
4204 prefix="$acl_final_prefix"
4205 acl_save_exec_prefix="$exec_prefix"
4206 exec_prefix="$acl_final_exec_prefix"
4208 eval additional_includedir=\"$includedir\"
4209 eval additional_libdir=\"$libdir\"
4211 exec_prefix="$acl_save_exec_prefix"
4212 prefix="$acl_save_prefix"
4215 # Check whether --with-libiconv-prefix was given.
4216 if test "${with_libiconv_prefix+set}" = set; then
4217 withval=$with_libiconv_prefix;
4218 if test "X$withval" = "Xno"; then
4221 if test "X$withval" = "X"; then
4223 acl_save_prefix="$prefix"
4224 prefix="$acl_final_prefix"
4225 acl_save_exec_prefix="$exec_prefix"
4226 exec_prefix="$acl_final_exec_prefix"
4228 eval additional_includedir=\"$includedir\"
4229 eval additional_libdir=\"$libdir\"
4231 exec_prefix="$acl_save_exec_prefix"
4232 prefix="$acl_save_prefix"
4235 additional_includedir="$withval/include"
4236 additional_libdir="$withval/lib"
4247 names_already_handled=
4248 names_next_round='iconv '
4249 while test -n "$names_next_round"; do
4250 names_this_round="$names_next_round"
4252 for name in $names_this_round; do
4254 for n in $names_already_handled; do
4255 if test "$n" = "$name"; then
4260 if test -z "$already_handled"; then
4261 names_already_handled="$names_already_handled $name"
4262 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4263 eval value=\"\$HAVE_LIB$uppername\"
4264 if test -n "$value"; then
4265 if test "$value" = yes; then
4266 eval value=\"\$LIB$uppername\"
4267 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4268 eval value=\"\$LTLIB$uppername\"
4269 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4278 if test $use_additional = yes; then
4279 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4280 found_dir="$additional_libdir"
4281 found_so="$additional_libdir/lib$name.$shlibext"
4282 if test -f "$additional_libdir/lib$name.la"; then
4283 found_la="$additional_libdir/lib$name.la"
4286 if test -f "$additional_libdir/lib$name.$libext"; then
4287 found_dir="$additional_libdir"
4288 found_a="$additional_libdir/lib$name.$libext"
4289 if test -f "$additional_libdir/lib$name.la"; then
4290 found_la="$additional_libdir/lib$name.la"
4295 if test "X$found_dir" = "X"; then
4296 for x in $LDFLAGS $LTLIBICONV; do
4298 acl_save_prefix="$prefix"
4299 prefix="$acl_final_prefix"
4300 acl_save_exec_prefix="$exec_prefix"
4301 exec_prefix="$acl_final_exec_prefix"
4303 exec_prefix="$acl_save_exec_prefix"
4304 prefix="$acl_save_prefix"
4308 dir=`echo "X$x" | sed -e 's/^X-L//'`
4309 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4311 found_so="$dir/lib$name.$shlibext"
4312 if test -f "$dir/lib$name.la"; then
4313 found_la="$dir/lib$name.la"
4316 if test -f "$dir/lib$name.$libext"; then
4318 found_a="$dir/lib$name.$libext"
4319 if test -f "$dir/lib$name.la"; then
4320 found_la="$dir/lib$name.la"
4326 if test "X$found_dir" != "X"; then
4331 if test "X$found_dir" != "X"; then
4332 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4333 if test "X$found_so" != "X"; then
4334 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4335 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4338 for x in $ltrpathdirs; do
4339 if test "X$x" = "X$found_dir"; then
4344 if test -z "$haveit"; then
4345 ltrpathdirs="$ltrpathdirs $found_dir"
4347 if test "$hardcode_direct" = yes; then
4348 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4350 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4351 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4353 for x in $rpathdirs; do
4354 if test "X$x" = "X$found_dir"; then
4359 if test -z "$haveit"; then
4360 rpathdirs="$rpathdirs $found_dir"
4364 for x in $LDFLAGS $LIBICONV; do
4366 acl_save_prefix="$prefix"
4367 prefix="$acl_final_prefix"
4368 acl_save_exec_prefix="$exec_prefix"
4369 exec_prefix="$acl_final_exec_prefix"
4371 exec_prefix="$acl_save_exec_prefix"
4372 prefix="$acl_save_prefix"
4374 if test "X$x" = "X-L$found_dir"; then
4379 if test -z "$haveit"; then
4380 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4382 if test "$hardcode_minus_L" != no; then
4383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4385 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4391 if test "X$found_a" != "X"; then
4392 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4394 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4397 additional_includedir=
4398 case "$found_dir" in
4400 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4401 additional_includedir="$basedir/include"
4404 if test "X$additional_includedir" != "X"; then
4405 if test "X$additional_includedir" != "X/usr/include"; then
4407 if test "X$additional_includedir" = "X/usr/local/include"; then
4408 if test -n "$GCC"; then
4410 linux*) haveit=yes;;
4414 if test -z "$haveit"; then
4415 for x in $CPPFLAGS $INCICONV; do
4417 acl_save_prefix="$prefix"
4418 prefix="$acl_final_prefix"
4419 acl_save_exec_prefix="$exec_prefix"
4420 exec_prefix="$acl_final_exec_prefix"
4422 exec_prefix="$acl_save_exec_prefix"
4423 prefix="$acl_save_prefix"
4425 if test "X$x" = "X-I$additional_includedir"; then
4430 if test -z "$haveit"; then
4431 if test -d "$additional_includedir"; then
4432 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4438 if test -n "$found_la"; then
4439 save_libdir="$libdir"
4441 */* | *\\*) . "$found_la" ;;
4442 *) . "./$found_la" ;;
4444 libdir="$save_libdir"
4445 for dep in $dependency_libs; do
4448 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4449 if test "X$additional_libdir" != "X/usr/lib"; then
4451 if test "X$additional_libdir" = "X/usr/local/lib"; then
4452 if test -n "$GCC"; then
4454 linux*) haveit=yes;;
4458 if test -z "$haveit"; then
4460 for x in $LDFLAGS $LIBICONV; do
4462 acl_save_prefix="$prefix"
4463 prefix="$acl_final_prefix"
4464 acl_save_exec_prefix="$exec_prefix"
4465 exec_prefix="$acl_final_exec_prefix"
4467 exec_prefix="$acl_save_exec_prefix"
4468 prefix="$acl_save_prefix"
4470 if test "X$x" = "X-L$additional_libdir"; then
4475 if test -z "$haveit"; then
4476 if test -d "$additional_libdir"; then
4477 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4481 for x in $LDFLAGS $LTLIBICONV; do
4483 acl_save_prefix="$prefix"
4484 prefix="$acl_final_prefix"
4485 acl_save_exec_prefix="$exec_prefix"
4486 exec_prefix="$acl_final_exec_prefix"
4488 exec_prefix="$acl_save_exec_prefix"
4489 prefix="$acl_save_prefix"
4491 if test "X$x" = "X-L$additional_libdir"; then
4496 if test -z "$haveit"; then
4497 if test -d "$additional_libdir"; then
4498 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4505 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4506 if test "$enable_rpath" != no; then
4508 for x in $rpathdirs; do
4509 if test "X$x" = "X$dir"; then
4514 if test -z "$haveit"; then
4515 rpathdirs="$rpathdirs $dir"
4518 for x in $ltrpathdirs; do
4519 if test "X$x" = "X$dir"; then
4524 if test -z "$haveit"; then
4525 ltrpathdirs="$ltrpathdirs $dir"
4530 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4533 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4536 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4537 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4543 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4544 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4550 if test "X$rpathdirs" != "X"; then
4551 if test -n "$hardcode_libdir_separator"; then
4553 for found_dir in $rpathdirs; do
4554 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4556 acl_save_libdir="$libdir"
4558 eval flag=\"$hardcode_libdir_flag_spec\"
4559 libdir="$acl_save_libdir"
4560 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4562 for found_dir in $rpathdirs; do
4563 acl_save_libdir="$libdir"
4565 eval flag=\"$hardcode_libdir_flag_spec\"
4566 libdir="$acl_save_libdir"
4567 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4571 if test "X$ltrpathdirs" != "X"; then
4572 for found_dir in $ltrpathdirs; do
4573 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4595 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4596 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4597 # Check whether --enable-nls was given.
4598 if test "${enable_nls+set}" = set; then
4599 enableval=$enable_nls; USE_NLS=$enableval
4604 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4605 echo "${ECHO_T}$USE_NLS" >&6; }
4614 if test "$USE_NLS" = "yes"; then
4615 gt_use_preinstalled_gnugettext=no
4622 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4623 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4624 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 cat >conftest.$ac_ext <<_ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 #include <libintl.h>
4634 extern int _nl_msg_cat_cntr;
4635 extern int *_nl_domain_bindings;
4639 bindtextdomain ("", "");
4640 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_link") 2>conftest.er1
4654 grep -v '^ *+' conftest.er1 >conftest.err
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest$ac_exeext &&
4662 $as_test_x conftest$ac_exeext; then
4663 gt_cv_func_gnugettext1_libc=yes
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 gt_cv_func_gnugettext1_libc=no
4671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4672 conftest$ac_exeext conftest.$ac_ext
4674 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4675 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
4677 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4683 am_save_CPPFLAGS="$CPPFLAGS"
4685 for element in $INCICONV; do
4687 for x in $CPPFLAGS; do
4689 acl_save_prefix="$prefix"
4690 prefix="$acl_final_prefix"
4691 acl_save_exec_prefix="$exec_prefix"
4692 exec_prefix="$acl_final_exec_prefix"
4694 exec_prefix="$acl_save_exec_prefix"
4695 prefix="$acl_save_prefix"
4697 if test "X$x" = "X$element"; then
4702 if test -z "$haveit"; then
4703 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4708 { echo "$as_me:$LINENO: checking for iconv" >&5
4709 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4710 if test "${am_cv_func_iconv+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 am_cv_func_iconv="no, consider installing GNU libiconv"
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4727 iconv_t cd = iconv_open("","");
4728 iconv(cd,NULL,NULL,NULL,NULL);
4734 rm -f conftest.$ac_objext conftest$ac_exeext
4735 if { (ac_try="$ac_link"
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741 (eval "$ac_link") 2>conftest.er1
4743 grep -v '^ *+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && {
4748 test -z "$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4750 } && test -s conftest$ac_exeext &&
4751 $as_test_x conftest$ac_exeext; then
4752 am_cv_func_iconv=yes
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4761 conftest$ac_exeext conftest.$ac_ext
4762 if test "$am_cv_func_iconv" != yes; then
4763 am_save_LIBS="$LIBS"
4764 LIBS="$LIBS $LIBICONV"
4765 cat >conftest.$ac_ext <<_ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4776 iconv_t cd = iconv_open("","");
4777 iconv(cd,NULL,NULL,NULL,NULL);
4783 rm -f conftest.$ac_objext conftest$ac_exeext
4784 if { (ac_try="$ac_link"
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_link") 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } && {
4797 test -z "$ac_c_werror_flag" ||
4798 test ! -s conftest.err
4799 } && test -s conftest$ac_exeext &&
4800 $as_test_x conftest$ac_exeext; then
4802 am_cv_func_iconv=yes
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4811 conftest$ac_exeext conftest.$ac_ext
4812 LIBS="$am_save_LIBS"
4816 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4817 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4818 if test "$am_cv_func_iconv" = yes; then
4820 cat >>confdefs.h <<\_ACEOF
4821 #define HAVE_ICONV 1
4825 if test "$am_cv_lib_iconv" = yes; then
4826 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4827 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4828 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4829 echo "${ECHO_T}$LIBICONV" >&6; }
4831 CPPFLAGS="$am_save_CPPFLAGS"
4843 acl_save_prefix="$prefix"
4844 prefix="$acl_final_prefix"
4845 acl_save_exec_prefix="$exec_prefix"
4846 exec_prefix="$acl_final_exec_prefix"
4848 eval additional_includedir=\"$includedir\"
4849 eval additional_libdir=\"$libdir\"
4851 exec_prefix="$acl_save_exec_prefix"
4852 prefix="$acl_save_prefix"
4855 # Check whether --with-libintl-prefix was given.
4856 if test "${with_libintl_prefix+set}" = set; then
4857 withval=$with_libintl_prefix;
4858 if test "X$withval" = "Xno"; then
4861 if test "X$withval" = "X"; then
4863 acl_save_prefix="$prefix"
4864 prefix="$acl_final_prefix"
4865 acl_save_exec_prefix="$exec_prefix"
4866 exec_prefix="$acl_final_exec_prefix"
4868 eval additional_includedir=\"$includedir\"
4869 eval additional_libdir=\"$libdir\"
4871 exec_prefix="$acl_save_exec_prefix"
4872 prefix="$acl_save_prefix"
4875 additional_includedir="$withval/include"
4876 additional_libdir="$withval/lib"
4887 names_already_handled=
4888 names_next_round='intl '
4889 while test -n "$names_next_round"; do
4890 names_this_round="$names_next_round"
4892 for name in $names_this_round; do
4894 for n in $names_already_handled; do
4895 if test "$n" = "$name"; then
4900 if test -z "$already_handled"; then
4901 names_already_handled="$names_already_handled $name"
4902 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4903 eval value=\"\$HAVE_LIB$uppername\"
4904 if test -n "$value"; then
4905 if test "$value" = yes; then
4906 eval value=\"\$LIB$uppername\"
4907 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4908 eval value=\"\$LTLIB$uppername\"
4909 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4918 if test $use_additional = yes; then
4919 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4920 found_dir="$additional_libdir"
4921 found_so="$additional_libdir/lib$name.$shlibext"
4922 if test -f "$additional_libdir/lib$name.la"; then
4923 found_la="$additional_libdir/lib$name.la"
4926 if test -f "$additional_libdir/lib$name.$libext"; then
4927 found_dir="$additional_libdir"
4928 found_a="$additional_libdir/lib$name.$libext"
4929 if test -f "$additional_libdir/lib$name.la"; then
4930 found_la="$additional_libdir/lib$name.la"
4935 if test "X$found_dir" = "X"; then
4936 for x in $LDFLAGS $LTLIBINTL; do
4938 acl_save_prefix="$prefix"
4939 prefix="$acl_final_prefix"
4940 acl_save_exec_prefix="$exec_prefix"
4941 exec_prefix="$acl_final_exec_prefix"
4943 exec_prefix="$acl_save_exec_prefix"
4944 prefix="$acl_save_prefix"
4948 dir=`echo "X$x" | sed -e 's/^X-L//'`
4949 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4951 found_so="$dir/lib$name.$shlibext"
4952 if test -f "$dir/lib$name.la"; then
4953 found_la="$dir/lib$name.la"
4956 if test -f "$dir/lib$name.$libext"; then
4958 found_a="$dir/lib$name.$libext"
4959 if test -f "$dir/lib$name.la"; then
4960 found_la="$dir/lib$name.la"
4966 if test "X$found_dir" != "X"; then
4971 if test "X$found_dir" != "X"; then
4972 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4973 if test "X$found_so" != "X"; then
4974 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4975 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4978 for x in $ltrpathdirs; do
4979 if test "X$x" = "X$found_dir"; then
4984 if test -z "$haveit"; then
4985 ltrpathdirs="$ltrpathdirs $found_dir"
4987 if test "$hardcode_direct" = yes; then
4988 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4990 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4991 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4993 for x in $rpathdirs; do
4994 if test "X$x" = "X$found_dir"; then
4999 if test -z "$haveit"; then
5000 rpathdirs="$rpathdirs $found_dir"
5004 for x in $LDFLAGS $LIBINTL; do
5006 acl_save_prefix="$prefix"
5007 prefix="$acl_final_prefix"
5008 acl_save_exec_prefix="$exec_prefix"
5009 exec_prefix="$acl_final_exec_prefix"
5011 exec_prefix="$acl_save_exec_prefix"
5012 prefix="$acl_save_prefix"
5014 if test "X$x" = "X-L$found_dir"; then
5019 if test -z "$haveit"; then
5020 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5022 if test "$hardcode_minus_L" != no; then
5023 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5025 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5031 if test "X$found_a" != "X"; then
5032 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5034 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5037 additional_includedir=
5038 case "$found_dir" in
5040 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5041 additional_includedir="$basedir/include"
5044 if test "X$additional_includedir" != "X"; then
5045 if test "X$additional_includedir" != "X/usr/include"; then
5047 if test "X$additional_includedir" = "X/usr/local/include"; then
5048 if test -n "$GCC"; then
5050 linux*) haveit=yes;;
5054 if test -z "$haveit"; then
5055 for x in $CPPFLAGS $INCINTL; do
5057 acl_save_prefix="$prefix"
5058 prefix="$acl_final_prefix"
5059 acl_save_exec_prefix="$exec_prefix"
5060 exec_prefix="$acl_final_exec_prefix"
5062 exec_prefix="$acl_save_exec_prefix"
5063 prefix="$acl_save_prefix"
5065 if test "X$x" = "X-I$additional_includedir"; then
5070 if test -z "$haveit"; then
5071 if test -d "$additional_includedir"; then
5072 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5078 if test -n "$found_la"; then
5079 save_libdir="$libdir"
5081 */* | *\\*) . "$found_la" ;;
5082 *) . "./$found_la" ;;
5084 libdir="$save_libdir"
5085 for dep in $dependency_libs; do
5088 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5089 if test "X$additional_libdir" != "X/usr/lib"; then
5091 if test "X$additional_libdir" = "X/usr/local/lib"; then
5092 if test -n "$GCC"; then
5094 linux*) haveit=yes;;
5098 if test -z "$haveit"; then
5100 for x in $LDFLAGS $LIBINTL; do
5102 acl_save_prefix="$prefix"
5103 prefix="$acl_final_prefix"
5104 acl_save_exec_prefix="$exec_prefix"
5105 exec_prefix="$acl_final_exec_prefix"
5107 exec_prefix="$acl_save_exec_prefix"
5108 prefix="$acl_save_prefix"
5110 if test "X$x" = "X-L$additional_libdir"; then
5115 if test -z "$haveit"; then
5116 if test -d "$additional_libdir"; then
5117 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5121 for x in $LDFLAGS $LTLIBINTL; do
5123 acl_save_prefix="$prefix"
5124 prefix="$acl_final_prefix"
5125 acl_save_exec_prefix="$exec_prefix"
5126 exec_prefix="$acl_final_exec_prefix"
5128 exec_prefix="$acl_save_exec_prefix"
5129 prefix="$acl_save_prefix"
5131 if test "X$x" = "X-L$additional_libdir"; then
5136 if test -z "$haveit"; then
5137 if test -d "$additional_libdir"; then
5138 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5145 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5146 if test "$enable_rpath" != no; then
5148 for x in $rpathdirs; do
5149 if test "X$x" = "X$dir"; then
5154 if test -z "$haveit"; then
5155 rpathdirs="$rpathdirs $dir"
5158 for x in $ltrpathdirs; do
5159 if test "X$x" = "X$dir"; then
5164 if test -z "$haveit"; then
5165 ltrpathdirs="$ltrpathdirs $dir"
5170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5176 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5177 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5183 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5190 if test "X$rpathdirs" != "X"; then
5191 if test -n "$hardcode_libdir_separator"; then
5193 for found_dir in $rpathdirs; do
5194 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5196 acl_save_libdir="$libdir"
5198 eval flag=\"$hardcode_libdir_flag_spec\"
5199 libdir="$acl_save_libdir"
5200 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5202 for found_dir in $rpathdirs; do
5203 acl_save_libdir="$libdir"
5205 eval flag=\"$hardcode_libdir_flag_spec\"
5206 libdir="$acl_save_libdir"
5207 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5211 if test "X$ltrpathdirs" != "X"; then
5212 for found_dir in $ltrpathdirs; do
5213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5217 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5218 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
5219 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 gt_save_CPPFLAGS="$CPPFLAGS"
5223 CPPFLAGS="$CPPFLAGS $INCINTL"
5224 gt_save_LIBS="$LIBS"
5225 LIBS="$LIBS $LIBINTL"
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5232 #include <libintl.h>
5233 extern int _nl_msg_cat_cntr;
5238 const char *_nl_expand_alias ();
5242 bindtextdomain ("", "");
5243 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (ac_try="$ac_link"
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_link") 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest$ac_exeext &&
5265 $as_test_x conftest$ac_exeext; then
5266 gt_cv_func_gnugettext1_libintl=yes
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5271 gt_cv_func_gnugettext1_libintl=no
5274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5275 conftest$ac_exeext conftest.$ac_ext
5276 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5277 LIBS="$LIBS $LIBICONV"
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <libintl.h>
5285 extern int _nl_msg_cat_cntr;
5290 const char *_nl_expand_alias ();
5294 bindtextdomain ("", "");
5295 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5300 rm -f conftest.$ac_objext conftest$ac_exeext
5301 if { (ac_try="$ac_link"
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_link") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest$ac_exeext &&
5317 $as_test_x conftest$ac_exeext; then
5318 LIBINTL="$LIBINTL $LIBICONV"
5319 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5320 gt_cv_func_gnugettext1_libintl=yes
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5330 conftest$ac_exeext conftest.$ac_ext
5332 CPPFLAGS="$gt_save_CPPFLAGS"
5333 LIBS="$gt_save_LIBS"
5335 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5336 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
5339 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5340 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5341 && test "$PACKAGE" != gettext-runtime \
5342 && test "$PACKAGE" != gettext-tools; }; then
5343 gt_use_preinstalled_gnugettext=yes
5352 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5353 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5355 cat >>confdefs.h <<\_ACEOF
5356 #define ENABLE_NLS 1
5364 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
5365 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
5366 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5367 echo "${ECHO_T}$USE_NLS" >&6; }
5368 if test "$USE_NLS" = "yes"; then
5369 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5370 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
5371 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5372 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5373 gt_source="external libintl"
5378 gt_source="included intl directory"
5380 { echo "$as_me:$LINENO: result: $gt_source" >&5
5381 echo "${ECHO_T}$gt_source" >&6; }
5384 if test "$USE_NLS" = "yes"; then
5386 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5387 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5388 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
5389 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
5390 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
5391 echo "${ECHO_T}$LIBINTL" >&6; }
5393 for element in $INCINTL; do
5395 for x in $CPPFLAGS; do
5397 acl_save_prefix="$prefix"
5398 prefix="$acl_final_prefix"
5399 acl_save_exec_prefix="$exec_prefix"
5400 exec_prefix="$acl_final_exec_prefix"
5402 exec_prefix="$acl_save_exec_prefix"
5403 prefix="$acl_save_prefix"
5405 if test "X$x" = "X$element"; then
5410 if test -z "$haveit"; then
5411 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5418 cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_GETTEXT 1
5423 cat >>confdefs.h <<\_ACEOF
5424 #define HAVE_DCGETTEXT 1
5444 if test x"$USE_NLS" = xyes; then
5451 { echo "$as_me:$LINENO: checking if color escape sequence for kterm/pxvt is enabled" >&5
5452 echo $ECHO_N "checking if color escape sequence for kterm/pxvt is enabled... $ECHO_C" >&6; }
5453 # Check whether --enable-color was given.
5454 if test "${enable_color+set}" = set; then
5455 enableval=$enable_color;
5460 test x"$enable_color" = xyes && cat >>confdefs.h <<\_ACEOF
5464 { echo "$as_me:$LINENO: result: $enable_color" >&5
5465 echo "${ECHO_T}$enable_color" >&6; }
5467 { echo "$as_me:$LINENO: checking if ansi color escape sequence support is enabled" >&5
5468 echo $ECHO_N "checking if ansi color escape sequence support is enabled... $ECHO_C" >&6; }
5469 # Check whether --enable-ansi_color was given.
5470 if test "${enable_ansi_color+set}" = set; then
5471 enableval=$enable_ansi_color;
5473 enable_ansi_color="$enable_color"
5476 test x"$enable_ansi_color" = xyes && cat >>confdefs.h <<\_ACEOF
5477 #define USE_ANSI_COLOR 1
5480 { echo "$as_me:$LINENO: result: $enable_ansi_color" >&5
5481 echo "${ECHO_T}$enable_ansi_color" >&6; }
5483 { echo "$as_me:$LINENO: checking if background color support is enabled" >&5
5484 echo $ECHO_N "checking if background color support is enabled... $ECHO_C" >&6; }
5485 # Check whether --enable-bgcolor was given.
5486 if test "${enable_bgcolor+set}" = set; then
5487 enableval=$enable_bgcolor;
5489 enable_bgcolor="$enable_color"
5492 test x"$enable_bgcolor" = xyes && cat >>confdefs.h <<\_ACEOF
5493 #define USE_BG_COLOR 1
5496 { echo "$as_me:$LINENO: result: $enable_bgcolor" >&5
5497 echo "${ECHO_T}$enable_bgcolor" >&6; }
5504 INSTALL_W3MIMGDISPLAY='${INSTALL_PROGRAM}'
5505 cat >>confdefs.h <<\_ACEOF
5506 #define INSTALL_W3MIMGDISPLAY $INSTALL_W3MIMGDISPLAY
5519 { echo "$as_me:$LINENO: checking if image is enabled" >&5
5520 echo $ECHO_N "checking if image is enabled... $ECHO_C" >&6; }
5521 # Check whether --enable-image was given.
5522 if test "${enable_image+set}" = set; then
5523 enableval=$enable_image;
5528 { echo "$as_me:$LINENO: result: $enable_image" >&5
5529 echo "${ECHO_T}$enable_image" >&6; }
5530 if test x"$enable_image" != xno; then
5532 if test x"$enable_image" = xyes; then
5534 case "`uname -s`" in
5536 if test -c /dev/fb0; then
5541 save_ifs="$IFS"; IFS=",";
5542 for img in $enable_image; do
5547 cat >>confdefs.h <<\_ACEOF
5548 #define W3MIMGDISPLAY_SETUID 1
5551 INSTALL_W3MIMGDISPLAY='${INSTALL} -o root -m 4755 -s'
5552 cat >>confdefs.h <<\_ACEOF
5553 #define INSTALL_W3MIMGDISPLAY $INSTALL_W3MIMGDISPLAY
5560 cat >>confdefs.h <<\_ACEOF
5564 { echo "$as_me:$LINENO: checking image library" >&5
5565 echo $ECHO_N "checking image library... $ECHO_C" >&6; }
5567 # Check whether --with-imagelib was given.
5568 if test "${with_imagelib+set}" = set; then
5569 withval=$with_imagelib;
5574 if test x"$with_imagelib" = xyes; then
5575 with_imagelib="gtk2 gdk-pixbuf imlib imlib2"
5577 { echo "$as_me:$LINENO: result: $with_imagelib" >&5
5578 echo "${ECHO_T}$with_imagelib" >&6; }
5583 for imagelib in $with_imagelib
5588 if test x"$IMLIB_CONFIG" = x; then
5589 IMLIB_CONFIG=imlib-config
5593 if test x"$IMLIB2_CONFIG" = x; then
5594 IMLIB2_CONFIG=imlib2-config
5597 with_gdkpixbuf="yes"
5598 if test x"$GDKPIXBUF_CONFIG" = x; then
5599 GDKPIXBUF_CONFIG=gdk-pixbuf-config
5603 if test x"$PKG_CONFIG" = x; then
5604 PKG_CONFIG=pkg-config
5611 if test x"$with_gtk2" = xyes; then
5612 version="`$PKG_CONFIG --modversion gdk-pixbuf-2.0 2>/dev/null`"
5613 if test x"$version" != x; then
5614 { echo "$as_me:$LINENO: checking GdkPixbuf version" >&5
5615 echo $ECHO_N "checking GdkPixbuf version... $ECHO_C" >&6; }
5616 { echo "$as_me:$LINENO: result: $version" >&5
5617 echo "${ECHO_T}$version" >&6; }
5618 set -- `echo "$version" | sed 's/[^0-9]/ /g'`
5619 if test "$1" -ne "2" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "0"; then
5620 { echo "$as_me:$LINENO: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&5
5621 echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&2;}
5622 have_gdkpixbuf="no"; have_gtk2="no"
5624 have_gdkpixbuf="yes"; have_gtk2="yes"
5627 { echo "$as_me:$LINENO: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&5
5628 echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&2;}
5629 have_gdkpixbuf="no"; have_gtk2="no"
5632 if test x"$with_gdkpixbuf" = xyes; then
5633 if test x"$have_gdkpixbuf" != xyes; then
5634 version="`$GDKPIXBUF_CONFIG --version 2>/dev/null`"
5635 if test x"$version" != x; then
5636 { echo "$as_me:$LINENO: checking GdkPixbuf version" >&5
5637 echo $ECHO_N "checking GdkPixbuf version... $ECHO_C" >&6; }
5638 { echo "$as_me:$LINENO: result: $version" >&5
5639 echo "${ECHO_T}$version" >&6; }
5640 set -- `echo "$version" | sed 's/[^0-9]/ /g'`
5641 if test "$1" -ne "0" -o "$2" -lt "16" || test "$2" -eq "16" -a "$3" -lt "0"; then
5642 { echo "$as_me:$LINENO: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&5
5643 echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&2;}
5646 have_gdkpixbuf="yes"
5649 { echo "$as_me:$LINENO: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&5
5650 echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&2;}
5655 if test x"$with_imlib" = xyes; then
5656 version="`$IMLIB_CONFIG --version 2>/dev/null`"
5657 if test x"$version" != x; then
5658 { echo "$as_me:$LINENO: checking Imlib version" >&5
5659 echo $ECHO_N "checking Imlib version... $ECHO_C" >&6; }
5660 { echo "$as_me:$LINENO: result: $version" >&5
5661 echo "${ECHO_T}$version" >&6; }
5662 set -- `echo "$version" | sed 's/[^0-9]/ /g'`
5663 if test "$1" -ne "1" -o "$2" -lt "9" || test "$2" -eq "9" -a "$3" -lt "8"; then
5664 { echo "$as_me:$LINENO: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&5
5665 echo "$as_me: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&5
5672 echo "$as_me: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&2;}
5676 if test x"$with_imlib2" = xyes; then
5677 version="`$IMLIB2_CONFIG --version 2>/dev/null`"
5678 if test x"$version" != x; then
5679 { echo "$as_me:$LINENO: checking Imlib2 version" >&5
5680 echo $ECHO_N "checking Imlib2 version... $ECHO_C" >&6; }
5681 { echo "$as_me:$LINENO: result: $version" >&5
5682 echo "${ECHO_T}$version" >&6; }
5683 set -- `echo "$version" | sed 's/[^0-9]/ /g'`
5684 if test "$1" -ne "1" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "5"; then
5685 { echo "$as_me:$LINENO: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&5
5686 echo "$as_me: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&5
5693 echo "$as_me: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&2;}
5697 if test x"$x11" = xyes; then
5698 if test x"$have_gtk2" = xyes; then
5699 cat >>confdefs.h <<\_ACEOF
5700 #define USE_W3MIMG_X11 1
5703 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
5705 cat >>confdefs.h <<\_ACEOF
5706 #define USE_GDKPIXBUF 1
5709 cat >>confdefs.h <<\_ACEOF
5713 IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
5714 IMGX11LDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
5715 elif test x"$have_gdkpixbuf" = xyes; then
5716 cat >>confdefs.h <<\_ACEOF
5717 #define USE_W3MIMG_X11 1
5720 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
5722 cat >>confdefs.h <<\_ACEOF
5723 #define USE_GDKPIXBUF 1
5726 IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
5727 IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib"
5728 elif test x"$have_imlib" = xyes; then
5729 cat >>confdefs.h <<\_ACEOF
5730 #define USE_W3MIMG_X11 1
5733 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
5735 cat >>confdefs.h <<\_ACEOF
5739 IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`"
5740 IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`"
5742 elif test x"$have_imlib2" = xyes; then
5743 cat >>confdefs.h <<\_ACEOF
5744 #define USE_W3MIMG_X11 1
5747 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
5749 cat >>confdefs.h <<\_ACEOF
5750 #define USE_IMLIB2 1
5753 IMGX11CFLAGS="`${IMLIB2_CONFIG} --cflags`"
5754 IMGX11LDFLAGS="`${IMLIB2_CONFIG} --libs`"
5756 { echo "$as_me:$LINENO: WARNING: unable to build w3mimgdisplay with X11 support" >&5
5757 echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;}
5760 if test x"$fb" = xyes; then
5761 if test x"$have_gtk2" = xyes; then
5762 cat >>confdefs.h <<\_ACEOF
5763 #define USE_W3MIMG_FB 1
5766 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
5767 IMGTARGETS="${IMGTARGETS} fb"
5768 cat >>confdefs.h <<\_ACEOF
5769 #define USE_GDKPIXBUF 1
5772 cat >>confdefs.h <<\_ACEOF
5776 IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gtk+-2.0`"
5777 IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gtk+-2.0`"
5778 elif test x"$have_gdkpixbuf" = xyes; then
5779 cat >>confdefs.h <<\_ACEOF
5780 #define USE_W3MIMG_FB 1
5783 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
5784 IMGTARGETS="${IMGTARGETS} fb"
5785 cat >>confdefs.h <<\_ACEOF
5786 #define USE_GDKPIXBUF 1
5789 IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
5790 IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`"
5791 elif test x"$have_imlib2" = xyes; then
5792 cat >>confdefs.h <<\_ACEOF
5793 #define USE_W3MIMG_FB 1
5796 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
5797 IMGTARGETS="${IMGTARGETS} fb"
5798 cat >>confdefs.h <<\_ACEOF
5799 #define USE_IMLIB2 1
5802 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
5803 IMGFBCFLAGS="`${IMLIB2_CONFIG} --cflags`"
5804 IMGFBLDFLAGS="`${IMLIB2_CONFIG} --libs`"
5806 { echo "$as_me:$LINENO: WARNING: unable to build w3mimgdisplay with FB support" >&5
5807 echo "$as_me: WARNING: unable to build w3mimgdisplay with FB support" >&2;}
5810 cat >>confdefs.h <<\_ACEOF
5811 #define IMGTARGETS "$IMGTARGETS"
5814 cat >>confdefs.h <<\_ACEOF
5815 #define IMGOBJS "$IMGOBJS"
5818 cat >>confdefs.h <<\_ACEOF
5819 #define IMGX11CFLAGS "$IMGX11CFLAGS"
5822 cat >>confdefs.h <<\_ACEOF
5823 #define IMGX11LDFLAGS "$IMGX11LDFLAGS"
5826 cat >>confdefs.h <<\_ACEOF
5827 #define IMGFBCFLAGS "$IMGFBCFLAGS"
5830 cat >>confdefs.h <<\_ACEOF
5831 #define IMGFBLDFLAGS "$IMGLDFLAGS"
5835 if test x"$enable_image" != xno; then
5836 AUXBIN_TARGETS="$AUXBIN_TARGETS w3mimgdisplay\$(EXT)"
5838 { echo "$as_me:$LINENO: checking if xface is enabled" >&5
5839 echo $ECHO_N "checking if xface is enabled... $ECHO_C" >&6; }
5840 # Check whether --enable-xface was given.
5841 if test "${enable_xface+set}" = set; then
5842 enableval=$enable_xface;
5844 enable_xface="$enable_image"
5847 test x"$enable_xface" = xyes && cat >>confdefs.h <<\_ACEOF
5851 { echo "$as_me:$LINENO: result: $enable_xface" >&5
5852 echo "${ECHO_T}$enable_xface" >&6; }
5853 # Extract the first word of "uncompface", so it can be a program name with args.
5854 set dummy uncompface; ac_word=$2
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5857 if test "${ac_cv_prog_uncompface+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 if test -n "$uncompface"; then
5861 ac_cv_prog_uncompface="$uncompface" # Let the user override the test.
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_uncompface=""yes""
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 test -z "$ac_cv_prog_uncompface" && ac_cv_prog_uncompface=""no""
5881 uncompface=$ac_cv_prog_uncompface
5882 if test -n "$uncompface"; then
5883 { echo "$as_me:$LINENO: result: $uncompface" >&5
5884 echo "${ECHO_T}$uncompface" >&6; }
5886 { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5891 test "$uncompface" = "no" && { echo "$as_me:$LINENO: WARNING: uncompface is not installed." >&5
5892 echo "$as_me: WARNING: uncompface is not installed." >&2;}
5897 { echo "$as_me:$LINENO: checking default keymap" >&5
5898 echo $ECHO_N "checking default keymap... $ECHO_C" >&6; }
5899 # Check whether --enable-keymap was given.
5900 if test "${enable_keymap+set}" = set; then
5901 enableval=$enable_keymap;
5906 { echo "$as_me:$LINENO: result: $enable_keymap" >&5
5907 echo "${ECHO_T}$enable_keymap" >&6; }
5908 case x"$enable_keymap" in
5910 KEYMAP_FILE="keybind";;
5912 KEYMAP_FILE="keybind_lynx";;
5914 { { echo "$as_me:$LINENO: error: keymap should be either w3m or lynx." >&5
5915 echo "$as_me: error: keymap should be either w3m or lynx." >&2;}
5916 { (exit 1); exit 1; }; };;
5919 HELP_FILE=w3mhelp-${enable_keymap}_$w3m_lang.html
5920 cat >>confdefs.h <<_ACEOF
5921 #define HELP_FILE "$HELP_FILE"
5925 cat >>confdefs.h <<_ACEOF
5926 #define KEYBIND $enable_keymap
5930 { echo "$as_me:$LINENO: checking if popup menu is enabled" >&5
5931 echo $ECHO_N "checking if popup menu is enabled... $ECHO_C" >&6; }
5932 # Check whether --enable-menu was given.
5933 if test "${enable_menu+set}" = set; then
5934 enableval=$enable_menu;
5939 test x"$enable_menu" = xyes && cat >>confdefs.h <<\_ACEOF
5943 { echo "$as_me:$LINENO: result: $enable_menu" >&5
5944 echo "${ECHO_T}$enable_menu" >&6; }
5946 { echo "$as_me:$LINENO: checking if mouse operation enabled" >&5
5947 echo $ECHO_N "checking if mouse operation enabled... $ECHO_C" >&6; }
5948 # Check whether --enable-mouse was given.
5949 if test "${enable_mouse+set}" = set; then
5950 enableval=$enable_mouse;
5955 test x"$enable_mouse" = xyes && cat >>confdefs.h <<\_ACEOF
5959 { echo "$as_me:$LINENO: result: $enable_mouse" >&5
5960 echo "${ECHO_T}$enable_mouse" >&6; }
5962 { echo "$as_me:$LINENO: checking if URL history is enabled" >&5
5963 echo $ECHO_N "checking if URL history is enabled... $ECHO_C" >&6; }
5964 # Check whether --enable-history was given.
5965 if test "${enable_history+set}" = set; then
5966 enableval=$enable_history;
5968 enable_history="yes"
5971 test x"$enable_history" = xyes && cat >>confdefs.h <<\_ACEOF
5972 #define USE_HISTORY 1
5975 { echo "$as_me:$LINENO: result: $enable_history" >&5
5976 echo "${ECHO_T}$enable_history" >&6; }
5978 { echo "$as_me:$LINENO: checking if alarm is enabled" >&5
5979 echo $ECHO_N "checking if alarm is enabled... $ECHO_C" >&6; }
5980 # Check whether --enable-alarm was given.
5981 if test "${enable_alarm+set}" = set; then
5982 enableval=$enable_alarm;
5987 { echo "$as_me:$LINENO: result: $enable_alarm" >&5
5988 echo "${ECHO_T}$enable_alarm" >&6; }
5989 if test x"$enable_alarm" = xyes; then
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 cat >>confdefs.h <<\_ACEOF
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039 { echo "$as_me:$LINENO: checking if cookie is enabled" >&5
6040 echo $ECHO_N "checking if cookie is enabled... $ECHO_C" >&6; }
6041 # Check whether --enable-cookie was given.
6042 if test "${enable_cookie+set}" = set; then
6043 enableval=$enable_cookie;
6048 test x"$enable_cookie" = xyes && cat >>confdefs.h <<\_ACEOF
6049 #define USE_COOKIE 1
6052 { echo "$as_me:$LINENO: result: $enable_cookie" >&5
6053 echo "${ECHO_T}$enable_cookie" >&6; }
6055 { echo "$as_me:$LINENO: checking if nntp is enabled" >&5
6056 echo $ECHO_N "checking if nntp is enabled... $ECHO_C" >&6; }
6057 # Check whether --enable-nntp was given.
6058 if test "${enable_nntp+set}" = set; then
6059 enableval=$enable_nntp;
6064 test x"$enable_nntp" = xyes && cat >>confdefs.h <<\_ACEOF
6068 { echo "$as_me:$LINENO: result: $enable_nntp" >&5
6069 echo "${ECHO_T}$enable_nntp" >&6; }
6071 { echo "$as_me:$LINENO: checking if gopher is enabled" >&5
6072 echo $ECHO_N "checking if gopher is enabled... $ECHO_C" >&6; }
6073 # Check whether --enable-gopher was given.
6074 if test "${enable_gopher+set}" = set; then
6075 enableval=$enable_gopher;
6080 test x"$enable_gopher" = xyes && cat >>confdefs.h <<\_ACEOF
6081 #define USE_GOPHER 1
6084 { echo "$as_me:$LINENO: result: $enable_gopher" >&5
6085 echo "${ECHO_T}$enable_gopher" >&6; }
6088 { echo "$as_me:$LINENO: checking if dictionary lookup is enabled" >&5
6089 echo $ECHO_N "checking if dictionary lookup is enabled... $ECHO_C" >&6; }
6090 # Check whether --enable-dict was given.
6091 if test "${enable_dict+set}" = set; then
6092 enableval=$enable_dict;
6097 test x"$enable_dict" = xyes && cat >>confdefs.h <<\_ACEOF
6101 { echo "$as_me:$LINENO: result: $enable_dict" >&5
6102 echo "${ECHO_T}$enable_dict" >&6; }
6104 { echo "$as_me:$LINENO: checking if help cgi is enabled" >&5
6105 echo $ECHO_N "checking if help cgi is enabled... $ECHO_C" >&6; }
6106 # Check whether --enable-help_cgi was given.
6107 if test "${enable_help_cgi+set}" = set; then
6108 enableval=$enable_help_cgi;
6110 enable_help_cgi="yes"
6113 test x"$enable_help_cgi" = xyes && cat >>confdefs.h <<\_ACEOF
6114 #define USE_HELP_CGI 1
6117 { echo "$as_me:$LINENO: result: $enable_help_cgi" >&5
6118 echo "${ECHO_T}$enable_help_cgi" >&6; }
6120 { echo "$as_me:$LINENO: checking if external URI loader is enabled" >&5
6121 echo $ECHO_N "checking if external URI loader is enabled... $ECHO_C" >&6; }
6122 # Check whether --enable-external_uri_loader was given.
6123 if test "${enable_external_uri_loader+set}" = set; then
6124 enableval=$enable_external_uri_loader;
6126 enable_external_uri_loader="yes"
6129 test x"$enable_external_uri_loader" = xyes && cat >>confdefs.h <<\_ACEOF
6130 #define USE_EXTERNAL_URI_LOADER 1
6133 { echo "$as_me:$LINENO: result: $enable_external_uri_loader" >&5
6134 echo "${ECHO_T}$enable_external_uri_loader" >&6; }
6136 { echo "$as_me:$LINENO: checking if w3mmail is used" >&5
6137 echo $ECHO_N "checking if w3mmail is used... $ECHO_C" >&6; }
6138 # Check whether --enable-w3mmailer was given.
6139 if test "${enable_w3mmailer+set}" = set; then
6140 enableval=$enable_w3mmailer;
6142 enable_w3mmailer="$enable_external_uri_loader"
6145 test x"$enable_external_uri_loader" = xno && enable_w3mmailer=no
6146 test x"$enable_w3mmailer" = xyes && cat >>confdefs.h <<\_ACEOF
6147 #define USE_W3MMAILER 1
6150 { echo "$as_me:$LINENO: result: $enable_w3mmailer" >&5
6151 echo "${ECHO_T}$enable_w3mmailer" >&6; }
6154 migemo_command="migemo -t egrep /usr/local/share/migemo/migemo-dict"
6155 { echo "$as_me:$LINENO: checking if migemo is supported with" >&5
6156 echo $ECHO_N "checking if migemo is supported with... $ECHO_C" >&6; }
6158 # Check whether --with-migemo was given.
6159 if test "${with_migemo+set}" = set; then
6160 withval=$with_migemo; test x"$with_migemo" = xyes || migemo_command="$with_migemo"
6163 if test "${with_migemo+set}" = set -a "$with_migemo" != "no"; then
6164 cat >>confdefs.h <<\_ACEOF
6165 #define USE_MIGEMO 1
6169 { echo "$as_me:$LINENO: result: $migemo_command" >&5
6170 echo "${ECHO_T}$migemo_command" >&6; }
6171 cat >>confdefs.h <<_ACEOF
6172 #define DEF_MIGEMO_COMMAND "$migemo_command"
6176 w3m_editor="/usr/bin/vi"
6177 { echo "$as_me:$LINENO: checking which editor is used by default" >&5
6178 echo $ECHO_N "checking which editor is used by default... $ECHO_C" >&6; }
6180 # Check whether --with-editor was given.
6181 if test "${with_editor+set}" = set; then
6182 withval=$with_editor; w3m_editor="$with_editor"
6185 { echo "$as_me:$LINENO: result: $w3m_editor" >&5
6186 echo "${ECHO_T}$w3m_editor" >&6; }
6187 cat >>confdefs.h <<_ACEOF
6188 #define DEF_EDITOR "$w3m_editor"
6192 w3m_mailer="/usr/bin/mail"
6193 { echo "$as_me:$LINENO: checking which mailer is used by default" >&5
6194 echo $ECHO_N "checking which mailer is used by default... $ECHO_C" >&6; }
6196 # Check whether --with-mailer was given.
6197 if test "${with_mailer+set}" = set; then
6198 withval=$with_mailer; w3m_mailer="$with_mailer"
6201 { echo "$as_me:$LINENO: result: $w3m_mailer" >&5
6202 echo "${ECHO_T}$w3m_mailer" >&6; }
6203 cat >>confdefs.h <<_ACEOF
6204 #define DEF_MAILER "$w3m_mailer"
6208 w3m_browser="/usr/bin/mozilla"
6209 { echo "$as_me:$LINENO: checking which external browser is used by default" >&5
6210 echo $ECHO_N "checking which external browser is used by default... $ECHO_C" >&6; }
6212 # Check whether --with-browser was given.
6213 if test "${with_browser+set}" = set; then
6214 withval=$with_browser; w3m_browser="$with_browser"
6217 { echo "$as_me:$LINENO: result: $w3m_browser" >&5
6218 echo "${ECHO_T}$w3m_browser" >&6; }
6219 cat >>confdefs.h <<_ACEOF
6220 #define DEF_EXT_BROWSER "$w3m_browser"
6224 for lib in bsd BSD 44bsd socket nsl dld dl
6227 { echo "$as_me:$LINENO: checking for -l$lib" >&5
6228 echo $ECHO_N "checking for -l$lib... $ECHO_C" >&6; }
6230 for dir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib
6232 if test -f $dir/lib$lib.a -o -f $dir/lib$lib.so ; then
6234 extlib="found at $dir"
6238 { echo "$as_me:$LINENO: result: $extlib" >&5
6239 echo "${ECHO_T}$extlib" >&6; }
6242 { echo "$as_me:$LINENO: checking if IPv6 support is enabled" >&5
6243 echo $ECHO_N "checking if IPv6 support is enabled... $ECHO_C" >&6; }
6244 # Check whether --enable-ipv6 was given.
6245 if test "${enable_ipv6+set}" = set; then
6246 enableval=$enable_ipv6;
6251 { echo "$as_me:$LINENO: result: $enable_ipv6" >&5
6252 echo "${ECHO_T}$enable_ipv6" >&6; }
6254 if test x"$enable_ipv6" = xyes; then
6255 { echo "$as_me:$LINENO: checking if IPv6 API available" >&5
6256 echo $ECHO_N "checking if IPv6 API available... $ECHO_C" >&6; }
6258 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
6259 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
6260 if test "${ac_cv_func_getaddrinfo+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 cat >conftest.$ac_ext <<_ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
6270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6271 #define getaddrinfo innocuous_getaddrinfo
6273 /* System header to define __stub macros and hopefully few prototypes,
6274 which can conflict with char getaddrinfo (); below.
6275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6276 <limits.h> exists even on freestanding compilers. */
6279 # include <limits.h>
6281 # include <assert.h>
6286 /* Override any GCC internal prototype to avoid an error.
6287 Use char because int might match the return type of a GCC
6288 builtin and then its argument prototype would still apply. */
6292 char getaddrinfo ();
6293 /* The GNU C library defines this for functions which it implements
6294 to always fail with ENOSYS. Some functions are actually named
6295 something starting with __ and the normal name is an alias. */
6296 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
6303 return getaddrinfo ();
6308 rm -f conftest.$ac_objext conftest$ac_exeext
6309 if { (ac_try="$ac_link"
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_link") 2>conftest.er1
6317 grep -v '^ *+' conftest.er1 >conftest.err
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest$ac_exeext &&
6325 $as_test_x conftest$ac_exeext; then
6326 ac_cv_func_getaddrinfo=yes
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ac_cv_func_getaddrinfo=no
6334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6335 conftest$ac_exeext conftest.$ac_ext
6337 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
6338 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
6339 if test $ac_cv_func_getaddrinfo = yes; then
6345 if test x"$enable_ipv6" = xno; then
6346 { echo "$as_me:$LINENO: checking for libinet6" >&5
6347 echo $ECHO_N "checking for libinet6... $ECHO_C" >&6; }
6348 for dir in /usr/local/v6/lib /usr/local/lib /usr/lib
6350 if test -f $dir/libinet6.a; then
6351 if test $dir != "/usr/lib"; then
6352 W3M_LIBS="$W3M_LIBS -L$dir"
6354 { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
6355 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
6356 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 ac_check_lib_save_LIBS=$LIBS
6360 LIBS="-linet6 $LIBS"
6361 cat >conftest.$ac_ext <<_ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6368 /* Override any GCC internal prototype to avoid an error.
6369 Use char because int might match the return type of a GCC
6370 builtin and then its argument prototype would still apply. */
6374 char getaddrinfo ();
6378 return getaddrinfo ();
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (ac_try="$ac_link"
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_link") 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && {
6397 test -z "$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 } && test -s conftest$ac_exeext &&
6400 $as_test_x conftest$ac_exeext; then
6401 ac_cv_lib_inet6_getaddrinfo=yes
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_cv_lib_inet6_getaddrinfo=no
6409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6410 conftest$ac_exeext conftest.$ac_ext
6411 LIBS=$ac_check_lib_save_LIBS
6413 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
6414 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
6415 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
6417 use_libinet6="found"; W3M_LIBS="$W3M_LIBS -linet6"; break
6419 use_libinet6="not found"
6424 { echo "$as_me:$LINENO: result: $use_libinet6" >&5
6425 echo "${ECHO_T}$use_libinet6" >&6; }
6427 if test x"$enable_ipv6" = xyes; then
6429 { echo "$as_me:$LINENO: checking if struct sockaddr_storage has an ss_family member" >&5
6430 echo $ECHO_N "checking if struct sockaddr_storage has an ss_family member... $ECHO_C" >&6; }
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6438 #include <sys/types.h>
6439 #include <sys/socket.h>
6445 struct sockaddr_storage ss;
6446 int i = ss.ss_family;
6452 rm -f conftest.$ac_objext
6453 if { (ac_try="$ac_compile"
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_compile") 2>conftest.er1
6461 grep -v '^ *+' conftest.er1 >conftest.err
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest.$ac_objext; then
6469 { echo "$as_me:$LINENO: result: yes" >&5
6470 echo "${ECHO_T}yes" >&6; }
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 cat >conftest.$ac_ext <<_ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6482 #include <sys/types.h>
6483 #include <sys/socket.h>
6489 struct sockaddr_storage ss;
6490 int i = ss.__ss_family;
6496 rm -f conftest.$ac_objext
6497 if { (ac_try="$ac_compile"
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_compile") 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest.$ac_objext; then
6513 { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_OLD_SS_FAMILY 1
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6525 { echo "$as_me:$LINENO: WARNING: IPv6 support is disabled" >&5
6526 echo "$as_me: WARNING: IPv6 support is disabled" >&2;}
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 if test x"$enable_ipv6" = xyes; then
6537 cat >>confdefs.h <<\_ACEOF
6545 { echo "$as_me:$LINENO: checking if SSL is suported" >&5
6546 echo $ECHO_N "checking if SSL is suported... $ECHO_C" >&6; }
6548 # Check whether --with-ssl was given.
6549 if test "${with_ssl+set}" = set; then
6555 { echo "$as_me:$LINENO: result: $with_ssl" >&5
6556 echo "${ECHO_T}$with_ssl" >&6; }
6557 if test x"$with_ssl" != xno; then
6561 if test -z "$PKG_CONFIG"; then
6562 # Extract the first word of "pkg-config", so it can be a program name with args.
6563 set dummy pkg-config; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6593 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6594 if test -n "$PKG_CONFIG"; then
6595 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6596 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6598 { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6605 if test "$PKG_CONFIG" = "no" ; then
6606 echo "*** The pkg-config script could not be found. Make sure it is"
6607 echo "*** in your path, or set the PKG_CONFIG environment variable"
6608 echo "*** to the full path to pkg-config."
6609 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6611 PKG_CONFIG_MIN_VERSION=0.9.0
6612 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6613 { echo "$as_me:$LINENO: checking for openssl" >&5
6614 echo $ECHO_N "checking for openssl... $ECHO_C" >&6; }
6616 if $PKG_CONFIG --exists "openssl" ; then
6617 { echo "$as_me:$LINENO: result: yes" >&5
6618 echo "${ECHO_T}yes" >&6; }
6621 { echo "$as_me:$LINENO: checking SSL_CFLAGS" >&5
6622 echo $ECHO_N "checking SSL_CFLAGS... $ECHO_C" >&6; }
6623 SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl"`
6624 { echo "$as_me:$LINENO: result: $SSL_CFLAGS" >&5
6625 echo "${ECHO_T}$SSL_CFLAGS" >&6; }
6627 { echo "$as_me:$LINENO: checking SSL_LIBS" >&5
6628 echo $ECHO_N "checking SSL_LIBS... $ECHO_C" >&6; }
6629 SSL_LIBS=`$PKG_CONFIG --libs "openssl"`
6630 { echo "$as_me:$LINENO: result: $SSL_LIBS" >&5
6631 echo "${ECHO_T}$SSL_LIBS" >&6; }
6635 ## If we have a custom action on failure, don't print errors, but
6636 ## do set a variable so people can do so.
6637 SSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"`
6644 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6645 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6649 if test $succeeded = yes; then
6653 { echo "$as_me:$LINENO: checking for SSL library/header" >&5
6654 echo $ECHO_N "checking for SSL library/header... $ECHO_C" >&6; }
6655 test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
6656 { echo "$as_me:$LINENO: result: $with_ssl" >&5
6657 echo "${ECHO_T}$with_ssl" >&6; }
6658 for dir in $with_ssl
6660 if test -f "$dir/include/openssl/ssl.h"; then
6661 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl"
6662 if test "$dir" != "/usr"; then
6663 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
6665 elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then
6666 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
6668 if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
6669 SSL_LIBS="$SSL_LIBS -L$dir/lib"
6675 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
6676 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
6677 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 ac_check_lib_save_LIBS=$LIBS
6681 LIBS="-lssl $SSL_LIBS -lcrypto $LIBS"
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6689 /* Override any GCC internal prototype to avoid an error.
6690 Use char because int might match the return type of a GCC
6691 builtin and then its argument prototype would still apply. */
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (ac_try="$ac_link"
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_link") 2>conftest.er1
6713 grep -v '^ *+' conftest.er1 >conftest.err
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest$ac_exeext &&
6721 $as_test_x conftest$ac_exeext; then
6722 ac_cv_lib_ssl_SSL_new=yes
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6727 ac_cv_lib_ssl_SSL_new=no
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 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
6735 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
6736 if test $ac_cv_lib_ssl_SSL_new = yes; then
6737 w3m_ssl="found"; CFLAGS="$CFLAGS $SSL_CFLAGS" W3M_LIBS="$W3M_LIBS $SSL_LIBS -lssl -lcrypto"
6743 if test x"$w3m_ssl" = xfound; then
6744 cat >>confdefs.h <<\_ACEOF
6748 { echo "$as_me:$LINENO: checking if SSL certificate verify is enabled" >&5
6749 echo $ECHO_N "checking if SSL certificate verify is enabled... $ECHO_C" >&6; }
6750 # Check whether --enable-sslverify was given.
6751 if test "${enable_sslverify+set}" = set; then
6752 enableval=$enable_sslverify;
6754 enable_sslverify="yes"
6757 test x"$enable_sslverify" = xyes && cat >>confdefs.h <<\_ACEOF
6758 #define USE_SSL_VERIFY 1
6761 { echo "$as_me:$LINENO: result: $enable_sslverify" >&5
6762 echo "${ECHO_T}$enable_sslverify" >&6; }
6766 { echo "$as_me:$LINENO: checking if digest auth is enabled" >&5
6767 echo $ECHO_N "checking if digest auth is enabled... $ECHO_C" >&6; }
6768 # Check whether --enable-digest_auth was given.
6769 if test "${enable_digest_auth+set}" = set; then
6770 enableval=$enable_digest_auth;
6772 enable_digest_auth="yes"
6775 if test x"$enable_digest_auth" = xyes -a x"$w3m_ssl" = xfound; then
6776 cat >>confdefs.h <<\_ACEOF
6777 #define USE_DIGEST_AUTH 1
6781 enable_digest_auth="no"
6783 { echo "$as_me:$LINENO: result: $enable_digest_auth" >&5
6784 echo "${ECHO_T}$enable_digest_auth" >&6; }
6787 { echo "$as_me:$LINENO: checking for sqrt" >&5
6788 echo $ECHO_N "checking for sqrt... $ECHO_C" >&6; }
6789 if test "${ac_cv_func_sqrt+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 /* Define sqrt to an innocuous variant, in case <limits.h> declares sqrt.
6799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6800 #define sqrt innocuous_sqrt
6802 /* System header to define __stub macros and hopefully few prototypes,
6803 which can conflict with char sqrt (); below.
6804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6805 <limits.h> exists even on freestanding compilers. */
6808 # include <limits.h>
6810 # include <assert.h>
6815 /* Override any GCC internal prototype to avoid an error.
6816 Use char because int might match the return type of a GCC
6817 builtin and then its argument prototype would still apply. */
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined __stub_sqrt || defined __stub___sqrt
6837 rm -f conftest.$ac_objext conftest$ac_exeext
6838 if { (ac_try="$ac_link"
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_link") 2>conftest.er1
6846 grep -v '^ *+' conftest.er1 >conftest.err
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && {
6851 test -z "$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 } && test -s conftest$ac_exeext &&
6854 $as_test_x conftest$ac_exeext; then
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6864 conftest$ac_exeext conftest.$ac_ext
6866 { echo "$as_me:$LINENO: result: $ac_cv_func_sqrt" >&5
6867 echo "${ECHO_T}$ac_cv_func_sqrt" >&6; }
6868 if test $ac_cv_func_sqrt = yes; then
6872 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
6873 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
6874 if test "${ac_cv_lib_m_sqrt+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 ac_check_lib_save_LIBS=$LIBS
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6886 /* Override any GCC internal prototype to avoid an error.
6887 Use char because int might match the return type of a GCC
6888 builtin and then its argument prototype would still apply. */
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
6910 grep -v '^ *+' conftest.er1 >conftest.err
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest$ac_exeext &&
6918 $as_test_x conftest$ac_exeext; then
6919 ac_cv_lib_m_sqrt=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928 conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6931 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
6932 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
6933 if test $ac_cv_lib_m_sqrt = yes; then
6934 cat >>confdefs.h <<_ACEOF
6944 if test x"$enable_mouse" = xyes; then
6946 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
6947 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
6948 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_check_lib_save_LIBS=$LIBS
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6960 /* Override any GCC internal prototype to avoid an error.
6961 Use char because int might match the return type of a GCC
6962 builtin and then its argument prototype would still apply. */
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (ac_try="$ac_link"
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_link") 2>conftest.er1
6984 grep -v '^ *+' conftest.er1 >conftest.err
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && {
6989 test -z "$ac_c_werror_flag" ||
6990 test ! -s conftest.err
6991 } && test -s conftest$ac_exeext &&
6992 $as_test_x conftest$ac_exeext; then
6993 ac_cv_lib_gpm_Gpm_Open=yes
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_lib_gpm_Gpm_Open=no
7001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7002 conftest$ac_exeext conftest.$ac_ext
7003 LIBS=$ac_check_lib_save_LIBS
7005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7006 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
7007 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7008 cat >>confdefs.h <<\_ACEOF
7012 W3M_LIBS="$W3M_LIBS -lgpm"
7017 cat >conftest.$ac_ext <<_ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 #include <sys/consio.h>
7026 if { (ac_try="$ac_cpp conftest.$ac_ext"
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7034 grep -v '^ *+' conftest.er1 >conftest.err
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } >/dev/null && {
7039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7042 cat >>confdefs.h <<\_ACEOF
7043 #define USE_SYSMOUSE 1
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 cat >conftest.$ac_ext <<_ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <machine/console.h>
7059 if { (ac_try="$ac_cpp conftest.$ac_ext"
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } >/dev/null && {
7072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7075 cat >>confdefs.h <<\_ACEOF
7076 #define USE_SYSMOUSE 1
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7086 rm -f conftest.err conftest.$ac_ext
7089 rm -f conftest.err conftest.$ac_ext
7092 { echo "$as_me:$LINENO: checking terminal library" >&5
7093 echo $ECHO_N "checking terminal library... $ECHO_C" >&6; }
7095 # Check whether --with-termlib was given.
7096 if test "${with_termlib+set}" = set; then
7097 withval=$with_termlib;
7102 { echo "$as_me:$LINENO: result: $with_termlib" >&5
7103 echo "${ECHO_T}$with_termlib" >&6; }
7104 test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap ncurses curses"
7105 for lib in $with_termlib; do
7106 as_ac_Lib=`echo "ac_cv_lib_$lib''_tgetent" | $as_tr_sh`
7107 { echo "$as_me:$LINENO: checking for tgetent in -l$lib" >&5
7108 echo $ECHO_N "checking for tgetent in -l$lib... $ECHO_C" >&6; }
7109 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_check_lib_save_LIBS=$LIBS
7114 cat >conftest.$ac_ext <<_ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7121 /* Override any GCC internal prototype to avoid an error.
7122 Use char because int might match the return type of a GCC
7123 builtin and then its argument prototype would still apply. */
7136 rm -f conftest.$ac_objext conftest$ac_exeext
7137 if { (ac_try="$ac_link"
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_link") 2>conftest.er1
7145 grep -v '^ *+' conftest.er1 >conftest.err
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest$ac_exeext &&
7153 $as_test_x conftest$ac_exeext; then
7154 eval "$as_ac_Lib=yes"
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 eval "$as_ac_Lib=no"
7162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7163 conftest$ac_exeext conftest.$ac_ext
7164 LIBS=$ac_check_lib_save_LIBS
7166 ac_res=`eval echo '${'$as_ac_Lib'}'`
7167 { echo "$as_me:$LINENO: result: $ac_res" >&5
7168 echo "${ECHO_T}$ac_res" >&6; }
7169 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7170 W3M_LIBS="$W3M_LIBS -l$lib"; break
7175 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7176 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_GREP+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 # Extract the first word of "grep ggrep" to use in msg output
7181 if test -z "$GREP"; then
7182 set dummy grep ggrep; ac_prog_name=$2
7183 if test "${ac_cv_path_GREP+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_path_GREP_found=false
7187 # Loop through the user's path and test for each of PROGNAME-LIST
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7192 test -z "$as_dir" && as_dir=.
7193 for ac_prog in grep ggrep; do
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7197 # Check for GNU ac_path_GREP and select it if it is found.
7198 # Check for GNU $ac_path_GREP
7199 case `"$ac_path_GREP" --version 2>&1` in
7201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7204 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7207 cat "conftest.in" "conftest.in" >"conftest.tmp"
7208 mv "conftest.tmp" "conftest.in"
7209 cp "conftest.in" "conftest.nl"
7210 echo 'GREP' >> "conftest.nl"
7211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7213 ac_count=`expr $ac_count + 1`
7214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7215 # Best one so far, save it but keep looking for a better one
7216 ac_cv_path_GREP="$ac_path_GREP"
7217 ac_path_GREP_max=$ac_count
7219 # 10*(2^10) chars as input seems more than enough
7220 test $ac_count -gt 10 && break
7222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7226 $ac_path_GREP_found && break 3
7236 GREP="$ac_cv_path_GREP"
7237 if test -z "$GREP"; then
7238 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7239 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7240 { (exit 1); exit 1; }; }
7244 ac_cv_path_GREP=$GREP
7249 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7250 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7251 GREP="$ac_cv_path_GREP"
7254 { echo "$as_me:$LINENO: checking for egrep" >&5
7255 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_EGREP+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7260 then ac_cv_path_EGREP="$GREP -E"
7262 # Extract the first word of "egrep" to use in msg output
7263 if test -z "$EGREP"; then
7264 set dummy egrep; ac_prog_name=$2
7265 if test "${ac_cv_path_EGREP+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_path_EGREP_found=false
7269 # Loop through the user's path and test for each of PROGNAME-LIST
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7274 test -z "$as_dir" && as_dir=.
7275 for ac_prog in egrep; do
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7278 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7279 # Check for GNU ac_path_EGREP and select it if it is found.
7280 # Check for GNU $ac_path_EGREP
7281 case `"$ac_path_EGREP" --version 2>&1` in
7283 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7286 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7289 cat "conftest.in" "conftest.in" >"conftest.tmp"
7290 mv "conftest.tmp" "conftest.in"
7291 cp "conftest.in" "conftest.nl"
7292 echo 'EGREP' >> "conftest.nl"
7293 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7295 ac_count=`expr $ac_count + 1`
7296 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7297 # Best one so far, save it but keep looking for a better one
7298 ac_cv_path_EGREP="$ac_path_EGREP"
7299 ac_path_EGREP_max=$ac_count
7301 # 10*(2^10) chars as input seems more than enough
7302 test $ac_count -gt 10 && break
7304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7308 $ac_path_EGREP_found && break 3
7318 EGREP="$ac_cv_path_EGREP"
7319 if test -z "$EGREP"; then
7320 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7321 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7322 { (exit 1); exit 1; }; }
7326 ac_cv_path_EGREP=$EGREP
7332 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7333 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7334 EGREP="$ac_cv_path_EGREP"
7337 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7339 if test "${ac_cv_header_stdc+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7361 rm -f conftest.$ac_objext
7362 if { (ac_try="$ac_compile"
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_compile") 2>conftest.er1
7370 grep -v '^ *+' conftest.er1 >conftest.err
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest.$ac_objext; then
7378 ac_cv_header_stdc=yes
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 ac_cv_header_stdc=no
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 if test $ac_cv_header_stdc = yes; then
7389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7390 cat >conftest.$ac_ext <<_ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400 $EGREP "memchr" >/dev/null 2>&1; then
7403 ac_cv_header_stdc=no
7409 if test $ac_cv_header_stdc = yes; then
7410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7421 $EGREP "free" >/dev/null 2>&1; then
7424 ac_cv_header_stdc=no
7430 if test $ac_cv_header_stdc = yes; then
7431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7432 if test "$cross_compiling" = yes; then
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7443 #if ((' ' & 0x0FF) == 0x020)
7444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7447 # define ISLOWER(c) \
7448 (('a' <= (c) && (c) <= 'i') \
7449 || ('j' <= (c) && (c) <= 'r') \
7450 || ('s' <= (c) && (c) <= 'z'))
7451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7459 for (i = 0; i < 256; i++)
7460 if (XOR (islower (i), ISLOWER (i))
7461 || toupper (i) != TOUPPER (i))
7466 rm -f conftest$ac_exeext
7467 if { (ac_try="$ac_link"
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_link") 2>&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7477 { (case "(($ac_try" in
7478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482 (eval "$ac_try") 2>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7488 echo "$as_me: program exited with status $ac_status" >&5
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_cv_header_stdc=no
7495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7501 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7502 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7503 if test $ac_cv_header_stdc = yes; then
7505 cat >>confdefs.h <<\_ACEOF
7506 #define STDC_HEADERS 1
7511 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7521 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7522 inttypes.h stdint.h unistd.h
7524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cat >conftest.$ac_ext <<_ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 $ac_includes_default
7538 #include <$ac_header>
7540 rm -f conftest.$ac_objext
7541 if { (ac_try="$ac_compile"
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_compile") 2>conftest.er1
7549 grep -v '^ *+' conftest.er1 >conftest.err
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } && {
7554 test -z "$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7556 } && test -s conftest.$ac_objext; then
7557 eval "$as_ac_Header=yes"
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 eval "$as_ac_Header=no"
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 ac_res=`eval echo '${'$as_ac_Header'}'`
7568 { echo "$as_me:$LINENO: result: $ac_res" >&5
7569 echo "${ECHO_T}$ac_res" >&6; }
7570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7571 cat >>confdefs.h <<_ACEOF
7572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 { echo "$as_me:$LINENO: checking GC library exists" >&5
7581 echo $ECHO_N "checking GC library exists... $ECHO_C" >&6; }
7584 # Check whether --with-gc was given.
7585 if test "${with_gc+set}" = set; then
7586 withval=$with_gc; test x"$with_gc" = xno && { { echo "$as_me:$LINENO: error: You can not build w3m without gc" >&5
7587 echo "$as_me: error: You can not build w3m without gc" >&2;}
7588 { (exit 1); exit 1; }; }
7593 { echo "$as_me:$LINENO: result: $with_gc" >&5
7594 echo "${ECHO_T}$with_gc" >&6; }
7595 test x"$with_gc" = xyes && with_gc="/usr /usr/local ${HOME}"
7596 unset ac_cv_header_gc_h
7597 if test "${ac_cv_header_gc_h+set}" = set; then
7598 { echo "$as_me:$LINENO: checking for gc.h" >&5
7599 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
7600 if test "${ac_cv_header_gc_h+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
7604 echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
7606 # Is the header compilable?
7607 { echo "$as_me:$LINENO: checking gc.h usability" >&5
7608 echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6; }
7609 cat >conftest.$ac_ext <<_ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 $ac_includes_default
7618 rm -f conftest.$ac_objext
7619 if { (ac_try="$ac_compile"
7621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7622 *) ac_try_echo=$ac_try;;
7624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7625 (eval "$ac_compile") 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } && {
7632 test -z "$ac_c_werror_flag" ||
7633 test ! -s conftest.err
7634 } && test -s conftest.$ac_objext; then
7635 ac_header_compiler=yes
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_header_compiler=no
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7645 echo "${ECHO_T}$ac_header_compiler" >&6; }
7647 # Is the header present?
7648 { echo "$as_me:$LINENO: checking gc.h presence" >&5
7649 echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6; }
7650 cat >conftest.$ac_ext <<_ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7658 if { (ac_try="$ac_cpp conftest.$ac_ext"
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } >/dev/null && {
7671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7674 ac_header_preproc=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_header_preproc=no
7682 rm -f conftest.err conftest.$ac_ext
7683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7684 echo "${ECHO_T}$ac_header_preproc" >&6; }
7686 # So? What about this header?
7687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7689 { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5
7690 echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5
7692 echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;}
7693 ac_header_preproc=yes
7696 { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5
7697 echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: gc.h: check for missing prerequisite headers?" >&5
7699 echo "$as_me: WARNING: gc.h: check for missing prerequisite headers?" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5
7701 echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&5
7703 echo "$as_me: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5
7705 echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5
7707 echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;}
7709 ## ----------------------------- ##
7710 ## Report this to satodai@w3m.jp ##
7711 ## ----------------------------- ##
7713 ) | sed "s/^/$as_me: WARNING: /" >&2
7716 { echo "$as_me:$LINENO: checking for gc.h" >&5
7717 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
7718 if test "${ac_cv_header_gc_h+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_header_gc_h=$ac_header_preproc
7723 { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
7724 echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
7729 if test x"$ac_cv_header_gc_h" = xno; then
7730 { echo "$as_me:$LINENO: checking GC header location" >&5
7731 echo $ECHO_N "checking GC header location... $ECHO_C" >&6; }
7732 { echo "$as_me:$LINENO: result: $with_gc" >&5
7733 echo "${ECHO_T}$with_gc" >&6; }
7735 for dir in $with_gc; do
7736 for inc in include include/gc; do
7737 cppflags="$CPPFLAGS"
7738 CPPFLAGS="$CPPFLAGS -I$dir/$inc"
7739 { echo "$as_me:$LINENO: checking $dir/$inc" >&5
7740 echo $ECHO_N "checking $dir/$inc... $ECHO_C" >&6; }
7741 unset ac_cv_header_gc_h
7742 if test "${ac_cv_header_gc_h+set}" = set; then
7743 { echo "$as_me:$LINENO: checking for gc.h" >&5
7744 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
7745 if test "${ac_cv_header_gc_h+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
7749 echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
7751 # Is the header compilable?
7752 { echo "$as_me:$LINENO: checking gc.h usability" >&5
7753 echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6; }
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 $ac_includes_default
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7772 grep -v '^ *+' conftest.er1 >conftest.err
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 ac_header_compiler=yes
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 ac_header_compiler=no
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7790 echo "${ECHO_T}$ac_header_compiler" >&6; }
7792 # Is the header present?
7793 { echo "$as_me:$LINENO: checking gc.h presence" >&5
7794 echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6; }
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7803 if { (ac_try="$ac_cpp conftest.$ac_ext"
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7811 grep -v '^ *+' conftest.er1 >conftest.err
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } >/dev/null && {
7816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7817 test ! -s conftest.err
7819 ac_header_preproc=yes
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7824 ac_header_preproc=no
7827 rm -f conftest.err conftest.$ac_ext
7828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6; }
7831 # So? What about this header?
7832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7834 { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5
7837 echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;}
7838 ac_header_preproc=yes
7841 { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: gc.h: check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: gc.h: check for missing prerequisite headers?" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5
7846 echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;}
7847 { echo "$as_me:$LINENO: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&5
7848 echo "$as_me: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&2;}
7849 { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5
7850 echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;}
7851 { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5
7852 echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;}
7854 ## ----------------------------- ##
7855 ## Report this to satodai@w3m.jp ##
7856 ## ----------------------------- ##
7858 ) | sed "s/^/$as_me: WARNING: /" >&2
7861 { echo "$as_me:$LINENO: checking for gc.h" >&5
7862 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
7863 if test "${ac_cv_header_gc_h+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 ac_cv_header_gc_h=$ac_header_preproc
7868 { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
7869 echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
7872 if test $ac_cv_header_gc_h = yes; then
7873 gcincludedir="$dir/$inc"; CFLAGS="$CFLAGS -I$dir/$inc"; break
7877 CPPFLAGS="$cppflags"
7879 if test x"$gcincludedir" != xno; then
7883 if test x"$gcincludedir" = xno; then
7884 { { echo "$as_me:$LINENO: error: gc.h not found" >&5
7885 echo "$as_me: error: gc.h not found" >&2;}
7886 { (exit 1); exit 1; }; }
7889 unset ac_cv_lib_gc_GC_init
7890 { echo "$as_me:$LINENO: checking for GC_init in -lgc" >&5
7891 echo $ECHO_N "checking for GC_init in -lgc... $ECHO_C" >&6; }
7892 if test "${ac_cv_lib_gc_GC_init+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 ac_check_lib_save_LIBS=$LIBS
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7904 /* Override any GCC internal prototype to avoid an error.
7905 Use char because int might match the return type of a GCC
7906 builtin and then its argument prototype would still apply. */
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext &&
7936 $as_test_x conftest$ac_exeext; then
7937 ac_cv_lib_gc_GC_init=yes
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7942 ac_cv_lib_gc_GC_init=no
7945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7946 conftest$ac_exeext conftest.$ac_ext
7947 LIBS=$ac_check_lib_save_LIBS
7949 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_init" >&5
7950 echo "${ECHO_T}$ac_cv_lib_gc_GC_init" >&6; }
7951 if test $ac_cv_lib_gc_GC_init = yes; then
7955 if test x"$ac_cv_lib_gc_GC_init" = xno; then
7956 { echo "$as_me:$LINENO: checking GC library location" >&5
7957 echo $ECHO_N "checking GC library location... $ECHO_C" >&6; }
7958 { echo "$as_me:$LINENO: result: $with_gc" >&5
7959 echo "${ECHO_T}$with_gc" >&6; }
7961 for dir in $with_gc; do
7963 LDFLAGS="$LDFLAGS -L$dir/lib"
7964 { echo "$as_me:$LINENO: checking $dir" >&5
7965 echo $ECHO_N "checking $dir... $ECHO_C" >&6; }
7966 unset ac_cv_lib_gc_GC_init
7967 { echo "$as_me:$LINENO: checking for GC_init in -lgc" >&5
7968 echo $ECHO_N "checking for GC_init in -lgc... $ECHO_C" >&6; }
7969 if test "${ac_cv_lib_gc_GC_init+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 ac_check_lib_save_LIBS=$LIBS
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7981 /* Override any GCC internal prototype to avoid an error.
7982 Use char because int might match the return type of a GCC
7983 builtin and then its argument prototype would still apply. */
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (ac_try="$ac_link"
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_link") 2>conftest.er1
8005 grep -v '^ *+' conftest.er1 >conftest.err
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && {
8010 test -z "$ac_c_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest$ac_exeext &&
8013 $as_test_x conftest$ac_exeext; then
8014 ac_cv_lib_gc_GC_init=yes
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 ac_cv_lib_gc_GC_init=no
8022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8023 conftest$ac_exeext conftest.$ac_ext
8024 LIBS=$ac_check_lib_save_LIBS
8026 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_init" >&5
8027 echo "${ECHO_T}$ac_cv_lib_gc_GC_init" >&6; }
8028 if test $ac_cv_lib_gc_GC_init = yes; then
8029 gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break
8034 if test x"$gclibdir" = xno; then
8035 { { echo "$as_me:$LINENO: error: libgc not found" >&5
8036 echo "$as_me: error: libgc not found" >&2;}
8037 { (exit 1); exit 1; }; }
8040 { echo "$as_me:$LINENO: checking for zError in -lz" >&5
8041 echo $ECHO_N "checking for zError in -lz... $ECHO_C" >&6; }
8042 if test "${ac_cv_lib_z_zError+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 ac_check_lib_save_LIBS=$LIBS
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8054 /* Override any GCC internal prototype to avoid an error.
8055 Use char because int might match the return type of a GCC
8056 builtin and then its argument prototype would still apply. */
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest$ac_exeext &&
8086 $as_test_x conftest$ac_exeext; then
8087 ac_cv_lib_z_zError=yes
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 ac_cv_lib_z_zError=no
8095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8096 conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8099 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zError" >&5
8100 echo "${ECHO_T}$ac_cv_lib_z_zError" >&6; }
8101 if test $ac_cv_lib_z_zError = yes; then
8102 AUXBIN_TARGETS="$AUXBIN_TARGETS inflate\$(EXT)"
8106 cat >>confdefs.h <<\_ACEOF
8107 #define AUXBIN_TARGETS "$AUXBIN_TARGETS"
8113 *cygwin*|*os2-emx*|*mingw*)
8114 cat >>confdefs.h <<\_ACEOF
8115 #define USE_BINMODE_STREAM 1
8127 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8128 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8129 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8130 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 #include <sys/types.h>
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8169 eval "$as_ac_Header=yes"
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 eval "$as_ac_Header=no"
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 ac_res=`eval echo '${'$as_ac_Header'}'`
8180 { echo "$as_me:$LINENO: result: $ac_res" >&5
8181 echo "${ECHO_T}$ac_res" >&6; }
8182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8187 ac_header_dirent=$ac_hdr; break
8191 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8192 if test $ac_header_dirent = dirent.h; then
8193 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8194 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8195 if test "${ac_cv_search_opendir+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 ac_func_search_save_LIBS=$LIBS
8199 cat >conftest.$ac_ext <<_ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8206 /* Override any GCC internal prototype to avoid an error.
8207 Use char because int might match the return type of a GCC
8208 builtin and then its argument prototype would still apply. */
8221 for ac_lib in '' dir; do
8222 if test -z "$ac_lib"; then
8223 ac_res="none required"
8226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8228 rm -f conftest.$ac_objext conftest$ac_exeext
8229 if { (ac_try="$ac_link"
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_link") 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest$ac_exeext &&
8245 $as_test_x conftest$ac_exeext; then
8246 ac_cv_search_opendir=$ac_res
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8256 if test "${ac_cv_search_opendir+set}" = set; then
8260 if test "${ac_cv_search_opendir+set}" = set; then
8263 ac_cv_search_opendir=no
8266 LIBS=$ac_func_search_save_LIBS
8268 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8269 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8270 ac_res=$ac_cv_search_opendir
8271 if test "$ac_res" != no; then
8272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8277 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8278 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8279 if test "${ac_cv_search_opendir+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 ac_func_search_save_LIBS=$LIBS
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8290 /* Override any GCC internal prototype to avoid an error.
8291 Use char because int might match the return type of a GCC
8292 builtin and then its argument prototype would still apply. */
8305 for ac_lib in '' x; do
8306 if test -z "$ac_lib"; then
8307 ac_res="none required"
8310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (ac_try="$ac_link"
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_link") 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest$ac_exeext &&
8329 $as_test_x conftest$ac_exeext; then
8330 ac_cv_search_opendir=$ac_res
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8340 if test "${ac_cv_search_opendir+set}" = set; then
8344 if test "${ac_cv_search_opendir+set}" = set; then
8347 ac_cv_search_opendir=no
8350 LIBS=$ac_func_search_save_LIBS
8352 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8353 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8354 ac_res=$ac_cv_search_opendir
8355 if test "$ac_res" != no; then
8356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8362 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8364 if test "${ac_cv_header_stdc+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_compile") 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } && {
8400 test -z "$ac_c_werror_flag" ||
8401 test ! -s conftest.err
8402 } && test -s conftest.$ac_objext; then
8403 ac_cv_header_stdc=yes
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 ac_cv_header_stdc=no
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413 if test $ac_cv_header_stdc = yes; then
8414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8425 $EGREP "memchr" >/dev/null 2>&1; then
8428 ac_cv_header_stdc=no
8434 if test $ac_cv_header_stdc = yes; then
8435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8436 cat >conftest.$ac_ext <<_ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8446 $EGREP "free" >/dev/null 2>&1; then
8449 ac_cv_header_stdc=no
8455 if test $ac_cv_header_stdc = yes; then
8456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8457 if test "$cross_compiling" = yes; then
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8468 #if ((' ' & 0x0FF) == 0x020)
8469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8472 # define ISLOWER(c) \
8473 (('a' <= (c) && (c) <= 'i') \
8474 || ('j' <= (c) && (c) <= 'r') \
8475 || ('s' <= (c) && (c) <= 'z'))
8476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8484 for (i = 0; i < 256; i++)
8485 if (XOR (islower (i), ISLOWER (i))
8486 || toupper (i) != TOUPPER (i))
8491 rm -f conftest$ac_exeext
8492 if { (ac_try="$ac_link"
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_link") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8513 echo "$as_me: program exited with status $ac_status" >&5
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_cv_header_stdc=no
8520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8526 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8527 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8528 if test $ac_cv_header_stdc = yes; then
8530 cat >>confdefs.h <<\_ACEOF
8531 #define STDC_HEADERS 1
8536 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8537 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8538 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 #include <sys/types.h>
8548 #include <sys/wait.h>
8550 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8553 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8561 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8566 rm -f conftest.$ac_objext
8567 if { (ac_try="$ac_compile"
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_compile") 2>conftest.er1
8575 grep -v '^ *+' conftest.er1 >conftest.err
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } && {
8580 test -z "$ac_c_werror_flag" ||
8581 test ! -s conftest.err
8582 } && test -s conftest.$ac_objext; then
8583 ac_cv_header_sys_wait_h=yes
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8588 ac_cv_header_sys_wait_h=no
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8594 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8595 if test $ac_cv_header_sys_wait_h = yes; then
8597 cat >>confdefs.h <<\_ACEOF
8598 #define HAVE_SYS_WAIT_H 1
8603 if test "${ac_cv_header_termios_h+set}" = set; then
8604 { echo "$as_me:$LINENO: checking for termios.h" >&5
8605 echo $ECHO_N "checking for termios.h... $ECHO_C" >&6; }
8606 if test "${ac_cv_header_termios_h+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 { echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
8610 echo "${ECHO_T}$ac_cv_header_termios_h" >&6; }
8612 # Is the header compilable?
8613 { echo "$as_me:$LINENO: checking termios.h usability" >&5
8614 echo $ECHO_N "checking termios.h usability... $ECHO_C" >&6; }
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8622 #include <termios.h>
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_c_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8641 ac_header_compiler=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_header_compiler=no
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8651 echo "${ECHO_T}$ac_header_compiler" >&6; }
8653 # Is the header present?
8654 { echo "$as_me:$LINENO: checking termios.h presence" >&5
8655 echo $ECHO_N "checking termios.h presence... $ECHO_C" >&6; }
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 #include <termios.h>
8664 if { (ac_try="$ac_cpp conftest.$ac_ext"
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8672 grep -v '^ *+' conftest.er1 >conftest.err
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } >/dev/null && {
8677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8680 ac_header_preproc=yes
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_header_preproc=no
8688 rm -f conftest.err conftest.$ac_ext
8689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8690 echo "${ECHO_T}$ac_header_preproc" >&6; }
8692 # So? What about this header?
8693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695 { echo "$as_me:$LINENO: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&5
8696 echo "$as_me: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the compiler's result" >&5
8698 echo "$as_me: WARNING: termios.h: proceeding with the compiler's result" >&2;}
8699 ac_header_preproc=yes
8702 { echo "$as_me:$LINENO: WARNING: termios.h: present but cannot be compiled" >&5
8703 echo "$as_me: WARNING: termios.h: present but cannot be compiled" >&2;}
8704 { echo "$as_me:$LINENO: WARNING: termios.h: check for missing prerequisite headers?" >&5
8705 echo "$as_me: WARNING: termios.h: check for missing prerequisite headers?" >&2;}
8706 { echo "$as_me:$LINENO: WARNING: termios.h: see the Autoconf documentation" >&5
8707 echo "$as_me: WARNING: termios.h: see the Autoconf documentation" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: termios.h: section \"Present But Cannot Be Compiled\"" >&5
8709 echo "$as_me: WARNING: termios.h: section \"Present But Cannot Be Compiled\"" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the preprocessor's result" >&5
8711 echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: termios.h: in the future, the compiler will take precedence" >&5
8713 echo "$as_me: WARNING: termios.h: in the future, the compiler will take precedence" >&2;}
8715 ## ----------------------------- ##
8716 ## Report this to satodai@w3m.jp ##
8717 ## ----------------------------- ##
8719 ) | sed "s/^/$as_me: WARNING: /" >&2
8722 { echo "$as_me:$LINENO: checking for termios.h" >&5
8723 echo $ECHO_N "checking for termios.h... $ECHO_C" >&6; }
8724 if test "${ac_cv_header_termios_h+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 ac_cv_header_termios_h=$ac_header_preproc
8729 { echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
8730 echo "${ECHO_T}$ac_cv_header_termios_h" >&6; }
8733 if test $ac_cv_header_termios_h = yes; then
8734 cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_TERMIOS_H 1
8739 if test "${ac_cv_header_termio_h+set}" = set; then
8740 { echo "$as_me:$LINENO: checking for termio.h" >&5
8741 echo $ECHO_N "checking for termio.h... $ECHO_C" >&6; }
8742 if test "${ac_cv_header_termio_h+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 { echo "$as_me:$LINENO: result: $ac_cv_header_termio_h" >&5
8746 echo "${ECHO_T}$ac_cv_header_termio_h" >&6; }
8748 # Is the header compilable?
8749 { echo "$as_me:$LINENO: checking termio.h usability" >&5
8750 echo $ECHO_N "checking termio.h usability... $ECHO_C" >&6; }
8751 cat >conftest.$ac_ext <<_ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8757 $ac_includes_default
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_compile") 2>conftest.er1
8769 grep -v '^ *+' conftest.er1 >conftest.err
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest.$ac_objext; then
8777 ac_header_compiler=yes
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_header_compiler=no
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8787 echo "${ECHO_T}$ac_header_compiler" >&6; }
8789 # Is the header present?
8790 { echo "$as_me:$LINENO: checking termio.h presence" >&5
8791 echo $ECHO_N "checking termio.h presence... $ECHO_C" >&6; }
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8800 if { (ac_try="$ac_cpp conftest.$ac_ext"
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8808 grep -v '^ *+' conftest.er1 >conftest.err
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } >/dev/null && {
8813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8816 ac_header_preproc=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_header_preproc=no
8824 rm -f conftest.err conftest.$ac_ext
8825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8826 echo "${ECHO_T}$ac_header_preproc" >&6; }
8828 # So? What about this header?
8829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8831 { echo "$as_me:$LINENO: WARNING: termio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8832 echo "$as_me: WARNING: termio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: termio.h: proceeding with the compiler's result" >&5
8834 echo "$as_me: WARNING: termio.h: proceeding with the compiler's result" >&2;}
8835 ac_header_preproc=yes
8838 { echo "$as_me:$LINENO: WARNING: termio.h: present but cannot be compiled" >&5
8839 echo "$as_me: WARNING: termio.h: present but cannot be compiled" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: termio.h: check for missing prerequisite headers?" >&5
8841 echo "$as_me: WARNING: termio.h: check for missing prerequisite headers?" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: termio.h: see the Autoconf documentation" >&5
8843 echo "$as_me: WARNING: termio.h: see the Autoconf documentation" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: termio.h: section \"Present But Cannot Be Compiled\"" >&5
8845 echo "$as_me: WARNING: termio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: termio.h: proceeding with the preprocessor's result" >&5
8847 echo "$as_me: WARNING: termio.h: proceeding with the preprocessor's result" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: termio.h: in the future, the compiler will take precedence" >&5
8849 echo "$as_me: WARNING: termio.h: in the future, the compiler will take precedence" >&2;}
8851 ## ----------------------------- ##
8852 ## Report this to satodai@w3m.jp ##
8853 ## ----------------------------- ##
8855 ) | sed "s/^/$as_me: WARNING: /" >&2
8858 { echo "$as_me:$LINENO: checking for termio.h" >&5
8859 echo $ECHO_N "checking for termio.h... $ECHO_C" >&6; }
8860 if test "${ac_cv_header_termio_h+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 ac_cv_header_termio_h=$ac_header_preproc
8865 { echo "$as_me:$LINENO: result: $ac_cv_header_termio_h" >&5
8866 echo "${ECHO_T}$ac_cv_header_termio_h" >&6; }
8869 if test $ac_cv_header_termio_h = yes; then
8870 cat >>confdefs.h <<\_ACEOF
8871 #define HAVE_TERMIO_H 1
8875 if test "${ac_cv_header_sgtty_h+set}" = set; then
8876 { echo "$as_me:$LINENO: checking for sgtty.h" >&5
8877 echo $ECHO_N "checking for sgtty.h... $ECHO_C" >&6; }
8878 if test "${ac_cv_header_sgtty_h+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 { echo "$as_me:$LINENO: result: $ac_cv_header_sgtty_h" >&5
8882 echo "${ECHO_T}$ac_cv_header_sgtty_h" >&6; }
8884 # Is the header compilable?
8885 { echo "$as_me:$LINENO: checking sgtty.h usability" >&5
8886 echo $ECHO_N "checking sgtty.h usability... $ECHO_C" >&6; }
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893 $ac_includes_default
8896 rm -f conftest.$ac_objext
8897 if { (ac_try="$ac_compile"
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_compile") 2>conftest.er1
8905 grep -v '^ *+' conftest.er1 >conftest.err
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && {
8910 test -z "$ac_c_werror_flag" ||
8911 test ! -s conftest.err
8912 } && test -s conftest.$ac_objext; then
8913 ac_header_compiler=yes
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_header_compiler=no
8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8923 echo "${ECHO_T}$ac_header_compiler" >&6; }
8925 # Is the header present?
8926 { echo "$as_me:$LINENO: checking sgtty.h presence" >&5
8927 echo $ECHO_N "checking sgtty.h presence... $ECHO_C" >&6; }
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8936 if { (ac_try="$ac_cpp conftest.$ac_ext"
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8944 grep -v '^ *+' conftest.er1 >conftest.err
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } >/dev/null && {
8949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8950 test ! -s conftest.err
8952 ac_header_preproc=yes
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8957 ac_header_preproc=no
8960 rm -f conftest.err conftest.$ac_ext
8961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8962 echo "${ECHO_T}$ac_header_preproc" >&6; }
8964 # So? What about this header?
8965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8967 { echo "$as_me:$LINENO: WARNING: sgtty.h: accepted by the compiler, rejected by the preprocessor!" >&5
8968 echo "$as_me: WARNING: sgtty.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8969 { echo "$as_me:$LINENO: WARNING: sgtty.h: proceeding with the compiler's result" >&5
8970 echo "$as_me: WARNING: sgtty.h: proceeding with the compiler's result" >&2;}
8971 ac_header_preproc=yes
8974 { echo "$as_me:$LINENO: WARNING: sgtty.h: present but cannot be compiled" >&5
8975 echo "$as_me: WARNING: sgtty.h: present but cannot be compiled" >&2;}
8976 { echo "$as_me:$LINENO: WARNING: sgtty.h: check for missing prerequisite headers?" >&5
8977 echo "$as_me: WARNING: sgtty.h: check for missing prerequisite headers?" >&2;}
8978 { echo "$as_me:$LINENO: WARNING: sgtty.h: see the Autoconf documentation" >&5
8979 echo "$as_me: WARNING: sgtty.h: see the Autoconf documentation" >&2;}
8980 { echo "$as_me:$LINENO: WARNING: sgtty.h: section \"Present But Cannot Be Compiled\"" >&5
8981 echo "$as_me: WARNING: sgtty.h: section \"Present But Cannot Be Compiled\"" >&2;}
8982 { echo "$as_me:$LINENO: WARNING: sgtty.h: proceeding with the preprocessor's result" >&5
8983 echo "$as_me: WARNING: sgtty.h: proceeding with the preprocessor's result" >&2;}
8984 { echo "$as_me:$LINENO: WARNING: sgtty.h: in the future, the compiler will take precedence" >&5
8985 echo "$as_me: WARNING: sgtty.h: in the future, the compiler will take precedence" >&2;}
8987 ## ----------------------------- ##
8988 ## Report this to satodai@w3m.jp ##
8989 ## ----------------------------- ##
8991 ) | sed "s/^/$as_me: WARNING: /" >&2
8994 { echo "$as_me:$LINENO: checking for sgtty.h" >&5
8995 echo $ECHO_N "checking for sgtty.h... $ECHO_C" >&6; }
8996 if test "${ac_cv_header_sgtty_h+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 ac_cv_header_sgtty_h=$ac_header_preproc
9001 { echo "$as_me:$LINENO: result: $ac_cv_header_sgtty_h" >&5
9002 echo "${ECHO_T}$ac_cv_header_sgtty_h" >&6; }
9005 if test $ac_cv_header_sgtty_h = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_SGTTY_H 1
9019 if test "${ac_cv_header_float_h+set}" = set; then
9020 { echo "$as_me:$LINENO: checking for float.h" >&5
9021 echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
9022 if test "${ac_cv_header_float_h+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
9026 echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
9028 # Is the header compilable?
9029 { echo "$as_me:$LINENO: checking float.h usability" >&5
9030 echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
9031 cat >conftest.$ac_ext <<_ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 $ac_includes_default
9040 rm -f conftest.$ac_objext
9041 if { (ac_try="$ac_compile"
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_compile") 2>conftest.er1
9049 grep -v '^ *+' conftest.er1 >conftest.err
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } && {
9054 test -z "$ac_c_werror_flag" ||
9055 test ! -s conftest.err
9056 } && test -s conftest.$ac_objext; then
9057 ac_header_compiler=yes
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9062 ac_header_compiler=no
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9067 echo "${ECHO_T}$ac_header_compiler" >&6; }
9069 # Is the header present?
9070 { echo "$as_me:$LINENO: checking float.h presence" >&5
9071 echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
9072 cat >conftest.$ac_ext <<_ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9080 if { (ac_try="$ac_cpp conftest.$ac_ext"
9082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9083 *) ac_try_echo=$ac_try;;
9085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9088 grep -v '^ *+' conftest.er1 >conftest.err
9090 cat conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } >/dev/null && {
9093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9094 test ! -s conftest.err
9096 ac_header_preproc=yes
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 ac_header_preproc=no
9104 rm -f conftest.err conftest.$ac_ext
9105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9106 echo "${ECHO_T}$ac_header_preproc" >&6; }
9108 # So? What about this header?
9109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9111 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
9112 echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
9114 echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
9115 ac_header_preproc=yes
9118 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
9119 echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
9120 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5
9121 echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;}
9122 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
9123 echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
9124 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5
9125 echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
9127 echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
9129 echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
9131 ## ----------------------------- ##
9132 ## Report this to satodai@w3m.jp ##
9133 ## ----------------------------- ##
9135 ) | sed "s/^/$as_me: WARNING: /" >&2
9138 { echo "$as_me:$LINENO: checking for float.h" >&5
9139 echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
9140 if test "${ac_cv_header_float_h+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 ac_cv_header_float_h=$ac_header_preproc
9145 { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
9146 echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
9149 if test $ac_cv_header_float_h = yes; then
9150 cat >>confdefs.h <<\_ACEOF
9151 #define HAVE_FLOAT_H 1
9157 if test "${ac_cv_header_sys_select_h+set}" = set; then
9158 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
9159 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
9160 if test "${ac_cv_header_sys_select_h+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
9164 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
9166 # Is the header compilable?
9167 { echo "$as_me:$LINENO: checking sys/select.h usability" >&5
9168 echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
9169 cat >conftest.$ac_ext <<_ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 #include <sys/select.h>
9178 rm -f conftest.$ac_objext
9179 if { (ac_try="$ac_compile"
9181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182 *) ac_try_echo=$ac_try;;
9184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9185 (eval "$ac_compile") 2>conftest.er1
9187 grep -v '^ *+' conftest.er1 >conftest.err
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } && {
9192 test -z "$ac_c_werror_flag" ||
9193 test ! -s conftest.err
9194 } && test -s conftest.$ac_objext; then
9195 ac_header_compiler=yes
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 ac_header_compiler=no
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9205 echo "${ECHO_T}$ac_header_compiler" >&6; }
9207 # Is the header present?
9208 { echo "$as_me:$LINENO: checking sys/select.h presence" >&5
9209 echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
9210 cat >conftest.$ac_ext <<_ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 #include <sys/select.h>
9218 if { (ac_try="$ac_cpp conftest.$ac_ext"
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9226 grep -v '^ *+' conftest.er1 >conftest.err
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } >/dev/null && {
9231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9234 ac_header_preproc=yes
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 ac_header_preproc=no
9242 rm -f conftest.err conftest.$ac_ext
9243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9244 echo "${ECHO_T}$ac_header_preproc" >&6; }
9246 # So? What about this header?
9247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9249 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
9250 echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
9252 echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
9253 ac_header_preproc=yes
9256 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
9257 echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
9259 echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
9261 echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
9263 echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
9265 echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
9267 echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
9269 ## ----------------------------- ##
9270 ## Report this to satodai@w3m.jp ##
9271 ## ----------------------------- ##
9273 ) | sed "s/^/$as_me: WARNING: /" >&2
9276 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
9277 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
9278 if test "${ac_cv_header_sys_select_h+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 ac_cv_header_sys_select_h=$ac_header_preproc
9283 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
9284 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
9287 if test $ac_cv_header_sys_select_h = yes; then
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_SYS_SELECT_H 1
9295 if test "${ac_cv_header_locale_h+set}" = set; then
9296 { echo "$as_me:$LINENO: checking for locale.h" >&5
9297 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
9298 if test "${ac_cv_header_locale_h+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
9302 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
9304 # Is the header compilable?
9305 { echo "$as_me:$LINENO: checking locale.h usability" >&5
9306 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
9307 cat >conftest.$ac_ext <<_ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 $ac_includes_default
9316 rm -f conftest.$ac_objext
9317 if { (ac_try="$ac_compile"
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_compile") 2>conftest.er1
9325 grep -v '^ *+' conftest.er1 >conftest.err
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest.$ac_objext; then
9333 ac_header_compiler=yes
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_header_compiler=no
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9343 echo "${ECHO_T}$ac_header_compiler" >&6; }
9345 # Is the header present?
9346 { echo "$as_me:$LINENO: checking locale.h presence" >&5
9347 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9356 if { (ac_try="$ac_cpp conftest.$ac_ext"
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9364 grep -v '^ *+' conftest.er1 >conftest.err
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } >/dev/null && {
9369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9370 test ! -s conftest.err
9372 ac_header_preproc=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_header_preproc=no
9380 rm -f conftest.err conftest.$ac_ext
9381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9382 echo "${ECHO_T}$ac_header_preproc" >&6; }
9384 # So? What about this header?
9385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9387 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
9388 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
9390 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
9391 ac_header_preproc=yes
9394 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
9395 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
9397 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
9399 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
9401 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
9403 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
9405 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
9407 ## ----------------------------- ##
9408 ## Report this to satodai@w3m.jp ##
9409 ## ----------------------------- ##
9411 ) | sed "s/^/$as_me: WARNING: /" >&2
9414 { echo "$as_me:$LINENO: checking for locale.h" >&5
9415 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
9416 if test "${ac_cv_header_locale_h+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 ac_cv_header_locale_h=$ac_header_preproc
9421 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
9422 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
9425 if test $ac_cv_header_locale_h = yes; then
9426 cat >>confdefs.h <<\_ACEOF
9427 #define HAVE_LOCALE_H 1
9433 if test "${ac_cv_header_stdint_h+set}" = set; then
9434 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9435 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9436 if test "${ac_cv_header_stdint_h+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
9440 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
9442 # Is the header compilable?
9443 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
9444 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 $ac_includes_default
9454 rm -f conftest.$ac_objext
9455 if { (ac_try="$ac_compile"
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_compile") 2>conftest.er1
9463 grep -v '^ *+' conftest.er1 >conftest.err
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest.$ac_objext; then
9471 ac_header_compiler=yes
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_header_compiler=no
9479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9481 echo "${ECHO_T}$ac_header_compiler" >&6; }
9483 # Is the header present?
9484 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
9485 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9494 if { (ac_try="$ac_cpp conftest.$ac_ext"
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } >/dev/null && {
9507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9510 ac_header_preproc=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_preproc=no
9518 rm -f conftest.err conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520 echo "${ECHO_T}$ac_header_preproc" >&6; }
9522 # So? What about this header?
9523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9525 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
9526 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
9528 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
9529 ac_header_preproc=yes
9532 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
9533 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
9535 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
9537 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
9539 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
9541 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
9543 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
9545 ## ----------------------------- ##
9546 ## Report this to satodai@w3m.jp ##
9547 ## ----------------------------- ##
9549 ) | sed "s/^/$as_me: WARNING: /" >&2
9552 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9553 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9554 if test "${ac_cv_header_stdint_h+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 ac_cv_header_stdint_h=$ac_header_preproc
9559 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
9560 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
9563 if test $ac_cv_header_stdint_h = yes; then
9564 cat >>confdefs.h <<\_ACEOF
9565 #define HAVE_STDINT_H 1
9571 if test "${ac_cv_header_inttypes_h+set}" = set; then
9572 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9573 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9574 if test "${ac_cv_header_inttypes_h+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
9578 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
9580 # Is the header compilable?
9581 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
9582 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
9583 cat >conftest.$ac_ext <<_ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 $ac_includes_default
9590 #include <inttypes.h>
9592 rm -f conftest.$ac_objext
9593 if { (ac_try="$ac_compile"
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_compile") 2>conftest.er1
9601 grep -v '^ *+' conftest.er1 >conftest.err
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } && {
9606 test -z "$ac_c_werror_flag" ||
9607 test ! -s conftest.err
9608 } && test -s conftest.$ac_objext; then
9609 ac_header_compiler=yes
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_header_compiler=no
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9619 echo "${ECHO_T}$ac_header_compiler" >&6; }
9621 # Is the header present?
9622 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
9623 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
9624 cat >conftest.$ac_ext <<_ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 #include <inttypes.h>
9632 if { (ac_try="$ac_cpp conftest.$ac_ext"
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } >/dev/null && {
9645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9648 ac_header_preproc=yes
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_header_preproc=no
9656 rm -f conftest.err conftest.$ac_ext
9657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9658 echo "${ECHO_T}$ac_header_preproc" >&6; }
9660 # So? What about this header?
9661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9663 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
9664 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9665 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
9666 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
9667 ac_header_preproc=yes
9670 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
9671 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
9673 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
9675 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
9676 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
9677 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
9679 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
9681 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
9683 ## ----------------------------- ##
9684 ## Report this to satodai@w3m.jp ##
9685 ## ----------------------------- ##
9687 ) | sed "s/^/$as_me: WARNING: /" >&2
9690 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9691 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9692 if test "${ac_cv_header_inttypes_h+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 ac_cv_header_inttypes_h=$ac_header_preproc
9697 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
9698 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
9701 if test $ac_cv_header_inttypes_h = yes; then
9702 cat >>confdefs.h <<\_ACEOF
9703 #define HAVE_INTTYPES_H 1
9710 { echo "$as_me:$LINENO: checking for long long" >&5
9711 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9712 if test "${ac_cv_type_long_long+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 $ac_includes_default
9722 typedef long long ac__type_new_;
9726 if ((ac__type_new_ *) 0)
9728 if (sizeof (ac__type_new_))
9734 rm -f conftest.$ac_objext
9735 if { (ac_try="$ac_compile"
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_compile") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest.$ac_objext; then
9751 ac_cv_type_long_long=yes
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_cv_type_long_long=no
9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9762 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9764 # The cast to long int works around a bug in the HP C Compiler
9765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9767 # This bug is HP SR number 8606223364.
9768 { echo "$as_me:$LINENO: checking size of long long" >&5
9769 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9770 if test "${ac_cv_sizeof_long_long+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 if test "$cross_compiling" = yes; then
9774 # Depending upon the size, compute the lo and hi bounds.
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 $ac_includes_default
9782 typedef long long ac__type_sizeof_;
9786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9793 rm -f conftest.$ac_objext
9794 if { (ac_try="$ac_compile"
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_compile") 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest.$ac_objext; then
9812 cat >conftest.$ac_ext <<_ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 $ac_includes_default
9819 typedef long long ac__type_sizeof_;
9823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9830 rm -f conftest.$ac_objext
9831 if { (ac_try="$ac_compile"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 ac_hi=$ac_mid; break
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_lo=`expr $ac_mid + 1`
9853 if test $ac_lo -le $ac_mid; then
9857 ac_mid=`expr 2 '*' $ac_mid + 1`
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 typedef long long ac__type_sizeof_;
9877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9884 rm -f conftest.$ac_objext
9885 if { (ac_try="$ac_compile"
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_compile") 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && {
9898 test -z "$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 } && test -s conftest.$ac_objext; then
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 $ac_includes_default
9910 typedef long long ac__type_sizeof_;
9914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 ac_lo=$ac_mid; break
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_hi=`expr '(' $ac_mid ')' - 1`
9944 if test $ac_mid -le $ac_hi; then
9948 ac_mid=`expr 2 '*' $ac_mid`
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 # Binary search between lo and hi bounds.
9965 while test "x$ac_lo" != "x$ac_hi"; do
9966 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 $ac_includes_default
9974 typedef long long ac__type_sizeof_;
9978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9985 rm -f conftest.$ac_objext
9986 if { (ac_try="$ac_compile"
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_compile") 2>conftest.er1
9994 grep -v '^ *+' conftest.er1 >conftest.err
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest.$ac_objext; then
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_lo=`expr '(' $ac_mid ')' + 1`
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10014 '') if test "$ac_cv_type_long_long" = yes; then
10015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10016 See \`config.log' for more details." >&5
10017 echo "$as_me: error: cannot compute sizeof (long long)
10018 See \`config.log' for more details." >&2;}
10019 { (exit 77); exit 77; }; }
10021 ac_cv_sizeof_long_long=0
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 $ac_includes_default
10032 typedef long long ac__type_sizeof_;
10033 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10034 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10036 #include <stdlib.h>
10041 FILE *f = fopen ("conftest.val", "w");
10044 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10046 long int i = longval ();
10047 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10049 fprintf (f, "%ld\n", i);
10053 unsigned long int i = ulongval ();
10054 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10056 fprintf (f, "%lu\n", i);
10058 return ferror (f) || fclose (f) != 0;
10064 rm -f conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_link") 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10075 { (case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_try") 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_sizeof_long_long=`cat conftest.val`
10086 echo "$as_me: program exited with status $ac_status" >&5
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ( exit $ac_status )
10091 if test "$ac_cv_type_long_long" = yes; then
10092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10093 See \`config.log' for more details." >&5
10094 echo "$as_me: error: cannot compute sizeof (long long)
10095 See \`config.log' for more details." >&2;}
10096 { (exit 77); exit 77; }; }
10098 ac_cv_sizeof_long_long=0
10101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10105 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10106 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10110 cat >>confdefs.h <<_ACEOF
10111 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10141 for ac_func in strcasecmp strcasestr strchr memcpy strerror bcopy setpgrp chdir getcwd getwd readlink setenv putenv strtoll stroq atoll atoq symlink readlink lstat srand48 srandom getpassphrase waitpid setlocale
10143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 cat >conftest.$ac_ext <<_ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10157 #define $ac_func innocuous_$ac_func
10159 /* System header to define __stub macros and hopefully few prototypes,
10160 which can conflict with char $ac_func (); below.
10161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10162 <limits.h> exists even on freestanding compilers. */
10165 # include <limits.h>
10167 # include <assert.h>
10172 /* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10179 /* The GNU C library defines this for functions which it implements
10180 to always fail with ENOSYS. Some functions are actually named
10181 something starting with __ and the normal name is an alias. */
10182 #if defined __stub_$ac_func || defined __stub___$ac_func
10189 return $ac_func ();
10194 rm -f conftest.$ac_objext conftest$ac_exeext
10195 if { (ac_try="$ac_link"
10196 case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_link") 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && {
10208 test -z "$ac_c_werror_flag" ||
10209 test ! -s conftest.err
10210 } && test -s conftest$ac_exeext &&
10211 $as_test_x conftest$ac_exeext; then
10212 eval "$as_ac_var=yes"
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 eval "$as_ac_var=no"
10220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10221 conftest$ac_exeext conftest.$ac_ext
10223 ac_res=`eval echo '${'$as_ac_var'}'`
10224 { echo "$as_me:$LINENO: result: $ac_res" >&5
10225 echo "${ECHO_T}$ac_res" >&6; }
10226 if test `eval echo '${'$as_ac_var'}'` = yes; then
10227 cat >>confdefs.h <<_ACEOF
10228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10235 for ac_func in strftime
10237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 cat >conftest.$ac_ext <<_ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10251 #define $ac_func innocuous_$ac_func
10253 /* System header to define __stub macros and hopefully few prototypes,
10254 which can conflict with char $ac_func (); below.
10255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10256 <limits.h> exists even on freestanding compilers. */
10259 # include <limits.h>
10261 # include <assert.h>
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined __stub_$ac_func || defined __stub___$ac_func
10283 return $ac_func ();
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest$ac_exeext &&
10305 $as_test_x conftest$ac_exeext; then
10306 eval "$as_ac_var=yes"
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 eval "$as_ac_var=no"
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315 conftest$ac_exeext conftest.$ac_ext
10317 ac_res=`eval echo '${'$as_ac_var'}'`
10318 { echo "$as_me:$LINENO: result: $ac_res" >&5
10319 echo "${ECHO_T}$ac_res" >&6; }
10320 if test `eval echo '${'$as_ac_var'}'` = yes; then
10321 cat >>confdefs.h <<_ACEOF
10322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10326 # strftime is in -lintl on SCO UNIX.
10327 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10328 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
10329 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 ac_check_lib_save_LIBS=$LIBS
10333 LIBS="-lintl $LIBS"
10334 cat >conftest.$ac_ext <<_ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10341 /* Override any GCC internal prototype to avoid an error.
10342 Use char because int might match the return type of a GCC
10343 builtin and then its argument prototype would still apply. */
10351 return strftime ();
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (ac_try="$ac_link"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_link") 2>conftest.er1
10365 grep -v '^ *+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest$ac_exeext &&
10373 $as_test_x conftest$ac_exeext; then
10374 ac_cv_lib_intl_strftime=yes
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_cv_lib_intl_strftime=no
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10387 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
10388 if test $ac_cv_lib_intl_strftime = yes; then
10389 cat >>confdefs.h <<\_ACEOF
10390 #define HAVE_STRFTIME 1
10393 LIBS="-lintl $LIBS"
10399 { echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
10400 echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6; }
10401 if test "${ac_cv_func_wait3_rusage+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 if test "$cross_compiling" = yes; then
10405 ac_cv_func_wait3_rusage=no
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 $ac_includes_default
10414 #include <sys/time.h>
10415 #include <sys/resource.h>
10416 #include <sys/wait.h>
10417 /* HP-UX has wait3 but does not fill in rusage at all. */
10423 /* Use a field that we can force nonzero --
10424 voluntary context switches.
10425 For systems like NeXT and OSF/1 that don't set it,
10426 also use the system CPU time. And page faults (I/O) for Linux. */
10428 r.ru_stime.tv_sec = 0;
10429 r.ru_stime.tv_usec = 0;
10430 r.ru_majflt = r.ru_minflt = 0;
10433 case 0: /* Child. */
10434 sleep(1); /* Give up the CPU. */
10437 case -1: /* What can we do? */
10440 default: /* Parent. */
10442 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10444 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10445 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10449 rm -f conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_func_wait3_rusage=yes
10471 echo "$as_me: program exited with status $ac_status" >&5
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ( exit $ac_status )
10476 ac_cv_func_wait3_rusage=no
10478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10483 { echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
10484 echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6; }
10485 if test $ac_cv_func_wait3_rusage = yes; then
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_WAIT3 1
10493 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
10494 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
10495 if test "${ac_cv_func_setpgrp_void+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 if test "$cross_compiling" = yes; then
10499 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
10500 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
10501 { (exit 1); exit 1; }; }
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 $ac_includes_default
10513 /* If this system has a BSD-style setpgrp which takes arguments,
10514 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10515 exit successfully. */
10516 return setpgrp (1,1) != -1;
10521 rm -f conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_func_setpgrp_void=no
10543 echo "$as_me: program exited with status $ac_status" >&5
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ( exit $ac_status )
10548 ac_cv_func_setpgrp_void=yes
10550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
10556 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
10557 if test $ac_cv_func_setpgrp_void = yes; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define SETPGRP_VOID 1
10570 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10571 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10572 if test "${am_cv_langinfo_codeset+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 #include <langinfo.h>
10585 char* cs = nl_langinfo(CODESET);
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (ac_try="$ac_link"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_link") 2>conftest.er1
10599 grep -v '^ *+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest$ac_exeext &&
10607 $as_test_x conftest$ac_exeext; then
10608 am_cv_langinfo_codeset=yes
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 am_cv_langinfo_codeset=no
10616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10617 conftest$ac_exeext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10621 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10622 if test $am_cv_langinfo_codeset = yes; then
10624 cat >>confdefs.h <<\_ACEOF
10625 #define HAVE_LANGINFO_CODESET 1
10633 { echo "$as_me:$LINENO: checking for sys_errlist" >&5
10634 echo $ECHO_N "checking for sys_errlist... $ECHO_C" >&6; }
10635 cat >conftest.$ac_ext <<_ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 extern char *sys_errlist[];
10645 printf(sys_errlist[0]);
10650 rm -f conftest.$ac_objext
10651 if { (ac_try="$ac_compile"
10652 case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657 (eval "$ac_compile") 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest.$ac_objext; then
10667 have_sys_errlist="yes"; cat >>confdefs.h <<\_ACEOF
10668 #define HAVE_SYS_ERRLIST 1
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 have_sys_errlist="no"
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679 { echo "$as_me:$LINENO: result: $have_sys_errlist" >&5
10680 echo "${ECHO_T}$have_sys_errlist" >&6; }
10682 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10683 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <setjmp.h>
10695 if (sigsetjmp(env, 1) != 0) { exit(0); } siglongjmp(env, 1);
10700 rm -f conftest.$ac_objext
10701 if { (ac_try="$ac_compile"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_compile") 2>conftest.er1
10709 grep -v '^ *+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } && {
10714 test -z "$ac_c_werror_flag" ||
10715 test ! -s conftest.err
10716 } && test -s conftest.$ac_objext; then
10717 have_sigsetjmp="yes"; cat >>confdefs.h <<\_ACEOF
10718 #define HAVE_SIGSETJMP 1
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 have_sigsetjmp="no"
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10729 { echo "$as_me:$LINENO: result: $have_sigsetjmp" >&5
10730 echo "${ECHO_T}$have_sigsetjmp" >&6; }
10731 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10732 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10733 if test "${ac_cv_type_signal+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <sys/types.h>
10743 #include <signal.h>
10748 return *(signal (0, 0)) (0) == 1;
10753 rm -f conftest.$ac_objext
10754 if { (ac_try="$ac_compile"
10755 case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 ac_cv_type_signal=int
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_type_signal=void
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10781 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10783 cat >>confdefs.h <<_ACEOF
10784 #define RETSIGTYPE $ac_cv_type_signal
10790 if test x"$ac_cv_type_signal" = xvoid; then
10791 cat >>confdefs.h <<\_ACEOF
10792 #define SIGNAL_RETURN return
10796 cat >>confdefs.h <<\_ACEOF
10797 #define SIGNAL_RETURN return 0
10803 HELP_DIR="$datadir/$PACKAGE"
10804 cat >>confdefs.h <<\_ACEOF
10805 #define HELP_DIR "$HELP_DIR"
10809 RC_DIR="~/.$PACKAGE"
10810 cat >>confdefs.h <<\_ACEOF
10811 #define RC_DIR "$RC_DIR"
10815 DOCDIRS="doc:en_English doc-jp:ja_Japanese"
10816 cat >>confdefs.h <<_ACEOF
10817 #define DOCDIRS "$DOCDIRS"
10822 cvsver=`$AWK '\$1 ~ /Id:/ { print \$3}' $srcdir/ChangeLog`
10823 sed -e 's/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c
10824 CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c`
10825 ac_config_files="$ac_config_files Makefile posubst po/Makefile.in scripts/Makefile scripts/dirlist.cgi scripts/w3mhelp.cgi scripts/w3mmail.cgi scripts/xface2xpm scripts/multipart/Makefile scripts/multipart/multipart.cgi scripts/w3mman/Makefile scripts/w3mman/w3mman scripts/w3mman/w3mman.1 scripts/w3mman/w3mman2html.cgi libwc/Makefile w3mimg/Makefile w3mimg/fb/Makefile w3mimg/x11/Makefile w3mhelp-w3m_en.html w3mhelp-w3m_ja.html w3mhelp-lynx_en.html w3mhelp-lynx_ja.html"
10827 cat >confcache <<\_ACEOF
10828 # This file is a shell script that caches the results of configure
10829 # tests run on this system so they can be shared between configure
10830 # scripts and configure runs, see configure's option --config-cache.
10831 # It is not useful on other systems. If it contains results you don't
10832 # want to keep, you may remove or edit it.
10834 # config.status only pays attention to the cache file if you give it
10835 # the --recheck option to rerun configure.
10837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10839 # following values.
10843 # The following way of writing the cache mishandles newlines in values,
10844 # but we know of no workaround that is simple, portable, and efficient.
10845 # So, we kill variables containing newlines.
10846 # Ultrix sh set writes to stderr and can't be redirected directly,
10847 # and sets the high bit in the cache file unless we assign to the vars.
10849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10850 eval ac_val=\$$ac_var
10854 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10855 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10858 _ | IFS | as_nl) ;; #(
10859 *) $as_unset $ac_var ;;
10865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10866 *${as_nl}ac_space=\ *)
10867 # `set' does not quote correctly, so add quotes (double-quote
10868 # substitution turns \\\\ into \\, and sed turns \\ into \).
10871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10874 # `set' quotes correctly as required by POSIX, so do not add quotes.
10875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10889 if test -w "$cache_file"; then
10890 test "x$cache_file" != "x/dev/null" &&
10891 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10892 echo "$as_me: updating cache $cache_file" >&6;}
10893 cat confcache >$cache_file
10895 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10896 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10902 # Let make expand exec_prefix.
10903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10905 DEFS=-DHAVE_CONFIG_H
10909 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10910 # 1. Remove the extension, and $U if already installed.
10911 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10912 ac_i=`echo "$ac_i" | sed "$ac_script"`
10913 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10914 # will be set to the directory where LIBOBJS objects are built.
10915 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10916 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10918 LIBOBJS=$ac_libobjs
10920 LTLIBOBJS=$ac_ltlibobjs
10924 : ${CONFIG_STATUS=./config.status}
10925 ac_clean_files_save=$ac_clean_files
10926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10927 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10928 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10929 cat >$CONFIG_STATUS <<_ACEOF
10931 # Generated by $as_me.
10932 # Run this file to recreate the current configuration.
10933 # Compiler output produced by configure, useful for debugging
10934 # configure, is in config.log if it exists.
10937 ac_cs_recheck=false
10939 SHELL=\${CONFIG_SHELL-$SHELL}
10942 cat >>$CONFIG_STATUS <<\_ACEOF
10943 ## --------------------- ##
10944 ## M4sh Initialization. ##
10945 ## --------------------- ##
10947 # Be more Bourne compatible
10948 DUALCASE=1; export DUALCASE # for MKS sh
10949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10952 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10953 # is contrary to our usage. Disable this feature.
10954 alias -g '${1+"$@"}'='"$@"'
10955 setopt NO_GLOB_SUBST
10957 case `(set -o) 2>/dev/null` in
10958 *posix*) set -o posix ;;
10967 # Avoid depending upon Character Ranges.
10968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10971 as_cr_digits='0123456789'
10972 as_cr_alnum=$as_cr_Letters$as_cr_digits
10974 # The user is always right.
10975 if test "${PATH_SEPARATOR+set}" != set; then
10976 echo "#! /bin/sh" >conf$$.sh
10977 echo "exit 0" >>conf$$.sh
10979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10987 # Support unset when possible.
10988 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10996 # We need space, tab and new line, in precisely that order. Quoting is
10997 # there to prevent editors from complaining about space-tab.
10998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10999 # splitting by setting IFS to empty value.)
11004 # Find who we are. Look in the path if we contain no directory separator.
11006 *[\\/]* ) as_myself=$0 ;;
11007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11011 test -z "$as_dir" && as_dir=.
11012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11018 # We did not find ourselves, most probably we were run as `sh COMMAND'
11019 # in which case we are not to be found in the path.
11020 if test "x$as_myself" = x; then
11023 if test ! -f "$as_myself"; then
11024 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11025 { (exit 1); exit 1; }
11028 # Work around bugs in pre-3.0 UWIN ksh.
11029 for as_var in ENV MAIL MAILPATH
11030 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11038 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11039 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11040 LC_TELEPHONE LC_TIME
11042 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11043 eval $as_var=C; export $as_var
11045 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11049 # Required to use basename.
11050 if expr a : '\(a\)' >/dev/null 2>&1 &&
11051 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11058 as_basename=basename
11064 # Name of the executable.
11065 as_me=`$as_basename -- "$0" ||
11066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11067 X"$0" : 'X\(//\)$' \| \
11068 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11070 sed '/^.*\/\([^/][^/]*\)\/*$/{
11089 as_lineno_1=$LINENO
11090 as_lineno_2=$LINENO
11091 test "x$as_lineno_1" != "x$as_lineno_2" &&
11092 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11095 # uniformly replaced by the line number. The first 'sed' inserts a
11096 # line-number line after each line using $LINENO; the second 'sed'
11097 # does the real work. The second script uses 'N' to pair each
11098 # line-number line with the line containing $LINENO, and appends
11099 # trailing '-' during substitution so that $LINENO is not a special
11100 # case at line end.
11101 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11102 # scripts with optimization help from Paolo Bonzini. Blame Lee
11103 # E. McMahon (1931-1989) for sed's syntax. :-)
11115 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11118 ' >$as_me.lineno &&
11119 chmod +x "$as_me.lineno" ||
11120 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11121 { (exit 1); exit 1; }; }
11123 # Don't try to exec as it changes $[0], causing all sort of problems
11124 # (the dirname of $[0] is not the place where we might find the
11125 # original and so on. Autoconf is especially sensitive to this).
11126 . "./$as_me.lineno"
11127 # Exit status is that of the last command.
11132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11138 ECHO_C= ECHO_N= ECHO_T=
11139 case `echo -n x` in
11141 case `echo 'x\c'` in
11142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11149 if expr a : '\(a\)' >/dev/null 2>&1 &&
11150 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11156 rm -f conf$$ conf$$.exe conf$$.file
11157 if test -d conf$$.dir; then
11158 rm -f conf$$.dir/conf$$.file
11164 if ln -s conf$$.file conf$$ 2>/dev/null; then
11166 # ... but there are two gotchas:
11167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11169 # In both cases, we have to default to `cp -p'.
11170 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11172 elif ln conf$$.file conf$$ 2>/dev/null; then
11177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11178 rmdir conf$$.dir 2>/dev/null
11180 if mkdir -p . 2>/dev/null; then
11183 test -d ./-p && rmdir ./-p
11187 if test -x / >/dev/null 2>&1; then
11188 as_test_x='test -x'
11190 if ls -dL / >/dev/null 2>&1; then
11197 if test -d "$1"; then
11203 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11204 ???[sx]*):;;*)false;;esac;fi
11208 as_executable_p=$as_test_x
11210 # Sed expression to map a string onto a valid CPP name.
11211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11213 # Sed expression to map a string onto a valid variable name.
11214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11219 # Save the log message, to keep $[0] and so on meaningful, and to
11220 # report actual input values of CONFIG_FILES etc. instead of their
11221 # values after options handling.
11223 This file was extended by w3m $as_me 0.5.2, which was
11224 generated by GNU Autoconf 2.61. Invocation command line was
11226 CONFIG_FILES = $CONFIG_FILES
11227 CONFIG_HEADERS = $CONFIG_HEADERS
11228 CONFIG_LINKS = $CONFIG_LINKS
11229 CONFIG_COMMANDS = $CONFIG_COMMANDS
11232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11237 cat >>$CONFIG_STATUS <<_ACEOF
11238 # Files that config.status was made for.
11239 config_files="$ac_config_files"
11240 config_headers="$ac_config_headers"
11241 config_commands="$ac_config_commands"
11245 cat >>$CONFIG_STATUS <<\_ACEOF
11247 \`$as_me' instantiates files from templates according to the
11248 current configuration.
11250 Usage: $0 [OPTIONS] [FILE]...
11252 -h, --help print this help, then exit
11253 -V, --version print version number and configuration settings, then exit
11254 -q, --quiet do not print progress messages
11255 -d, --debug don't remove temporary files
11256 --recheck update $as_me by reconfiguring in the same conditions
11257 --file=FILE[:TEMPLATE]
11258 instantiate the configuration file FILE
11259 --header=FILE[:TEMPLATE]
11260 instantiate the configuration header FILE
11262 Configuration files:
11265 Configuration headers:
11268 Configuration commands:
11271 Report bugs to <bug-autoconf@gnu.org>."
11274 cat >>$CONFIG_STATUS <<_ACEOF
11276 w3m config.status 0.5.2
11277 configured by $0, generated by GNU Autoconf 2.61,
11278 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11280 Copyright (C) 2006 Free Software Foundation, Inc.
11281 This config.status script is free software; the Free Software Foundation
11282 gives unlimited permission to copy, distribute and modify it."
11289 cat >>$CONFIG_STATUS <<\_ACEOF
11290 # If no file are specified by the user, then we need to provide default
11291 # value. By we need to know if files were specified by the user.
11297 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11298 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11309 # Handling of the options.
11310 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11312 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11313 echo "$ac_cs_version"; exit ;;
11314 --debug | --debu | --deb | --de | --d | -d )
11316 --file | --fil | --fi | --f )
11318 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11319 ac_need_defaults=false;;
11320 --header | --heade | --head | --hea )
11322 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11323 ac_need_defaults=false;;
11325 # Conflict between --help and --header
11326 { echo "$as_me: error: ambiguous option: $1
11327 Try \`$0 --help' for more information." >&2
11328 { (exit 1); exit 1; }; };;
11329 --help | --hel | -h )
11330 echo "$ac_cs_usage"; exit ;;
11331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11335 # This is an error.
11336 -*) { echo "$as_me: error: unrecognized option: $1
11337 Try \`$0 --help' for more information." >&2
11338 { (exit 1); exit 1; }; } ;;
11340 *) ac_config_targets="$ac_config_targets $1"
11341 ac_need_defaults=false ;;
11347 ac_configure_extra_args=
11349 if $ac_cs_silent; then
11351 ac_configure_extra_args="$ac_configure_extra_args --silent"
11355 cat >>$CONFIG_STATUS <<_ACEOF
11356 if \$ac_cs_recheck; then
11357 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11358 CONFIG_SHELL=$SHELL
11359 export CONFIG_SHELL
11360 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11364 cat >>$CONFIG_STATUS <<\_ACEOF
11368 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11369 ## Running $as_me. ##
11375 cat >>$CONFIG_STATUS <<_ACEOF
11379 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11380 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11382 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11383 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11384 LINGUAS="${LINGUAS-%UNSET%}"
11389 cat >>$CONFIG_STATUS <<\_ACEOF
11391 # Handling of arguments.
11392 for ac_config_target in $ac_config_targets
11394 case $ac_config_target in
11395 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11396 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11397 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11398 "posubst") CONFIG_FILES="$CONFIG_FILES posubst" ;;
11399 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11400 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11401 "scripts/dirlist.cgi") CONFIG_FILES="$CONFIG_FILES scripts/dirlist.cgi" ;;
11402 "scripts/w3mhelp.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mhelp.cgi" ;;
11403 "scripts/w3mmail.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mmail.cgi" ;;
11404 "scripts/xface2xpm") CONFIG_FILES="$CONFIG_FILES scripts/xface2xpm" ;;
11405 "scripts/multipart/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/multipart/Makefile" ;;
11406 "scripts/multipart/multipart.cgi") CONFIG_FILES="$CONFIG_FILES scripts/multipart/multipart.cgi" ;;
11407 "scripts/w3mman/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/Makefile" ;;
11408 "scripts/w3mman/w3mman") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman" ;;
11409 "scripts/w3mman/w3mman.1") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman.1" ;;
11410 "scripts/w3mman/w3mman2html.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman2html.cgi" ;;
11411 "libwc/Makefile") CONFIG_FILES="$CONFIG_FILES libwc/Makefile" ;;
11412 "w3mimg/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/Makefile" ;;
11413 "w3mimg/fb/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/fb/Makefile" ;;
11414 "w3mimg/x11/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/x11/Makefile" ;;
11415 "w3mhelp-w3m_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_en.html" ;;
11416 "w3mhelp-w3m_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_ja.html" ;;
11417 "w3mhelp-lynx_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_en.html" ;;
11418 "w3mhelp-lynx_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_ja.html" ;;
11420 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11421 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11422 { (exit 1); exit 1; }; };;
11427 # If the user did not use the arguments to specify the items to instantiate,
11428 # then the envvar interface is used. Set only those that are not.
11429 # We use the long form for the default assignment because of an extremely
11430 # bizarre bug on SunOS 4.1.3.
11431 if $ac_need_defaults; then
11432 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11433 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11434 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11437 # Have a temporary directory for convenience. Make it in the build tree
11438 # simply because there is no reason against having it here, and in addition,
11439 # creating and moving files from /tmp can sometimes cause problems.
11440 # Hook for its removal unless debugging.
11441 # Note that there is a small window in which the directory will not be cleaned:
11442 # after its creation but before its name has been assigned to `$tmp'.
11446 trap 'exit_status=$?
11447 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11449 trap '{ (exit 1); exit 1; }' 1 2 13 15
11451 # Create a (secure) tmp directory for tmp files.
11454 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11455 test -n "$tmp" && test -d "$tmp"
11458 tmp=./conf$$-$RANDOM
11459 (umask 077 && mkdir "$tmp")
11462 echo "$me: cannot create a temporary directory in ." >&2
11463 { (exit 1); exit 1; }
11467 # Set up the sed scripts for CONFIG_FILES section.
11470 # No need to generate the scripts if there are no CONFIG_FILES.
11471 # This happens for instance when ./config.status config.h
11472 if test -n "$CONFIG_FILES"; then
11479 for ac_last_try in false false false false false :; do
11480 cat >conf$$subs.sed <<_ACEOF
11481 SHELL!$SHELL$ac_delim
11482 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11483 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11484 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11485 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11486 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11487 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11488 exec_prefix!$exec_prefix$ac_delim
11489 prefix!$prefix$ac_delim
11490 program_transform_name!$program_transform_name$ac_delim
11491 bindir!$bindir$ac_delim
11492 sbindir!$sbindir$ac_delim
11493 libexecdir!$libexecdir$ac_delim
11494 datarootdir!$datarootdir$ac_delim
11495 datadir!$datadir$ac_delim
11496 sysconfdir!$sysconfdir$ac_delim
11497 sharedstatedir!$sharedstatedir$ac_delim
11498 localstatedir!$localstatedir$ac_delim
11499 includedir!$includedir$ac_delim
11500 oldincludedir!$oldincludedir$ac_delim
11501 docdir!$docdir$ac_delim
11502 infodir!$infodir$ac_delim
11503 htmldir!$htmldir$ac_delim
11504 dvidir!$dvidir$ac_delim
11505 pdfdir!$pdfdir$ac_delim
11506 psdir!$psdir$ac_delim
11507 libdir!$libdir$ac_delim
11508 localedir!$localedir$ac_delim
11509 mandir!$mandir$ac_delim
11510 DEFS!$DEFS$ac_delim
11511 ECHO_C!$ECHO_C$ac_delim
11512 ECHO_N!$ECHO_N$ac_delim
11513 ECHO_T!$ECHO_T$ac_delim
11514 LIBS!$LIBS$ac_delim
11515 build_alias!$build_alias$ac_delim
11516 host_alias!$host_alias$ac_delim
11517 target_alias!$target_alias$ac_delim
11518 PACKAGE!$PACKAGE$ac_delim
11519 VERSION!$VERSION$ac_delim
11521 W3M_LANG!$W3M_LANG$ac_delim
11524 CFLAGS!$CFLAGS$ac_delim
11525 LDFLAGS!$LDFLAGS$ac_delim
11526 CPPFLAGS!$CPPFLAGS$ac_delim
11527 ac_ct_CC!$ac_ct_CC$ac_delim
11528 EXEEXT!$EXEEXT$ac_delim
11529 OBJEXT!$OBJEXT$ac_delim
11531 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11532 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11533 INSTALL_DATA!$INSTALL_DATA$ac_delim
11534 LN_S!$LN_S$ac_delim
11535 SET_MAKE!$SET_MAKE$ac_delim
11536 RANLIB!$RANLIB$ac_delim
11537 PERL!$PERL$ac_delim
11540 build!$build$ac_delim
11541 build_cpu!$build_cpu$ac_delim
11542 build_vendor!$build_vendor$ac_delim
11543 build_os!$build_os$ac_delim
11544 host!$host$ac_delim
11545 host_cpu!$host_cpu$ac_delim
11546 host_vendor!$host_vendor$ac_delim
11547 host_os!$host_os$ac_delim
11548 W3M_TARGET!$W3M_TARGET$ac_delim
11549 W3M_LIBS!$W3M_LIBS$ac_delim
11550 USE_M17N!$USE_M17N$ac_delim
11551 USE_UNICODE!$USE_UNICODE$ac_delim
11552 WCTARGET!$WCTARGET$ac_delim
11553 WCCFLAGS!$WCCFLAGS$ac_delim
11554 DISPLAY_CHARSET!$DISPLAY_CHARSET$ac_delim
11555 SYSTEM_CHARSET!$SYSTEM_CHARSET$ac_delim
11556 DOCUMENT_CHARSET!$DOCUMENT_CHARSET$ac_delim
11557 POSUBST!$POSUBST$ac_delim
11558 POLANG!$POLANG$ac_delim
11559 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
11560 USE_NLS!$USE_NLS$ac_delim
11561 MSGFMT!$MSGFMT$ac_delim
11562 GMSGFMT!$GMSGFMT$ac_delim
11563 XGETTEXT!$XGETTEXT$ac_delim
11564 MSGMERGE!$MSGMERGE$ac_delim
11565 LIBICONV!$LIBICONV$ac_delim
11566 LTLIBICONV!$LTLIBICONV$ac_delim
11567 INTLLIBS!$INTLLIBS$ac_delim
11568 LIBINTL!$LIBINTL$ac_delim
11569 LTLIBINTL!$LTLIBINTL$ac_delim
11570 POSUB!$POSUB$ac_delim
11571 INTLTARGET!$INTLTARGET$ac_delim
11572 NLSTARGET!$NLSTARGET$ac_delim
11573 USE_COLOR!$USE_COLOR$ac_delim
11574 USE_ANSI_COLOR!$USE_ANSI_COLOR$ac_delim
11575 USE_BG_COLOR!$USE_BG_COLOR$ac_delim
11576 USE_IMAGE!$USE_IMAGE$ac_delim
11577 USE_W3MIMG_X11!$USE_W3MIMG_X11$ac_delim
11580 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11582 elif $ac_last_try; then
11583 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11584 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11585 { (exit 1); exit 1; }; }
11587 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11591 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11592 if test -n "$ac_eof"; then
11593 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11594 ac_eof=`expr $ac_eof + 1`
11597 cat >>$CONFIG_STATUS <<_ACEOF
11598 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11602 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11603 s/^/s,@/; s/!/@,|#_!!_#|/
11606 s/'"$ac_delim"'$/,g/; t
11608 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11609 ' >>$CONFIG_STATUS <conf$$subs.sed
11610 rm -f conf$$subs.sed
11611 cat >>$CONFIG_STATUS <<_ACEOF
11617 for ac_last_try in false false false false false :; do
11618 cat >conf$$subs.sed <<_ACEOF
11619 USE_W3MIMG_FB!$USE_W3MIMG_FB$ac_delim
11620 W3MIMGDISPLAY_SETUID!$W3MIMGDISPLAY_SETUID$ac_delim
11621 INSTALL_W3MIMGDISPLAY!$INSTALL_W3MIMGDISPLAY$ac_delim
11622 USE_GDKPIXBUF!$USE_GDKPIXBUF$ac_delim
11623 USE_GTK2!$USE_GTK2$ac_delim
11624 USE_IMLIB!$USE_IMLIB$ac_delim
11625 USE_IMLIB2!$USE_IMLIB2$ac_delim
11626 IMGTARGETS!$IMGTARGETS$ac_delim
11627 IMGOBJS!$IMGOBJS$ac_delim
11628 IMGX11CFLAGS!$IMGX11CFLAGS$ac_delim
11629 IMGX11LDFLAGS!$IMGX11LDFLAGS$ac_delim
11630 IMGFBCFLAGS!$IMGFBCFLAGS$ac_delim
11631 IMGFBLDFLAGS!$IMGFBLDFLAGS$ac_delim
11632 USE_XFACE!$USE_XFACE$ac_delim
11633 uncompface!$uncompface$ac_delim
11634 KEYMAP_FILE!$KEYMAP_FILE$ac_delim
11635 HELP_FILE!$HELP_FILE$ac_delim
11636 KEYBIND!$KEYBIND$ac_delim
11637 USE_MENU!$USE_MENU$ac_delim
11638 USE_MOUSE!$USE_MOUSE$ac_delim
11639 USE_HISTORY!$USE_HISTORY$ac_delim
11640 USE_ALARM!$USE_ALARM$ac_delim
11641 USE_COOKIE!$USE_COOKIE$ac_delim
11642 USE_NNTP!$USE_NNTP$ac_delim
11643 USE_GOPHER!$USE_GOPHER$ac_delim
11644 USE_DICT!$USE_DICT$ac_delim
11645 USE_HELP_CGI!$USE_HELP_CGI$ac_delim
11646 USE_EXTERNAL_URI_LOADER!$USE_EXTERNAL_URI_LOADER$ac_delim
11647 USE_W3MMAILER!$USE_W3MMAILER$ac_delim
11648 USE_MIGEMO!$USE_MIGEMO$ac_delim
11649 DEF_MIGEMO_COMMAND!$DEF_MIGEMO_COMMAND$ac_delim
11650 DEF_EDITOR!$DEF_EDITOR$ac_delim
11651 DEF_MAILER!$DEF_MAILER$ac_delim
11652 DEF_EXT_BROWSER!$DEF_EXT_BROWSER$ac_delim
11653 INET6!$INET6$ac_delim
11654 HAVE_OLD_SS_FAMILY!$HAVE_OLD_SS_FAMILY$ac_delim
11655 USE_SSL!$USE_SSL$ac_delim
11656 USE_SSL_VERIFY!$USE_SSL_VERIFY$ac_delim
11657 PKG_CONFIG!$PKG_CONFIG$ac_delim
11658 SSL_CFLAGS!$SSL_CFLAGS$ac_delim
11659 SSL_LIBS!$SSL_LIBS$ac_delim
11660 USE_DIGEST_AUTH!$USE_DIGEST_AUTH$ac_delim
11661 USE_W3M!$USE_W3M$ac_delim
11662 USE_SYSMOUSE!$USE_SYSMOUSE$ac_delim
11663 AUXBIN_TARGETS!$AUXBIN_TARGETS$ac_delim
11664 LIBGC!$LIBGC$ac_delim
11665 GREP!$GREP$ac_delim
11666 EGREP!$EGREP$ac_delim
11667 USE_BINMODE_STREAM!$USE_BINMODE_STREAM$ac_delim
11668 HAVE_SYS_ERRLIST!$HAVE_SYS_ERRLIST$ac_delim
11669 HAVE_SIGSETJMP!$HAVE_SIGSETJMP$ac_delim
11670 RETSIGTYPE!$RETSIGTYPE$ac_delim
11671 SIGNAL_RETURN!$SIGNAL_RETURN$ac_delim
11672 HELP_DIR!$HELP_DIR$ac_delim
11673 RC_DIR!$RC_DIR$ac_delim
11674 DOCDIRS!$DOCDIRS$ac_delim
11675 CURRENT_VERSION!$CURRENT_VERSION$ac_delim
11676 LIBOBJS!$LIBOBJS$ac_delim
11677 LTLIBOBJS!$LTLIBOBJS$ac_delim
11680 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
11682 elif $ac_last_try; then
11683 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11684 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11685 { (exit 1); exit 1; }; }
11687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11691 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11692 if test -n "$ac_eof"; then
11693 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11694 ac_eof=`expr $ac_eof + 1`
11697 cat >>$CONFIG_STATUS <<_ACEOF
11698 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11702 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11703 s/^/s,@/; s/!/@,|#_!!_#|/
11706 s/'"$ac_delim"'$/,g/; t
11708 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11709 ' >>$CONFIG_STATUS <conf$$subs.sed
11710 rm -f conf$$subs.sed
11711 cat >>$CONFIG_STATUS <<_ACEOF
11718 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11719 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11720 # trailing colons and then remove the whole line if VPATH becomes empty
11721 # (actually we leave an empty line to preserve line numbers).
11722 if test "x$srcdir" = x.; then
11723 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11724 s/:*\$(srcdir):*/:/
11725 s/:*\${srcdir}:*/:/
11727 s/^\([^=]*=[ ]*\):*/\1/
11733 cat >>$CONFIG_STATUS <<\_ACEOF
11734 fi # test -n "$CONFIG_FILES"
11737 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11740 :[FHLC]) ac_mode=$ac_tag; continue;;
11742 case $ac_mode$ac_tag in
11744 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11745 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11746 { (exit 1); exit 1; }; };;
11747 :[FH]-) ac_tag=-:-;;
11748 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11765 -) ac_f="$tmp/stdin";;
11766 *) # Look for the file first in the build tree, then in the source tree
11767 # (if the path is not absolute). The absolute path cannot be DOS-style,
11768 # because $ac_f cannot contain `:'.
11772 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11774 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11775 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11776 { (exit 1); exit 1; }; };;
11778 ac_file_inputs="$ac_file_inputs $ac_f"
11781 # Let's still pretend it is `configure' which instantiates (i.e., don't
11782 # use $as_me), people would be surprised to read:
11783 # /* config.h. Generated by config.status. */
11784 configure_input="Generated from "`IFS=:
11785 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11786 if test x"$ac_file" != x-; then
11787 configure_input="$ac_file. $configure_input"
11788 { echo "$as_me:$LINENO: creating $ac_file" >&5
11789 echo "$as_me: creating $ac_file" >&6;}
11793 *:-:* | *:-) cat >"$tmp/stdin";;
11798 ac_dir=`$as_dirname -- "$ac_file" ||
11799 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11800 X"$ac_file" : 'X\(//\)[^/]' \| \
11801 X"$ac_file" : 'X\(//\)$' \| \
11802 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11808 /^X\(\/\/\)[^/].*/{
11823 -*) as_dir=./$as_dir;;
11825 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11829 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11830 *) as_qdir=$as_dir;;
11832 as_dirs="'$as_qdir' $as_dirs"
11833 as_dir=`$as_dirname -- "$as_dir" ||
11834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11835 X"$as_dir" : 'X\(//\)[^/]' \| \
11836 X"$as_dir" : 'X\(//\)$' \| \
11837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11843 /^X\(\/\/\)[^/].*/{
11856 test -d "$as_dir" && break
11858 test -z "$as_dirs" || eval "mkdir $as_dirs"
11859 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11860 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11861 { (exit 1); exit 1; }; }; }
11865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11868 # A ".." for each directory in $ac_dir_suffix.
11869 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11870 case $ac_top_builddir_sub in
11871 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11872 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11875 ac_abs_top_builddir=$ac_pwd
11876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11877 # for backward compatibility:
11878 ac_top_builddir=$ac_top_build_prefix
11881 .) # We are building in place.
11883 ac_top_srcdir=$ac_top_builddir_sub
11884 ac_abs_top_srcdir=$ac_pwd ;;
11885 [\\/]* | ?:[\\/]* ) # Absolute name.
11886 ac_srcdir=$srcdir$ac_dir_suffix;
11887 ac_top_srcdir=$srcdir
11888 ac_abs_top_srcdir=$srcdir ;;
11889 *) # Relative name.
11890 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11891 ac_top_srcdir=$ac_top_build_prefix$srcdir
11892 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11904 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11905 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11909 cat >>$CONFIG_STATUS <<\_ACEOF
11910 # If the template does not know about datarootdir, expand it.
11911 # FIXME: This hack should be removed a few years after 2.60.
11912 ac_datarootdir_hack=; ac_datarootdir_seen=
11914 case `sed -n '/datarootdir/ {
11923 ' $ac_file_inputs` in
11924 *datarootdir*) ac_datarootdir_seen=yes;;
11925 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11926 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11927 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11929 cat >>$CONFIG_STATUS <<_ACEOF
11930 ac_datarootdir_hack='
11931 s&@datadir@&$datadir&g
11932 s&@docdir@&$docdir&g
11933 s&@infodir@&$infodir&g
11934 s&@localedir@&$localedir&g
11935 s&@mandir@&$mandir&g
11936 s&\\\${datarootdir}&$datarootdir&g' ;;
11940 # Neutralize VPATH when `$srcdir' = `.'.
11941 # Shell code in configure.ac might set extrasub.
11942 # FIXME: do we really want to maintain this feature?
11943 cat >>$CONFIG_STATUS <<_ACEOF
11947 cat >>$CONFIG_STATUS <<\_ACEOF
11949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11950 s&@configure_input@&$configure_input&;t t
11951 s&@top_builddir@&$ac_top_builddir_sub&;t t
11952 s&@srcdir@&$ac_srcdir&;t t
11953 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11954 s&@top_srcdir@&$ac_top_srcdir&;t t
11955 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11956 s&@builddir@&$ac_builddir&;t t
11957 s&@abs_builddir@&$ac_abs_builddir&;t t
11958 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11959 s&@INSTALL@&$ac_INSTALL&;t t
11960 $ac_datarootdir_hack
11961 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11963 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11964 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11965 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11966 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11967 which seems to be undefined. Please make sure it is defined." >&5
11968 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11969 which seems to be undefined. Please make sure it is defined." >&2;}
11973 -) cat "$tmp/out"; rm -f "$tmp/out";;
11974 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11983 # Transform confdefs.h into a sed script `conftest.defines', that
11984 # substitutes the proper values into config.h.in to produce config.h.
11985 rm -f conftest.defines conftest.tail
11986 # First, append a space to every undef/define line, to ease matching.
11987 echo 's/$/ /' >conftest.defines
11988 # Then, protect against being on the right side of a sed subst, or in
11989 # an unquoted here document, in config.status. If some macros were
11990 # called several times there might be several #defines for the same
11991 # symbol, which is useless. But do not sort them, since the last
11992 # AC_DEFINE must be honored.
11993 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11994 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11995 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11996 # PARAMS is the parameter list in the macro definition--in most cases, it's
11997 # just an empty string.
11998 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11999 ac_dB='\\)[ (].*,\\1define\\2'
12007 s/^[ ]*#[ ]*define[ ][ ]*//
12012 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12013 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12014 ' >>conftest.defines
12016 # Remove the space that was appended to ease matching.
12017 # Then replace #undef with comments. This is necessary, for
12018 # example, in the case of _POSIX_SOURCE, which is predefined and required
12019 # on some systems where configure will not decide to define it.
12020 # (The regexp can be short, since the line contains either #define or #undef.)
12022 s,^[ #]*u.*,/* & */,' >>conftest.defines
12024 # Break up conftest.defines:
12025 ac_max_sed_lines=50
12027 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12028 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12029 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12031 ac_in='$ac_file_inputs'
12032 ac_out='"$tmp/out1"'
12033 ac_nxt='"$tmp/out2"'
12037 # Write a here document:
12038 cat >>$CONFIG_STATUS <<_ACEOF
12039 # First, check the format of the line:
12040 cat >"\$tmp/defines.sed" <<\\CEOF
12041 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12042 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12046 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12048 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12049 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12050 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12051 grep . conftest.tail >/dev/null || break
12052 rm -f conftest.defines
12053 mv conftest.tail conftest.defines
12055 rm -f conftest.defines conftest.tail
12057 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12058 cat >>$CONFIG_STATUS <<\_ACEOF
12059 if test x"$ac_file" != x-; then
12060 echo "/* $configure_input */" >"$tmp/config.h"
12061 cat "$ac_result" >>"$tmp/config.h"
12062 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12063 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12064 echo "$as_me: $ac_file is unchanged" >&6;}
12067 mv "$tmp/config.h" $ac_file
12070 echo "/* $configure_input */"
12076 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12077 echo "$as_me: executing $ac_file commands" >&6;}
12082 case $ac_file$ac_mode in
12084 for ac_file in $CONFIG_FILES; do
12085 # Support "outfile[:infile[:infile...]]"
12087 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12089 # PO directories have a Makefile.in generated from Makefile.in.in.
12090 case "$ac_file" in */Makefile.in)
12091 # Adjust a relative srcdir.
12092 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12093 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12094 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12095 # In autoconf-2.13 it is called $ac_given_srcdir.
12096 # In autoconf-2.50 it is called $srcdir.
12097 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12098 case "$ac_given_srcdir" in
12099 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12100 /*) top_srcdir="$ac_given_srcdir" ;;
12101 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12103 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12104 rm -f "$ac_dir/POTFILES"
12105 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12106 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12107 POMAKEFILEDEPS="POTFILES.in"
12108 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12109 # on $ac_dir but don't depend on user-specified configuration
12111 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12112 # The LINGUAS file contains the set of available languages.
12113 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12114 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12116 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12117 # Hide the ALL_LINGUAS assigment from automake.
12118 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12119 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12121 # The set of available languages was given in configure.in.
12122 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12125 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12126 # Compute UPDATEPOFILES
12127 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12128 # Compute DUMMYPOFILES
12129 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12131 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12132 case "$ac_given_srcdir" in
12134 *) srcdirpre='$(srcdir)/' ;;
12140 for lang in $ALL_LINGUAS; do
12141 POFILES="$POFILES $srcdirpre$lang.po"
12142 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12143 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12144 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12146 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12147 # environment variable.
12149 if test -n "$ALL_LINGUAS"; then
12150 for presentlang in $ALL_LINGUAS; do
12152 if test "%UNSET%" != "$LINGUAS"; then
12153 desiredlanguages="$LINGUAS"
12155 desiredlanguages="$ALL_LINGUAS"
12157 for desiredlang in $desiredlanguages; do
12158 # Use the presentlang catalog if desiredlang is
12159 # a. equal to presentlang, or
12160 # b. a variant of presentlang (because in this case,
12161 # presentlang can be used as a fallback for messages
12162 # which are not translated in the desiredlang catalog).
12163 case "$desiredlang" in
12164 "$presentlang"*) useit=yes;;
12167 if test $useit = yes; then
12168 INST_LINGUAS="$INST_LINGUAS $presentlang"
12173 if test -n "$INST_LINGUAS"; then
12174 for lang in $INST_LINGUAS; do
12175 CATALOGS="$CATALOGS $lang.gmo"
12178 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12179 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12180 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12181 if test -f "$f"; then
12183 *.orig | *.bak | *~) ;;
12184 *) cat "$f" >> "$ac_dir/Makefile" ;;
12197 { (exit 0); exit 0; }
12199 chmod +x $CONFIG_STATUS
12200 ac_clean_files=$ac_clean_files_save
12203 # configure is writing to config.log, and then calls config.status.
12204 # config.status does its own redirection, appending to config.log.
12205 # Unfortunately, on DOS this fails, as config.log is still kept open
12206 # by configure, so config.status won't be able to write to it; its
12207 # output is simply discarded. So we exec the FD to /dev/null,
12208 # effectively closing config.log, so it can be properly (re)opened and
12209 # appended to by config.status. When coming back to configure, we
12210 # need to make the FD available again.
12211 if test "$no_create" != yes; then
12213 ac_config_status_args=
12214 test "$silent" = yes &&
12215 ac_config_status_args="$ac_config_status_args --quiet"
12217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12220 # would make configure fail if this is the last instruction.
12221 $ac_cs_success || { (exit 1); exit 1; }