2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.67 for w3m 0.5.3.
5
# Report bugs to <satodai@w3m.jp>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and satodai@w3m.jp
234
$0: about your system, including any error possibly output
235
$0: before this message. Then install a modern shell, or
236
$0: manually run the script under such a shell if you do
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error STATUS ERROR [LINENO LOG_FD]
363
# ----------------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with STATUS, using 1 if that was 0.
369
as_status=$1; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374
$as_echo "$as_me: error: $2" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532
test -n "$DJDIR" || exec 7<&0 </dev/null
536
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537
# so uname gets run too.
538
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
ac_default_prefix=/usr/local
545
ac_config_libobj_dir=.
552
# Identity of this package.
554
PACKAGE_TARNAME='w3m'
555
PACKAGE_VERSION='0.5.3'
556
PACKAGE_STRING='w3m 0.5.3'
557
PACKAGE_BUGREPORT='satodai@w3m.jp'
561
# Factoring default headers for most tests.
562
ac_includes_default="\
564
#ifdef HAVE_SYS_TYPES_H
565
# include <sys/types.h>
567
#ifdef HAVE_SYS_STAT_H
568
# include <sys/stat.h>
574
# ifdef HAVE_STDLIB_H
579
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584
#ifdef HAVE_STRINGS_H
585
# include <strings.h>
587
#ifdef HAVE_INTTYPES_H
588
# include <inttypes.h>
597
ac_subst_vars='LTLIBOBJS
628
USE_EXTERNAL_URI_LOADER
655
INSTALL_W3MIMGDISPLAY
676
XGETTEXT_EXTRA_OPTIONS
684
GETTEXT_MACRO_VERSION
759
program_transform_name
772
enable_option_checking
799
enable_external_uri_loader
812
ac_precious_vars='build_alias
831
# Initialize some variables set by options.
833
ac_init_version=false
834
ac_unrecognized_opts=
836
# The variables have the same names as the options, with
837
# dashes changed to underlines.
845
program_transform_name=s,x,x,
853
# Installation directory options.
854
# These are left unexpanded so users can "make install exec_prefix=/foo"
855
# and all the variables that are supposed to be based on exec_prefix
856
# by default will actually change.
857
# Use braces instead of parens because sh, perl, etc. also accept them.
858
# (The list follows the same order as the GNU Coding Standards.)
859
bindir='${exec_prefix}/bin'
860
sbindir='${exec_prefix}/sbin'
861
libexecdir='${exec_prefix}/libexec'
862
datarootdir='${prefix}/share'
863
datadir='${datarootdir}'
864
sysconfdir='${prefix}/etc'
865
sharedstatedir='${prefix}/com'
866
localstatedir='${prefix}/var'
867
includedir='${prefix}/include'
868
oldincludedir='/usr/include'
869
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870
infodir='${datarootdir}/info'
875
libdir='${exec_prefix}/lib'
876
localedir='${datarootdir}/locale'
877
mandir='${datarootdir}/man'
883
# If the previous option needs an argument, assign it.
884
if test -n "$ac_prev"; then
885
eval $ac_prev=\$ac_option
891
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896
# Accept the important Cygnus configure options, so we can diagnose typos.
898
case $ac_dashdash$ac_option in
902
-bindir | --bindir | --bindi | --bind | --bin | --bi)
904
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907
-build | --build | --buil | --bui | --bu)
908
ac_prev=build_alias ;;
909
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
910
build_alias=$ac_optarg ;;
912
-cache-file | --cache-file | --cache-fil | --cache-fi \
913
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914
ac_prev=cache_file ;;
915
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917
cache_file=$ac_optarg ;;
920
cache_file=config.cache ;;
922
-datadir | --datadir | --datadi | --datad)
924
-datadir=* | --datadir=* | --datadi=* | --datad=*)
925
datadir=$ac_optarg ;;
927
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928
| --dataroo | --dataro | --datar)
929
ac_prev=datarootdir ;;
930
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932
datarootdir=$ac_optarg ;;
934
-disable-* | --disable-*)
935
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936
# Reject names that are not valid shell variable names.
937
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938
as_fn_error $? "invalid feature name: $ac_useropt"
939
ac_useropt_orig=$ac_useropt
940
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941
case $ac_user_opts in
945
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946
ac_unrecognized_sep=', ';;
948
eval enable_$ac_useropt=no ;;
950
-docdir | --docdir | --docdi | --doc | --do)
952
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960
-enable-* | --enable-*)
961
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962
# Reject names that are not valid shell variable names.
963
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964
as_fn_error $? "invalid feature name: $ac_useropt"
965
ac_useropt_orig=$ac_useropt
966
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967
case $ac_user_opts in
971
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972
ac_unrecognized_sep=', ';;
974
eval enable_$ac_useropt=\$ac_optarg ;;
976
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978
| --exec | --exe | --ex)
979
ac_prev=exec_prefix ;;
980
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982
| --exec=* | --exe=* | --ex=*)
983
exec_prefix=$ac_optarg ;;
985
-gas | --gas | --ga | --g)
986
# Obsolete; use --with-gas.
989
-help | --help | --hel | --he | -h)
991
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992
ac_init_help=recursive ;;
993
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994
ac_init_help=short ;;
996
-host | --host | --hos | --ho)
997
ac_prev=host_alias ;;
998
-host=* | --host=* | --hos=* | --ho=*)
999
host_alias=$ac_optarg ;;
1001
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005
htmldir=$ac_optarg ;;
1007
-includedir | --includedir | --includedi | --included | --include \
1008
| --includ | --inclu | --incl | --inc)
1009
ac_prev=includedir ;;
1010
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011
| --includ=* | --inclu=* | --incl=* | --inc=*)
1012
includedir=$ac_optarg ;;
1014
-infodir | --infodir | --infodi | --infod | --info | --inf)
1016
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017
infodir=$ac_optarg ;;
1019
-libdir | --libdir | --libdi | --libd)
1021
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1022
libdir=$ac_optarg ;;
1024
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025
| --libexe | --libex | --libe)
1026
ac_prev=libexecdir ;;
1027
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028
| --libexe=* | --libex=* | --libe=*)
1029
libexecdir=$ac_optarg ;;
1031
-localedir | --localedir | --localedi | --localed | --locale)
1032
ac_prev=localedir ;;
1033
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034
localedir=$ac_optarg ;;
1036
-localstatedir | --localstatedir | --localstatedi | --localstated \
1037
| --localstate | --localstat | --localsta | --localst | --locals)
1038
ac_prev=localstatedir ;;
1039
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041
localstatedir=$ac_optarg ;;
1043
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046
mandir=$ac_optarg ;;
1048
-nfp | --nfp | --nf)
1049
# Obsolete; use --without-fp.
1052
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053
| --no-cr | --no-c | -n)
1056
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062
| --oldin | --oldi | --old | --ol | --o)
1063
ac_prev=oldincludedir ;;
1064
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067
oldincludedir=$ac_optarg ;;
1069
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072
prefix=$ac_optarg ;;
1074
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1075
| --program-pre | --program-pr | --program-p)
1076
ac_prev=program_prefix ;;
1077
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1078
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079
program_prefix=$ac_optarg ;;
1081
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1082
| --program-suf | --program-su | --program-s)
1083
ac_prev=program_suffix ;;
1084
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1085
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086
program_suffix=$ac_optarg ;;
1088
-program-transform-name | --program-transform-name \
1089
| --program-transform-nam | --program-transform-na \
1090
| --program-transform-n | --program-transform- \
1091
| --program-transform | --program-transfor \
1092
| --program-transfo | --program-transf \
1093
| --program-trans | --program-tran \
1094
| --progr-tra | --program-tr | --program-t)
1095
ac_prev=program_transform_name ;;
1096
-program-transform-name=* | --program-transform-name=* \
1097
| --program-transform-nam=* | --program-transform-na=* \
1098
| --program-transform-n=* | --program-transform-=* \
1099
| --program-transform=* | --program-transfor=* \
1100
| --program-transfo=* | --program-transf=* \
1101
| --program-trans=* | --program-tran=* \
1102
| --progr-tra=* | --program-tr=* | --program-t=*)
1103
program_transform_name=$ac_optarg ;;
1105
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108
pdfdir=$ac_optarg ;;
1110
-psdir | --psdir | --psdi | --psd | --ps)
1112
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116
| -silent | --silent | --silen | --sile | --sil)
1119
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123
sbindir=$ac_optarg ;;
1125
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1126
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127
| --sharedst | --shareds | --shared | --share | --shar \
1129
ac_prev=sharedstatedir ;;
1130
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134
sharedstatedir=$ac_optarg ;;
1136
-site | --site | --sit)
1138
-site=* | --site=* | --sit=*)
1141
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144
srcdir=$ac_optarg ;;
1146
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147
| --syscon | --sysco | --sysc | --sys | --sy)
1148
ac_prev=sysconfdir ;;
1149
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151
sysconfdir=$ac_optarg ;;
1153
-target | --target | --targe | --targ | --tar | --ta | --t)
1154
ac_prev=target_alias ;;
1155
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156
target_alias=$ac_optarg ;;
1158
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1161
-version | --version | --versio | --versi | --vers | -V)
1162
ac_init_version=: ;;
1165
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166
# Reject names that are not valid shell variable names.
1167
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168
as_fn_error $? "invalid package name: $ac_useropt"
1169
ac_useropt_orig=$ac_useropt
1170
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171
case $ac_user_opts in
1175
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176
ac_unrecognized_sep=', ';;
1178
eval with_$ac_useropt=\$ac_optarg ;;
1180
-without-* | --without-*)
1181
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182
# Reject names that are not valid shell variable names.
1183
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184
as_fn_error $? "invalid package name: $ac_useropt"
1185
ac_useropt_orig=$ac_useropt
1186
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187
case $ac_user_opts in
1191
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192
ac_unrecognized_sep=', ';;
1194
eval with_$ac_useropt=no ;;
1197
# Obsolete; use --with-x.
1200
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201
| --x-incl | --x-inc | --x-in | --x-i)
1202
ac_prev=x_includes ;;
1203
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205
x_includes=$ac_optarg ;;
1207
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1208
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209
ac_prev=x_libraries ;;
1210
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212
x_libraries=$ac_optarg ;;
1214
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1215
Try \`$0 --help' for more information"
1219
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220
# Reject names that are not valid shell variable names.
1221
case $ac_envvar in #(
1222
'' | [0-9]* | *[!_$as_cr_alnum]* )
1223
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225
eval $ac_envvar=\$ac_optarg
1226
export $ac_envvar ;;
1229
# FIXME: should be removed in autoconf 3.0.
1230
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239
if test -n "$ac_prev"; then
1240
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241
as_fn_error $? "missing argument to $ac_option"
1244
if test -n "$ac_unrecognized_opts"; then
1245
case $enable_option_checking in
1247
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252
# Check all directory arguments for consistency.
1253
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254
datadir sysconfdir sharedstatedir localstatedir includedir \
1255
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256
libdir localedir mandir
1258
eval ac_val=\$$ac_var
1259
# Remove trailing slashes.
1262
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263
eval $ac_var=\$ac_val;;
1265
# Be sure to have absolute directory names.
1267
[\\/$]* | ?:[\\/]* ) continue;;
1268
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273
# There might be people who depend on the old broken behavior: `$host'
1274
# used to hold the argument of --host etc.
1275
# FIXME: To remove some day.
1278
target=$target_alias
1280
# FIXME: To remove some day.
1281
if test "x$host_alias" != x; then
1282
if test "x$build_alias" = x; then
1283
cross_compiling=maybe
1284
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1285
If a cross compiler is detected then cross compile mode will be used" >&2
1286
elif test "x$build_alias" != "x$host_alias"; then
1292
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
test "$silent" = yes && exec 6>/dev/null
1297
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298
ac_ls_di=`ls -di .` &&
1299
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300
as_fn_error $? "working directory cannot be determined"
1301
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302
as_fn_error $? "pwd does not report name of working directory"
1305
# Find the source files, if location was not specified.
1306
if test -z "$srcdir"; then
1307
ac_srcdir_defaulted=yes
1308
# Try the directory containing this script, then the parent directory.
1309
ac_confdir=`$as_dirname -- "$as_myself" ||
1310
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311
X"$as_myself" : 'X\(//\)[^/]' \| \
1312
X"$as_myself" : 'X\(//\)$' \| \
1313
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314
$as_echo X"$as_myself" |
1315
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333
if test ! -r "$srcdir/$ac_unique_file"; then
1337
ac_srcdir_defaulted=no
1339
if test ! -r "$srcdir/$ac_unique_file"; then
1340
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347
# When building in place, set srcdir=.
1348
if test "$ac_abs_confdir" = "$ac_pwd"; then
1351
# Remove unnecessary trailing slashes from srcdir.
1352
# Double slashes in file names in object file debugging info
1353
# mess up M-x gdb in Emacs.
1355
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357
for ac_var in $ac_precious_vars; do
1358
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359
eval ac_env_${ac_var}_value=\$${ac_var}
1360
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365
# Report the --help message.
1367
if test "$ac_init_help" = "long"; then
1368
# Omit some internal or obsolete options to make the list less imposing.
1369
# This message is too long to be a string in the A/UX 3.1 sh.
1371
\`configure' configures w3m 0.5.3 to adapt to many kinds of systems.
1373
Usage: $0 [OPTION]... [VAR=VALUE]...
1375
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376
VAR=VALUE. See below for descriptions of some of the useful variables.
1378
Defaults for the options are specified in brackets.
1381
-h, --help display this help and exit
1382
--help=short display options specific to this package
1383
--help=recursive display the short help of all the included packages
1384
-V, --version display version information and exit
1385
-q, --quiet, --silent do not print \`checking ...' messages
1386
--cache-file=FILE cache test results in FILE [disabled]
1387
-C, --config-cache alias for \`--cache-file=config.cache'
1388
-n, --no-create do not create output files
1389
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
Installation directories:
1392
--prefix=PREFIX install architecture-independent files in PREFIX
1393
[$ac_default_prefix]
1394
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397
By default, \`make install' will install all the files in
1398
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400
for instance \`--prefix=\$HOME'.
1402
For better control, use the options below.
1404
Fine tuning of the installation directories:
1405
--bindir=DIR user executables [EPREFIX/bin]
1406
--sbindir=DIR system admin executables [EPREFIX/sbin]
1407
--libexecdir=DIR program executables [EPREFIX/libexec]
1408
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411
--libdir=DIR object code libraries [EPREFIX/lib]
1412
--includedir=DIR C header files [PREFIX/include]
1413
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1414
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416
--infodir=DIR info documentation [DATAROOTDIR/info]
1417
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418
--mandir=DIR man documentation [DATAROOTDIR/man]
1419
--docdir=DIR documentation root [DATAROOTDIR/doc/w3m]
1420
--htmldir=DIR html documentation [DOCDIR]
1421
--dvidir=DIR dvi documentation [DOCDIR]
1422
--pdfdir=DIR pdf documentation [DOCDIR]
1423
--psdir=DIR ps documentation [DOCDIR]
1429
--build=BUILD configure for building on BUILD [guessed]
1430
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1434
if test -n "$ac_init_help"; then
1435
case $ac_init_help in
1436
short | recursive ) echo "Configuration of w3m 0.5.3:";;
1441
--disable-option-checking ignore unrecognized --enable/--with options
1442
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444
--disable-m17n do not use m17n
1445
--disable-unicode do not use unicode
1446
--enable-messagel10n=LL message l10n instead of NLS
1447
--enable-japanese=CODE support Japanese CODE=(S|E|J|U)
1448
--disable-nls do not use Native Language Support
1449
--disable-rpath do not hardcode runtime library paths
1450
--disable-color disable color for vt100 terminal
1451
--disable-ansi-color disable ansi color escape sequence
1452
--disable-bgcolor disable to set background color
1453
--enable-image=DEVS enable inline image handler for DEVS
1454
DEVS may be comma separeted: x11,fb,fb+s,win
1455
default: autodetected.
1456
'no' means disable inline image
1457
--disable-xface disable xface support
1458
--enable-keymap=w3m|lynx default keybind style(w3m or lynx)
1459
--disable-menu disable popup menu
1460
--disable-mouse disable mouse operation
1461
--disable-history disable URL history
1462
--disable-alarm disable alarm
1463
--disable-cookie disable cookie
1464
--disable-nntp disable NNTP
1465
--enable-gopher enable GOPHER
1466
--disable-dict disable dictionary lookup (see README.dict)
1467
--disable-help-cgi disable help cgi
1468
--disable-external-uri-loader disable external URI loader
1469
--disable-w3mmailer disable w3mmailer
1470
--disable-ipv6 disable IPv6
1471
--disable-sslverify verify SSL certificate
1472
--disable-digest-auth disable digest auth
1475
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477
--with-charset=CHARSET
1478
--with-gnu-ld assume the C compiler uses GNU ld default=no
1479
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1480
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1481
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1482
--without-libintl-prefix don't search for libintl in includedir and libdir
1483
--with-imagelib=IMAGELIBS image library
1484
IMAGELIBS may be space separeted list of:
1485
gtk2 gdk-pixbuf imlib imlib2
1486
--with-migemo=MIGEMO_COMMAND migemo command
1487
--with-editor=EDITOR default editor (/usr/bin/vi)
1488
--with-mailer=MAILER default mailer (/usr/bin/mail)
1489
--with-browser=BROWSER default browser (/usr/bin/mozilla)
1490
--with-ssl=PREFIX support https protocol
1491
--with-termlib=LIBS terminal library
1492
LIBS is space separated list of:
1493
terminfo mytinfo termcap ncurses curses
1494
--with-gc=PREFIX libgc PREFIX
1496
Some influential environment variables:
1497
CXX C++ compiler command
1498
CXXFLAGS C++ compiler flags
1499
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500
nonstandard directory <lib dir>
1501
LIBS libraries to pass to the linker, e.g. -l<library>
1502
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503
you have headers in a nonstandard directory <include dir>
1504
CC C compiler command
1505
CFLAGS C compiler flags
1507
PKG_CONFIG path to pkg-config utility
1509
directories to add to pkg-config's search path
1511
path overriding pkg-config's built-in search path
1512
SSL_CFLAGS C compiler flags for SSL, overriding pkg-config
1513
SSL_LIBS linker flags for SSL, overriding pkg-config
1515
Use these variables to override the choices made by `configure' or to help
1516
it to find libraries and programs with nonstandard names/locations.
1518
Report bugs to <satodai@w3m.jp>.
1523
if test "$ac_init_help" = "recursive"; then
1524
# If there are subdirs, report their specific --help.
1525
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526
test -d "$ac_dir" ||
1527
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535
# A ".." for each directory in $ac_dir_suffix.
1536
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537
case $ac_top_builddir_sub in
1538
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542
ac_abs_top_builddir=$ac_pwd
1543
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544
# for backward compatibility:
1545
ac_top_builddir=$ac_top_build_prefix
1548
.) # We are building in place.
1550
ac_top_srcdir=$ac_top_builddir_sub
1551
ac_abs_top_srcdir=$ac_pwd ;;
1552
[\\/]* | ?:[\\/]* ) # Absolute name.
1553
ac_srcdir=$srcdir$ac_dir_suffix;
1554
ac_top_srcdir=$srcdir
1555
ac_abs_top_srcdir=$srcdir ;;
1557
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558
ac_top_srcdir=$ac_top_build_prefix$srcdir
1559
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
cd "$ac_dir" || { ac_status=$?; continue; }
1564
# Check for guested configure.
1565
if test -f "$ac_srcdir/configure.gnu"; then
1567
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568
elif test -f "$ac_srcdir/configure"; then
1570
$SHELL "$ac_srcdir/configure" --help=recursive
1572
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574
cd "$ac_pwd" || { ac_status=$?; break; }
1578
test -n "$ac_init_help" && exit $ac_status
1579
if $ac_init_version; then
1582
generated by GNU Autoconf 2.67
1584
Copyright (C) 2010 Free Software Foundation, Inc.
1585
This configure script is free software; the Free Software Foundation
1586
gives unlimited permission to copy, distribute and modify it.
1591
## ------------------------ ##
1592
## Autoconf initialization. ##
1593
## ------------------------ ##
1595
# ac_fn_cxx_try_compile LINENO
1596
# ----------------------------
1597
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1598
ac_fn_cxx_try_compile ()
1600
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601
rm -f conftest.$ac_objext
1602
if { { ac_try="$ac_compile"
1604
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605
*) ac_try_echo=$ac_try;;
1607
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608
$as_echo "$ac_try_echo"; } >&5
1609
(eval "$ac_compile") 2>conftest.err
1611
if test -s conftest.err; then
1612
grep -v '^ *+' conftest.err >conftest.er1
1613
cat conftest.er1 >&5
1614
mv -f conftest.er1 conftest.err
1616
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617
test $ac_status = 0; } && {
1618
test -z "$ac_cxx_werror_flag" ||
1619
test ! -s conftest.err
1620
} && test -s conftest.$ac_objext; then :
1623
$as_echo "$as_me: failed program was:" >&5
1624
sed 's/^/| /' conftest.$ac_ext >&5
1628
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629
as_fn_set_status $ac_retval
1631
} # ac_fn_cxx_try_compile
1633
# ac_fn_c_try_compile LINENO
1634
# --------------------------
1635
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1636
ac_fn_c_try_compile ()
1638
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639
rm -f conftest.$ac_objext
1640
if { { ac_try="$ac_compile"
1642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643
*) ac_try_echo=$ac_try;;
1645
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646
$as_echo "$ac_try_echo"; } >&5
1647
(eval "$ac_compile") 2>conftest.err
1649
if test -s conftest.err; then
1650
grep -v '^ *+' conftest.err >conftest.er1
1651
cat conftest.er1 >&5
1652
mv -f conftest.er1 conftest.err
1654
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655
test $ac_status = 0; } && {
1656
test -z "$ac_c_werror_flag" ||
1657
test ! -s conftest.err
1658
} && test -s conftest.$ac_objext; then :
1661
$as_echo "$as_me: failed program was:" >&5
1662
sed 's/^/| /' conftest.$ac_ext >&5
1666
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667
as_fn_set_status $ac_retval
1669
} # ac_fn_c_try_compile
1671
# ac_fn_c_try_cpp LINENO
1672
# ----------------------
1673
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677
if { { ac_try="$ac_cpp conftest.$ac_ext"
1679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680
*) ac_try_echo=$ac_try;;
1682
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683
$as_echo "$ac_try_echo"; } >&5
1684
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686
if test -s conftest.err; then
1687
grep -v '^ *+' conftest.err >conftest.er1
1688
cat conftest.er1 >&5
1689
mv -f conftest.er1 conftest.err
1691
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692
test $ac_status = 0; } > conftest.i && {
1693
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694
test ! -s conftest.err
1698
$as_echo "$as_me: failed program was:" >&5
1699
sed 's/^/| /' conftest.$ac_ext >&5
1703
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704
as_fn_set_status $ac_retval
1708
# ac_fn_c_try_link LINENO
1709
# -----------------------
1710
# Try to link conftest.$ac_ext, and return whether this succeeded.
1713
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714
rm -f conftest.$ac_objext conftest$ac_exeext
1715
if { { ac_try="$ac_link"
1717
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718
*) ac_try_echo=$ac_try;;
1720
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721
$as_echo "$ac_try_echo"; } >&5
1722
(eval "$ac_link") 2>conftest.err
1724
if test -s conftest.err; then
1725
grep -v '^ *+' conftest.err >conftest.er1
1726
cat conftest.er1 >&5
1727
mv -f conftest.er1 conftest.err
1729
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730
test $ac_status = 0; } && {
1731
test -z "$ac_c_werror_flag" ||
1732
test ! -s conftest.err
1733
} && test -s conftest$ac_exeext && {
1734
test "$cross_compiling" = yes ||
1735
$as_test_x conftest$ac_exeext
1739
$as_echo "$as_me: failed program was:" >&5
1740
sed 's/^/| /' conftest.$ac_ext >&5
1744
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746
# interfere with the next link command; also delete a directory that is
1747
# left behind by Apple's compiler. We do this before executing the actions.
1748
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750
as_fn_set_status $ac_retval
1752
} # ac_fn_c_try_link
1754
# ac_fn_c_try_run LINENO
1755
# ----------------------
1756
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757
# that executables *can* be run.
1760
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761
if { { ac_try="$ac_link"
1763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764
*) ac_try_echo=$ac_try;;
1766
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767
$as_echo "$ac_try_echo"; } >&5
1768
(eval "$ac_link") 2>&5
1770
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772
{ { case "(($ac_try" in
1773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774
*) ac_try_echo=$ac_try;;
1776
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777
$as_echo "$ac_try_echo"; } >&5
1778
(eval "$ac_try") 2>&5
1780
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781
test $ac_status = 0; }; }; then :
1784
$as_echo "$as_me: program exited with status $ac_status" >&5
1785
$as_echo "$as_me: failed program was:" >&5
1786
sed 's/^/| /' conftest.$ac_ext >&5
1788
ac_retval=$ac_status
1790
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792
as_fn_set_status $ac_retval
1796
# ac_fn_c_check_func LINENO FUNC VAR
1797
# ----------------------------------
1798
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1799
ac_fn_c_check_func ()
1801
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803
$as_echo_n "checking for $2... " >&6; }
1804
if eval "test \"\${$3+set}\"" = set; then :
1805
$as_echo_n "(cached) " >&6
1807
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808
/* end confdefs.h. */
1809
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1811
#define $2 innocuous_$2
1813
/* System header to define __stub macros and hopefully few prototypes,
1814
which can conflict with char $2 (); below.
1815
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816
<limits.h> exists even on freestanding compilers. */
1819
# include <limits.h>
1821
# include <assert.h>
1826
/* Override any GCC internal prototype to avoid an error.
1827
Use char because int might match the return type of a GCC
1828
builtin and then its argument prototype would still apply. */
1833
/* The GNU C library defines this for functions which it implements
1834
to always fail with ENOSYS. Some functions are actually named
1835
something starting with __ and the normal name is an alias. */
1836
#if defined __stub_$2 || defined __stub___$2
1848
if ac_fn_c_try_link "$LINENO"; then :
1853
rm -f core conftest.err conftest.$ac_objext \
1854
conftest$ac_exeext conftest.$ac_ext
1857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858
$as_echo "$ac_res" >&6; }
1859
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861
} # ac_fn_c_check_func
1863
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1864
# -------------------------------------------------------
1865
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1866
# the include files in INCLUDES and setting the cache variable VAR
1868
ac_fn_c_check_header_mongrel ()
1870
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871
if eval "test \"\${$3+set}\"" = set; then :
1872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873
$as_echo_n "checking for $2... " >&6; }
1874
if eval "test \"\${$3+set}\"" = set; then :
1875
$as_echo_n "(cached) " >&6
1878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879
$as_echo "$ac_res" >&6; }
1881
# Is the header compilable?
1882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1883
$as_echo_n "checking $2 usability... " >&6; }
1884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885
/* end confdefs.h. */
1889
if ac_fn_c_try_compile "$LINENO"; then :
1890
ac_header_compiler=yes
1892
ac_header_compiler=no
1894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1896
$as_echo "$ac_header_compiler" >&6; }
1898
# Is the header present?
1899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1900
$as_echo_n "checking $2 presence... " >&6; }
1901
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902
/* end confdefs.h. */
1905
if ac_fn_c_try_cpp "$LINENO"; then :
1906
ac_header_preproc=yes
1908
ac_header_preproc=no
1910
rm -f conftest.err conftest.i conftest.$ac_ext
1911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1912
$as_echo "$ac_header_preproc" >&6; }
1914
# So? What about this header?
1915
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1917
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1918
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1919
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1924
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1925
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1926
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1927
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1928
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1929
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1930
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1931
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933
( $as_echo "## ----------------------------- ##
1934
## Report this to satodai@w3m.jp ##
1935
## ----------------------------- ##"
1936
) | sed "s/^/$as_me: WARNING: /" >&2
1939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940
$as_echo_n "checking for $2... " >&6; }
1941
if eval "test \"\${$3+set}\"" = set; then :
1942
$as_echo_n "(cached) " >&6
1944
eval "$3=\$ac_header_compiler"
1947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948
$as_echo "$ac_res" >&6; }
1950
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
} # ac_fn_c_check_header_mongrel
1954
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1955
# -------------------------------------------------------
1956
# Tests whether HEADER exists and can be compiled using the include files in
1957
# INCLUDES, setting the cache variable VAR accordingly.
1958
ac_fn_c_check_header_compile ()
1960
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962
$as_echo_n "checking for $2... " >&6; }
1963
if eval "test \"\${$3+set}\"" = set; then :
1964
$as_echo_n "(cached) " >&6
1966
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967
/* end confdefs.h. */
1971
if ac_fn_c_try_compile "$LINENO"; then :
1976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980
$as_echo "$ac_res" >&6; }
1981
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983
} # ac_fn_c_check_header_compile
1985
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1986
# -------------------------------------------
1987
# Tests whether TYPE exists after having included INCLUDES, setting cache
1988
# variable VAR accordingly.
1989
ac_fn_c_check_type ()
1991
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993
$as_echo_n "checking for $2... " >&6; }
1994
if eval "test \"\${$3+set}\"" = set; then :
1995
$as_echo_n "(cached) " >&6
1998
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999
/* end confdefs.h. */
2010
if ac_fn_c_try_compile "$LINENO"; then :
2011
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012
/* end confdefs.h. */
2023
if ac_fn_c_try_compile "$LINENO"; then :
2028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034
$as_echo "$ac_res" >&6; }
2035
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
} # ac_fn_c_check_type
2039
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040
# --------------------------------------------
2041
# Tries to find the compile-time value of EXPR in a program that includes
2042
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2044
ac_fn_c_compute_int ()
2046
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047
if test "$cross_compiling" = yes; then
2048
# Depending upon the size, compute the lo and hi bounds.
2049
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050
/* end confdefs.h. */
2055
static int test_array [1 - 2 * !(($2) >= 0)];
2062
if ac_fn_c_try_compile "$LINENO"; then :
2065
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066
/* end confdefs.h. */
2071
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078
if ac_fn_c_try_compile "$LINENO"; then :
2079
ac_hi=$ac_mid; break
2081
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082
if test $ac_lo -le $ac_mid; then
2086
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092
/* end confdefs.h. */
2097
static int test_array [1 - 2 * !(($2) < 0)];
2104
if ac_fn_c_try_compile "$LINENO"; then :
2107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108
/* end confdefs.h. */
2113
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120
if ac_fn_c_try_compile "$LINENO"; then :
2121
ac_lo=$ac_mid; break
2123
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124
if test $ac_mid -le $ac_hi; then
2128
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138
# Binary search between lo and hi bounds.
2139
while test "x$ac_lo" != "x$ac_hi"; do
2140
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142
/* end confdefs.h. */
2147
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154
if ac_fn_c_try_compile "$LINENO"; then :
2157
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167
/* end confdefs.h. */
2169
static long int longval () { return $2; }
2170
static unsigned long int ulongval () { return $2; }
2177
FILE *f = fopen ("conftest.val", "w");
2182
long int i = longval ();
2185
fprintf (f, "%ld", i);
2189
unsigned long int i = ulongval ();
2192
fprintf (f, "%lu", i);
2194
/* Do not output a trailing newline, as this causes \r\n confusion
2195
on some platforms. */
2196
return ferror (f) || fclose (f) != 0;
2202
if ac_fn_c_try_run "$LINENO"; then :
2203
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2207
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208
conftest.$ac_objext conftest.beam conftest.$ac_ext
2212
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213
as_fn_set_status $ac_retval
2215
} # ac_fn_c_compute_int
2216
cat >config.log <<_ACEOF
2217
This file contains any messages produced by compilers while
2218
running configure, to aid debugging if configure makes a mistake.
2220
It was created by w3m $as_me 0.5.3, which was
2221
generated by GNU Autoconf 2.67. Invocation command line was
2233
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2234
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2235
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2236
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2237
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2239
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2240
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2242
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2243
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2244
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2245
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2246
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2247
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2248
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256
test -z "$as_dir" && as_dir=.
2257
$as_echo "PATH: $as_dir"
2273
# Keep a trace of the command line.
2274
# Strip out --no-create and --no-recursion so they do not pile up.
2275
# Strip out --silent because we don't want to record it for future runs.
2276
# Also quote any args containing shell meta-characters.
2277
# Make two passes to allow for proper duplicate-argument suppression.
2281
ac_must_keep_next=false
2287
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289
| -silent | --silent | --silen | --sile | --sil)
2292
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2295
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2297
as_fn_append ac_configure_args1 " '$ac_arg'"
2298
if test $ac_must_keep_next = true; then
2299
ac_must_keep_next=false # Got value, back to normal.
2302
*=* | --config-cache | -C | -disable-* | --disable-* \
2303
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305
| -with-* | --with-* | -without-* | --without-* | --x)
2306
case "$ac_configure_args0 " in
2307
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2310
-* ) ac_must_keep_next=true ;;
2313
as_fn_append ac_configure_args " '$ac_arg'"
2318
{ ac_configure_args0=; unset ac_configure_args0;}
2319
{ ac_configure_args1=; unset ac_configure_args1;}
2321
# When interrupted or exit'd, cleanup temporary files, and complete
2322
# config.log. We remove comments because anyway the quotes in there
2323
# would cause problems or look ugly.
2324
# WARNING: Use '\'' to represent an apostrophe within the trap.
2325
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326
trap 'exit_status=$?
2327
# Save into config.log some information that might help in debugging.
2331
$as_echo "## ---------------- ##
2332
## Cache variables. ##
2333
## ---------------- ##"
2335
# The following way of writing the cache mishandles newlines in values,
2337
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2338
eval ac_val=\$$ac_var
2342
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2346
_ | IFS | as_nl) ;; #(
2347
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348
*) { eval $ac_var=; unset $ac_var;} ;;
2353
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2354
*${as_nl}ac_space=\ *)
2356
"s/'\''/'\''\\\\'\'''\''/g;
2357
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2360
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2367
$as_echo "## ----------------- ##
2368
## Output variables. ##
2369
## ----------------- ##"
2371
for ac_var in $ac_subst_vars
2373
eval ac_val=\$$ac_var
2375
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377
$as_echo "$ac_var='\''$ac_val'\''"
2381
if test -n "$ac_subst_files"; then
2382
$as_echo "## ------------------- ##
2383
## File substitutions. ##
2384
## ------------------- ##"
2386
for ac_var in $ac_subst_files
2388
eval ac_val=\$$ac_var
2390
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392
$as_echo "$ac_var='\''$ac_val'\''"
2397
if test -s confdefs.h; then
2398
$as_echo "## ----------- ##
2405
test "$ac_signal" != 0 &&
2406
$as_echo "$as_me: caught signal $ac_signal"
2407
$as_echo "$as_me: exit $exit_status"
2409
rm -f core *.core core.conftest.* &&
2410
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2413
for ac_signal in 1 2 13 15; do
2414
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2418
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2419
rm -f -r conftest* confdefs.h
2421
$as_echo "/* confdefs.h */" > confdefs.h
2423
# Predefined preprocessor variables.
2425
cat >>confdefs.h <<_ACEOF
2426
#define PACKAGE_NAME "$PACKAGE_NAME"
2429
cat >>confdefs.h <<_ACEOF
2430
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2433
cat >>confdefs.h <<_ACEOF
2434
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2437
cat >>confdefs.h <<_ACEOF
2438
#define PACKAGE_STRING "$PACKAGE_STRING"
2441
cat >>confdefs.h <<_ACEOF
2442
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2445
cat >>confdefs.h <<_ACEOF
2446
#define PACKAGE_URL "$PACKAGE_URL"
2450
# Let the site file select an alternate cache file if it wants to.
2451
# Prefer an explicitly selected file to automatically selected ones.
2454
if test -n "$CONFIG_SITE"; then
2455
# We do not want a PATH search for config.site.
2456
case $CONFIG_SITE in #((
2457
-*) ac_site_file1=./$CONFIG_SITE;;
2458
*/*) ac_site_file1=$CONFIG_SITE;;
2459
*) ac_site_file1=./$CONFIG_SITE;;
2461
elif test "x$prefix" != xNONE; then
2462
ac_site_file1=$prefix/share/config.site
2463
ac_site_file2=$prefix/etc/config.site
2465
ac_site_file1=$ac_default_prefix/share/config.site
2466
ac_site_file2=$ac_default_prefix/etc/config.site
2468
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2470
test "x$ac_site_file" = xNONE && continue
2471
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474
sed 's/^/| /' "$ac_site_file" >&5
2476
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478
as_fn_error $? "failed to load site script $ac_site_file
2479
See \`config.log' for more details" "$LINENO" 5 ; }
2483
if test -r "$cache_file"; then
2484
# Some versions of bash will fail to source /dev/null (special files
2485
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2486
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488
$as_echo "$as_me: loading cache $cache_file" >&6;}
2490
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2491
*) . "./$cache_file";;
2495
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496
$as_echo "$as_me: creating cache $cache_file" >&6;}
2500
gt_needs="$gt_needs "
2501
# Check that the precious variables saved in the cache have kept the same
2503
ac_cache_corrupted=false
2504
for ac_var in $ac_precious_vars; do
2505
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2506
eval ac_new_set=\$ac_env_${ac_var}_set
2507
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2508
eval ac_new_val=\$ac_env_${ac_var}_value
2509
case $ac_old_set,$ac_new_set in
2511
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2512
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2513
ac_cache_corrupted=: ;;
2515
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2516
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2517
ac_cache_corrupted=: ;;
2520
if test "x$ac_old_val" != "x$ac_new_val"; then
2521
# differences in whitespace do not lead to failure.
2522
ac_old_val_w=`echo x $ac_old_val`
2523
ac_new_val_w=`echo x $ac_new_val`
2524
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2525
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2526
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2527
ac_cache_corrupted=:
2529
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2530
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2531
eval $ac_var=\$ac_old_val
2533
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2534
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2535
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2536
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2539
# Pass precious variables to config.status.
2540
if test "$ac_new_set" = set; then
2542
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2543
*) ac_arg=$ac_var=$ac_new_val ;;
2545
case " $ac_configure_args " in
2546
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2547
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2551
if $ac_cache_corrupted; then
2552
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2555
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2556
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2558
## -------------------- ##
2559
## Main body of script. ##
2560
## -------------------- ##
2563
ac_cpp='$CPP $CPPFLAGS'
2564
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
cat >>confdefs.h <<_ACEOF
2572
#define PACKAGE "$PACKAGE"
2575
cat >>confdefs.h <<_ACEOF
2576
#define VERSION "$VERSION"
2584
$as_echo "#define W3M w3m" >>confdefs.h
2588
W3M_LANG=${LC_ALL:-$LANG}
2589
ac_config_headers="$ac_config_headers config.h"
2592
ac_cpp='$CXXCPP $CPPFLAGS'
2593
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596
if test -z "$CXX"; then
2597
if test -n "$CCC"; then
2600
if test -n "$ac_tool_prefix"; then
2601
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2603
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2604
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606
$as_echo_n "checking for $ac_word... " >&6; }
2607
if test "${ac_cv_prog_CXX+set}" = set; then :
2608
$as_echo_n "(cached) " >&6
2610
if test -n "$CXX"; then
2611
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617
test -z "$as_dir" && as_dir=.
2618
for ac_exec_ext in '' $ac_executable_extensions; do
2619
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2621
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631
if test -n "$CXX"; then
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2633
$as_echo "$CXX" >&6; }
2635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636
$as_echo "no" >&6; }
2640
test -n "$CXX" && break
2643
if test -z "$CXX"; then
2645
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2647
# Extract the first word of "$ac_prog", so it can be a program name with args.
2648
set dummy $ac_prog; ac_word=$2
2649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650
$as_echo_n "checking for $ac_word... " >&6; }
2651
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2652
$as_echo_n "(cached) " >&6
2654
if test -n "$ac_ct_CXX"; then
2655
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661
test -z "$as_dir" && as_dir=.
2662
for ac_exec_ext in '' $ac_executable_extensions; do
2663
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664
ac_cv_prog_ac_ct_CXX="$ac_prog"
2665
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2675
if test -n "$ac_ct_CXX"; then
2676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2677
$as_echo "$ac_ct_CXX" >&6; }
2679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680
$as_echo "no" >&6; }
2684
test -n "$ac_ct_CXX" && break
2687
if test "x$ac_ct_CXX" = x; then
2690
case $cross_compiling:$ac_tool_warned in
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694
ac_tool_warned=yes ;;
2702
# Provide some information about the compiler.
2703
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2706
for ac_option in --version -v -V -qversion; do
2707
{ { ac_try="$ac_compiler $ac_option >&5"
2709
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710
*) ac_try_echo=$ac_try;;
2712
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713
$as_echo "$ac_try_echo"; } >&5
2714
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2716
if test -s conftest.err; then
2718
... rest of stderr output deleted ...
2719
10q' conftest.err >conftest.er1
2720
cat conftest.er1 >&5
2722
rm -f conftest.er1 conftest.err
2723
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724
test $ac_status = 0; }
2727
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728
/* end confdefs.h. */
2738
ac_clean_files_save=$ac_clean_files
2739
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2740
# Try to create an executable without -o first, disregard a.out.
2741
# It will help us diagnose broken compilers, and finding out an intuition
2743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2744
$as_echo_n "checking whether the C++ compiler works... " >&6; }
2745
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2747
# The possible output files:
2748
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2751
for ac_file in $ac_files
2754
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2755
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2760
if { { ac_try="$ac_link_default"
2762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763
*) ac_try_echo=$ac_try;;
2765
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2766
$as_echo "$ac_try_echo"; } >&5
2767
(eval "$ac_link_default") 2>&5
2769
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770
test $ac_status = 0; }; then :
2771
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2772
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2773
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2774
# so that the user can short-circuit this test for compilers unknown to
2776
for ac_file in $ac_files ''
2778
test -f "$ac_file" || continue
2780
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2783
# We found the default executable, but exeext='' is most
2787
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2789
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791
# We set ac_cv_exeext here because the later test for it is not
2792
# safe: cross compilers may not add the suffix if given an `-o'
2793
# argument, so we may need to know it at that point already.
2794
# Even if this section looks crufty: it has the advantage of
2801
test "$ac_cv_exeext" = no && ac_cv_exeext=
2806
if test -z "$ac_file"; then :
2807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808
$as_echo "no" >&6; }
2809
$as_echo "$as_me: failed program was:" >&5
2810
sed 's/^/| /' conftest.$ac_ext >&5
2812
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814
as_fn_error 77 "C++ compiler cannot create executables
2815
See \`config.log' for more details" "$LINENO" 5 ; }
2817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818
$as_echo "yes" >&6; }
2820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2821
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2823
$as_echo "$ac_file" >&6; }
2824
ac_exeext=$ac_cv_exeext
2826
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2827
ac_clean_files=$ac_clean_files_save
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2829
$as_echo_n "checking for suffix of executables... " >&6; }
2830
if { { ac_try="$ac_link"
2832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833
*) ac_try_echo=$ac_try;;
2835
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2836
$as_echo "$ac_try_echo"; } >&5
2837
(eval "$ac_link") 2>&5
2839
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2840
test $ac_status = 0; }; then :
2841
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2842
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2843
# work properly (i.e., refer to `conftest.exe'), while it won't with
2845
for ac_file in conftest.exe conftest conftest.*; do
2846
test -f "$ac_file" || continue
2848
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2849
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2858
See \`config.log' for more details" "$LINENO" 5 ; }
2860
rm -f conftest conftest$ac_cv_exeext
2861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2862
$as_echo "$ac_cv_exeext" >&6; }
2864
rm -f conftest.$ac_ext
2865
EXEEXT=$ac_cv_exeext
2867
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868
/* end confdefs.h. */
2873
FILE *f = fopen ("conftest.out", "w");
2874
return ferror (f) || fclose (f) != 0;
2880
ac_clean_files="$ac_clean_files conftest.out"
2881
# Check that the compiler produces executables we can run. If not, either
2882
# the compiler is broken, or we cross compile.
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2884
$as_echo_n "checking whether we are cross compiling... " >&6; }
2885
if test "$cross_compiling" != yes; then
2886
{ { ac_try="$ac_link"
2888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889
*) ac_try_echo=$ac_try;;
2891
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892
$as_echo "$ac_try_echo"; } >&5
2893
(eval "$ac_link") 2>&5
2895
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896
test $ac_status = 0; }
2897
if { ac_try='./conftest$ac_cv_exeext'
2898
{ { case "(($ac_try" in
2899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900
*) ac_try_echo=$ac_try;;
2902
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903
$as_echo "$ac_try_echo"; } >&5
2904
(eval "$ac_try") 2>&5
2906
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907
test $ac_status = 0; }; }; then
2910
if test "$cross_compiling" = maybe; then
2913
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915
as_fn_error $? "cannot run C++ compiled programs.
2916
If you meant to cross compile, use \`--host'.
2917
See \`config.log' for more details" "$LINENO" 5 ; }
2921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2922
$as_echo "$cross_compiling" >&6; }
2924
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2925
ac_clean_files=$ac_clean_files_save
2926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2927
$as_echo_n "checking for suffix of object files... " >&6; }
2928
if test "${ac_cv_objext+set}" = set; then :
2929
$as_echo_n "(cached) " >&6
2931
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932
/* end confdefs.h. */
2942
rm -f conftest.o conftest.obj
2943
if { { ac_try="$ac_compile"
2945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946
*) ac_try_echo=$ac_try;;
2948
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949
$as_echo "$ac_try_echo"; } >&5
2950
(eval "$ac_compile") 2>&5
2952
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953
test $ac_status = 0; }; then :
2954
for ac_file in conftest.o conftest.obj conftest.*; do
2955
test -f "$ac_file" || continue;
2957
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2958
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2963
$as_echo "$as_me: failed program was:" >&5
2964
sed 's/^/| /' conftest.$ac_ext >&5
2966
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968
as_fn_error $? "cannot compute suffix of object files: cannot compile
2969
See \`config.log' for more details" "$LINENO" 5 ; }
2971
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2974
$as_echo "$ac_cv_objext" >&6; }
2975
OBJEXT=$ac_cv_objext
2977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2978
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2979
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2980
$as_echo_n "(cached) " >&6
2982
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983
/* end confdefs.h. */
2996
if ac_fn_cxx_try_compile "$LINENO"; then :
3001
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3006
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3007
if test $ac_compiler_gnu = yes; then
3012
ac_test_CXXFLAGS=${CXXFLAGS+set}
3013
ac_save_CXXFLAGS=$CXXFLAGS
3014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3015
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3016
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3017
$as_echo_n "(cached) " >&6
3019
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3020
ac_cxx_werror_flag=yes
3023
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024
/* end confdefs.h. */
3034
if ac_fn_cxx_try_compile "$LINENO"; then :
3035
ac_cv_prog_cxx_g=yes
3038
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039
/* end confdefs.h. */
3049
if ac_fn_cxx_try_compile "$LINENO"; then :
3052
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055
/* end confdefs.h. */
3065
if ac_fn_cxx_try_compile "$LINENO"; then :
3066
ac_cv_prog_cxx_g=yes
3068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3076
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3077
if test "$ac_test_CXXFLAGS" = set; then
3078
CXXFLAGS=$ac_save_CXXFLAGS
3079
elif test $ac_cv_prog_cxx_g = yes; then
3080
if test "$GXX" = yes; then
3086
if test "$GXX" = yes; then
3093
ac_cpp='$CPP $CPPFLAGS'
3094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098
for ac_prog in gawk mawk nawk awk
3100
# Extract the first word of "$ac_prog", so it can be a program name with args.
3101
set dummy $ac_prog; ac_word=$2
3102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103
$as_echo_n "checking for $ac_word... " >&6; }
3104
if test "${ac_cv_prog_AWK+set}" = set; then :
3105
$as_echo_n "(cached) " >&6
3107
if test -n "$AWK"; then
3108
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114
test -z "$as_dir" && as_dir=.
3115
for ac_exec_ext in '' $ac_executable_extensions; do
3116
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117
ac_cv_prog_AWK="$ac_prog"
3118
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128
if test -n "$AWK"; then
3129
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3130
$as_echo "$AWK" >&6; }
3132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133
$as_echo "no" >&6; }
3137
test -n "$AWK" && break
3141
ac_cpp='$CPP $CPPFLAGS'
3142
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145
if test -n "$ac_tool_prefix"; then
3146
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3147
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149
$as_echo_n "checking for $ac_word... " >&6; }
3150
if test "${ac_cv_prog_CC+set}" = set; then :
3151
$as_echo_n "(cached) " >&6
3153
if test -n "$CC"; then
3154
ac_cv_prog_CC="$CC" # Let the user override the test.
3156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160
test -z "$as_dir" && as_dir=.
3161
for ac_exec_ext in '' $ac_executable_extensions; do
3162
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3164
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174
if test -n "$CC"; then
3175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176
$as_echo "$CC" >&6; }
3178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179
$as_echo "no" >&6; }
3184
if test -z "$ac_cv_prog_CC"; then
3186
# Extract the first word of "gcc", so it can be a program name with args.
3187
set dummy gcc; ac_word=$2
3188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189
$as_echo_n "checking for $ac_word... " >&6; }
3190
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3191
$as_echo_n "(cached) " >&6
3193
if test -n "$ac_ct_CC"; then
3194
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200
test -z "$as_dir" && as_dir=.
3201
for ac_exec_ext in '' $ac_executable_extensions; do
3202
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203
ac_cv_prog_ac_ct_CC="gcc"
3204
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214
if test -n "$ac_ct_CC"; then
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216
$as_echo "$ac_ct_CC" >&6; }
3218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219
$as_echo "no" >&6; }
3222
if test "x$ac_ct_CC" = x; then
3225
case $cross_compiling:$ac_tool_warned in
3227
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229
ac_tool_warned=yes ;;
3237
if test -z "$CC"; then
3238
if test -n "$ac_tool_prefix"; then
3239
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3240
set dummy ${ac_tool_prefix}cc; ac_word=$2
3241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242
$as_echo_n "checking for $ac_word... " >&6; }
3243
if test "${ac_cv_prog_CC+set}" = set; then :
3244
$as_echo_n "(cached) " >&6
3246
if test -n "$CC"; then
3247
ac_cv_prog_CC="$CC" # Let the user override the test.
3249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253
test -z "$as_dir" && as_dir=.
3254
for ac_exec_ext in '' $ac_executable_extensions; do
3255
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256
ac_cv_prog_CC="${ac_tool_prefix}cc"
3257
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267
if test -n "$CC"; then
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269
$as_echo "$CC" >&6; }
3271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272
$as_echo "no" >&6; }
3278
if test -z "$CC"; then
3279
# Extract the first word of "cc", so it can be a program name with args.
3280
set dummy cc; ac_word=$2
3281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282
$as_echo_n "checking for $ac_word... " >&6; }
3283
if test "${ac_cv_prog_CC+set}" = set; then :
3284
$as_echo_n "(cached) " >&6
3286
if test -n "$CC"; then
3287
ac_cv_prog_CC="$CC" # Let the user override the test.
3290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294
test -z "$as_dir" && as_dir=.
3295
for ac_exec_ext in '' $ac_executable_extensions; do
3296
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298
ac_prog_rejected=yes
3302
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309
if test $ac_prog_rejected = yes; then
3310
# We found a bogon in the path, so make sure we never use it.
3311
set dummy $ac_cv_prog_CC
3313
if test $# != 0; then
3314
# We chose a different compiler from the bogus one.
3315
# However, it has the same basename, so the bogon will be chosen
3316
# first if we set CC to just the basename; use the full file name.
3318
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3324
if test -n "$CC"; then
3325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326
$as_echo "$CC" >&6; }
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329
$as_echo "no" >&6; }
3334
if test -z "$CC"; then
3335
if test -n "$ac_tool_prefix"; then
3336
for ac_prog in cl.exe
3338
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341
$as_echo_n "checking for $ac_word... " >&6; }
3342
if test "${ac_cv_prog_CC+set}" = set; then :
3343
$as_echo_n "(cached) " >&6
3345
if test -n "$CC"; then
3346
ac_cv_prog_CC="$CC" # Let the user override the test.
3348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352
test -z "$as_dir" && as_dir=.
3353
for ac_exec_ext in '' $ac_executable_extensions; do
3354
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3356
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366
if test -n "$CC"; then
3367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368
$as_echo "$CC" >&6; }
3370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371
$as_echo "no" >&6; }
3375
test -n "$CC" && break
3378
if test -z "$CC"; then
3380
for ac_prog in cl.exe
3382
# Extract the first word of "$ac_prog", so it can be a program name with args.
3383
set dummy $ac_prog; ac_word=$2
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385
$as_echo_n "checking for $ac_word... " >&6; }
3386
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3387
$as_echo_n "(cached) " >&6
3389
if test -n "$ac_ct_CC"; then
3390
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396
test -z "$as_dir" && as_dir=.
3397
for ac_exec_ext in '' $ac_executable_extensions; do
3398
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399
ac_cv_prog_ac_ct_CC="$ac_prog"
3400
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410
if test -n "$ac_ct_CC"; then
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412
$as_echo "$ac_ct_CC" >&6; }
3414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415
$as_echo "no" >&6; }
3419
test -n "$ac_ct_CC" && break
3422
if test "x$ac_ct_CC" = x; then
3425
case $cross_compiling:$ac_tool_warned in
3427
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429
ac_tool_warned=yes ;;
3438
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440
as_fn_error $? "no acceptable C compiler found in \$PATH
3441
See \`config.log' for more details" "$LINENO" 5 ; }
3443
# Provide some information about the compiler.
3444
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3447
for ac_option in --version -v -V -qversion; do
3448
{ { ac_try="$ac_compiler $ac_option >&5"
3450
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451
*) ac_try_echo=$ac_try;;
3453
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454
$as_echo "$ac_try_echo"; } >&5
3455
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3457
if test -s conftest.err; then
3459
... rest of stderr output deleted ...
3460
10q' conftest.err >conftest.er1
3461
cat conftest.er1 >&5
3463
rm -f conftest.er1 conftest.err
3464
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465
test $ac_status = 0; }
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3469
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3470
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3471
$as_echo_n "(cached) " >&6
3473
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474
/* end confdefs.h. */
3487
if ac_fn_c_try_compile "$LINENO"; then :
3492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3497
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3498
if test $ac_compiler_gnu = yes; then
3503
ac_test_CFLAGS=${CFLAGS+set}
3504
ac_save_CFLAGS=$CFLAGS
3505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3506
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3507
if test "${ac_cv_prog_cc_g+set}" = set; then :
3508
$as_echo_n "(cached) " >&6
3510
ac_save_c_werror_flag=$ac_c_werror_flag
3511
ac_c_werror_flag=yes
3514
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515
/* end confdefs.h. */
3525
if ac_fn_c_try_compile "$LINENO"; then :
3529
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530
/* end confdefs.h. */
3540
if ac_fn_c_try_compile "$LINENO"; then :
3543
ac_c_werror_flag=$ac_save_c_werror_flag
3545
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546
/* end confdefs.h. */
3556
if ac_fn_c_try_compile "$LINENO"; then :
3559
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564
ac_c_werror_flag=$ac_save_c_werror_flag
3566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3567
$as_echo "$ac_cv_prog_cc_g" >&6; }
3568
if test "$ac_test_CFLAGS" = set; then
3569
CFLAGS=$ac_save_CFLAGS
3570
elif test $ac_cv_prog_cc_g = yes; then
3571
if test "$GCC" = yes; then
3577
if test "$GCC" = yes; then
3583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3584
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3585
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3586
$as_echo_n "(cached) " >&6
3588
ac_cv_prog_cc_c89=no
3590
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591
/* end confdefs.h. */
3594
#include <sys/types.h>
3595
#include <sys/stat.h>
3596
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597
struct buf { int x; };
3598
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599
static char *e (p, i)
3605
static char *f (char * (*g) (char **, int), char **p, ...)
3610
s = g (p, va_arg (v,int));
3615
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616
function prototypes and stuff, but not '\xHH' hex character constants.
3617
These don't provoke an error unfortunately, instead are silently treated
3618
as 'x'. The following induces an error, until -std is added to get
3619
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620
array size at least. It's necessary to write '\x00'==0 to get something
3621
that's true only with -std. */
3622
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625
inside strings and character constants. */
3627
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629
int test (int i, double x);
3630
struct s1 {int (*f) (int a);};
3631
struct s2 {int (*f) (double a);};
3632
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646
CC="$ac_save_CC $ac_arg"
3647
if ac_fn_c_try_compile "$LINENO"; then :
3648
ac_cv_prog_cc_c89=$ac_arg
3650
rm -f core conftest.err conftest.$ac_objext
3651
test "x$ac_cv_prog_cc_c89" != "xno" && break
3653
rm -f conftest.$ac_ext
3658
case "x$ac_cv_prog_cc_c89" in
3660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3661
$as_echo "none needed" >&6; } ;;
3663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664
$as_echo "unsupported" >&6; } ;;
3666
CC="$CC $ac_cv_prog_cc_c89"
3667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3668
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3670
if test "x$ac_cv_prog_cc_c89" != xno; then :
3675
ac_cpp='$CPP $CPPFLAGS'
3676
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681
ac_cpp='$CPP $CPPFLAGS'
3682
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3686
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3687
# On Suns, sometimes $CPP names a directory.
3688
if test -n "$CPP" && test -d "$CPP"; then
3691
if test -z "$CPP"; then
3692
if test "${ac_cv_prog_CPP+set}" = set; then :
3693
$as_echo_n "(cached) " >&6
3695
# Double quotes because CPP needs to be expanded
3696
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3699
for ac_c_preproc_warn_flag in '' yes
3701
# Use a header file that comes with gcc, so configuring glibc
3702
# with a fresh cross-compiler works.
3703
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3704
# <limits.h> exists even on freestanding compilers.
3705
# On the NeXT, cc -E runs the code through the compiler's parser,
3706
# not just through cpp. "Syntax error" is here to catch this case.
3707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708
/* end confdefs.h. */
3710
# include <limits.h>
3712
# include <assert.h>
3716
if ac_fn_c_try_cpp "$LINENO"; then :
3719
# Broken: fails on valid input.
3722
rm -f conftest.err conftest.i conftest.$ac_ext
3724
# OK, works on sane cases. Now check whether nonexistent headers
3725
# can be detected and how.
3726
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727
/* end confdefs.h. */
3728
#include <ac_nonexistent.h>
3730
if ac_fn_c_try_cpp "$LINENO"; then :
3731
# Broken: success on invalid input.
3734
# Passes both tests.
3738
rm -f conftest.err conftest.i conftest.$ac_ext
3741
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742
rm -f conftest.i conftest.err conftest.$ac_ext
3743
if $ac_preproc_ok; then :
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3756
$as_echo "$CPP" >&6; }
3758
for ac_c_preproc_warn_flag in '' yes
3760
# Use a header file that comes with gcc, so configuring glibc
3761
# with a fresh cross-compiler works.
3762
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3763
# <limits.h> exists even on freestanding compilers.
3764
# On the NeXT, cc -E runs the code through the compiler's parser,
3765
# not just through cpp. "Syntax error" is here to catch this case.
3766
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767
/* end confdefs.h. */
3769
# include <limits.h>
3771
# include <assert.h>
3775
if ac_fn_c_try_cpp "$LINENO"; then :
3778
# Broken: fails on valid input.
3781
rm -f conftest.err conftest.i conftest.$ac_ext
3783
# OK, works on sane cases. Now check whether nonexistent headers
3784
# can be detected and how.
3785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786
/* end confdefs.h. */
3787
#include <ac_nonexistent.h>
3789
if ac_fn_c_try_cpp "$LINENO"; then :
3790
# Broken: success on invalid input.
3793
# Passes both tests.
3797
rm -f conftest.err conftest.i conftest.$ac_ext
3800
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3801
rm -f conftest.i conftest.err conftest.$ac_ext
3802
if $ac_preproc_ok; then :
3805
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3808
See \`config.log' for more details" "$LINENO" 5 ; }
3812
ac_cpp='$CPP $CPPFLAGS'
3813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3819
if test -f "$ac_dir/install-sh"; then
3821
ac_install_sh="$ac_aux_dir/install-sh -c"
3823
elif test -f "$ac_dir/install.sh"; then
3825
ac_install_sh="$ac_aux_dir/install.sh -c"
3827
elif test -f "$ac_dir/shtool"; then
3829
ac_install_sh="$ac_aux_dir/shtool install -c"
3833
if test -z "$ac_aux_dir"; then
3834
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3837
# These three variables are undocumented and unsupported,
3838
# and are intended to be withdrawn in a future Autoconf release.
3839
# They can cause serious problems if a builder's source tree is in a directory
3840
# whose full name contains unusual characters.
3841
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3842
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3843
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3846
# Find a good install program. We prefer a C program (faster),
3847
# so one script is as good as another. But avoid the broken or
3848
# incompatible versions:
3849
# SysV /etc/install, /usr/sbin/install
3850
# SunOS /usr/etc/install
3851
# IRIX /sbin/install
3853
# AmigaOS /C/install, which installs bootblocks on floppy discs
3854
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3855
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3856
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3857
# OS/2's system install, which has a completely different semantic
3858
# ./install, which can be erroneously created by make from ./install.sh.
3859
# Reject install programs that cannot install multiple files.
3860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3861
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3862
if test -z "$INSTALL"; then
3863
if test "${ac_cv_path_install+set}" = set; then :
3864
$as_echo_n "(cached) " >&6
3866
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870
test -z "$as_dir" && as_dir=.
3871
# Account for people who put trailing slashes in PATH elements.
3872
case $as_dir/ in #((
3873
./ | .// | /[cC]/* | \
3874
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3875
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3878
# OSF1 and SCO ODT 3.0 have their own names for install.
3879
# Don't use installbsd from OSF since it installs stuff as root
3881
for ac_prog in ginstall scoinst install; do
3882
for ac_exec_ext in '' $ac_executable_extensions; do
3883
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3884
if test $ac_prog = install &&
3885
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3886
# AIX install. It has an incompatible calling convention.
3888
elif test $ac_prog = install &&
3889
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3890
# program-specific install script used by HP pwplus--don't use.
3893
rm -rf conftest.one conftest.two conftest.dir
3894
echo one > conftest.one
3895
echo two > conftest.two
3897
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3898
test -s conftest.one && test -s conftest.two &&
3899
test -s conftest.dir/conftest.one &&
3900
test -s conftest.dir/conftest.two
3902
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3915
rm -rf conftest.one conftest.two conftest.dir
3918
if test "${ac_cv_path_install+set}" = set; then
3919
INSTALL=$ac_cv_path_install
3921
# As a last resort, use the slow shell script. Don't cache a
3922
# value for INSTALL within a source directory, because that will
3923
# break other packages using the cache if that directory is
3924
# removed, or if the value is a relative name.
3925
INSTALL=$ac_install_sh
3928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3929
$as_echo "$INSTALL" >&6; }
3931
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3932
# It thinks the first close brace ends the variable substitution.
3933
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3935
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3937
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3940
$as_echo_n "checking whether ln -s works... " >&6; }
3942
if test "$LN_S" = "ln -s"; then
3943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944
$as_echo "yes" >&6; }
3946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3947
$as_echo "no, using $LN_S" >&6; }
3950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3951
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3953
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3954
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3955
$as_echo_n "(cached) " >&6
3957
cat >conftest.make <<\_ACEOF
3960
@echo '@@@%%%=$(MAKE)=@@@%%%'
3962
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3963
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3965
eval ac_cv_prog_make_${ac_make}_set=yes;;
3967
eval ac_cv_prog_make_${ac_make}_set=no;;
3971
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973
$as_echo "yes" >&6; }
3976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977
$as_echo "no" >&6; }
3978
SET_MAKE="MAKE=${MAKE-make}"
3981
if test -n "$ac_tool_prefix"; then
3982
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3983
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985
$as_echo_n "checking for $ac_word... " >&6; }
3986
if test "${ac_cv_prog_RANLIB+set}" = set; then :
3987
$as_echo_n "(cached) " >&6
3989
if test -n "$RANLIB"; then
3990
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996
test -z "$as_dir" && as_dir=.
3997
for ac_exec_ext in '' $ac_executable_extensions; do
3998
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4000
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009
RANLIB=$ac_cv_prog_RANLIB
4010
if test -n "$RANLIB"; then
4011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4012
$as_echo "$RANLIB" >&6; }
4014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015
$as_echo "no" >&6; }
4020
if test -z "$ac_cv_prog_RANLIB"; then
4021
ac_ct_RANLIB=$RANLIB
4022
# Extract the first word of "ranlib", so it can be a program name with args.
4023
set dummy ranlib; ac_word=$2
4024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025
$as_echo_n "checking for $ac_word... " >&6; }
4026
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4027
$as_echo_n "(cached) " >&6
4029
if test -n "$ac_ct_RANLIB"; then
4030
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036
test -z "$as_dir" && as_dir=.
4037
for ac_exec_ext in '' $ac_executable_extensions; do
4038
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039
ac_cv_prog_ac_ct_RANLIB="ranlib"
4040
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4050
if test -n "$ac_ct_RANLIB"; then
4051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4052
$as_echo "$ac_ct_RANLIB" >&6; }
4054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055
$as_echo "no" >&6; }
4058
if test "x$ac_ct_RANLIB" = x; then
4061
case $cross_compiling:$ac_tool_warned in
4063
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065
ac_tool_warned=yes ;;
4067
RANLIB=$ac_ct_RANLIB
4070
RANLIB="$ac_cv_prog_RANLIB"
4075
# Extract the first word of "$ac_prog", so it can be a program name with args.
4076
set dummy $ac_prog; ac_word=$2
4077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078
$as_echo_n "checking for $ac_word... " >&6; }
4079
if test "${ac_cv_path_PERL+set}" = set; then :
4080
$as_echo_n "(cached) " >&6
4084
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091
test -z "$as_dir" && as_dir=.
4092
for ac_exec_ext in '' $ac_executable_extensions; do
4093
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4095
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105
PERL=$ac_cv_path_PERL
4106
if test -n "$PERL"; then
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4108
$as_echo "$PERL" >&6; }
4110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111
$as_echo "no" >&6; }
4115
test -n "$PERL" && break
4117
test -n "$PERL" || PERL="/usr/local/bin/perl"
4121
# Extract the first word of "$ac_prog", so it can be a program name with args.
4122
set dummy $ac_prog; ac_word=$2
4123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124
$as_echo_n "checking for $ac_word... " >&6; }
4125
if test "${ac_cv_path_NKF+set}" = set; then :
4126
$as_echo_n "(cached) " >&6
4130
ac_cv_path_NKF="$NKF" # Let the user override the test with a path.
4133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137
test -z "$as_dir" && as_dir=.
4138
for ac_exec_ext in '' $ac_executable_extensions; do
4139
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140
ac_cv_path_NKF="$as_dir/$ac_word$ac_exec_ext"
4141
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152
if test -n "$NKF"; then
4153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NKF" >&5
4154
$as_echo "$NKF" >&6; }
4156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157
$as_echo "no" >&6; }
4161
test -n "$NKF" && break
4163
test -n "$NKF" || NKF="/usr/local/bin/nkf"
4167
# Extract the first word of "$ac_prog", so it can be a program name with args.
4168
set dummy $ac_prog; ac_word=$2
4169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170
$as_echo_n "checking for $ac_word... " >&6; }
4171
if test "${ac_cv_path_MAN+set}" = set; then :
4172
$as_echo_n "(cached) " >&6
4176
ac_cv_path_MAN="$MAN" # Let the user override the test with a path.
4179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183
test -z "$as_dir" && as_dir=.
4184
for ac_exec_ext in '' $ac_executable_extensions; do
4185
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186
ac_cv_path_MAN="$as_dir/$ac_word$ac_exec_ext"
4187
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198
if test -n "$MAN"; then
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN" >&5
4200
$as_echo "$MAN" >&6; }
4202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203
$as_echo "no" >&6; }
4207
test -n "$MAN" && break
4209
test -n "$MAN" || MAN="/usr/bin/man"
4211
# Make sure we can run config.sub.
4212
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4213
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4216
$as_echo_n "checking build system type... " >&6; }
4217
if test "${ac_cv_build+set}" = set; then :
4218
$as_echo_n "(cached) " >&6
4220
ac_build_alias=$build_alias
4221
test "x$ac_build_alias" = x &&
4222
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4223
test "x$ac_build_alias" = x &&
4224
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4225
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4226
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4230
$as_echo "$ac_cv_build" >&6; }
4231
case $ac_cv_build in
4233
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4236
ac_save_IFS=$IFS; IFS='-'
4242
# Remember, the first character of IFS is used to create $*,
4243
# except with old shells:
4246
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4250
$as_echo_n "checking host system type... " >&6; }
4251
if test "${ac_cv_host+set}" = set; then :
4252
$as_echo_n "(cached) " >&6
4254
if test "x$host_alias" = x; then
4255
ac_cv_host=$ac_cv_build
4257
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4258
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4263
$as_echo "$ac_cv_host" >&6; }
4266
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4269
ac_save_IFS=$IFS; IFS='-'
4275
# Remember, the first character of IFS is used to create $*,
4276
# except with old shells:
4279
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4291
cat >>confdefs.h <<_ACEOF
4292
#define W3M_TARGET $W3M_TARGET
4305
WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
4306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if m17n support is enabled" >&5
4307
$as_echo_n "checking if m17n support is enabled... " >&6; }
4308
# Check whether --enable-m17n was given.
4309
if test "${enable_m17n+set}" = set; then :
4310
enableval=$enable_m17n;
4315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_m17n" >&5
4316
$as_echo "$enable_m17n" >&6; }
4317
if test x"$enable_m17n" = xno; then
4323
display_charset='WC_CES_US_ASCII'
4324
system_charset='WC_CES_US_ASCII'
4325
document_charset='WC_CES_US_ASCII'
4327
$as_echo "#define USE_M17N 1" >>confdefs.h
4329
WCTARGET="libwc/libwc.a"
4330
WCCFLAGS='-I$(srcdir) -I$(srcdir)/..'
4331
wcinclude='-I$(srcdir)/libwc'
4332
wclib="-L./libwc -lwc"
4333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unicode support is enabled" >&5
4334
$as_echo_n "checking if unicode support is enabled... " >&6; }
4335
# Check whether --enable-unicode was given.
4336
if test "${enable_unicode+set}" = set; then :
4337
enableval=$enable_unicode;
4339
enable_unicode="yes"
4342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unicode" >&5
4343
$as_echo "$enable_unicode" >&6; }
4344
if test x"$enable_m17n" = xyes; then
4347
charset=$enable_m17n
4349
if test x"$enable_unicode" = xyes; then
4350
WCCFLAGS="-DUSE_UNICODE $WCCFLAGS"
4351
if test x"$charset" = xUS-ASCII; then
4354
$as_echo "#define USE_UNICODE 1" >>confdefs.h
4357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if message l10n" >&5
4358
$as_echo_n "checking if message l10n... " >&6; }
4359
# Check whether --enable-messagel10n was given.
4360
if test "${enable_messagel10n+set}" = set; then :
4361
enableval=$enable_messagel10n;
4363
enable_messagel10n="no"
4366
if test x$enable_messagel10n = xyes; then
4367
enable_messagel10n="ja";
4369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_messagel10n" >&5
4370
$as_echo "$enable_messagel10n" >&6; }
4371
if test x$enable_messagel10n = xno; then
4374
POSUBST="\$(top_srcdir)/posubst"
4375
POLANG="$enable_messagel10n"
4377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if japanese support is enabled" >&5
4378
$as_echo_n "checking if japanese support is enabled... " >&6; }
4379
# Check whether --enable-japanese was given.
4380
if test "${enable_japanese+set}" = set; then :
4381
enableval=$enable_japanese;
4383
enable_japanese="no"
4386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_japanese" >&5
4387
$as_echo "$enable_japanese" >&6; }
4388
if test x"$enable_japanese" = xno; then
4392
case "$enable_japanese" in
4393
E*) charset=EUC-JP;;
4394
S*) charset=Shift_JIS;;
4395
J*) charset=ISO-2022-JP;;
4399
display_charset=$charset
4400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which charset is used for display" >&5
4401
$as_echo_n "checking which charset is used for display... " >&6; }
4403
# Check whether --with-charset was given.
4404
if test "${with_charset+set}" = set; then :
4405
withval=$with_charset; test x"with_charset" = xyes || display_charset="$with_charset"
4408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $display_charset" >&5
4409
$as_echo "$display_charset" >&6; }
4410
display_charset=`awk '$1 == "'$display_charset'" {print $2}' $srcdir/charset-list`
4411
case "$display_charset" in
4412
WC_CES_ISO_2022_JP*)
4413
system_charset=WC_CES_EUC_JP
4414
document_charset=WC_CES_EUC_JP
4417
system_charset=$display_charset
4419
document_charset=WC_CES_EUC_JP
4421
WC_CES_ISO_2022_CN|WC_CES_HZ_GB_2312)
4422
system_charset=WC_CES_EUC_CN
4423
document_charset=WC_CES_EUC_CN
4426
system_charset=$display_charset
4428
document_charset=WC_CES_EUC_TW
4431
system_charset=WC_CES_EUC_KR
4432
document_charset=WC_CES_EUC_KR
4435
system_charset=$display_charset
4436
document_charset=$display_charset
4440
W3M_LANGDEF=`echo $w3m_lang | tr 'a-z' 'A-Z'`
4441
W3M_LANG=$W3M_LANGDEF
4442
cat >>confdefs.h <<_ACEOF
4443
#define W3M_LANG $W3M_LANG
4446
cat >>confdefs.h <<_ACEOF
4447
#define WCTARGET "$WCTARGET"
4450
cat >>confdefs.h <<_ACEOF
4451
#define WCCFLAGS "$WCCFLAGS"
4454
CFLAGS="$CFLAGS $wcinclude"
4455
W3M_LIBS="$W3M_LIBS $wclib"
4456
cat >>confdefs.h <<_ACEOF
4457
#define DISPLAY_CHARSET $display_charset
4460
cat >>confdefs.h <<_ACEOF
4461
#define SYSTEM_CHARSET $system_charset
4464
cat >>confdefs.h <<_ACEOF
4465
#define DOCUMENT_CHARSET $document_charset
4468
if test x$enable_messagel10n = xno; then
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4470
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4471
if test -z "$MKDIR_P"; then
4472
if test "${ac_cv_path_mkdir+set}" = set; then :
4473
$as_echo_n "(cached) " >&6
4475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4479
test -z "$as_dir" && as_dir=.
4480
for ac_prog in mkdir gmkdir; do
4481
for ac_exec_ext in '' $ac_executable_extensions; do
4482
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4483
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4484
'mkdir (GNU coreutils) '* | \
4485
'mkdir (coreutils) '* | \
4486
'mkdir (fileutils) '4.1*)
4487
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4497
test -d ./--version && rmdir ./--version
4498
if test "${ac_cv_path_mkdir+set}" = set; then
4499
MKDIR_P="$ac_cv_path_mkdir -p"
4501
# As a last resort, use the slow shell script. Don't cache a
4502
# value for MKDIR_P within a source directory, because that will
4503
# break other packages using the cache if that directory is
4504
# removed, or if the value is a relative name.
4505
MKDIR_P="$ac_install_sh -d"
4508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4509
$as_echo "$MKDIR_P" >&6; }
4513
[\\/$]* | ?:[\\/]*) ;;
4514
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4519
$as_echo_n "checking whether NLS is requested... " >&6; }
4520
# Check whether --enable-nls was given.
4521
if test "${enable_nls+set}" = set; then :
4522
enableval=$enable_nls; USE_NLS=$enableval
4527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4528
$as_echo "$USE_NLS" >&6; }
4533
GETTEXT_MACRO_VERSION=0.18
4538
# Prepare PATH_SEPARATOR.
4539
# The user is always right.
4540
if test "${PATH_SEPARATOR+set}" != set; then
4541
echo "#! /bin/sh" >conf$$.sh
4542
echo "exit 0" >>conf$$.sh
4544
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4552
# Find out how to test for executable files. Don't use a zero-byte file,
4553
# as systems may use methods other than mode bits to determine executability.
4554
cat >conf$$.file <<_ASEOF
4558
chmod +x conf$$.file
4559
if test -x conf$$.file >/dev/null 2>&1; then
4560
ac_executable_p="test -x"
4562
ac_executable_p="test -f"
4566
# Extract the first word of "msgfmt", so it can be a program name with args.
4567
set dummy msgfmt; ac_word=$2
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569
$as_echo_n "checking for $ac_word... " >&6; }
4570
if test "${ac_cv_path_MSGFMT+set}" = set; then :
4571
$as_echo_n "(cached) " >&6
4575
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4578
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4579
for ac_dir in $PATH; do
4581
test -z "$ac_dir" && ac_dir=.
4582
for ac_exec_ext in '' $ac_executable_extensions; do
4583
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4584
echo "$as_me: trying $ac_dir/$ac_word..." >&5
4585
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4586
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4587
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4594
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4598
MSGFMT="$ac_cv_path_MSGFMT"
4599
if test "$MSGFMT" != ":"; then
4600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4601
$as_echo "$MSGFMT" >&6; }
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604
$as_echo "no" >&6; }
4607
# Extract the first word of "gmsgfmt", so it can be a program name with args.
4608
set dummy gmsgfmt; ac_word=$2
4609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610
$as_echo_n "checking for $ac_word... " >&6; }
4611
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4612
$as_echo_n "(cached) " >&6
4616
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623
test -z "$as_dir" && as_dir=.
4624
for ac_exec_ext in '' $ac_executable_extensions; do
4625
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4627
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4638
GMSGFMT=$ac_cv_path_GMSGFMT
4639
if test -n "$GMSGFMT"; then
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4641
$as_echo "$GMSGFMT" >&6; }
4643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644
$as_echo "no" >&6; }
4649
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4650
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4651
*) MSGFMT_015=$MSGFMT ;;
4654
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4655
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4656
*) GMSGFMT_015=$GMSGFMT ;;
4661
# Prepare PATH_SEPARATOR.
4662
# The user is always right.
4663
if test "${PATH_SEPARATOR+set}" != set; then
4664
echo "#! /bin/sh" >conf$$.sh
4665
echo "exit 0" >>conf$$.sh
4667
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4675
# Find out how to test for executable files. Don't use a zero-byte file,
4676
# as systems may use methods other than mode bits to determine executability.
4677
cat >conf$$.file <<_ASEOF
4681
chmod +x conf$$.file
4682
if test -x conf$$.file >/dev/null 2>&1; then
4683
ac_executable_p="test -x"
4685
ac_executable_p="test -f"
4689
# Extract the first word of "xgettext", so it can be a program name with args.
4690
set dummy xgettext; ac_word=$2
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692
$as_echo_n "checking for $ac_word... " >&6; }
4693
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4694
$as_echo_n "(cached) " >&6
4698
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4701
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4702
for ac_dir in $PATH; do
4704
test -z "$ac_dir" && ac_dir=.
4705
for ac_exec_ext in '' $ac_executable_extensions; do
4706
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4707
echo "$as_me: trying $ac_dir/$ac_word..." >&5
4708
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4709
(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
4710
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4717
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4721
XGETTEXT="$ac_cv_path_XGETTEXT"
4722
if test "$XGETTEXT" != ":"; then
4723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4724
$as_echo "$XGETTEXT" >&6; }
4726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727
$as_echo "no" >&6; }
4732
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4733
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4734
*) XGETTEXT_015=$XGETTEXT ;;
4739
# Prepare PATH_SEPARATOR.
4740
# The user is always right.
4741
if test "${PATH_SEPARATOR+set}" != set; then
4742
echo "#! /bin/sh" >conf$$.sh
4743
echo "exit 0" >>conf$$.sh
4745
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4753
# Find out how to test for executable files. Don't use a zero-byte file,
4754
# as systems may use methods other than mode bits to determine executability.
4755
cat >conf$$.file <<_ASEOF
4759
chmod +x conf$$.file
4760
if test -x conf$$.file >/dev/null 2>&1; then
4761
ac_executable_p="test -x"
4763
ac_executable_p="test -f"
4767
# Extract the first word of "msgmerge", so it can be a program name with args.
4768
set dummy msgmerge; ac_word=$2
4769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770
$as_echo_n "checking for $ac_word... " >&6; }
4771
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4772
$as_echo_n "(cached) " >&6
4776
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4779
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4780
for ac_dir in $PATH; do
4782
test -z "$ac_dir" && ac_dir=.
4783
for ac_exec_ext in '' $ac_executable_extensions; do
4784
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4785
echo "$as_me: trying $ac_dir/$ac_word..." >&5
4786
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4787
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4794
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4798
MSGMERGE="$ac_cv_path_MSGMERGE"
4799
if test "$MSGMERGE" != ":"; then
4800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4801
$as_echo "$MSGMERGE" >&6; }
4803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804
$as_echo "no" >&6; }
4808
test -n "$localedir" || localedir='${datadir}/locale'
4811
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4814
ac_config_commands="$ac_config_commands po-directories"
4818
if test "X$prefix" = "XNONE"; then
4819
acl_final_prefix="$ac_default_prefix"
4821
acl_final_prefix="$prefix"
4823
if test "X$exec_prefix" = "XNONE"; then
4824
acl_final_exec_prefix='${prefix}'
4826
acl_final_exec_prefix="$exec_prefix"
4828
acl_save_prefix="$prefix"
4829
prefix="$acl_final_prefix"
4830
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4831
prefix="$acl_save_prefix"
4834
# Check whether --with-gnu-ld was given.
4835
if test "${with_gnu_ld+set}" = set; then :
4836
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4841
# Prepare PATH_SEPARATOR.
4842
# The user is always right.
4843
if test "${PATH_SEPARATOR+set}" != set; then
4844
echo "#! /bin/sh" >conf$$.sh
4845
echo "exit 0" >>conf$$.sh
4847
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4855
if test "$GCC" = yes; then
4856
# Check if gcc -print-prog-name=ld gives a path.
4857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4858
$as_echo_n "checking for ld used by GCC... " >&6; }
4861
# gcc leaves a trailing carriage return which upsets mingw
4862
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4864
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4867
# Accept absolute paths.
4868
[\\/]* | [A-Za-z]:[\\/]*)
4869
re_direlt='/[^/][^/]*/\.\./'
4870
# Canonicalize the path of ld
4871
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4872
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4873
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4875
test -z "$LD" && LD="$ac_prog"
4878
# If it fails, then pretend we aren't using GCC.
4882
# If it is relative, then search for the first ld in PATH.
4886
elif test "$with_gnu_ld" = yes; then
4887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4888
$as_echo_n "checking for GNU ld... " >&6; }
4890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4891
$as_echo_n "checking for non-GNU ld... " >&6; }
4893
if test "${acl_cv_path_LD+set}" = set; then :
4894
$as_echo_n "(cached) " >&6
4896
if test -z "$LD"; then
4897
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4898
for ac_dir in $PATH; do
4899
test -z "$ac_dir" && ac_dir=.
4900
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4901
acl_cv_path_LD="$ac_dir/$ac_prog"
4902
# Check to see if the program is GNU ld. I'd rather use --version,
4903
# but apparently some GNU ld's only accept -v.
4904
# Break only if it was the GNU/non-GNU ld that we prefer.
4905
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4906
*GNU* | *'with BFD'*)
4907
test "$with_gnu_ld" != no && break ;;
4909
test "$with_gnu_ld" != yes && break ;;
4915
acl_cv_path_LD="$LD" # Let the user override the test with a path.
4919
LD="$acl_cv_path_LD"
4920
if test -n "$LD"; then
4921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4922
$as_echo "$LD" >&6; }
4924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925
$as_echo "no" >&6; }
4927
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4929
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4930
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4931
$as_echo_n "(cached) " >&6
4933
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4934
case `$LD -v 2>&1 </dev/null` in
4935
*GNU* | *'with BFD'*)
4936
acl_cv_prog_gnu_ld=yes ;;
4938
acl_cv_prog_gnu_ld=no ;;
4941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4942
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4943
with_gnu_ld=$acl_cv_prog_gnu_ld
4948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4949
$as_echo_n "checking for shared library run path origin... " >&6; }
4950
if test "${acl_cv_rpath+set}" = set; then :
4951
$as_echo_n "(cached) " >&6
4954
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4955
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4962
$as_echo "$acl_cv_rpath" >&6; }
4964
acl_libext="$acl_cv_libext"
4965
acl_shlibext="$acl_cv_shlibext"
4966
acl_libname_spec="$acl_cv_libname_spec"
4967
acl_library_names_spec="$acl_cv_library_names_spec"
4968
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4969
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4970
acl_hardcode_direct="$acl_cv_hardcode_direct"
4971
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4972
# Check whether --enable-rpath was given.
4973
if test "${enable_rpath+set}" = set; then :
4974
enableval=$enable_rpath; :
4982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4983
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4984
if test "${ac_cv_path_GREP+set}" = set; then :
4985
$as_echo_n "(cached) " >&6
4987
if test -z "$GREP"; then
4988
ac_path_GREP_found=false
4989
# Loop through the user's path and test for each of PROGNAME-LIST
4990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4994
test -z "$as_dir" && as_dir=.
4995
for ac_prog in grep ggrep; do
4996
for ac_exec_ext in '' $ac_executable_extensions; do
4997
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4998
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4999
# Check for GNU ac_path_GREP and select it if it is found.
5000
# Check for GNU $ac_path_GREP
5001
case `"$ac_path_GREP" --version 2>&1` in
5003
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5006
$as_echo_n 0123456789 >"conftest.in"
5009
cat "conftest.in" "conftest.in" >"conftest.tmp"
5010
mv "conftest.tmp" "conftest.in"
5011
cp "conftest.in" "conftest.nl"
5012
$as_echo 'GREP' >> "conftest.nl"
5013
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015
as_fn_arith $ac_count + 1 && ac_count=$as_val
5016
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5017
# Best one so far, save it but keep looking for a better one
5018
ac_cv_path_GREP="$ac_path_GREP"
5019
ac_path_GREP_max=$ac_count
5021
# 10*(2^10) chars as input seems more than enough
5022
test $ac_count -gt 10 && break
5024
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5027
$ac_path_GREP_found && break 3
5032
if test -z "$ac_cv_path_GREP"; then
5033
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5036
ac_cv_path_GREP=$GREP
5040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5041
$as_echo "$ac_cv_path_GREP" >&6; }
5042
GREP="$ac_cv_path_GREP"
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5046
$as_echo_n "checking for egrep... " >&6; }
5047
if test "${ac_cv_path_EGREP+set}" = set; then :
5048
$as_echo_n "(cached) " >&6
5050
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5051
then ac_cv_path_EGREP="$GREP -E"
5053
if test -z "$EGREP"; then
5054
ac_path_EGREP_found=false
5055
# Loop through the user's path and test for each of PROGNAME-LIST
5056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5060
test -z "$as_dir" && as_dir=.
5061
for ac_prog in egrep; do
5062
for ac_exec_ext in '' $ac_executable_extensions; do
5063
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5064
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5065
# Check for GNU ac_path_EGREP and select it if it is found.
5066
# Check for GNU $ac_path_EGREP
5067
case `"$ac_path_EGREP" --version 2>&1` in
5069
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5072
$as_echo_n 0123456789 >"conftest.in"
5075
cat "conftest.in" "conftest.in" >"conftest.tmp"
5076
mv "conftest.tmp" "conftest.in"
5077
cp "conftest.in" "conftest.nl"
5078
$as_echo 'EGREP' >> "conftest.nl"
5079
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081
as_fn_arith $ac_count + 1 && ac_count=$as_val
5082
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5083
# Best one so far, save it but keep looking for a better one
5084
ac_cv_path_EGREP="$ac_path_EGREP"
5085
ac_path_EGREP_max=$ac_count
5087
# 10*(2^10) chars as input seems more than enough
5088
test $ac_count -gt 10 && break
5090
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5093
$ac_path_EGREP_found && break 3
5098
if test -z "$ac_cv_path_EGREP"; then
5099
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5102
ac_cv_path_EGREP=$EGREP
5107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5108
$as_echo "$ac_cv_path_EGREP" >&6; }
5109
EGREP="$ac_cv_path_EGREP"
5118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5119
$as_echo_n "checking for 64-bit host... " >&6; }
5120
if test "${gl_cv_solaris_64bit+set}" = set; then :
5121
$as_echo_n "(cached) " >&6
5123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124
/* end confdefs.h. */
5131
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132
$EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5133
gl_cv_solaris_64bit=yes
5135
gl_cv_solaris_64bit=no
5141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5142
$as_echo "$gl_cv_solaris_64bit" >&6; }
5143
if test $gl_cv_solaris_64bit = yes; then
5144
acl_libdirstem=lib/64
5146
sparc*) acl_libdirstem2=lib/sparcv9 ;;
5147
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5152
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5153
if test -n "$searchpath"; then
5154
acl_save_IFS="${IFS= }"; IFS=":"
5155
for searchdir in $searchpath; do
5156
if test -d "$searchdir"; then
5157
case "$searchdir" in
5158
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5160
# Better ignore directories of this form. They are misleading.
5162
*) searchdir=`cd "$searchdir" && pwd`
5163
case "$searchdir" in
5164
*/lib64 ) acl_libdirstem=lib64 ;;
5173
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5188
acl_save_prefix="$prefix"
5189
prefix="$acl_final_prefix"
5190
acl_save_exec_prefix="$exec_prefix"
5191
exec_prefix="$acl_final_exec_prefix"
5193
eval additional_includedir=\"$includedir\"
5194
eval additional_libdir=\"$libdir\"
5196
exec_prefix="$acl_save_exec_prefix"
5197
prefix="$acl_save_prefix"
5200
# Check whether --with-libiconv-prefix was given.
5201
if test "${with_libiconv_prefix+set}" = set; then :
5202
withval=$with_libiconv_prefix;
5203
if test "X$withval" = "Xno"; then
5206
if test "X$withval" = "X"; then
5208
acl_save_prefix="$prefix"
5209
prefix="$acl_final_prefix"
5210
acl_save_exec_prefix="$exec_prefix"
5211
exec_prefix="$acl_final_exec_prefix"
5213
eval additional_includedir=\"$includedir\"
5214
eval additional_libdir=\"$libdir\"
5216
exec_prefix="$acl_save_exec_prefix"
5217
prefix="$acl_save_prefix"
5220
additional_includedir="$withval/include"
5221
additional_libdir="$withval/$acl_libdirstem"
5222
if test "$acl_libdirstem2" != "$acl_libdirstem" \
5223
&& ! test -d "$withval/$acl_libdirstem"; then
5224
additional_libdir="$withval/$acl_libdirstem2"
5238
names_already_handled=
5239
names_next_round='iconv '
5240
while test -n "$names_next_round"; do
5241
names_this_round="$names_next_round"
5243
for name in $names_this_round; do
5245
for n in $names_already_handled; do
5246
if test "$n" = "$name"; then
5251
if test -z "$already_handled"; then
5252
names_already_handled="$names_already_handled $name"
5253
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5254
eval value=\"\$HAVE_LIB$uppername\"
5255
if test -n "$value"; then
5256
if test "$value" = yes; then
5257
eval value=\"\$LIB$uppername\"
5258
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5259
eval value=\"\$LTLIB$uppername\"
5260
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5269
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5270
if test -n "$acl_shlibext"; then
5271
shrext=".$acl_shlibext" # typically: shrext=.so
5275
if test $use_additional = yes; then
5276
dir="$additional_libdir"
5277
if test -n "$acl_shlibext"; then
5278
if test -f "$dir/$libname$shrext"; then
5280
found_so="$dir/$libname$shrext"
5282
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5283
ver=`(cd "$dir" && \
5284
for f in "$libname$shrext".*; do echo "$f"; done \
5285
| sed -e "s,^$libname$shrext\\\\.,," \
5286
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5287
| sed 1q ) 2>/dev/null`
5288
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5290
found_so="$dir/$libname$shrext.$ver"
5293
eval library_names=\"$acl_library_names_spec\"
5294
for f in $library_names; do
5295
if test -f "$dir/$f"; then
5304
if test "X$found_dir" = "X"; then
5305
if test -f "$dir/$libname.$acl_libext"; then
5307
found_a="$dir/$libname.$acl_libext"
5310
if test "X$found_dir" != "X"; then
5311
if test -f "$dir/$libname.la"; then
5312
found_la="$dir/$libname.la"
5316
if test "X$found_dir" = "X"; then
5317
for x in $LDFLAGS $LTLIBICONV; do
5319
acl_save_prefix="$prefix"
5320
prefix="$acl_final_prefix"
5321
acl_save_exec_prefix="$exec_prefix"
5322
exec_prefix="$acl_final_exec_prefix"
5324
exec_prefix="$acl_save_exec_prefix"
5325
prefix="$acl_save_prefix"
5329
dir=`echo "X$x" | sed -e 's/^X-L//'`
5330
if test -n "$acl_shlibext"; then
5331
if test -f "$dir/$libname$shrext"; then
5333
found_so="$dir/$libname$shrext"
5335
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5336
ver=`(cd "$dir" && \
5337
for f in "$libname$shrext".*; do echo "$f"; done \
5338
| sed -e "s,^$libname$shrext\\\\.,," \
5339
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5340
| sed 1q ) 2>/dev/null`
5341
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5343
found_so="$dir/$libname$shrext.$ver"
5346
eval library_names=\"$acl_library_names_spec\"
5347
for f in $library_names; do
5348
if test -f "$dir/$f"; then
5357
if test "X$found_dir" = "X"; then
5358
if test -f "$dir/$libname.$acl_libext"; then
5360
found_a="$dir/$libname.$acl_libext"
5363
if test "X$found_dir" != "X"; then
5364
if test -f "$dir/$libname.la"; then
5365
found_la="$dir/$libname.la"
5370
if test "X$found_dir" != "X"; then
5375
if test "X$found_dir" != "X"; then
5376
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5377
if test "X$found_so" != "X"; then
5378
if test "$enable_rpath" = no \
5379
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
5380
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5381
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5384
for x in $ltrpathdirs; do
5385
if test "X$x" = "X$found_dir"; then
5390
if test -z "$haveit"; then
5391
ltrpathdirs="$ltrpathdirs $found_dir"
5393
if test "$acl_hardcode_direct" = yes; then
5394
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5396
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5397
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5399
for x in $rpathdirs; do
5400
if test "X$x" = "X$found_dir"; then
5405
if test -z "$haveit"; then
5406
rpathdirs="$rpathdirs $found_dir"
5410
for x in $LDFLAGS $LIBICONV; do
5412
acl_save_prefix="$prefix"
5413
prefix="$acl_final_prefix"
5414
acl_save_exec_prefix="$exec_prefix"
5415
exec_prefix="$acl_final_exec_prefix"
5417
exec_prefix="$acl_save_exec_prefix"
5418
prefix="$acl_save_prefix"
5420
if test "X$x" = "X-L$found_dir"; then
5425
if test -z "$haveit"; then
5426
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5428
if test "$acl_hardcode_minus_L" != no; then
5429
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5431
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5437
if test "X$found_a" != "X"; then
5438
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5440
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5443
additional_includedir=
5444
case "$found_dir" in
5445
*/$acl_libdirstem | */$acl_libdirstem/)
5446
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5447
if test "$name" = 'iconv'; then
5448
LIBICONV_PREFIX="$basedir"
5450
additional_includedir="$basedir/include"
5452
*/$acl_libdirstem2 | */$acl_libdirstem2/)
5453
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5454
if test "$name" = 'iconv'; then
5455
LIBICONV_PREFIX="$basedir"
5457
additional_includedir="$basedir/include"
5460
if test "X$additional_includedir" != "X"; then
5461
if test "X$additional_includedir" != "X/usr/include"; then
5463
if test "X$additional_includedir" = "X/usr/local/include"; then
5464
if test -n "$GCC"; then
5466
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5470
if test -z "$haveit"; then
5471
for x in $CPPFLAGS $INCICONV; do
5473
acl_save_prefix="$prefix"
5474
prefix="$acl_final_prefix"
5475
acl_save_exec_prefix="$exec_prefix"
5476
exec_prefix="$acl_final_exec_prefix"
5478
exec_prefix="$acl_save_exec_prefix"
5479
prefix="$acl_save_prefix"
5481
if test "X$x" = "X-I$additional_includedir"; then
5486
if test -z "$haveit"; then
5487
if test -d "$additional_includedir"; then
5488
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5494
if test -n "$found_la"; then
5495
save_libdir="$libdir"
5497
*/* | *\\*) . "$found_la" ;;
5498
*) . "./$found_la" ;;
5500
libdir="$save_libdir"
5501
for dep in $dependency_libs; do
5504
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5505
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5506
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5508
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5509
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5510
if test -n "$GCC"; then
5512
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5516
if test -z "$haveit"; then
5518
for x in $LDFLAGS $LIBICONV; do
5520
acl_save_prefix="$prefix"
5521
prefix="$acl_final_prefix"
5522
acl_save_exec_prefix="$exec_prefix"
5523
exec_prefix="$acl_final_exec_prefix"
5525
exec_prefix="$acl_save_exec_prefix"
5526
prefix="$acl_save_prefix"
5528
if test "X$x" = "X-L$additional_libdir"; then
5533
if test -z "$haveit"; then
5534
if test -d "$additional_libdir"; then
5535
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5539
for x in $LDFLAGS $LTLIBICONV; do
5541
acl_save_prefix="$prefix"
5542
prefix="$acl_final_prefix"
5543
acl_save_exec_prefix="$exec_prefix"
5544
exec_prefix="$acl_final_exec_prefix"
5546
exec_prefix="$acl_save_exec_prefix"
5547
prefix="$acl_save_prefix"
5549
if test "X$x" = "X-L$additional_libdir"; then
5554
if test -z "$haveit"; then
5555
if test -d "$additional_libdir"; then
5556
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5563
dir=`echo "X$dep" | sed -e 's/^X-R//'`
5564
if test "$enable_rpath" != no; then
5566
for x in $rpathdirs; do
5567
if test "X$x" = "X$dir"; then
5572
if test -z "$haveit"; then
5573
rpathdirs="$rpathdirs $dir"
5576
for x in $ltrpathdirs; do
5577
if test "X$x" = "X$dir"; then
5582
if test -z "$haveit"; then
5583
ltrpathdirs="$ltrpathdirs $dir"
5588
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5591
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5594
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5595
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5601
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5602
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5608
if test "X$rpathdirs" != "X"; then
5609
if test -n "$acl_hardcode_libdir_separator"; then
5611
for found_dir in $rpathdirs; do
5612
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5614
acl_save_libdir="$libdir"
5616
eval flag=\"$acl_hardcode_libdir_flag_spec\"
5617
libdir="$acl_save_libdir"
5618
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5620
for found_dir in $rpathdirs; do
5621
acl_save_libdir="$libdir"
5623
eval flag=\"$acl_hardcode_libdir_flag_spec\"
5624
libdir="$acl_save_libdir"
5625
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5629
if test "X$ltrpathdirs" != "X"; then
5630
for found_dir in $ltrpathdirs; do
5631
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5666
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5667
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5668
$as_echo_n "(cached) " >&6
5670
gt_save_LIBS="$LIBS"
5671
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5672
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673
/* end confdefs.h. */
5674
#include <CoreFoundation/CFPreferences.h>
5678
CFPreferencesCopyAppValue(NULL, NULL)
5683
if ac_fn_c_try_link "$LINENO"; then :
5684
gt_cv_func_CFPreferencesCopyAppValue=yes
5686
gt_cv_func_CFPreferencesCopyAppValue=no
5688
rm -f core conftest.err conftest.$ac_objext \
5689
conftest$ac_exeext conftest.$ac_ext
5690
LIBS="$gt_save_LIBS"
5692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5693
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5694
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5696
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5700
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5701
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5702
$as_echo_n "(cached) " >&6
5704
gt_save_LIBS="$LIBS"
5705
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707
/* end confdefs.h. */
5708
#include <CoreFoundation/CFLocale.h>
5712
CFLocaleCopyCurrent();
5717
if ac_fn_c_try_link "$LINENO"; then :
5718
gt_cv_func_CFLocaleCopyCurrent=yes
5720
gt_cv_func_CFLocaleCopyCurrent=no
5722
rm -f core conftest.err conftest.$ac_objext \
5723
conftest$ac_exeext conftest.$ac_ext
5724
LIBS="$gt_save_LIBS"
5726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5727
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5728
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5730
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5734
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5735
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5747
case " $gt_needs " in
5748
*" need-formatstring-macros "*) gt_api_version=3 ;;
5749
*" need-ngettext "*) gt_api_version=2 ;;
5750
*) gt_api_version=1 ;;
5752
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5753
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5755
if test "$USE_NLS" = "yes"; then
5756
gt_use_preinstalled_gnugettext=no
5759
if test $gt_api_version -ge 3; then
5760
gt_revision_test_code='
5761
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5762
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5764
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5767
gt_revision_test_code=
5769
if test $gt_api_version -ge 2; then
5770
gt_expression_test_code=' + * ngettext ("", "", 0)'
5772
gt_expression_test_code=
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5776
$as_echo_n "checking for GNU gettext in libc... " >&6; }
5777
if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
5778
$as_echo_n "(cached) " >&6
5780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781
/* end confdefs.h. */
5782
#include <libintl.h>
5783
$gt_revision_test_code
5784
extern int _nl_msg_cat_cntr;
5785
extern int *_nl_domain_bindings;
5789
bindtextdomain ("", "");
5790
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5795
if ac_fn_c_try_link "$LINENO"; then :
5796
eval "$gt_func_gnugettext_libc=yes"
5798
eval "$gt_func_gnugettext_libc=no"
5800
rm -f core conftest.err conftest.$ac_objext \
5801
conftest$ac_exeext conftest.$ac_ext
5803
eval ac_res=\$$gt_func_gnugettext_libc
5804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5805
$as_echo "$ac_res" >&6; }
5807
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5813
am_save_CPPFLAGS="$CPPFLAGS"
5815
for element in $INCICONV; do
5817
for x in $CPPFLAGS; do
5819
acl_save_prefix="$prefix"
5820
prefix="$acl_final_prefix"
5821
acl_save_exec_prefix="$exec_prefix"
5822
exec_prefix="$acl_final_exec_prefix"
5824
exec_prefix="$acl_save_exec_prefix"
5825
prefix="$acl_save_prefix"
5827
if test "X$x" = "X$element"; then
5832
if test -z "$haveit"; then
5833
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5839
$as_echo_n "checking for iconv... " >&6; }
5840
if test "${am_cv_func_iconv+set}" = set; then :
5841
$as_echo_n "(cached) " >&6
5844
am_cv_func_iconv="no, consider installing GNU libiconv"
5846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847
/* end confdefs.h. */
5853
iconv_t cd = iconv_open("","");
5854
iconv(cd,NULL,NULL,NULL,NULL);
5860
if ac_fn_c_try_link "$LINENO"; then :
5861
am_cv_func_iconv=yes
5863
rm -f core conftest.err conftest.$ac_objext \
5864
conftest$ac_exeext conftest.$ac_ext
5865
if test "$am_cv_func_iconv" != yes; then
5866
am_save_LIBS="$LIBS"
5867
LIBS="$LIBS $LIBICONV"
5868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869
/* end confdefs.h. */
5875
iconv_t cd = iconv_open("","");
5876
iconv(cd,NULL,NULL,NULL,NULL);
5882
if ac_fn_c_try_link "$LINENO"; then :
5884
am_cv_func_iconv=yes
5886
rm -f core conftest.err conftest.$ac_objext \
5887
conftest$ac_exeext conftest.$ac_ext
5888
LIBS="$am_save_LIBS"
5892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5893
$as_echo "$am_cv_func_iconv" >&6; }
5894
if test "$am_cv_func_iconv" = yes; then
5895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5896
$as_echo_n "checking for working iconv... " >&6; }
5897
if test "${am_cv_func_iconv_works+set}" = set; then :
5898
$as_echo_n "(cached) " >&6
5901
am_save_LIBS="$LIBS"
5902
if test $am_cv_lib_iconv = yes; then
5903
LIBS="$LIBS $LIBICONV"
5905
if test "$cross_compiling" = yes; then :
5907
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5908
*) am_cv_func_iconv_works="guessing yes" ;;
5911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912
/* end confdefs.h. */
5918
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5921
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5922
if (cd_utf8_to_88591 != (iconv_t)(-1))
5924
static const char input[] = "\342\202\254"; /* EURO SIGN */
5926
const char *inptr = input;
5927
size_t inbytesleft = strlen (input);
5929
size_t outbytesleft = sizeof (buf);
5930
size_t res = iconv (cd_utf8_to_88591,
5931
(char **) &inptr, &inbytesleft,
5932
&outptr, &outbytesleft);
5937
/* Test against Solaris 10 bug: Failures are not distinguishable from
5938
successful returns. */
5940
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5941
if (cd_ascii_to_88591 != (iconv_t)(-1))
5943
static const char input[] = "\263";
5945
const char *inptr = input;
5946
size_t inbytesleft = strlen (input);
5948
size_t outbytesleft = sizeof (buf);
5949
size_t res = iconv (cd_ascii_to_88591,
5950
(char **) &inptr, &inbytesleft,
5951
&outptr, &outbytesleft);
5956
#if 0 /* This bug could be worked around by the caller. */
5957
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5959
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5960
if (cd_88591_to_utf8 != (iconv_t)(-1))
5962
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5964
const char *inptr = input;
5965
size_t inbytesleft = strlen (input);
5967
size_t outbytesleft = sizeof (buf);
5968
size_t res = iconv (cd_88591_to_utf8,
5969
(char **) &inptr, &inbytesleft,
5970
&outptr, &outbytesleft);
5976
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5978
if (/* Try standardized names. */
5979
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5980
/* Try IRIX, OSF/1 names. */
5981
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5982
/* Try AIX names. */
5983
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5984
/* Try HP-UX names. */
5985
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5990
if ac_fn_c_try_run "$LINENO"; then :
5991
am_cv_func_iconv_works=yes
5993
am_cv_func_iconv_works=no
5995
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5996
conftest.$ac_objext conftest.beam conftest.$ac_ext
5999
LIBS="$am_save_LIBS"
6002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6003
$as_echo "$am_cv_func_iconv_works" >&6; }
6004
case "$am_cv_func_iconv_works" in
6005
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
6006
*) am_func_iconv=yes ;;
6009
am_func_iconv=no am_cv_lib_iconv=no
6011
if test "$am_func_iconv" = yes; then
6013
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6016
if test "$am_cv_lib_iconv" = yes; then
6017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6018
$as_echo_n "checking how to link with libiconv... " >&6; }
6019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6020
$as_echo "$LIBICONV" >&6; }
6022
CPPFLAGS="$am_save_CPPFLAGS"
6039
acl_save_prefix="$prefix"
6040
prefix="$acl_final_prefix"
6041
acl_save_exec_prefix="$exec_prefix"
6042
exec_prefix="$acl_final_exec_prefix"
6044
eval additional_includedir=\"$includedir\"
6045
eval additional_libdir=\"$libdir\"
6047
exec_prefix="$acl_save_exec_prefix"
6048
prefix="$acl_save_prefix"
6051
# Check whether --with-libintl-prefix was given.
6052
if test "${with_libintl_prefix+set}" = set; then :
6053
withval=$with_libintl_prefix;
6054
if test "X$withval" = "Xno"; then
6057
if test "X$withval" = "X"; then
6059
acl_save_prefix="$prefix"
6060
prefix="$acl_final_prefix"
6061
acl_save_exec_prefix="$exec_prefix"
6062
exec_prefix="$acl_final_exec_prefix"
6064
eval additional_includedir=\"$includedir\"
6065
eval additional_libdir=\"$libdir\"
6067
exec_prefix="$acl_save_exec_prefix"
6068
prefix="$acl_save_prefix"
6071
additional_includedir="$withval/include"
6072
additional_libdir="$withval/$acl_libdirstem"
6073
if test "$acl_libdirstem2" != "$acl_libdirstem" \
6074
&& ! test -d "$withval/$acl_libdirstem"; then
6075
additional_libdir="$withval/$acl_libdirstem2"
6089
names_already_handled=
6090
names_next_round='intl '
6091
while test -n "$names_next_round"; do
6092
names_this_round="$names_next_round"
6094
for name in $names_this_round; do
6096
for n in $names_already_handled; do
6097
if test "$n" = "$name"; then
6102
if test -z "$already_handled"; then
6103
names_already_handled="$names_already_handled $name"
6104
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6105
eval value=\"\$HAVE_LIB$uppername\"
6106
if test -n "$value"; then
6107
if test "$value" = yes; then
6108
eval value=\"\$LIB$uppername\"
6109
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6110
eval value=\"\$LTLIB$uppername\"
6111
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6120
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6121
if test -n "$acl_shlibext"; then
6122
shrext=".$acl_shlibext" # typically: shrext=.so
6126
if test $use_additional = yes; then
6127
dir="$additional_libdir"
6128
if test -n "$acl_shlibext"; then
6129
if test -f "$dir/$libname$shrext"; then
6131
found_so="$dir/$libname$shrext"
6133
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6134
ver=`(cd "$dir" && \
6135
for f in "$libname$shrext".*; do echo "$f"; done \
6136
| sed -e "s,^$libname$shrext\\\\.,," \
6137
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6138
| sed 1q ) 2>/dev/null`
6139
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6141
found_so="$dir/$libname$shrext.$ver"
6144
eval library_names=\"$acl_library_names_spec\"
6145
for f in $library_names; do
6146
if test -f "$dir/$f"; then
6155
if test "X$found_dir" = "X"; then
6156
if test -f "$dir/$libname.$acl_libext"; then
6158
found_a="$dir/$libname.$acl_libext"
6161
if test "X$found_dir" != "X"; then
6162
if test -f "$dir/$libname.la"; then
6163
found_la="$dir/$libname.la"
6167
if test "X$found_dir" = "X"; then
6168
for x in $LDFLAGS $LTLIBINTL; do
6170
acl_save_prefix="$prefix"
6171
prefix="$acl_final_prefix"
6172
acl_save_exec_prefix="$exec_prefix"
6173
exec_prefix="$acl_final_exec_prefix"
6175
exec_prefix="$acl_save_exec_prefix"
6176
prefix="$acl_save_prefix"
6180
dir=`echo "X$x" | sed -e 's/^X-L//'`
6181
if test -n "$acl_shlibext"; then
6182
if test -f "$dir/$libname$shrext"; then
6184
found_so="$dir/$libname$shrext"
6186
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6187
ver=`(cd "$dir" && \
6188
for f in "$libname$shrext".*; do echo "$f"; done \
6189
| sed -e "s,^$libname$shrext\\\\.,," \
6190
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6191
| sed 1q ) 2>/dev/null`
6192
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6194
found_so="$dir/$libname$shrext.$ver"
6197
eval library_names=\"$acl_library_names_spec\"
6198
for f in $library_names; do
6199
if test -f "$dir/$f"; then
6208
if test "X$found_dir" = "X"; then
6209
if test -f "$dir/$libname.$acl_libext"; then
6211
found_a="$dir/$libname.$acl_libext"
6214
if test "X$found_dir" != "X"; then
6215
if test -f "$dir/$libname.la"; then
6216
found_la="$dir/$libname.la"
6221
if test "X$found_dir" != "X"; then
6226
if test "X$found_dir" != "X"; then
6227
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6228
if test "X$found_so" != "X"; then
6229
if test "$enable_rpath" = no \
6230
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
6231
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6232
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6235
for x in $ltrpathdirs; do
6236
if test "X$x" = "X$found_dir"; then
6241
if test -z "$haveit"; then
6242
ltrpathdirs="$ltrpathdirs $found_dir"
6244
if test "$acl_hardcode_direct" = yes; then
6245
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6247
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6248
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6250
for x in $rpathdirs; do
6251
if test "X$x" = "X$found_dir"; then
6256
if test -z "$haveit"; then
6257
rpathdirs="$rpathdirs $found_dir"
6261
for x in $LDFLAGS $LIBINTL; do
6263
acl_save_prefix="$prefix"
6264
prefix="$acl_final_prefix"
6265
acl_save_exec_prefix="$exec_prefix"
6266
exec_prefix="$acl_final_exec_prefix"
6268
exec_prefix="$acl_save_exec_prefix"
6269
prefix="$acl_save_prefix"
6271
if test "X$x" = "X-L$found_dir"; then
6276
if test -z "$haveit"; then
6277
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6279
if test "$acl_hardcode_minus_L" != no; then
6280
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6282
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6288
if test "X$found_a" != "X"; then
6289
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6291
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6294
additional_includedir=
6295
case "$found_dir" in
6296
*/$acl_libdirstem | */$acl_libdirstem/)
6297
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6298
if test "$name" = 'intl'; then
6299
LIBINTL_PREFIX="$basedir"
6301
additional_includedir="$basedir/include"
6303
*/$acl_libdirstem2 | */$acl_libdirstem2/)
6304
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6305
if test "$name" = 'intl'; then
6306
LIBINTL_PREFIX="$basedir"
6308
additional_includedir="$basedir/include"
6311
if test "X$additional_includedir" != "X"; then
6312
if test "X$additional_includedir" != "X/usr/include"; then
6314
if test "X$additional_includedir" = "X/usr/local/include"; then
6315
if test -n "$GCC"; then
6317
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6321
if test -z "$haveit"; then
6322
for x in $CPPFLAGS $INCINTL; do
6324
acl_save_prefix="$prefix"
6325
prefix="$acl_final_prefix"
6326
acl_save_exec_prefix="$exec_prefix"
6327
exec_prefix="$acl_final_exec_prefix"
6329
exec_prefix="$acl_save_exec_prefix"
6330
prefix="$acl_save_prefix"
6332
if test "X$x" = "X-I$additional_includedir"; then
6337
if test -z "$haveit"; then
6338
if test -d "$additional_includedir"; then
6339
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6345
if test -n "$found_la"; then
6346
save_libdir="$libdir"
6348
*/* | *\\*) . "$found_la" ;;
6349
*) . "./$found_la" ;;
6351
libdir="$save_libdir"
6352
for dep in $dependency_libs; do
6355
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6356
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6357
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6359
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6360
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6361
if test -n "$GCC"; then
6363
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6367
if test -z "$haveit"; then
6369
for x in $LDFLAGS $LIBINTL; do
6371
acl_save_prefix="$prefix"
6372
prefix="$acl_final_prefix"
6373
acl_save_exec_prefix="$exec_prefix"
6374
exec_prefix="$acl_final_exec_prefix"
6376
exec_prefix="$acl_save_exec_prefix"
6377
prefix="$acl_save_prefix"
6379
if test "X$x" = "X-L$additional_libdir"; then
6384
if test -z "$haveit"; then
6385
if test -d "$additional_libdir"; then
6386
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6390
for x in $LDFLAGS $LTLIBINTL; do
6392
acl_save_prefix="$prefix"
6393
prefix="$acl_final_prefix"
6394
acl_save_exec_prefix="$exec_prefix"
6395
exec_prefix="$acl_final_exec_prefix"
6397
exec_prefix="$acl_save_exec_prefix"
6398
prefix="$acl_save_prefix"
6400
if test "X$x" = "X-L$additional_libdir"; then
6405
if test -z "$haveit"; then
6406
if test -d "$additional_libdir"; then
6407
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6414
dir=`echo "X$dep" | sed -e 's/^X-R//'`
6415
if test "$enable_rpath" != no; then
6417
for x in $rpathdirs; do
6418
if test "X$x" = "X$dir"; then
6423
if test -z "$haveit"; then
6424
rpathdirs="$rpathdirs $dir"
6427
for x in $ltrpathdirs; do
6428
if test "X$x" = "X$dir"; then
6433
if test -z "$haveit"; then
6434
ltrpathdirs="$ltrpathdirs $dir"
6439
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6442
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6445
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6446
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6452
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6453
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6459
if test "X$rpathdirs" != "X"; then
6460
if test -n "$acl_hardcode_libdir_separator"; then
6462
for found_dir in $rpathdirs; do
6463
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6465
acl_save_libdir="$libdir"
6467
eval flag=\"$acl_hardcode_libdir_flag_spec\"
6468
libdir="$acl_save_libdir"
6469
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6471
for found_dir in $rpathdirs; do
6472
acl_save_libdir="$libdir"
6474
eval flag=\"$acl_hardcode_libdir_flag_spec\"
6475
libdir="$acl_save_libdir"
6476
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6480
if test "X$ltrpathdirs" != "X"; then
6481
for found_dir in $ltrpathdirs; do
6482
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6492
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
6493
if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
6494
$as_echo_n "(cached) " >&6
6496
gt_save_CPPFLAGS="$CPPFLAGS"
6497
CPPFLAGS="$CPPFLAGS $INCINTL"
6498
gt_save_LIBS="$LIBS"
6499
LIBS="$LIBS $LIBINTL"
6500
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501
/* end confdefs.h. */
6502
#include <libintl.h>
6503
$gt_revision_test_code
6504
extern int _nl_msg_cat_cntr;
6509
const char *_nl_expand_alias (const char *);
6513
bindtextdomain ("", "");
6514
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6519
if ac_fn_c_try_link "$LINENO"; then :
6520
eval "$gt_func_gnugettext_libintl=yes"
6522
eval "$gt_func_gnugettext_libintl=no"
6524
rm -f core conftest.err conftest.$ac_objext \
6525
conftest$ac_exeext conftest.$ac_ext
6526
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6527
LIBS="$LIBS $LIBICONV"
6528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529
/* end confdefs.h. */
6530
#include <libintl.h>
6531
$gt_revision_test_code
6532
extern int _nl_msg_cat_cntr;
6537
const char *_nl_expand_alias (const char *);
6541
bindtextdomain ("", "");
6542
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6547
if ac_fn_c_try_link "$LINENO"; then :
6548
LIBINTL="$LIBINTL $LIBICONV"
6549
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6550
eval "$gt_func_gnugettext_libintl=yes"
6553
rm -f core conftest.err conftest.$ac_objext \
6554
conftest$ac_exeext conftest.$ac_ext
6556
CPPFLAGS="$gt_save_CPPFLAGS"
6557
LIBS="$gt_save_LIBS"
6559
eval ac_res=\$$gt_func_gnugettext_libintl
6560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6561
$as_echo "$ac_res" >&6; }
6564
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6565
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6566
&& test "$PACKAGE" != gettext-runtime \
6567
&& test "$PACKAGE" != gettext-tools; }; then
6568
gt_use_preinstalled_gnugettext=yes
6577
if test -n "$INTL_MACOSX_LIBS"; then
6578
if test "$gt_use_preinstalled_gnugettext" = "yes" \
6579
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
6580
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6581
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6585
if test "$gt_use_preinstalled_gnugettext" = "yes" \
6586
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
6588
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6596
$as_echo_n "checking whether to use NLS... " >&6; }
6597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6598
$as_echo "$USE_NLS" >&6; }
6599
if test "$USE_NLS" = "yes"; then
6600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6601
$as_echo_n "checking where the gettext function comes from... " >&6; }
6602
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6603
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6604
gt_source="external libintl"
6609
gt_source="included intl directory"
6611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6612
$as_echo "$gt_source" >&6; }
6615
if test "$USE_NLS" = "yes"; then
6617
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6618
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6620
$as_echo_n "checking how to link with libintl... " >&6; }
6621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6622
$as_echo "$LIBINTL" >&6; }
6624
for element in $INCINTL; do
6626
for x in $CPPFLAGS; do
6628
acl_save_prefix="$prefix"
6629
prefix="$acl_final_prefix"
6630
acl_save_exec_prefix="$exec_prefix"
6631
exec_prefix="$acl_final_exec_prefix"
6633
exec_prefix="$acl_save_exec_prefix"
6634
prefix="$acl_save_prefix"
6636
if test "X$x" = "X$element"; then
6641
if test -z "$haveit"; then
6642
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6649
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6652
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6671
if test x"$USE_NLS" = xyes; then
6678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if color escape sequence for kterm/pxvt is enabled" >&5
6679
$as_echo_n "checking if color escape sequence for kterm/pxvt is enabled... " >&6; }
6680
# Check whether --enable-color was given.
6681
if test "${enable_color+set}" = set; then :
6682
enableval=$enable_color;
6687
test x"$enable_color" = xyes && $as_echo "#define USE_COLOR 1" >>confdefs.h
6689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_color" >&5
6690
$as_echo "$enable_color" >&6; }
6692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ansi color escape sequence support is enabled" >&5
6693
$as_echo_n "checking if ansi color escape sequence support is enabled... " >&6; }
6694
# Check whether --enable-ansi_color was given.
6695
if test "${enable_ansi_color+set}" = set; then :
6696
enableval=$enable_ansi_color;
6698
enable_ansi_color="$enable_color"
6701
test x"$enable_ansi_color" = xyes && $as_echo "#define USE_ANSI_COLOR 1" >>confdefs.h
6703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ansi_color" >&5
6704
$as_echo "$enable_ansi_color" >&6; }
6706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if background color support is enabled" >&5
6707
$as_echo_n "checking if background color support is enabled... " >&6; }
6708
# Check whether --enable-bgcolor was given.
6709
if test "${enable_bgcolor+set}" = set; then :
6710
enableval=$enable_bgcolor;
6712
enable_bgcolor="$enable_color"
6715
test x"$enable_bgcolor" = xyes && $as_echo "#define USE_BG_COLOR 1" >>confdefs.h
6717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bgcolor" >&5
6718
$as_echo "$enable_bgcolor" >&6; }
6727
INSTALL_W3MIMGDISPLAY='${INSTALL_PROGRAM}'
6728
$as_echo "#define INSTALL_W3MIMGDISPLAY \$INSTALL_W3MIMGDISPLAY" >>confdefs.h
6742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if image is enabled" >&5
6743
$as_echo_n "checking if image is enabled... " >&6; }
6744
# Check whether --enable-image was given.
6745
if test "${enable_image+set}" = set; then :
6746
enableval=$enable_image;
6751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_image" >&5
6752
$as_echo "$enable_image" >&6; }
6753
if test x"$enable_image" != xno; then
6755
if test x"$enable_image" = xyes; then
6757
case "`uname -s`" in
6759
if test -c /dev/fb0; then
6763
enable_image=x11,win;;
6766
save_ifs="$IFS"; IFS=",";
6767
set x $enable_image; shift
6774
$as_echo "#define W3MIMGDISPLAY_SETUID 1" >>confdefs.h
6776
INSTALL_W3MIMGDISPLAY='${INSTALL} -o root -m 4755 -s'
6777
$as_echo "#define INSTALL_W3MIMGDISPLAY \$INSTALL_W3MIMGDISPLAY" >>confdefs.h
6783
$as_echo "#define USE_IMAGE 1" >>confdefs.h
6785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking image library" >&5
6786
$as_echo_n "checking image library... " >&6; }
6788
# Check whether --with-imagelib was given.
6789
if test "${with_imagelib+set}" = set; then :
6790
withval=$with_imagelib;
6795
if test x"$with_imagelib" = xyes; then
6796
with_imagelib="gtk2 gdk-pixbuf imlib imlib2"
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_imagelib" >&5
6799
$as_echo "$with_imagelib" >&6; }
6804
for imagelib in $with_imagelib
6809
if test x"$IMLIB_CONFIG" = x; then
6810
IMLIB_CONFIG=imlib-config
6814
if test x"$IMLIB2_CONFIG" = x; then
6815
IMLIB2_CONFIG=imlib2-config
6818
with_gdkpixbuf="yes"
6819
if test x"$GDKPIXBUF_CONFIG" = x; then
6820
GDKPIXBUF_CONFIG=gdk-pixbuf-config
6824
if test x"$PKG_CONFIG" = x; then
6825
PKG_CONFIG=pkg-config
6833
if test x"$with_gtk2" = xyes; then
6834
version="`$PKG_CONFIG --modversion gdk-pixbuf-2.0 2>/dev/null`"
6835
if test x"$version" != x; then
6836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5
6837
$as_echo_n "checking GdkPixbuf version... " >&6; }
6838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
6839
$as_echo "$version" >&6; }
6840
set -- `echo "$version" | sed 's/[^0-9]/ /g'`
6841
if test "$1" -ne "2" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "0"; then
6842
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&5
6843
$as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&2;}
6844
have_gdkpixbuf="no"; have_gtk2="no"
6846
have_gdkpixbuf="yes"; have_gtk2="yes"
6849
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&5
6850
$as_echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&2;}
6851
have_gdkpixbuf="no"; have_gtk2="no"
6854
if test x"$with_gdkpixbuf" = xyes; then
6855
if test x"$have_gdkpixbuf" != xyes; then
6856
version="`$GDKPIXBUF_CONFIG --version 2>/dev/null`"
6857
if test x"$version" != x; then
6858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5
6859
$as_echo_n "checking GdkPixbuf version... " >&6; }
6860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
6861
$as_echo "$version" >&6; }
6862
set -- `echo "$version" | sed 's/[^0-9]/ /g'`
6863
if test "$1" -ne "0" -o "$2" -lt "16" || test "$2" -eq "16" -a "$3" -lt "0"; then
6864
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&5
6865
$as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&2;}
6868
have_gdkpixbuf="yes"
6871
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&5
6872
$as_echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&2;}
6877
if test x"$with_imlib" = xyes; then
6878
version="`$IMLIB_CONFIG --version 2>/dev/null`"
6879
if test x"$version" != x; then
6880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib version" >&5
6881
$as_echo_n "checking Imlib version... " >&6; }
6882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
6883
$as_echo "$version" >&6; }
6884
set -- `echo "$version" | sed 's/[^0-9]/ /g'`
6885
if test "$1" -ne "1" -o "$2" -lt "9" || test "$2" -eq "9" -a "$3" -lt "8"; then
6886
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&5
6887
$as_echo "$as_me: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&2;}
6893
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&5
6894
$as_echo "$as_me: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&2;}
6898
if test x"$with_imlib2" = xyes; then
6899
version="`$IMLIB2_CONFIG --version 2>/dev/null`"
6900
if test x"$version" != x; then
6901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib2 version" >&5
6902
$as_echo_n "checking Imlib2 version... " >&6; }
6903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
6904
$as_echo "$version" >&6; }
6905
set -- `echo "$version" | sed 's/[^0-9]/ /g'`
6906
if test "$1" -ne "1" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "5"; then
6907
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&5
6908
$as_echo "$as_me: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&2;}
6914
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&5
6915
$as_echo "$as_me: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&2;}
6919
if test x"$x11" = xyes; then
6920
if test x"$have_gtk2" = xyes; then
6921
$as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
6923
IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
6925
$as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
6927
$as_echo "#define USE_GTK2 1" >>confdefs.h
6929
IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
6930
IMGX11LDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
6931
elif test x"$have_gdkpixbuf" = xyes; then
6932
$as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
6934
IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
6936
$as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
6938
IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
6939
IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib"
6940
elif test x"$have_imlib" = xyes; then
6941
$as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
6943
IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
6945
$as_echo "#define USE_IMLIB 1" >>confdefs.h
6947
IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`"
6948
IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`"
6950
elif test x"$have_imlib2" = xyes; then
6951
$as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
6953
IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
6955
$as_echo "#define USE_IMLIB2 1" >>confdefs.h
6957
IMGX11CFLAGS="`${IMLIB2_CONFIG} --cflags`"
6958
IMGX11LDFLAGS="`${IMLIB2_CONFIG} --libs`"
6960
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with X11 support" >&5
6961
$as_echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;}
6964
if test x"$fb" = xyes; then
6965
if test x"$have_gtk2" = xyes; then
6966
$as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
6968
IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
6969
IMGTARGETS="${IMGTARGETS} fb"
6970
$as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
6972
$as_echo "#define USE_GTK2 1" >>confdefs.h
6974
IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gtk+-2.0`"
6975
IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gtk+-2.0`"
6976
elif test x"$have_gdkpixbuf" = xyes; then
6977
$as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
6979
IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
6980
IMGTARGETS="${IMGTARGETS} fb"
6981
$as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
6983
IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
6984
IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`"
6985
elif test x"$have_imlib2" = xyes; then
6986
$as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
6988
IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
6989
IMGTARGETS="${IMGTARGETS} fb"
6990
$as_echo "#define USE_IMLIB2 1" >>confdefs.h
6992
IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
6993
IMGFBCFLAGS="`${IMLIB2_CONFIG} --cflags`"
6994
IMGFBLDFLAGS="`${IMLIB2_CONFIG} --libs`"
6996
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with FB support" >&5
6997
$as_echo "$as_me: WARNING: unable to build w3mimgdisplay with FB support" >&2;}
7000
if test x"$win" = xyes; then
7001
$as_echo "#define USE_W3MIMG_WIN 1" >>confdefs.h
7003
IMGOBJS="$IMGOBJS win/win_w3mimg.o"
7004
IMGTARGETS="${IMGTARGETS} win"
7005
IMGWINCFLAGS="-I/usr/include/w32api"
7006
IMGWINLDFLAGS="-lgdiplus -lgdi32 -luser32"
7009
$as_echo "#define IMGTARGETS \"\$IMGTARGETS\"" >>confdefs.h
7011
$as_echo "#define IMGOBJS \"\$IMGOBJS\"" >>confdefs.h
7013
$as_echo "#define IMGX11CFLAGS \"\$IMGX11CFLAGS\"" >>confdefs.h
7015
$as_echo "#define IMGX11LDFLAGS \"\$IMGX11LDFLAGS\"" >>confdefs.h
7017
$as_echo "#define IMGFBCFLAGS \"\$IMGFBCFLAGS\"" >>confdefs.h
7019
$as_echo "#define IMGFBLDFLAGS \"\$IMGFBLDFLAGS\"" >>confdefs.h
7021
$as_echo "#define IMGLINK \"\$IMGLINK\"" >>confdefs.h
7023
$as_echo "#define IMGWINCFLAGS \"\$IMGWINCFLAGS\"" >>confdefs.h
7025
$as_echo "#define IMGWINLDFLAGS \"\$IMGWINLDFLAGS\"" >>confdefs.h
7028
if test x"$enable_image" != xno; then
7029
AUXBIN_TARGETS="$AUXBIN_TARGETS w3mimgdisplay\$(EXT)"
7031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if xface is enabled" >&5
7032
$as_echo_n "checking if xface is enabled... " >&6; }
7033
# Check whether --enable-xface was given.
7034
if test "${enable_xface+set}" = set; then :
7035
enableval=$enable_xface;
7037
enable_xface="$enable_image"
7040
test x"$enable_xface" = xyes && $as_echo "#define USE_XFACE 1" >>confdefs.h
7042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xface" >&5
7043
$as_echo "$enable_xface" >&6; }
7044
# Extract the first word of "uncompface", so it can be a program name with args.
7045
set dummy uncompface; ac_word=$2
7046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047
$as_echo_n "checking for $ac_word... " >&6; }
7048
if test "${ac_cv_prog_uncompface+set}" = set; then :
7049
$as_echo_n "(cached) " >&6
7051
if test -n "$uncompface"; then
7052
ac_cv_prog_uncompface="$uncompface" # Let the user override the test.
7054
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058
test -z "$as_dir" && as_dir=.
7059
for ac_exec_ext in '' $ac_executable_extensions; do
7060
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061
ac_cv_prog_uncompface=""yes""
7062
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069
test -z "$ac_cv_prog_uncompface" && ac_cv_prog_uncompface=""no""
7072
uncompface=$ac_cv_prog_uncompface
7073
if test -n "$uncompface"; then
7074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $uncompface" >&5
7075
$as_echo "$uncompface" >&6; }
7077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078
$as_echo "no" >&6; }
7082
test "$uncompface" = "no" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uncompface is not installed." >&5
7083
$as_echo "$as_me: WARNING: uncompface is not installed." >&2;}
7088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default keymap" >&5
7089
$as_echo_n "checking default keymap... " >&6; }
7090
# Check whether --enable-keymap was given.
7091
if test "${enable_keymap+set}" = set; then :
7092
enableval=$enable_keymap;
7097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_keymap" >&5
7098
$as_echo "$enable_keymap" >&6; }
7099
case x"$enable_keymap" in
7101
KEYMAP_FILE="keybind";;
7103
KEYMAP_FILE="keybind_lynx";;
7105
as_fn_error $? "keymap should be either w3m or lynx." "$LINENO" 5 ;;
7108
HELP_FILE=w3mhelp-${enable_keymap}_$w3m_lang.html
7109
cat >>confdefs.h <<_ACEOF
7110
#define HELP_FILE "$HELP_FILE"
7114
cat >>confdefs.h <<_ACEOF
7115
#define KEYBIND $enable_keymap
7119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if popup menu is enabled" >&5
7120
$as_echo_n "checking if popup menu is enabled... " >&6; }
7121
# Check whether --enable-menu was given.
7122
if test "${enable_menu+set}" = set; then :
7123
enableval=$enable_menu;
7128
test x"$enable_menu" = xyes && $as_echo "#define USE_MENU 1" >>confdefs.h
7130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_menu" >&5
7131
$as_echo "$enable_menu" >&6; }
7133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mouse operation enabled" >&5
7134
$as_echo_n "checking if mouse operation enabled... " >&6; }
7135
# Check whether --enable-mouse was given.
7136
if test "${enable_mouse+set}" = set; then :
7137
enableval=$enable_mouse;
7142
test x"$enable_mouse" = xyes && $as_echo "#define USE_MOUSE 1" >>confdefs.h
7144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mouse" >&5
7145
$as_echo "$enable_mouse" >&6; }
7147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if URL history is enabled" >&5
7148
$as_echo_n "checking if URL history is enabled... " >&6; }
7149
# Check whether --enable-history was given.
7150
if test "${enable_history+set}" = set; then :
7151
enableval=$enable_history;
7153
enable_history="yes"
7156
test x"$enable_history" = xyes && $as_echo "#define USE_HISTORY 1" >>confdefs.h
7158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_history" >&5
7159
$as_echo "$enable_history" >&6; }
7161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is enabled" >&5
7162
$as_echo_n "checking if alarm is enabled... " >&6; }
7163
# Check whether --enable-alarm was given.
7164
if test "${enable_alarm+set}" = set; then :
7165
enableval=$enable_alarm;
7170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alarm" >&5
7171
$as_echo "$enable_alarm" >&6; }
7172
if test x"$enable_alarm" = xyes; then
7173
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174
/* end confdefs.h. */
7186
if ac_fn_c_try_compile "$LINENO"; then :
7187
$as_echo "#define USE_ALARM 1" >>confdefs.h
7190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if cookie is enabled" >&5
7195
$as_echo_n "checking if cookie is enabled... " >&6; }
7196
# Check whether --enable-cookie was given.
7197
if test "${enable_cookie+set}" = set; then :
7198
enableval=$enable_cookie;
7203
test x"$enable_cookie" = xyes && $as_echo "#define USE_COOKIE 1" >>confdefs.h
7205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cookie" >&5
7206
$as_echo "$enable_cookie" >&6; }
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nntp is enabled" >&5
7209
$as_echo_n "checking if nntp is enabled... " >&6; }
7210
# Check whether --enable-nntp was given.
7211
if test "${enable_nntp+set}" = set; then :
7212
enableval=$enable_nntp;
7217
test x"$enable_nntp" = xyes && $as_echo "#define USE_NNTP 1" >>confdefs.h
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nntp" >&5
7220
$as_echo "$enable_nntp" >&6; }
7222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gopher is enabled" >&5
7223
$as_echo_n "checking if gopher is enabled... " >&6; }
7224
# Check whether --enable-gopher was given.
7225
if test "${enable_gopher+set}" = set; then :
7226
enableval=$enable_gopher;
7231
test x"$enable_gopher" = xyes && $as_echo "#define USE_GOPHER 1" >>confdefs.h
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gopher" >&5
7234
$as_echo "$enable_gopher" >&6; }
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dictionary lookup is enabled" >&5
7238
$as_echo_n "checking if dictionary lookup is enabled... " >&6; }
7239
# Check whether --enable-dict was given.
7240
if test "${enable_dict+set}" = set; then :
7241
enableval=$enable_dict;
7246
test x"$enable_dict" = xyes && $as_echo "#define USE_DICT 1" >>confdefs.h
7248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dict" >&5
7249
$as_echo "$enable_dict" >&6; }
7251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if help cgi is enabled" >&5
7252
$as_echo_n "checking if help cgi is enabled... " >&6; }
7253
# Check whether --enable-help_cgi was given.
7254
if test "${enable_help_cgi+set}" = set; then :
7255
enableval=$enable_help_cgi;
7257
enable_help_cgi="yes"
7260
test x"$enable_help_cgi" = xyes && $as_echo "#define USE_HELP_CGI 1" >>confdefs.h
7262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_help_cgi" >&5
7263
$as_echo "$enable_help_cgi" >&6; }
7265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if external URI loader is enabled" >&5
7266
$as_echo_n "checking if external URI loader is enabled... " >&6; }
7267
# Check whether --enable-external_uri_loader was given.
7268
if test "${enable_external_uri_loader+set}" = set; then :
7269
enableval=$enable_external_uri_loader;
7271
enable_external_uri_loader="yes"
7274
test x"$enable_external_uri_loader" = xyes && $as_echo "#define USE_EXTERNAL_URI_LOADER 1" >>confdefs.h
7276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_external_uri_loader" >&5
7277
$as_echo "$enable_external_uri_loader" >&6; }
7279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if w3mmail is used" >&5
7280
$as_echo_n "checking if w3mmail is used... " >&6; }
7281
# Check whether --enable-w3mmailer was given.
7282
if test "${enable_w3mmailer+set}" = set; then :
7283
enableval=$enable_w3mmailer;
7285
enable_w3mmailer="$enable_external_uri_loader"
7288
test x"$enable_external_uri_loader" = xno && enable_w3mmailer=no
7289
test x"$enable_w3mmailer" = xyes && $as_echo "#define USE_W3MMAILER 1" >>confdefs.h
7291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_w3mmailer" >&5
7292
$as_echo "$enable_w3mmailer" >&6; }
7295
migemo_command="migemo -t egrep /usr/local/share/migemo/migemo-dict"
7296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if migemo is supported with" >&5
7297
$as_echo_n "checking if migemo is supported with... " >&6; }
7299
# Check whether --with-migemo was given.
7300
if test "${with_migemo+set}" = set; then :
7301
withval=$with_migemo; test x"$with_migemo" = xyes || migemo_command="$with_migemo"
7304
if test "${with_migemo+set}" = set -a "$with_migemo" != "no"; then
7305
$as_echo "#define USE_MIGEMO 1" >>confdefs.h
7308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $migemo_command" >&5
7309
$as_echo "$migemo_command" >&6; }
7310
cat >>confdefs.h <<_ACEOF
7311
#define DEF_MIGEMO_COMMAND "$migemo_command"
7315
w3m_editor="/usr/bin/vi"
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which editor is used by default" >&5
7317
$as_echo_n "checking which editor is used by default... " >&6; }
7319
# Check whether --with-editor was given.
7320
if test "${with_editor+set}" = set; then :
7321
withval=$with_editor; w3m_editor="$with_editor"
7324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_editor" >&5
7325
$as_echo "$w3m_editor" >&6; }
7326
cat >>confdefs.h <<_ACEOF
7327
#define DEF_EDITOR "$w3m_editor"
7331
w3m_mailer="/usr/bin/mail"
7332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which mailer is used by default" >&5
7333
$as_echo_n "checking which mailer is used by default... " >&6; }
7335
# Check whether --with-mailer was given.
7336
if test "${with_mailer+set}" = set; then :
7337
withval=$with_mailer; w3m_mailer="$with_mailer"
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_mailer" >&5
7341
$as_echo "$w3m_mailer" >&6; }
7342
cat >>confdefs.h <<_ACEOF
7343
#define DEF_MAILER "$w3m_mailer"
7347
w3m_browser="/usr/bin/mozilla"
7348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which external browser is used by default" >&5
7349
$as_echo_n "checking which external browser is used by default... " >&6; }
7351
# Check whether --with-browser was given.
7352
if test "${with_browser+set}" = set; then :
7353
withval=$with_browser; w3m_browser="$with_browser"
7356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_browser" >&5
7357
$as_echo "$w3m_browser" >&6; }
7358
cat >>confdefs.h <<_ACEOF
7359
#define DEF_EXT_BROWSER "$w3m_browser"
7363
for lib in bsd BSD 44bsd socket nsl dld dl
7366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$lib" >&5
7367
$as_echo_n "checking for -l$lib... " >&6; }
7369
for dir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib /lib64 /usr/lib64
7371
if test -f $dir/lib$lib.a -o -f $dir/lib$lib.so ; then
7373
extlib="found at $dir"
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $extlib" >&5
7378
$as_echo "$extlib" >&6; }
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support is enabled" >&5
7382
$as_echo_n "checking if IPv6 support is enabled... " >&6; }
7383
# Check whether --enable-ipv6 was given.
7384
if test "${enable_ipv6+set}" = set; then :
7385
enableval=$enable_ipv6;
7390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ipv6" >&5
7391
$as_echo "$enable_ipv6" >&6; }
7393
if test x"$enable_ipv6" = xyes; then
7394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 API available" >&5
7395
$as_echo_n "checking if IPv6 API available... " >&6; }
7397
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
7398
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
7404
if test x"$enable_ipv6" = xno; then
7405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libinet6" >&5
7406
$as_echo_n "checking for libinet6... " >&6; }
7407
for dir in /usr/local/v6/lib /usr/local/lib /usr/lib
7409
if test -f $dir/libinet6.a; then
7410
if test $dir != "/usr/lib"; then
7411
W3M_LIBS="$W3M_LIBS -L$dir"
7413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
7414
$as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
7415
if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then :
7416
$as_echo_n "(cached) " >&6
7418
ac_check_lib_save_LIBS=$LIBS
7419
LIBS="-linet6 $LIBS"
7420
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421
/* end confdefs.h. */
7423
/* Override any GCC internal prototype to avoid an error.
7424
Use char because int might match the return type of a GCC
7425
builtin and then its argument prototype would still apply. */
7429
char getaddrinfo ();
7433
return getaddrinfo ();
7438
if ac_fn_c_try_link "$LINENO"; then :
7439
ac_cv_lib_inet6_getaddrinfo=yes
7441
ac_cv_lib_inet6_getaddrinfo=no
7443
rm -f core conftest.err conftest.$ac_objext \
7444
conftest$ac_exeext conftest.$ac_ext
7445
LIBS=$ac_check_lib_save_LIBS
7447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
7448
$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
7449
if test "x$ac_cv_lib_inet6_getaddrinfo" = x""yes; then :
7451
use_libinet6="found"; W3M_LIBS="$W3M_LIBS -linet6"; break
7453
use_libinet6="not found"
7458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libinet6" >&5
7459
$as_echo "$use_libinet6" >&6; }
7461
if test x"$enable_ipv6" = xyes; then
7463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_storage has an ss_family member" >&5
7464
$as_echo_n "checking if struct sockaddr_storage has an ss_family member... " >&6; }
7465
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466
/* end confdefs.h. */
7468
#include <sys/types.h>
7469
#include <sys/socket.h>
7475
struct sockaddr_storage ss;
7476
int i = ss.ss_family;
7482
if ac_fn_c_try_compile "$LINENO"; then :
7483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7484
$as_echo "yes" >&6; }
7486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487
/* end confdefs.h. */
7489
#include <sys/types.h>
7490
#include <sys/socket.h>
7496
struct sockaddr_storage ss;
7497
int i = ss.__ss_family;
7503
if ac_fn_c_try_compile "$LINENO"; then :
7504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505
$as_echo "no" >&6; }
7506
$as_echo "#define HAVE_OLD_SS_FAMILY 1" >>confdefs.h
7509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510
$as_echo "no" >&6; }
7511
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IPv6 support is disabled" >&5
7512
$as_echo "$as_me: WARNING: IPv6 support is disabled" >&2;}
7515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520
if test x"$enable_ipv6" = xyes; then
7521
$as_echo "#define INET6 1" >>confdefs.h
7531
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7532
if test -n "$ac_tool_prefix"; then
7533
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7534
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536
$as_echo_n "checking for $ac_word... " >&6; }
7537
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7538
$as_echo_n "(cached) " >&6
7542
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549
test -z "$as_dir" && as_dir=.
7550
for ac_exec_ext in '' $ac_executable_extensions; do
7551
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7553
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7564
if test -n "$PKG_CONFIG"; then
7565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7566
$as_echo "$PKG_CONFIG" >&6; }
7568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569
$as_echo "no" >&6; }
7574
if test -z "$ac_cv_path_PKG_CONFIG"; then
7575
ac_pt_PKG_CONFIG=$PKG_CONFIG
7576
# Extract the first word of "pkg-config", so it can be a program name with args.
7577
set dummy pkg-config; ac_word=$2
7578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579
$as_echo_n "checking for $ac_word... " >&6; }
7580
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7581
$as_echo_n "(cached) " >&6
7583
case $ac_pt_PKG_CONFIG in
7585
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592
test -z "$as_dir" && as_dir=.
7593
for ac_exec_ext in '' $ac_executable_extensions; do
7594
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7596
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7607
if test -n "$ac_pt_PKG_CONFIG"; then
7608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7609
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612
$as_echo "no" >&6; }
7615
if test "x$ac_pt_PKG_CONFIG" = x; then
7618
case $cross_compiling:$ac_tool_warned in
7620
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622
ac_tool_warned=yes ;;
7624
PKG_CONFIG=$ac_pt_PKG_CONFIG
7627
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7631
if test -n "$PKG_CONFIG"; then
7632
_pkg_min_version=0.9.0
7633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7634
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7635
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7637
$as_echo "yes" >&6; }
7639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640
$as_echo "no" >&6; }
7646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSL is suported" >&5
7647
$as_echo_n "checking if SSL is suported... " >&6; }
7649
# Check whether --with-ssl was given.
7650
if test "${with_ssl+set}" = set; then :
7656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
7657
$as_echo "$with_ssl" >&6; }
7658
if test x"$with_ssl" != xno; then
7661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
7662
$as_echo_n "checking for SSL... " >&6; }
7664
if test -n "$SSL_CFLAGS"; then
7665
pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
7666
elif test -n "$PKG_CONFIG"; then
7667
if test -n "$PKG_CONFIG" && \
7668
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
7669
($PKG_CONFIG --exists --print-errors "openssl") 2>&5
7671
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7672
test $ac_status = 0; }; then
7673
pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
7680
if test -n "$SSL_LIBS"; then
7681
pkg_cv_SSL_LIBS="$SSL_LIBS"
7682
elif test -n "$PKG_CONFIG"; then
7683
if test -n "$PKG_CONFIG" && \
7684
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
7685
($PKG_CONFIG --exists --print-errors "openssl") 2>&5
7687
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688
test $ac_status = 0; }; then
7689
pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
7699
if test $pkg_failed = yes; then
7700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701
$as_echo "no" >&6; }
7703
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7704
_pkg_short_errors_supported=yes
7706
_pkg_short_errors_supported=no
7708
if test $_pkg_short_errors_supported = yes; then
7709
SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1`
7711
SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1`
7713
# Put the nasty error message in config.log where it belongs
7714
echo "$SSL_PKG_ERRORS" >&5
7717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library/header" >&5
7718
$as_echo_n "checking for SSL library/header... " >&6; }
7719
test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
7720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
7721
$as_echo "$with_ssl" >&6; }
7722
for dir in $with_ssl
7724
if test -f "$dir/include/openssl/ssl.h"; then
7725
SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl"
7726
if test "$dir" != "/usr"; then
7727
SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
7729
elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then
7730
SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
7732
if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
7733
SSL_LIBS="$SSL_LIBS -L$dir/lib"
7737
elif test $pkg_failed = untried; then
7738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739
$as_echo "no" >&6; }
7741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library/header" >&5
7742
$as_echo_n "checking for SSL library/header... " >&6; }
7743
test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
7744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
7745
$as_echo "$with_ssl" >&6; }
7746
for dir in $with_ssl
7748
if test -f "$dir/include/openssl/ssl.h"; then
7749
SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl"
7750
if test "$dir" != "/usr"; then
7751
SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
7753
elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then
7754
SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
7756
if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
7757
SSL_LIBS="$SSL_LIBS -L$dir/lib"
7762
SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
7763
SSL_LIBS=$pkg_cv_SSL_LIBS
7764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765
$as_echo "yes" >&6; }
7768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
7769
$as_echo_n "checking for SSL_new in -lssl... " >&6; }
7770
if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then :
7771
$as_echo_n "(cached) " >&6
7773
ac_check_lib_save_LIBS=$LIBS
7774
LIBS="-lssl $SSL_LIBS -lcrypto $LIBS"
7775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776
/* end confdefs.h. */
7778
/* Override any GCC internal prototype to avoid an error.
7779
Use char because int might match the return type of a GCC
7780
builtin and then its argument prototype would still apply. */
7793
if ac_fn_c_try_link "$LINENO"; then :
7794
ac_cv_lib_ssl_SSL_new=yes
7796
ac_cv_lib_ssl_SSL_new=no
7798
rm -f core conftest.err conftest.$ac_objext \
7799
conftest$ac_exeext conftest.$ac_ext
7800
LIBS=$ac_check_lib_save_LIBS
7802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
7803
$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
7804
if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then :
7805
w3m_ssl="found"; CFLAGS="$CFLAGS $SSL_CFLAGS" W3M_LIBS="$W3M_LIBS $SSL_LIBS -lssl -lcrypto"
7811
if test x"$w3m_ssl" = xfound; then
7812
$as_echo "#define USE_SSL 1" >>confdefs.h
7814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSL certificate verify is enabled" >&5
7815
$as_echo_n "checking if SSL certificate verify is enabled... " >&6; }
7816
# Check whether --enable-sslverify was given.
7817
if test "${enable_sslverify+set}" = set; then :
7818
enableval=$enable_sslverify;
7820
enable_sslverify="yes"
7823
test x"$enable_sslverify" = xyes && $as_echo "#define USE_SSL_VERIFY 1" >>confdefs.h
7825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sslverify" >&5
7826
$as_echo "$enable_sslverify" >&6; }
7830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if digest auth is enabled" >&5
7831
$as_echo_n "checking if digest auth is enabled... " >&6; }
7832
# Check whether --enable-digest_auth was given.
7833
if test "${enable_digest_auth+set}" = set; then :
7834
enableval=$enable_digest_auth;
7836
enable_digest_auth="yes"
7839
if test x"$enable_digest_auth" = xyes -a x"$w3m_ssl" = xfound; then
7840
$as_echo "#define USE_DIGEST_AUTH 1" >>confdefs.h
7843
enable_digest_auth="no"
7845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_digest_auth" >&5
7846
$as_echo "$enable_digest_auth" >&6; }
7849
ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
7850
if test "x$ac_cv_func_sqrt" = x""yes; then :
7853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
7854
$as_echo_n "checking for sqrt in -lm... " >&6; }
7855
if test "${ac_cv_lib_m_sqrt+set}" = set; then :
7856
$as_echo_n "(cached) " >&6
7858
ac_check_lib_save_LIBS=$LIBS
7860
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861
/* end confdefs.h. */
7863
/* Override any GCC internal prototype to avoid an error.
7864
Use char because int might match the return type of a GCC
7865
builtin and then its argument prototype would still apply. */
7878
if ac_fn_c_try_link "$LINENO"; then :
7879
ac_cv_lib_m_sqrt=yes
7883
rm -f core conftest.err conftest.$ac_objext \
7884
conftest$ac_exeext conftest.$ac_ext
7885
LIBS=$ac_check_lib_save_LIBS
7887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
7888
$as_echo "$ac_cv_lib_m_sqrt" >&6; }
7889
if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
7890
cat >>confdefs.h <<_ACEOF
7900
if test x"$enable_mouse" = xyes; then
7902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
7903
$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
7904
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
7905
$as_echo_n "(cached) " >&6
7907
ac_check_lib_save_LIBS=$LIBS
7909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910
/* end confdefs.h. */
7912
/* Override any GCC internal prototype to avoid an error.
7913
Use char because int might match the return type of a GCC
7914
builtin and then its argument prototype would still apply. */
7927
if ac_fn_c_try_link "$LINENO"; then :
7928
ac_cv_lib_gpm_Gpm_Open=yes
7930
ac_cv_lib_gpm_Gpm_Open=no
7932
rm -f core conftest.err conftest.$ac_objext \
7933
conftest$ac_exeext conftest.$ac_ext
7934
LIBS=$ac_check_lib_save_LIBS
7936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7937
$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
7938
if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
7939
$as_echo "#define USE_GPM 1" >>confdefs.h
7941
W3M_LIBS="$W3M_LIBS -lgpm"
7945
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946
/* end confdefs.h. */
7947
#include <sys/consio.h>
7950
if ac_fn_c_try_cpp "$LINENO"; then :
7951
$as_echo "#define USE_SYSMOUSE 1" >>confdefs.h
7954
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955
/* end confdefs.h. */
7956
#include <machine/console.h>
7959
if ac_fn_c_try_cpp "$LINENO"; then :
7960
$as_echo "#define USE_SYSMOUSE 1" >>confdefs.h
7963
rm -f conftest.err conftest.i conftest.$ac_ext
7965
rm -f conftest.err conftest.i conftest.$ac_ext
7968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking terminal library" >&5
7969
$as_echo_n "checking terminal library... " >&6; }
7971
# Check whether --with-termlib was given.
7972
if test "${with_termlib+set}" = set; then :
7973
withval=$with_termlib;
7978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_termlib" >&5
7979
$as_echo "$with_termlib" >&6; }
7980
test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap ncurses curses"
7981
for lib in $with_termlib; do
7982
as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_tgetent" | $as_tr_sh`
7983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l$lib" >&5
7984
$as_echo_n "checking for tgetent in -l$lib... " >&6; }
7985
if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7986
$as_echo_n "(cached) " >&6
7988
ac_check_lib_save_LIBS=$LIBS
7990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991
/* end confdefs.h. */
7993
/* Override any GCC internal prototype to avoid an error.
7994
Use char because int might match the return type of a GCC
7995
builtin and then its argument prototype would still apply. */
8008
if ac_fn_c_try_link "$LINENO"; then :
8009
eval "$as_ac_Lib=yes"
8011
eval "$as_ac_Lib=no"
8013
rm -f core conftest.err conftest.$ac_objext \
8014
conftest$ac_exeext conftest.$ac_ext
8015
LIBS=$ac_check_lib_save_LIBS
8017
eval ac_res=\$$as_ac_Lib
8018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8019
$as_echo "$ac_res" >&6; }
8020
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8021
W3M_LIBS="$W3M_LIBS -l$lib"; break
8026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8027
$as_echo_n "checking for ANSI C header files... " >&6; }
8028
if test "${ac_cv_header_stdc+set}" = set; then :
8029
$as_echo_n "(cached) " >&6
8031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032
/* end confdefs.h. */
8046
if ac_fn_c_try_compile "$LINENO"; then :
8047
ac_cv_header_stdc=yes
8049
ac_cv_header_stdc=no
8051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053
if test $ac_cv_header_stdc = yes; then
8054
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056
/* end confdefs.h. */
8060
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061
$EGREP "memchr" >/dev/null 2>&1; then :
8064
ac_cv_header_stdc=no
8070
if test $ac_cv_header_stdc = yes; then
8071
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8072
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073
/* end confdefs.h. */
8077
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078
$EGREP "free" >/dev/null 2>&1; then :
8081
ac_cv_header_stdc=no
8087
if test $ac_cv_header_stdc = yes; then
8088
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8089
if test "$cross_compiling" = yes; then :
8092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093
/* end confdefs.h. */
8096
#if ((' ' & 0x0FF) == 0x020)
8097
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8098
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8100
# define ISLOWER(c) \
8101
(('a' <= (c) && (c) <= 'i') \
8102
|| ('j' <= (c) && (c) <= 'r') \
8103
|| ('s' <= (c) && (c) <= 'z'))
8104
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8107
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8112
for (i = 0; i < 256; i++)
8113
if (XOR (islower (i), ISLOWER (i))
8114
|| toupper (i) != TOUPPER (i))
8119
if ac_fn_c_try_run "$LINENO"; then :
8122
ac_cv_header_stdc=no
8124
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8125
conftest.$ac_objext conftest.beam conftest.$ac_ext
8130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8131
$as_echo "$ac_cv_header_stdc" >&6; }
8132
if test $ac_cv_header_stdc = yes; then
8134
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8138
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8139
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8140
inttypes.h stdint.h unistd.h
8142
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8145
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8146
cat >>confdefs.h <<_ACEOF
8147
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library exists" >&5
8156
$as_echo_n "checking GC library exists... " >&6; }
8159
# Check whether --with-gc was given.
8160
if test "${with_gc+set}" = set; then :
8161
withval=$with_gc; test x"$with_gc" = xno && as_fn_error $? "You can not build w3m without gc" "$LINENO" 5
8166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
8167
$as_echo "$with_gc" >&6; }
8168
test x"$with_gc" = xyes && with_gc="/usr /usr/local ${HOME}"
8169
unset ac_cv_header_gc_h
8170
ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
8171
if test "x$ac_cv_header_gc_h" = x""yes; then :
8176
if test x"$ac_cv_header_gc_h" = xno; then
8177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GC header location" >&5
8178
$as_echo_n "checking GC header location... " >&6; }
8179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
8180
$as_echo "$with_gc" >&6; }
8182
for dir in $with_gc; do
8183
for inc in include include/gc; do
8184
cppflags="$CPPFLAGS"
8185
CPPFLAGS="$CPPFLAGS -I$dir/$inc"
8186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $dir/$inc" >&5
8187
$as_echo_n "checking $dir/$inc... " >&6; }
8188
unset ac_cv_header_gc_h
8189
ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
8190
if test "x$ac_cv_header_gc_h" = x""yes; then :
8191
gcincludedir="$dir/$inc"; CFLAGS="$CFLAGS -I$dir/$inc"; break
8195
CPPFLAGS="$cppflags"
8197
if test x"$gcincludedir" != xno; then
8201
if test x"$gcincludedir" = xno; then
8202
as_fn_error $? "gc.h not found" "$LINENO" 5
8205
unset ac_cv_lib_gc_GC_init
8206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_init in -lgc" >&5
8207
$as_echo_n "checking for GC_init in -lgc... " >&6; }
8208
if test "${ac_cv_lib_gc_GC_init+set}" = set; then :
8209
$as_echo_n "(cached) " >&6
8211
ac_check_lib_save_LIBS=$LIBS
8213
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214
/* end confdefs.h. */
8216
/* Override any GCC internal prototype to avoid an error.
8217
Use char because int might match the return type of a GCC
8218
builtin and then its argument prototype would still apply. */
8231
if ac_fn_c_try_link "$LINENO"; then :
8232
ac_cv_lib_gc_GC_init=yes
8234
ac_cv_lib_gc_GC_init=no
8236
rm -f core conftest.err conftest.$ac_objext \
8237
conftest$ac_exeext conftest.$ac_ext
8238
LIBS=$ac_check_lib_save_LIBS
8240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5
8241
$as_echo "$ac_cv_lib_gc_GC_init" >&6; }
8242
if test "x$ac_cv_lib_gc_GC_init" = x""yes; then :
8246
if test x"$ac_cv_lib_gc_GC_init" = xno; then
8247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library location" >&5
8248
$as_echo_n "checking GC library location... " >&6; }
8249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
8250
$as_echo "$with_gc" >&6; }
8252
for dir in $with_gc; do
8254
LDFLAGS="$LDFLAGS -L$dir/lib"
8255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $dir" >&5
8256
$as_echo_n "checking $dir... " >&6; }
8257
unset ac_cv_lib_gc_GC_init
8258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_init in -lgc" >&5
8259
$as_echo_n "checking for GC_init in -lgc... " >&6; }
8260
if test "${ac_cv_lib_gc_GC_init+set}" = set; then :
8261
$as_echo_n "(cached) " >&6
8263
ac_check_lib_save_LIBS=$LIBS
8265
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266
/* end confdefs.h. */
8268
/* Override any GCC internal prototype to avoid an error.
8269
Use char because int might match the return type of a GCC
8270
builtin and then its argument prototype would still apply. */
8283
if ac_fn_c_try_link "$LINENO"; then :
8284
ac_cv_lib_gc_GC_init=yes
8286
ac_cv_lib_gc_GC_init=no
8288
rm -f core conftest.err conftest.$ac_objext \
8289
conftest$ac_exeext conftest.$ac_ext
8290
LIBS=$ac_check_lib_save_LIBS
8292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5
8293
$as_echo "$ac_cv_lib_gc_GC_init" >&6; }
8294
if test "x$ac_cv_lib_gc_GC_init" = x""yes; then :
8295
gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break
8300
if test x"$gclibdir" = xno; then
8301
as_fn_error $? "libgc not found" "$LINENO" 5
8304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zError in -lz" >&5
8305
$as_echo_n "checking for zError in -lz... " >&6; }
8306
if test "${ac_cv_lib_z_zError+set}" = set; then :
8307
$as_echo_n "(cached) " >&6
8309
ac_check_lib_save_LIBS=$LIBS
8311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312
/* end confdefs.h. */
8314
/* Override any GCC internal prototype to avoid an error.
8315
Use char because int might match the return type of a GCC
8316
builtin and then its argument prototype would still apply. */
8329
if ac_fn_c_try_link "$LINENO"; then :
8330
ac_cv_lib_z_zError=yes
8332
ac_cv_lib_z_zError=no
8334
rm -f core conftest.err conftest.$ac_objext \
8335
conftest$ac_exeext conftest.$ac_ext
8336
LIBS=$ac_check_lib_save_LIBS
8338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zError" >&5
8339
$as_echo "$ac_cv_lib_z_zError" >&6; }
8340
if test "x$ac_cv_lib_z_zError" = x""yes; then :
8341
AUXBIN_TARGETS="$AUXBIN_TARGETS inflate\$(EXT)"
8345
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8346
#include <sys/socket.h>
8348
if test "x$ac_cv_type_socklen_t" = x""yes; then :
8349
$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
8354
$as_echo "#define AUXBIN_TARGETS \"\$AUXBIN_TARGETS\"" >>confdefs.h
8359
*cygwin*|*os2-emx*|*mingw*)
8360
$as_echo "#define USE_BINMODE_STREAM 1" >>confdefs.h
8366
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8367
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8369
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8370
if eval "test \"\${$as_ac_Header+set}\"" = set; then :
8371
$as_echo_n "(cached) " >&6
8373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374
/* end confdefs.h. */
8375
#include <sys/types.h>
8387
if ac_fn_c_try_compile "$LINENO"; then :
8388
eval "$as_ac_Header=yes"
8390
eval "$as_ac_Header=no"
8392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394
eval ac_res=\$$as_ac_Header
8395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8396
$as_echo "$ac_res" >&6; }
8397
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8398
cat >>confdefs.h <<_ACEOF
8399
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8402
ac_header_dirent=$ac_hdr; break
8406
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8407
if test $ac_header_dirent = dirent.h; then
8408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8409
$as_echo_n "checking for library containing opendir... " >&6; }
8410
if test "${ac_cv_search_opendir+set}" = set; then :
8411
$as_echo_n "(cached) " >&6
8413
ac_func_search_save_LIBS=$LIBS
8414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415
/* end confdefs.h. */
8417
/* Override any GCC internal prototype to avoid an error.
8418
Use char because int might match the return type of a GCC
8419
builtin and then its argument prototype would still apply. */
8432
for ac_lib in '' dir; do
8433
if test -z "$ac_lib"; then
8434
ac_res="none required"
8437
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8439
if ac_fn_c_try_link "$LINENO"; then :
8440
ac_cv_search_opendir=$ac_res
8442
rm -f core conftest.err conftest.$ac_objext \
8444
if test "${ac_cv_search_opendir+set}" = set; then :
8448
if test "${ac_cv_search_opendir+set}" = set; then :
8451
ac_cv_search_opendir=no
8454
LIBS=$ac_func_search_save_LIBS
8456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8457
$as_echo "$ac_cv_search_opendir" >&6; }
8458
ac_res=$ac_cv_search_opendir
8459
if test "$ac_res" != no; then :
8460
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8466
$as_echo_n "checking for library containing opendir... " >&6; }
8467
if test "${ac_cv_search_opendir+set}" = set; then :
8468
$as_echo_n "(cached) " >&6
8470
ac_func_search_save_LIBS=$LIBS
8471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472
/* end confdefs.h. */
8474
/* Override any GCC internal prototype to avoid an error.
8475
Use char because int might match the return type of a GCC
8476
builtin and then its argument prototype would still apply. */
8489
for ac_lib in '' x; do
8490
if test -z "$ac_lib"; then
8491
ac_res="none required"
8494
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8496
if ac_fn_c_try_link "$LINENO"; then :
8497
ac_cv_search_opendir=$ac_res
8499
rm -f core conftest.err conftest.$ac_objext \
8501
if test "${ac_cv_search_opendir+set}" = set; then :
8505
if test "${ac_cv_search_opendir+set}" = set; then :
8508
ac_cv_search_opendir=no
8511
LIBS=$ac_func_search_save_LIBS
8513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8514
$as_echo "$ac_cv_search_opendir" >&6; }
8515
ac_res=$ac_cv_search_opendir
8516
if test "$ac_res" != no; then :
8517
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8524
$as_echo_n "checking for ANSI C header files... " >&6; }
8525
if test "${ac_cv_header_stdc+set}" = set; then :
8526
$as_echo_n "(cached) " >&6
8528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529
/* end confdefs.h. */
8543
if ac_fn_c_try_compile "$LINENO"; then :
8544
ac_cv_header_stdc=yes
8546
ac_cv_header_stdc=no
8548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550
if test $ac_cv_header_stdc = yes; then
8551
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553
/* end confdefs.h. */
8557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8558
$EGREP "memchr" >/dev/null 2>&1; then :
8561
ac_cv_header_stdc=no
8567
if test $ac_cv_header_stdc = yes; then
8568
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570
/* end confdefs.h. */
8574
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8575
$EGREP "free" >/dev/null 2>&1; then :
8578
ac_cv_header_stdc=no
8584
if test $ac_cv_header_stdc = yes; then
8585
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8586
if test "$cross_compiling" = yes; then :
8589
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590
/* end confdefs.h. */
8593
#if ((' ' & 0x0FF) == 0x020)
8594
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8595
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8597
# define ISLOWER(c) \
8598
(('a' <= (c) && (c) <= 'i') \
8599
|| ('j' <= (c) && (c) <= 'r') \
8600
|| ('s' <= (c) && (c) <= 'z'))
8601
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8604
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8609
for (i = 0; i < 256; i++)
8610
if (XOR (islower (i), ISLOWER (i))
8611
|| toupper (i) != TOUPPER (i))
8616
if ac_fn_c_try_run "$LINENO"; then :
8619
ac_cv_header_stdc=no
8621
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8622
conftest.$ac_objext conftest.beam conftest.$ac_ext
8627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8628
$as_echo "$ac_cv_header_stdc" >&6; }
8629
if test $ac_cv_header_stdc = yes; then
8631
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8636
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8637
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8638
$as_echo_n "(cached) " >&6
8640
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641
/* end confdefs.h. */
8642
#include <sys/types.h>
8643
#include <sys/wait.h>
8645
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8648
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8656
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8661
if ac_fn_c_try_compile "$LINENO"; then :
8662
ac_cv_header_sys_wait_h=yes
8664
ac_cv_header_sys_wait_h=no
8666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8669
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8670
if test $ac_cv_header_sys_wait_h = yes; then
8672
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8676
ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
8677
if test "x$ac_cv_header_termios_h" = x""yes; then :
8678
$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
8681
ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
8682
if test "x$ac_cv_header_termio_h" = x""yes; then :
8683
$as_echo "#define HAVE_TERMIO_H 1" >>confdefs.h
8686
ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
8687
if test "x$ac_cv_header_sgtty_h" = x""yes; then :
8688
$as_echo "#define HAVE_SGTTY_H 1" >>confdefs.h
8699
ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
8700
if test "x$ac_cv_header_float_h" = x""yes; then :
8701
$as_echo "#define HAVE_FLOAT_H 1" >>confdefs.h
8706
ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
8707
if test "x$ac_cv_header_sys_select_h" = x""yes; then :
8708
$as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
8713
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8714
if test "x$ac_cv_header_locale_h" = x""yes; then :
8715
$as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
8720
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8721
if test "x$ac_cv_header_stdint_h" = x""yes; then :
8722
$as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
8727
ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8728
if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8729
$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8735
# The cast to long int works around a bug in the HP C Compiler
8736
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8737
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8738
# This bug is HP SR number 8606223364.
8739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8740
$as_echo_n "checking size of long long... " >&6; }
8741
if test "${ac_cv_sizeof_long_long+set}" = set; then :
8742
$as_echo_n "(cached) " >&6
8744
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8747
if test "$ac_cv_type_long_long" = yes; then
8748
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8749
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8750
as_fn_error 77 "cannot compute sizeof (long long)
8751
See \`config.log' for more details" "$LINENO" 5 ; }
8753
ac_cv_sizeof_long_long=0
8758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8759
$as_echo "$ac_cv_sizeof_long_long" >&6; }
8763
cat >>confdefs.h <<_ACEOF
8764
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8769
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
8771
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8772
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8773
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8774
cat >>confdefs.h <<_ACEOF
8775
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8781
for ac_func in strftime
8783
ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8784
if test "x$ac_cv_func_strftime" = x""yes; then :
8785
cat >>confdefs.h <<_ACEOF
8786
#define HAVE_STRFTIME 1
8790
# strftime is in -lintl on SCO UNIX.
8791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8792
$as_echo_n "checking for strftime in -lintl... " >&6; }
8793
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8794
$as_echo_n "(cached) " >&6
8796
ac_check_lib_save_LIBS=$LIBS
8798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799
/* end confdefs.h. */
8801
/* Override any GCC internal prototype to avoid an error.
8802
Use char because int might match the return type of a GCC
8803
builtin and then its argument prototype would still apply. */
8816
if ac_fn_c_try_link "$LINENO"; then :
8817
ac_cv_lib_intl_strftime=yes
8819
ac_cv_lib_intl_strftime=no
8821
rm -f core conftest.err conftest.$ac_objext \
8822
conftest$ac_exeext conftest.$ac_ext
8823
LIBS=$ac_check_lib_save_LIBS
8825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8826
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
8827
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8828
$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
8837
$as_echo_n "checking for wait3 that fills in rusage... " >&6; }
8838
if test "${ac_cv_func_wait3_rusage+set}" = set; then :
8839
$as_echo_n "(cached) " >&6
8841
if test "$cross_compiling" = yes; then :
8842
ac_cv_func_wait3_rusage=no
8844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845
/* end confdefs.h. */
8846
$ac_includes_default
8847
#include <sys/time.h>
8848
#include <sys/resource.h>
8849
#include <sys/wait.h>
8850
/* HP-UX has wait3 but does not fill in rusage at all. */
8856
/* Use a field that we can force nonzero --
8857
voluntary context switches.
8858
For systems like NeXT and OSF/1 that don't set it,
8859
also use the system CPU time. And page faults (I/O) for Linux. */
8861
r.ru_stime.tv_sec = 0;
8862
r.ru_stime.tv_usec = 0;
8863
r.ru_majflt = r.ru_minflt = 0;
8866
case 0: /* Child. */
8867
sleep(1); /* Give up the CPU. */
8870
case -1: /* What can we do? */
8873
default: /* Parent. */
8875
/* Avoid "text file busy" from rm on fast HP-UX machines. */
8877
return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
8878
&& r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
8882
if ac_fn_c_try_run "$LINENO"; then :
8883
ac_cv_func_wait3_rusage=yes
8885
ac_cv_func_wait3_rusage=no
8887
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8888
conftest.$ac_objext conftest.beam conftest.$ac_ext
8892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
8893
$as_echo "$ac_cv_func_wait3_rusage" >&6; }
8894
if test $ac_cv_func_wait3_rusage = yes; then
8896
$as_echo "#define HAVE_WAIT3 1" >>confdefs.h
8900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
8901
$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
8902
if test "${ac_cv_func_setpgrp_void+set}" = set; then :
8903
$as_echo_n "(cached) " >&6
8905
if test "$cross_compiling" = yes; then :
8906
as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
8908
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909
/* end confdefs.h. */
8910
$ac_includes_default
8914
/* If this system has a BSD-style setpgrp which takes arguments,
8915
setpgrp(1, 1) will fail with ESRCH and return -1, in that case
8916
exit successfully. */
8917
return setpgrp (1,1) != -1;
8922
if ac_fn_c_try_run "$LINENO"; then :
8923
ac_cv_func_setpgrp_void=no
8925
ac_cv_func_setpgrp_void=yes
8927
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8928
conftest.$ac_objext conftest.beam conftest.$ac_ext
8932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
8933
$as_echo "$ac_cv_func_setpgrp_void" >&6; }
8934
if test $ac_cv_func_setpgrp_void = yes; then
8936
$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
8945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8946
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8947
if test "${am_cv_langinfo_codeset+set}" = set; then :
8948
$as_echo_n "(cached) " >&6
8950
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951
/* end confdefs.h. */
8952
#include <langinfo.h>
8956
char* cs = nl_langinfo(CODESET); return !cs;
8961
if ac_fn_c_try_link "$LINENO"; then :
8962
am_cv_langinfo_codeset=yes
8964
am_cv_langinfo_codeset=no
8966
rm -f core conftest.err conftest.$ac_objext \
8967
conftest$ac_exeext conftest.$ac_ext
8970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8971
$as_echo "$am_cv_langinfo_codeset" >&6; }
8972
if test $am_cv_langinfo_codeset = yes; then
8974
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
8982
$as_echo_n "checking for sys_errlist... " >&6; }
8983
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984
/* end confdefs.h. */
8985
extern char *sys_errlist[];
8989
printf(sys_errlist[0]);
8994
if ac_fn_c_try_compile "$LINENO"; then :
8995
have_sys_errlist="yes"; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
8998
have_sys_errlist="no"
9000
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_errlist" >&5
9002
$as_echo "$have_sys_errlist" >&6; }
9004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9005
$as_echo_n "checking for sigsetjmp... " >&6; }
9006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007
/* end confdefs.h. */
9013
if (sigsetjmp(env, 1) != 0) { exit(0); } siglongjmp(env, 1);
9018
if ac_fn_c_try_compile "$LINENO"; then :
9019
have_sigsetjmp="yes"; $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9024
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sigsetjmp" >&5
9026
$as_echo "$have_sigsetjmp" >&6; }
9027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9028
$as_echo_n "checking return type of signal handlers... " >&6; }
9029
if test "${ac_cv_type_signal+set}" = set; then :
9030
$as_echo_n "(cached) " >&6
9032
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033
/* end confdefs.h. */
9034
#include <sys/types.h>
9040
return *(signal (0, 0)) (0) == 1;
9045
if ac_fn_c_try_compile "$LINENO"; then :
9046
ac_cv_type_signal=int
9048
ac_cv_type_signal=void
9050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9053
$as_echo "$ac_cv_type_signal" >&6; }
9055
cat >>confdefs.h <<_ACEOF
9056
#define RETSIGTYPE $ac_cv_type_signal
9062
if test x"$ac_cv_type_signal" = xvoid; then
9063
$as_echo "#define SIGNAL_RETURN return" >>confdefs.h
9066
$as_echo "#define SIGNAL_RETURN return 0" >>confdefs.h
9071
HELP_DIR="$datadir/$PACKAGE"
9072
$as_echo "#define HELP_DIR \"\$HELP_DIR\"" >>confdefs.h
9075
RC_DIR="~/.$PACKAGE"
9076
$as_echo "#define RC_DIR \"\$RC_DIR\"" >>confdefs.h
9079
DOCDIRS="doc:en_English doc-jp:ja_Japanese"
9080
cat >>confdefs.h <<_ACEOF
9081
#define DOCDIRS "$DOCDIRS"
9086
cvsver=`$AWK '\$1 ~ /Id:/ { print \$3}' $srcdir/ChangeLog`
9087
sed -e 's/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c
9088
CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c`
9089
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 w3mimg/win/Makefile w3mhelp-w3m_en.html w3mhelp-w3m_ja.html w3mhelp-lynx_en.html w3mhelp-lynx_ja.html"
9091
cat >confcache <<\_ACEOF
9092
# This file is a shell script that caches the results of configure
9093
# tests run on this system so they can be shared between configure
9094
# scripts and configure runs, see configure's option --config-cache.
9095
# It is not useful on other systems. If it contains results you don't
9096
# want to keep, you may remove or edit it.
9098
# config.status only pays attention to the cache file if you give it
9099
# the --recheck option to rerun configure.
9101
# `ac_cv_env_foo' variables (set or unset) will be overridden when
9102
# loading this file, other *unset* `ac_cv_foo' will be assigned the
9107
# The following way of writing the cache mishandles newlines in values,
9108
# but we know of no workaround that is simple, portable, and efficient.
9109
# So, we kill variables containing newlines.
9110
# Ultrix sh set writes to stderr and can't be redirected directly,
9111
# and sets the high bit in the cache file unless we assign to the vars.
9113
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9114
eval ac_val=\$$ac_var
9118
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9119
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9122
_ | IFS | as_nl) ;; #(
9123
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9124
*) { eval $ac_var=; unset $ac_var;} ;;
9130
case $as_nl`(ac_space=' '; set) 2>&1` in #(
9131
*${as_nl}ac_space=\ *)
9132
# `set' does not quote correctly, so add quotes: double-quote
9133
# substitution turns \\\\ into \\, and sed turns \\ into \.
9136
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9139
# `set' quotes correctly as required by POSIX, so do not add quotes.
9140
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9149
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9151
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9153
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9154
if test -w "$cache_file"; then
9155
test "x$cache_file" != "x/dev/null" &&
9156
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9157
$as_echo "$as_me: updating cache $cache_file" >&6;}
9158
cat confcache >$cache_file
9160
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9161
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9166
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9167
# Let make expand exec_prefix.
9168
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9170
DEFS=-DHAVE_CONFIG_H
9175
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9176
# 1. Remove the extension, and $U if already installed.
9177
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9178
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9179
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9180
# will be set to the directory where LIBOBJS objects are built.
9181
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9182
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9186
LTLIBOBJS=$ac_ltlibobjs
9190
: ${CONFIG_STATUS=./config.status}
9192
ac_clean_files_save=$ac_clean_files
9193
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9194
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9195
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9197
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9199
# Generated by $as_me.
9200
# Run this file to recreate the current configuration.
9201
# Compiler output produced by configure, useful for debugging
9202
# configure, is in config.log if it exists.
9208
SHELL=\${CONFIG_SHELL-$SHELL}
9211
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9212
## -------------------- ##
9213
## M4sh Initialization. ##
9214
## -------------------- ##
9216
# Be more Bourne compatible
9217
DUALCASE=1; export DUALCASE # for MKS sh
9218
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9221
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9222
# is contrary to our usage. Disable this feature.
9223
alias -g '${1+"$@"}'='"$@"'
9224
setopt NO_GLOB_SUBST
9226
case `(set -o) 2>/dev/null` in #(
9238
# Printing a long string crashes Solaris 7 /usr/bin/printf.
9239
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9240
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9241
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9242
# Prefer a ksh shell builtin over an external printf program on Solaris,
9243
# but without wasting forks for bash or zsh.
9244
if test -z "$BASH_VERSION$ZSH_VERSION" \
9245
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9246
as_echo='print -r --'
9247
as_echo_n='print -rn --'
9248
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9249
as_echo='printf %s\n'
9250
as_echo_n='printf %s'
9252
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9253
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9254
as_echo_n='/usr/ucb/echo -n'
9256
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9257
as_echo_n_body='eval
9261
expr "X$arg" : "X\\(.*\\)$as_nl";
9262
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9264
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9266
export as_echo_n_body
9267
as_echo_n='sh -c $as_echo_n_body as_echo'
9270
as_echo='sh -c $as_echo_body as_echo'
9273
# The user is always right.
9274
if test "${PATH_SEPARATOR+set}" != set; then
9276
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9277
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9284
# We need space, tab and new line, in precisely that order. Quoting is
9285
# there to prevent editors from complaining about space-tab.
9286
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9287
# splitting by setting IFS to empty value.)
9290
# Find who we are. Look in the path if we contain no directory separator.
9292
*[\\/]* ) as_myself=$0 ;;
9293
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297
test -z "$as_dir" && as_dir=.
9298
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9304
# We did not find ourselves, most probably we were run as `sh COMMAND'
9305
# in which case we are not to be found in the path.
9306
if test "x$as_myself" = x; then
9309
if test ! -f "$as_myself"; then
9310
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9314
# Unset variables that we do not need and which cause bugs (e.g. in
9315
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9316
# suppresses any "Segmentation fault" message there. '((' could
9317
# trigger a bug in pdksh 5.2.14.
9318
for as_var in BASH_ENV ENV MAIL MAILPATH
9319
do eval test x\${$as_var+set} = xset \
9320
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9333
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9336
# as_fn_error STATUS ERROR [LINENO LOG_FD]
9337
# ----------------------------------------
9338
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9339
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9340
# script with STATUS, using 1 if that was 0.
9343
as_status=$1; test $as_status -eq 0 && as_status=1
9345
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9346
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9348
$as_echo "$as_me: error: $2" >&2
9349
as_fn_exit $as_status
9353
# as_fn_set_status STATUS
9354
# -----------------------
9355
# Set $? to STATUS, without forking.
9359
} # as_fn_set_status
9363
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9373
# Portably unset VAR.
9376
{ eval $1=; unset $1;}
9378
as_unset=as_fn_unset
9379
# as_fn_append VAR VALUE
9380
# ----------------------
9381
# Append the text in VALUE to the end of the definition contained in VAR. Take
9382
# advantage of any shell optimizations that allow amortized linear growth over
9383
# repeated appends, instead of the typical quadratic growth present in naive
9385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9386
eval 'as_fn_append ()
9397
# as_fn_arith ARG...
9398
# ------------------
9399
# Perform arithmetic evaluation on the ARGs, and store the result in the
9400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
9401
# must be portable across $(()) and expr.
9402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9403
eval 'as_fn_arith ()
9410
as_val=`expr "$@" || test $? -eq 1`
9415
if expr a : '\(a\)' >/dev/null 2>&1 &&
9416
test "X`expr 00001 : '.*\(...\)'`" = X001; then
9422
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9423
as_basename=basename
9428
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9434
as_me=`$as_basename -- "$0" ||
9435
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9436
X"$0" : 'X\(//\)$' \| \
9437
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9439
sed '/^.*\/\([^/][^/]*\)\/*$/{
9453
# Avoid depending upon Character Ranges.
9454
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9455
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9456
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9457
as_cr_digits='0123456789'
9458
as_cr_alnum=$as_cr_Letters$as_cr_digits
9460
ECHO_C= ECHO_N= ECHO_T=
9461
case `echo -n x` in #(((((
9463
case `echo 'xy\c'` in
9464
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
9466
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9473
rm -f conf$$ conf$$.exe conf$$.file
9474
if test -d conf$$.dir; then
9475
rm -f conf$$.dir/conf$$.file
9478
mkdir conf$$.dir 2>/dev/null
9480
if (echo >conf$$.file) 2>/dev/null; then
9481
if ln -s conf$$.file conf$$ 2>/dev/null; then
9483
# ... but there are two gotchas:
9484
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9485
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9486
# In both cases, we have to default to `cp -p'.
9487
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9489
elif ln conf$$.file conf$$ 2>/dev/null; then
9497
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9498
rmdir conf$$.dir 2>/dev/null
9503
# Create "$as_dir" as a directory, including parents if necessary.
9508
-*) as_dir=./$as_dir;;
9510
test -d "$as_dir" || eval $as_mkdir_p || {
9514
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9515
*) as_qdir=$as_dir;;
9517
as_dirs="'$as_qdir' $as_dirs"
9518
as_dir=`$as_dirname -- "$as_dir" ||
9519
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9520
X"$as_dir" : 'X\(//\)[^/]' \| \
9521
X"$as_dir" : 'X\(//\)$' \| \
9522
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9523
$as_echo X"$as_dir" |
9524
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9541
test -d "$as_dir" && break
9543
test -z "$as_dirs" || eval "mkdir $as_dirs"
9544
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9548
if mkdir -p . 2>/dev/null; then
9549
as_mkdir_p='mkdir -p "$as_dir"'
9551
test -d ./-p && rmdir ./-p
9555
if test -x / >/dev/null 2>&1; then
9558
if ls -dL / >/dev/null 2>&1; then
9565
if test -d "$1"; then
9571
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9572
???[sx]*):;;*)false;;esac;fi
9576
as_executable_p=$as_test_x
9578
# Sed expression to map a string onto a valid CPP name.
9579
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9581
# Sed expression to map a string onto a valid variable name.
9582
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9586
## ----------------------------------- ##
9587
## Main body of $CONFIG_STATUS script. ##
9588
## ----------------------------------- ##
9590
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9592
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9593
# Save the log message, to keep $0 and so on meaningful, and to
9594
# report actual input values of CONFIG_FILES etc. instead of their
9595
# values after options handling.
9597
This file was extended by w3m $as_me 0.5.3, which was
9598
generated by GNU Autoconf 2.67. Invocation command line was
9600
CONFIG_FILES = $CONFIG_FILES
9601
CONFIG_HEADERS = $CONFIG_HEADERS
9602
CONFIG_LINKS = $CONFIG_LINKS
9603
CONFIG_COMMANDS = $CONFIG_COMMANDS
9606
on `(hostname || uname -n) 2>/dev/null | sed 1q`
9611
case $ac_config_files in *"
9612
"*) set x $ac_config_files; shift; ac_config_files=$*;;
9615
case $ac_config_headers in *"
9616
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9620
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9621
# Files that config.status was made for.
9622
config_files="$ac_config_files"
9623
config_headers="$ac_config_headers"
9624
config_commands="$ac_config_commands"
9628
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9630
\`$as_me' instantiates files and other configuration actions
9631
from templates according to the current configuration. Unless the files
9632
and actions are specified as TAGs, all are instantiated by default.
9634
Usage: $0 [OPTION]... [TAG]...
9636
-h, --help print this help, then exit
9637
-V, --version print version number and configuration settings, then exit
9638
--config print configuration, then exit
9639
-q, --quiet, --silent
9640
do not print progress messages
9641
-d, --debug don't remove temporary files
9642
--recheck update $as_me by reconfiguring in the same conditions
9643
--file=FILE[:TEMPLATE]
9644
instantiate the configuration file FILE
9645
--header=FILE[:TEMPLATE]
9646
instantiate the configuration header FILE
9648
Configuration files:
9651
Configuration headers:
9654
Configuration commands:
9657
Report bugs to <satodai@w3m.jp>."
9660
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9661
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9663
w3m config.status 0.5.3
9664
configured by $0, generated by GNU Autoconf 2.67,
9665
with options \\"\$ac_cs_config\\"
9667
Copyright (C) 2010 Free Software Foundation, Inc.
9668
This config.status script is free software; the Free Software Foundation
9669
gives unlimited permission to copy, distribute and modify it."
9676
test -n "\$AWK" || AWK=awk
9679
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9680
# The default lists apply if the user does not specify any file.
9686
ac_option=`expr "X$1" : 'X\([^=]*\)='`
9687
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9691
ac_option=`expr "X$1" : 'X\([^=]*\)='`
9703
# Handling of the options.
9704
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9706
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9707
$as_echo "$ac_cs_version"; exit ;;
9708
--config | --confi | --conf | --con | --co | --c )
9709
$as_echo "$ac_cs_config"; exit ;;
9710
--debug | --debu | --deb | --de | --d | -d )
9712
--file | --fil | --fi | --f )
9715
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9716
'') as_fn_error $? "missing file argument" ;;
9718
as_fn_append CONFIG_FILES " '$ac_optarg'"
9719
ac_need_defaults=false;;
9720
--header | --heade | --head | --hea )
9723
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9725
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9726
ac_need_defaults=false;;
9728
# Conflict between --help and --header
9729
as_fn_error $? "ambiguous option: \`$1'
9730
Try \`$0 --help' for more information.";;
9731
--help | --hel | -h )
9732
$as_echo "$ac_cs_usage"; exit ;;
9733
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
9734
| -silent | --silent | --silen | --sile | --sil | --si | --s)
9738
-*) as_fn_error $? "unrecognized option: \`$1'
9739
Try \`$0 --help' for more information." ;;
9741
*) as_fn_append ac_config_targets " $1"
9742
ac_need_defaults=false ;;
9748
ac_configure_extra_args=
9750
if $ac_cs_silent; then
9752
ac_configure_extra_args="$ac_configure_extra_args --silent"
9756
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9757
if \$ac_cs_recheck; then
9758
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9760
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9761
CONFIG_SHELL='$SHELL'
9767
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9771
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9772
## Running $as_me. ##
9778
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9782
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9783
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9784
# from automake < 1.5.
9785
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9786
# Capture the value of LINGUAS because we need it to compute CATALOGS.
9787
LINGUAS="${LINGUAS-%UNSET%}"
9792
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9794
# Handling of arguments.
9795
for ac_config_target in $ac_config_targets
9797
case $ac_config_target in
9798
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9799
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9800
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9801
"posubst") CONFIG_FILES="$CONFIG_FILES posubst" ;;
9802
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9803
"scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9804
"scripts/dirlist.cgi") CONFIG_FILES="$CONFIG_FILES scripts/dirlist.cgi" ;;
9805
"scripts/w3mhelp.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mhelp.cgi" ;;
9806
"scripts/w3mmail.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mmail.cgi" ;;
9807
"scripts/xface2xpm") CONFIG_FILES="$CONFIG_FILES scripts/xface2xpm" ;;
9808
"scripts/multipart/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/multipart/Makefile" ;;
9809
"scripts/multipart/multipart.cgi") CONFIG_FILES="$CONFIG_FILES scripts/multipart/multipart.cgi" ;;
9810
"scripts/w3mman/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/Makefile" ;;
9811
"scripts/w3mman/w3mman") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman" ;;
9812
"scripts/w3mman/w3mman.1") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman.1" ;;
9813
"scripts/w3mman/w3mman2html.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman2html.cgi" ;;
9814
"libwc/Makefile") CONFIG_FILES="$CONFIG_FILES libwc/Makefile" ;;
9815
"w3mimg/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/Makefile" ;;
9816
"w3mimg/fb/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/fb/Makefile" ;;
9817
"w3mimg/x11/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/x11/Makefile" ;;
9818
"w3mimg/win/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/win/Makefile" ;;
9819
"w3mhelp-w3m_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_en.html" ;;
9820
"w3mhelp-w3m_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_ja.html" ;;
9821
"w3mhelp-lynx_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_en.html" ;;
9822
"w3mhelp-lynx_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_ja.html" ;;
9824
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
9829
# If the user did not use the arguments to specify the items to instantiate,
9830
# then the envvar interface is used. Set only those that are not.
9831
# We use the long form for the default assignment because of an extremely
9832
# bizarre bug on SunOS 4.1.3.
9833
if $ac_need_defaults; then
9834
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9835
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9836
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9839
# Have a temporary directory for convenience. Make it in the build tree
9840
# simply because there is no reason against having it here, and in addition,
9841
# creating and moving files from /tmp can sometimes cause problems.
9842
# Hook for its removal unless debugging.
9843
# Note that there is a small window in which the directory will not be cleaned:
9844
# after its creation but before its name has been assigned to `$tmp'.
9848
trap 'exit_status=$?
9849
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9851
trap 'as_fn_exit 1' 1 2 13 15
9853
# Create a (secure) tmp directory for tmp files.
9856
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9857
test -n "$tmp" && test -d "$tmp"
9860
tmp=./conf$$-$RANDOM
9861
(umask 077 && mkdir "$tmp")
9862
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9864
# Set up the scripts for CONFIG_FILES section.
9865
# No need to generate them if there are no CONFIG_FILES.
9866
# This happens for instance with `./config.status config.h'.
9867
if test -n "$CONFIG_FILES"; then
9870
ac_cr=`echo X | tr X '\015'`
9871
# On cygwin, bash can eat \r inside `` if the user requested igncr.
9872
# But we know of no other shell where ac_cr would be empty at this
9873
# point, so we can use a bashism as a fallback.
9874
if test "x$ac_cr" = x; then
9875
eval ac_cr=\$\'\\r\'
9877
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9878
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9884
echo 'BEGIN {' >"$tmp/subs1.awk" &&
9889
echo "cat >conf$$subs.awk <<_ACEOF" &&
9890
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9893
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9894
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9896
for ac_last_try in false false false false false :; do
9897
. ./conf$$subs.sh ||
9898
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9900
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9901
if test $ac_delim_n = $ac_delim_num; then
9903
elif $ac_last_try; then
9904
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9906
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9911
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9912
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9916
s/^/S["/; s/!.*/"]=/
9926
s/\(.\{148\}\)..*/\1/
9928
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9933
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9940
s/\(.\{148\}\)..*/\1/
9942
s/["\\]/\\&/g; s/^/"/; s/$/"/
9946
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9951
' <conf$$subs.awk | sed '
9956
' >>$CONFIG_STATUS || ac_write_fail=1
9957
rm -f conf$$subs.awk
9958
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9960
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9961
for (key in S) S_is_set[key] = 1
9967
nfields = split(line, field, "@")
9969
len = length(field[1])
9970
for (i = 2; i < nfields; i++) {
9972
keylen = length(key)
9973
if (S_is_set[key]) {
9975
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9976
len += length(value) + length(field[++i])
9987
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9988
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9989
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9992
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9993
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9996
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9997
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9998
# trailing colons and then remove the whole line if VPATH becomes empty
9999
# (actually we leave an empty line to preserve line numbers).
10000
if test "x$srcdir" = x.; then
10001
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10019
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10020
fi # test -n "$CONFIG_FILES"
10022
# Set up the scripts for CONFIG_HEADERS section.
10023
# No need to generate them if there are no CONFIG_HEADERS.
10024
# This happens for instance with `./config.status Makefile'.
10025
if test -n "$CONFIG_HEADERS"; then
10026
cat >"$tmp/defines.awk" <<\_ACAWK ||
10030
# Transform confdefs.h into an awk script `defines.awk', embedded as
10031
# here-document in config.status, that substitutes the proper values into
10032
# config.h.in to produce config.h.
10034
# Create a delimiter string that does not exist in confdefs.h, to ease
10035
# handling of long lines.
10037
for ac_last_try in false false :; do
10038
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10039
if test -z "$ac_t"; then
10041
elif $ac_last_try; then
10042
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10044
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10048
# For the awk script, D is an array of macro values keyed by name,
10049
# likewise P contains macro parameters if any. Preserve backslash
10050
# newline sequences.
10052
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10054
s/.\{148\}/&'"$ac_delim"'/g
10057
s/^[ ]*#[ ]*define[ ][ ]*/ /
10064
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10066
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10070
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10071
D["\1"]=" \3\\\\\\n"\\/p
10073
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10078
s/.\{148\}/&'"$ac_delim"'/g
10083
s/["\\]/\\&/g; s/^/"/; s/$/"/p
10086
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10088
' <confdefs.h | sed '
10089
s/'"$ac_delim"'/"\\\
10090
"/g' >>$CONFIG_STATUS || ac_write_fail=1
10092
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10093
for (key in D) D_is_set[key] = 1
10096
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10098
split(line, arg, " ")
10099
if (arg[1] == "#") {
10103
defundef = substr(arg[1], 2)
10106
split(mac1, mac2, "(") #)
10108
prefix = substr(line, 1, index(line, defundef) - 1)
10109
if (D_is_set[macro]) {
10110
# Preserve the white space surrounding the "#".
10111
print prefix "define", macro P[macro] D[macro]
10114
# Replace #undef with comments. This is necessary, for example,
10115
# in the case of _POSIX_SOURCE, which is predefined and required
10116
# on some systems where configure will not decide to define it.
10117
if (defundef == "undef") {
10118
print "/*", prefix defundef, macro, "*/"
10126
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10127
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10128
fi # test -n "$CONFIG_HEADERS"
10131
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10136
:[FHLC]) ac_mode=$ac_tag; continue;;
10138
case $ac_mode$ac_tag in
10140
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
10141
:[FH]-) ac_tag=-:-;;
10142
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10159
-) ac_f="$tmp/stdin";;
10160
*) # Look for the file first in the build tree, then in the source tree
10161
# (if the path is not absolute). The absolute path cannot be DOS-style,
10162
# because $ac_f cannot contain `:'.
10166
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10168
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
10170
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10171
as_fn_append ac_file_inputs " '$ac_f'"
10174
# Let's still pretend it is `configure' which instantiates (i.e., don't
10175
# use $as_me), people would be surprised to read:
10176
# /* config.h. Generated by config.status. */
10177
configure_input='Generated from '`
10178
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10180
if test x"$ac_file" != x-; then
10181
configure_input="$ac_file. $configure_input"
10182
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10183
$as_echo "$as_me: creating $ac_file" >&6;}
10185
# Neutralize special characters interpreted by sed in replacement strings.
10186
case $configure_input in #(
10187
*\&* | *\|* | *\\* )
10188
ac_sed_conf_input=`$as_echo "$configure_input" |
10189
sed 's/[\\\\&|]/\\\\&/g'`;; #(
10190
*) ac_sed_conf_input=$configure_input;;
10194
*:-:* | *:-) cat >"$tmp/stdin" \
10195
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10200
ac_dir=`$as_dirname -- "$ac_file" ||
10201
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10202
X"$ac_file" : 'X\(//\)[^/]' \| \
10203
X"$ac_file" : 'X\(//\)$' \| \
10204
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10205
$as_echo X"$ac_file" |
10206
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10210
/^X\(\/\/\)[^/].*/{
10223
as_dir="$ac_dir"; as_fn_mkdir_p
10227
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10229
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10230
# A ".." for each directory in $ac_dir_suffix.
10231
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10232
case $ac_top_builddir_sub in
10233
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10234
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10237
ac_abs_top_builddir=$ac_pwd
10238
ac_abs_builddir=$ac_pwd$ac_dir_suffix
10239
# for backward compatibility:
10240
ac_top_builddir=$ac_top_build_prefix
10243
.) # We are building in place.
10245
ac_top_srcdir=$ac_top_builddir_sub
10246
ac_abs_top_srcdir=$ac_pwd ;;
10247
[\\/]* | ?:[\\/]* ) # Absolute name.
10248
ac_srcdir=$srcdir$ac_dir_suffix;
10249
ac_top_srcdir=$srcdir
10250
ac_abs_top_srcdir=$srcdir ;;
10251
*) # Relative name.
10252
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10253
ac_top_srcdir=$ac_top_build_prefix$srcdir
10254
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10256
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10266
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10267
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10269
ac_MKDIR_P=$MKDIR_P
10271
[\\/$]* | ?:[\\/]* ) ;;
10272
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10276
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10277
# If the template does not know about datarootdir, expand it.
10278
# FIXME: This hack should be removed a few years after 2.60.
10279
ac_datarootdir_hack=; ac_datarootdir_seen=
10290
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10291
*datarootdir*) ac_datarootdir_seen=yes;;
10292
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10293
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10294
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10296
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10297
ac_datarootdir_hack='
10298
s&@datadir@&$datadir&g
10299
s&@docdir@&$docdir&g
10300
s&@infodir@&$infodir&g
10301
s&@localedir@&$localedir&g
10302
s&@mandir@&$mandir&g
10303
s&\\\${datarootdir}&$datarootdir&g' ;;
10307
# Neutralize VPATH when `$srcdir' = `.'.
10308
# Shell code in configure.ac might set extrasub.
10309
# FIXME: do we really want to maintain this feature?
10310
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10311
ac_sed_extra="$ac_vpsub
10314
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10316
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10317
s|@configure_input@|$ac_sed_conf_input|;t t
10318
s&@top_builddir@&$ac_top_builddir_sub&;t t
10319
s&@top_build_prefix@&$ac_top_build_prefix&;t t
10320
s&@srcdir@&$ac_srcdir&;t t
10321
s&@abs_srcdir@&$ac_abs_srcdir&;t t
10322
s&@top_srcdir@&$ac_top_srcdir&;t t
10323
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10324
s&@builddir@&$ac_builddir&;t t
10325
s&@abs_builddir@&$ac_abs_builddir&;t t
10326
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10327
s&@INSTALL@&$ac_INSTALL&;t t
10328
s&@MKDIR_P@&$ac_MKDIR_P&;t t
10329
$ac_datarootdir_hack
10331
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10332
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10334
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10335
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10336
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10337
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10338
which seems to be undefined. Please make sure it is defined" >&5
10339
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10340
which seems to be undefined. Please make sure it is defined" >&2;}
10344
-) cat "$tmp/out" && rm -f "$tmp/out";;
10345
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10347
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10353
if test x"$ac_file" != x-; then
10355
$as_echo "/* $configure_input */" \
10356
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10357
} >"$tmp/config.h" \
10358
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10359
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10360
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10361
$as_echo "$as_me: $ac_file is unchanged" >&6;}
10364
mv "$tmp/config.h" "$ac_file" \
10365
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10368
$as_echo "/* $configure_input */" \
10369
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10370
|| as_fn_error $? "could not create -" "$LINENO" 5
10374
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10375
$as_echo "$as_me: executing $ac_file commands" >&6;}
10380
case $ac_file$ac_mode in
10381
"po-directories":C)
10382
for ac_file in $CONFIG_FILES; do
10383
# Support "outfile[:infile[:infile...]]"
10385
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10387
# PO directories have a Makefile.in generated from Makefile.in.in.
10388
case "$ac_file" in */Makefile.in)
10389
# Adjust a relative srcdir.
10390
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10391
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10392
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10393
# In autoconf-2.13 it is called $ac_given_srcdir.
10394
# In autoconf-2.50 it is called $srcdir.
10395
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10396
case "$ac_given_srcdir" in
10397
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10398
/*) top_srcdir="$ac_given_srcdir" ;;
10399
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10401
# Treat a directory as a PO directory if and only if it has a
10402
# POTFILES.in file. This allows packages to have multiple PO
10403
# directories under different names or in different locations.
10404
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10405
rm -f "$ac_dir/POTFILES"
10406
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10407
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10408
POMAKEFILEDEPS="POTFILES.in"
10409
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10410
# on $ac_dir but don't depend on user-specified configuration
10412
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10413
# The LINGUAS file contains the set of available languages.
10414
if test -n "$OBSOLETE_ALL_LINGUAS"; then
10415
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10417
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10418
# Hide the ALL_LINGUAS assigment from automake < 1.5.
10419
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10420
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10422
# The set of available languages was given in configure.in.
10423
# Hide the ALL_LINGUAS assigment from automake < 1.5.
10424
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10427
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10428
# Compute UPDATEPOFILES
10429
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10430
# Compute DUMMYPOFILES
10431
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10433
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10434
case "$ac_given_srcdir" in
10436
*) srcdirpre='$(srcdir)/' ;;
10442
for lang in $ALL_LINGUAS; do
10443
POFILES="$POFILES $srcdirpre$lang.po"
10444
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10445
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10446
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10448
# CATALOGS depends on both $ac_dir and the user's LINGUAS
10449
# environment variable.
10451
if test -n "$ALL_LINGUAS"; then
10452
for presentlang in $ALL_LINGUAS; do
10454
if test "%UNSET%" != "$LINGUAS"; then
10455
desiredlanguages="$LINGUAS"
10457
desiredlanguages="$ALL_LINGUAS"
10459
for desiredlang in $desiredlanguages; do
10460
# Use the presentlang catalog if desiredlang is
10461
# a. equal to presentlang, or
10462
# b. a variant of presentlang (because in this case,
10463
# presentlang can be used as a fallback for messages
10464
# which are not translated in the desiredlang catalog).
10465
case "$desiredlang" in
10466
"$presentlang"*) useit=yes;;
10469
if test $useit = yes; then
10470
INST_LINGUAS="$INST_LINGUAS $presentlang"
10475
if test -n "$INST_LINGUAS"; then
10476
for lang in $INST_LINGUAS; do
10477
CATALOGS="$CATALOGS $lang.gmo"
10480
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10481
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"
10482
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10483
if test -f "$f"; then
10485
*.orig | *.bak | *~) ;;
10486
*) cat "$f" >> "$ac_dir/Makefile" ;;
10501
ac_clean_files=$ac_clean_files_save
10503
test $ac_write_fail = 0 ||
10504
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10507
# configure is writing to config.log, and then calls config.status.
10508
# config.status does its own redirection, appending to config.log.
10509
# Unfortunately, on DOS this fails, as config.log is still kept open
10510
# by configure, so config.status won't be able to write to it; its
10511
# output is simply discarded. So we exec the FD to /dev/null,
10512
# effectively closing config.log, so it can be properly (re)opened and
10513
# appended to by config.status. When coming back to configure, we
10514
# need to make the FD available again.
10515
if test "$no_create" != yes; then
10517
ac_config_status_args=
10518
test "$silent" = yes &&
10519
ac_config_status_args="$ac_config_status_args --quiet"
10521
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10523
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
10524
# would make configure fail if this is the last instruction.
10525
$ac_cs_success || as_fn_exit 1
10527
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10528
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10529
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}