Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for w3m 0.5.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='w3m'
579 PACKAGE_TARNAME='w3m'
580 PACKAGE_VERSION='0.5.3'
581 PACKAGE_STRING='w3m 0.5.3'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 gt_needs=
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 CURRENT_VERSION
625 DOCDIRS
626 RC_DIR
627 HELP_DIR
628 SIGNAL_RETURN
629 RETSIGTYPE
630 HAVE_SIGSETJMP
631 USE_BINMODE_STREAM
632 LIBGC
633 AUXBIN_TARGETS
634 USE_SYSMOUSE
635 USE_W3M
636 USE_DIGEST_AUTH
637 DEF_CAFILE
638 SSL_LIBS
639 SSL_CFLAGS
640 PKG_CONFIG_LIBDIR
641 PKG_CONFIG_PATH
642 PKG_CONFIG
643 USE_SSL_VERIFY
644 USE_SSL
645 HAVE_OLD_SS_FAMILY
646 INET6
647 DEF_EXT_BROWSER
648 DEF_MAILER
649 DEF_EDITOR
650 DEF_MIGEMO_COMMAND
651 USE_MIGEMO
652 USE_W3MMAILER
653 USE_EXTERNAL_URI_LOADER
654 USE_HELP_CGI
655 USE_DICT
656 USE_GOPHER
657 USE_NNTP
658 USE_COOKIE
659 USE_ALARM
660 USE_HISTORY
661 USE_MOUSE
662 USE_MENU
663 KEYBIND
664 HELP_FILE
665 KEYMAP_FILE
666 uncompface
667 USE_XFACE
668 IMGWINLDFLAGS
669 IMGWINCFLAGS
670 IMGFBLDFLAGS
671 IMGFBCFLAGS
672 IMGX11LDFLAGS
673 IMGX11CFLAGS
674 IMGOBJS
675 IMGTARGETS
676 USE_IMLIB2
677 USE_IMLIB
678 USE_GTK2
679 USE_GDKPIXBUF
680 INSTALL_W3MIMGDISPLAY
681 W3MIMGDISPLAY_SETUID
682 IMGLINK
683 USE_W3MIMG_WIN
684 USE_W3MIMG_FB
685 USE_W3MIMG_X11
686 USE_IMAGE
687 USE_BG_COLOR
688 USE_ANSI_COLOR
689 USE_COLOR
690 NLSTARGET
691 INTLTARGET
692 POSUB
693 LTLIBINTL
694 LIBINTL
695 INTLLIBS
696 LTLIBICONV
697 LIBICONV
698 INTL_MACOSX_LIBS
699 EGREP
700 GREP
701 XGETTEXT_EXTRA_OPTIONS
702 MSGMERGE
703 XGETTEXT_015
704 XGETTEXT
705 GMSGFMT_015
706 MSGFMT_015
707 GMSGFMT
708 MSGFMT
709 GETTEXT_MACRO_VERSION
710 USE_NLS
711 mkdir_p
712 MKDIR_P
713 POLANG
714 POSUBST
715 DOCUMENT_CHARSET
716 SYSTEM_CHARSET
717 DISPLAY_CHARSET
718 WCCFLAGS
719 WCTARGET
720 USE_UNICODE
721 USE_M17N
722 W3M_LIBS
723 W3M_TARGET
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 X_EXTRA_LIBS
733 X_LIBS
734 X_PRE_LIBS
735 X_CFLAGS
736 XMKMF
737 MAN
738 NKF
739 PERL
740 RANLIB
741 SET_MAKE
742 LN_S
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 CPP
747 ac_ct_CC
748 CFLAGS
749 CC
750 AWK
751 OBJEXT
752 EXEEXT
753 ac_ct_CXX
754 CPPFLAGS
755 LDFLAGS
756 CXXFLAGS
757 CXX
758 W3M_LANG
759 W3M
760 VERSION
761 PACKAGE
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 runstatedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 with_x
805 enable_m17n
806 enable_unicode
807 enable_messagel10n
808 enable_japanese
809 with_charset
810 enable_nls
811 with_gnu_ld
812 enable_rpath
813 with_libiconv_prefix
814 with_libintl_prefix
815 enable_color
816 enable_ansi_color
817 enable_bgcolor
818 enable_image
819 with_imagelib
820 enable_xface
821 enable_keymap
822 enable_menu
823 enable_mouse
824 enable_history
825 enable_alarm
826 enable_cookie
827 enable_nntp
828 enable_gopher
829 enable_dict
830 enable_help_cgi
831 enable_external_uri_loader
832 enable_w3mmailer
833 with_migemo
834 with_editor
835 with_mailer
836 with_browser
837 enable_ipv6
838 with_ssl
839 enable_sslverify
840 with_cafile
841 enable_digest_auth
842 with_termlib
843 with_gc
844 '
845 ac_precious_vars='build_alias
846 host_alias
847 target_alias
848 CXX
849 CXXFLAGS
850 LDFLAGS
851 LIBS
852 CPPFLAGS
853 CCC
854 CC
855 CFLAGS
856 CPP
857 XMKMF
858 PKG_CONFIG
859 PKG_CONFIG_PATH
860 PKG_CONFIG_LIBDIR
861 SSL_CFLAGS
862 SSL_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
941
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
956
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
961
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
994
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -runstatedir | --runstatedir | --runstatedi | --runstated \
1155 | --runstate | --runstat | --runsta | --runst | --runs \
1156 | --run | --ru | --r)
1157 ac_prev=runstatedir ;;
1158 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1159 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1160 | --run=* | --ru=* | --r=*)
1161 runstatedir=$ac_optarg ;;
1162
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
1167 sbindir=$ac_optarg ;;
1168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
1178 sharedstatedir=$ac_optarg ;;
1179
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
1183 site=$ac_optarg ;;
1184
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1189
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1196
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1207
1208 -with-* | --with-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
1223
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260 ;;
1261
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 esac
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278 ;;
1279
1280 esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir runstatedir
1301 do
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
1310 case $ac_val in
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 esac
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1377 fi
1378 else
1379 ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures w3m 0.5.3 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/w3m]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1468
1469 cat <<\_ACEOF
1470
1471 X features:
1472 --x-includes=DIR X include files are in DIR
1473 --x-libraries=DIR X library files are in DIR
1474
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of w3m 0.5.3:";;
1484 esac
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --disable-m17n do not use m17n
1492 --disable-unicode do not use Unicode
1493 --enable-messagel10n=LL message l10n instead of Native Language Support
1494 --enable-japanese=CODE support Japanese CODE=(S|E|J|U)
1495 --disable-nls do not use Native Language Support
1496 --disable-rpath do not hardcode runtime library paths
1497 --disable-color disable color for VT100 terminal
1498 --disable-ansi-color disable ANSI color escape sequence
1499 --disable-bgcolor disable to set background color
1500 --enable-image[=DEVS] inline image handler [guessed]
1501 DEVS may be comma separated: x11,fb,fb+s,win
1502 --disable-xface disable X-Face support
1503 --enable-keymap=STYLE default keybind style (w3m or lynx) [w3m]
1504 --disable-menu disable popup menu
1505 --disable-mouse disable mouse operation
1506 --disable-history disable URL history
1507 --disable-alarm disable alarm
1508 --disable-cookie disable cookie
1509 --disable-nntp disable NNTP
1510 --disable-gopher disable Gopher
1511 --disable-dict disable dictionary lookup
1512 --disable-help-cgi disable help cgi
1513 --disable-external-uri-loader disable external URI loader
1514 --disable-w3mmailer disable w3mmailer
1515 --disable-ipv6 disable IPv6
1516 --disable-sslverify disable SSL certificate verification
1517 --disable-digest-auth disable digest auth
1518
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-x use the X Window System
1523 --with-charset=CHARSET charset for display [UTF-8]
1524 --with-gnu-ld assume the C compiler uses GNU ld default=no
1525 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1526 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1527 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1528 --without-libintl-prefix don't search for libintl in includedir and libdir
1529 --with-imagelib[=LIBS] image library [guessed]
1530 LIBS may be space separated:
1531 gtk2 gdk-pixbuf imlib imlib2
1532 --with-migemo[=COMMAND] migemo/cmigemo command and options [guessed]
1533 --with-editor=EDITOR default editor [/usr/bin/vi]
1534 --with-mailer=MAILER default mailer [/usr/bin/mail]
1535 --with-browser=BROWSER default browser [/usr/bin/firefox]
1536 --with-ssl[=PREFIX] SSL library/header location [guessed]
1537 --with-cafile[=CAFILE] CA file to verify SSL certificate [guessed]
1538 --with-termlib[=LIBS] terminal library [guessed]
1539 LIBS may be space separated:
1540 terminfo mytinfo termcap tinfo ncurses curses
1541 --with-gc[=PREFIX] GC library/header location [guessed]
1542
1543 Some influential environment variables:
1544 CXX C++ compiler command
1545 CXXFLAGS C++ compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 CPP C preprocessor
1554 XMKMF Path to xmkmf, Makefile generator for X Window System
1555 PKG_CONFIG path to pkg-config utility
1556 PKG_CONFIG_PATH
1557 directories to add to pkg-config's search path
1558 PKG_CONFIG_LIBDIR
1559 path overriding pkg-config's built-in search path
1560 SSL_CFLAGS C compiler flags for SSL, overriding pkg-config
1561 SSL_LIBS linker flags for SSL, overriding pkg-config
1562
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1565
1566 Report bugs to the package provider.
1567 _ACEOF
1568 ac_status=$?
1569 fi
1570
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1577 ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596 .) # We are building in place.
1597 ac_srcdir=.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1619 else
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1623 done
1624 fi
1625
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628 cat <<\_ACEOF
1629 w3m configure 0.5.3
1630 generated by GNU Autoconf 2.69
1631
1632 Copyright (C) 2012 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636 exit
1637 fi
1638
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1642
1643 # ac_fn_cxx_try_compile LINENO
1644 # ----------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_cxx_try_compile ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_cxx_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675 fi
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1678
1679 } # ac_fn_cxx_try_compile
1680
1681 # ac_fn_c_try_compile LINENO
1682 # --------------------------
1683 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext
1688 if { { ac_try="$ac_compile"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_compile
1718
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } > conftest.i && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_cpp
1755
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_link ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 test -x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791 fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_link
1801
1802 # ac_fn_c_check_func LINENO FUNC VAR
1803 # ----------------------------------
1804 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1805 ac_fn_c_check_func ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1817 #define $2 innocuous_$2
1818
1819 /* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $2 (); below.
1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1822 <limits.h> exists even on freestanding compilers. */
1823
1824 #ifdef __STDC__
1825 # include <limits.h>
1826 #else
1827 # include <assert.h>
1828 #endif
1829
1830 #undef $2
1831
1832 /* Override any GCC internal prototype to avoid an error.
1833 Use char because int might match the return type of a GCC
1834 builtin and then its argument prototype would still apply. */
1835 #ifdef __cplusplus
1836 extern "C"
1837 #endif
1838 char $2 ();
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined __stub_$2 || defined __stub___$2
1843 choke me
1844 #endif
1845
1846 int
1847 main ()
1848 {
1849 return $2 ();
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_link "$LINENO"; then :
1855 eval "$3=yes"
1856 else
1857 eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext \
1860 conftest$ac_exeext conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_func
1868
1869 # ac_fn_c_try_run LINENO
1870 # ----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872 # that executables *can* be run.
1873 ac_fn_c_try_run ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887 { { case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_try") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; }; }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: program exited with status $ac_status" >&5
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=$ac_status
1904 fi
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_run
1910
1911 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1914 # the include files in INCLUDES and setting the cache variable VAR
1915 # accordingly.
1916 ac_fn_c_check_header_mongrel ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if eval \${$3+:} false; then :
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924 fi
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 else
1929 # Is the header compilable?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1931 $as_echo_n "checking $2 usability... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_header_compiler=yes
1939 else
1940 ac_header_compiler=no
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1944 $as_echo "$ac_header_compiler" >&6; }
1945
1946 # Is the header present?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1948 $as_echo_n "checking $2 presence... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 #include <$2>
1952 _ACEOF
1953 if ac_fn_c_try_cpp "$LINENO"; then :
1954 ac_header_preproc=yes
1955 else
1956 ac_header_preproc=no
1957 fi
1958 rm -f conftest.err conftest.i conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1960 $as_echo "$ac_header_preproc" >&6; }
1961
1962 # So? What about this header?
1963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1964 yes:no: )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1966 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 ;;
1970 no:yes:* )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1972 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1974 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1976 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1978 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981 ;;
1982 esac
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 eval "$3=\$ac_header_compiler"
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 fi
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_header_mongrel
1997
1998 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1999 # -------------------------------------------------------
2000 # Tests whether HEADER exists and can be compiled using the include files in
2001 # INCLUDES, setting the cache variable VAR accordingly.
2002 ac_fn_c_check_header_compile ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 #include <$2>
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$3=yes"
2017 else
2018 eval "$3=no"
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 fi
2022 eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_check_header_compile
2028
2029 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2030 # -------------------------------------------
2031 # Tests whether TYPE exists after having included INCLUDES, setting cache
2032 # variable VAR accordingly.
2033 ac_fn_c_check_type ()
2034 {
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 eval "$3=no"
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 $4
2045 int
2046 main ()
2047 {
2048 if (sizeof ($2))
2049 return 0;
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 int
2059 main ()
2060 {
2061 if (sizeof (($2)))
2062 return 0;
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068
2069 else
2070 eval "$3=yes"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_type
2082
2083 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2084 # --------------------------------------------
2085 # Tries to find the compile-time value of EXPR in a program that includes
2086 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2087 # computed
2088 ac_fn_c_compute_int ()
2089 {
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if test "$cross_compiling" = yes; then
2092 # Depending upon the size, compute the lo and hi bounds.
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 $4
2096 int
2097 main ()
2098 {
2099 static int test_array [1 - 2 * !(($2) >= 0)];
2100 test_array [0] = 0;
2101 return test_array [0];
2102
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=0 ac_mid=0
2109 while :; do
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 $4
2113 int
2114 main ()
2115 {
2116 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2117 test_array [0] = 0;
2118 return test_array [0];
2119
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 ac_hi=$ac_mid; break
2126 else
2127 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2128 if test $ac_lo -le $ac_mid; then
2129 ac_lo= ac_hi=
2130 break
2131 fi
2132 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 done
2136 else
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) < 0)];
2144 test_array [0] = 0;
2145 return test_array [0];
2146
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_hi=-1 ac_mid=-1
2153 while :; do
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $4
2157 int
2158 main ()
2159 {
2160 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2161 test_array [0] = 0;
2162 return test_array [0];
2163
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_lo=$ac_mid; break
2170 else
2171 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2172 if test $ac_mid -le $ac_hi; then
2173 ac_lo= ac_hi=
2174 break
2175 fi
2176 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 done
2180 else
2181 ac_lo= ac_hi=
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 # Binary search between lo and hi bounds.
2187 while test "x$ac_lo" != "x$ac_hi"; do
2188 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $4
2192 int
2193 main ()
2194 {
2195 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2196 test_array [0] = 0;
2197 return test_array [0];
2198
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_hi=$ac_mid
2205 else
2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 done
2210 case $ac_lo in #((
2211 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2212 '') ac_retval=1 ;;
2213 esac
2214 else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2217 $4
2218 static long int longval () { return $2; }
2219 static unsigned long int ulongval () { return $2; }
2220 #include <stdio.h>
2221 #include <stdlib.h>
2222 int
2223 main ()
2224 {
2225
2226 FILE *f = fopen ("conftest.val", "w");
2227 if (! f)
2228 return 1;
2229 if (($2) < 0)
2230 {
2231 long int i = longval ();
2232 if (i != ($2))
2233 return 1;
2234 fprintf (f, "%ld", i);
2235 }
2236 else
2237 {
2238 unsigned long int i = ulongval ();
2239 if (i != ($2))
2240 return 1;
2241 fprintf (f, "%lu", i);
2242 }
2243 /* Do not output a trailing newline, as this causes \r\n confusion
2244 on some platforms. */
2245 return ferror (f) || fclose (f) != 0;
2246
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_run "$LINENO"; then :
2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2253 else
2254 ac_retval=1
2255 fi
2256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2257 conftest.$ac_objext conftest.beam conftest.$ac_ext
2258 rm -f conftest.val
2259
2260 fi
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 as_fn_set_status $ac_retval
2263
2264 } # ac_fn_c_compute_int
2265 cat >config.log <<_ACEOF
2266 This file contains any messages produced by compilers while
2267 running configure, to aid debugging if configure makes a mistake.
2268
2269 It was created by w3m $as_me 0.5.3, which was
2270 generated by GNU Autoconf 2.69. Invocation command line was
2271
2272 $ $0 $@
2273
2274 _ACEOF
2275 exec 5>>config.log
2276 {
2277 cat <<_ASUNAME
2278 ## --------- ##
2279 ## Platform. ##
2280 ## --------- ##
2281
2282 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2283 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2284 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2285 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2286 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2287
2288 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2289 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2290
2291 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2292 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2293 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2294 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2295 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2296 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2297 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2298
2299 _ASUNAME
2300
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 $as_echo "PATH: $as_dir"
2307 done
2308 IFS=$as_save_IFS
2309
2310 } >&5
2311
2312 cat >&5 <<_ACEOF
2313
2314
2315 ## ----------- ##
2316 ## Core tests. ##
2317 ## ----------- ##
2318
2319 _ACEOF
2320
2321
2322 # Keep a trace of the command line.
2323 # Strip out --no-create and --no-recursion so they do not pile up.
2324 # Strip out --silent because we don't want to record it for future runs.
2325 # Also quote any args containing shell meta-characters.
2326 # Make two passes to allow for proper duplicate-argument suppression.
2327 ac_configure_args=
2328 ac_configure_args0=
2329 ac_configure_args1=
2330 ac_must_keep_next=false
2331 for ac_pass in 1 2
2332 do
2333 for ac_arg
2334 do
2335 case $ac_arg in
2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2338 | -silent | --silent | --silen | --sile | --sil)
2339 continue ;;
2340 *\'*)
2341 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 esac
2343 case $ac_pass in
2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2345 2)
2346 as_fn_append ac_configure_args1 " '$ac_arg'"
2347 if test $ac_must_keep_next = true; then
2348 ac_must_keep_next=false # Got value, back to normal.
2349 else
2350 case $ac_arg in
2351 *=* | --config-cache | -C | -disable-* | --disable-* \
2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2354 | -with-* | --with-* | -without-* | --without-* | --x)
2355 case "$ac_configure_args0 " in
2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2357 esac
2358 ;;
2359 -* ) ac_must_keep_next=true ;;
2360 esac
2361 fi
2362 as_fn_append ac_configure_args " '$ac_arg'"
2363 ;;
2364 esac
2365 done
2366 done
2367 { ac_configure_args0=; unset ac_configure_args0;}
2368 { ac_configure_args1=; unset ac_configure_args1;}
2369
2370 # When interrupted or exit'd, cleanup temporary files, and complete
2371 # config.log. We remove comments because anyway the quotes in there
2372 # would cause problems or look ugly.
2373 # WARNING: Use '\'' to represent an apostrophe within the trap.
2374 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2375 trap 'exit_status=$?
2376 # Save into config.log some information that might help in debugging.
2377 {
2378 echo
2379
2380 $as_echo "## ---------------- ##
2381 ## Cache variables. ##
2382 ## ---------------- ##"
2383 echo
2384 # The following way of writing the cache mishandles newlines in values,
2385 (
2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2387 eval ac_val=\$$ac_var
2388 case $ac_val in #(
2389 *${as_nl}*)
2390 case $ac_var in #(
2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2393 esac
2394 case $ac_var in #(
2395 _ | IFS | as_nl) ;; #(
2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2397 *) { eval $ac_var=; unset $ac_var;} ;;
2398 esac ;;
2399 esac
2400 done
2401 (set) 2>&1 |
2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2403 *${as_nl}ac_space=\ *)
2404 sed -n \
2405 "s/'\''/'\''\\\\'\'''\''/g;
2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2407 ;; #(
2408 *)
2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2410 ;;
2411 esac |
2412 sort
2413 )
2414 echo
2415
2416 $as_echo "## ----------------- ##
2417 ## Output variables. ##
2418 ## ----------------- ##"
2419 echo
2420 for ac_var in $ac_subst_vars
2421 do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2429
2430 if test -n "$ac_subst_files"; then
2431 $as_echo "## ------------------- ##
2432 ## File substitutions. ##
2433 ## ------------------- ##"
2434 echo
2435 for ac_var in $ac_subst_files
2436 do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440 esac
2441 $as_echo "$ac_var='\''$ac_val'\''"
2442 done | sort
2443 echo
2444 fi
2445
2446 if test -s confdefs.h; then
2447 $as_echo "## ----------- ##
2448 ## confdefs.h. ##
2449 ## ----------- ##"
2450 echo
2451 cat confdefs.h
2452 echo
2453 fi
2454 test "$ac_signal" != 0 &&
2455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
2457 } >&5
2458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2460 exit $exit_status
2461 ' 0
2462 for ac_signal in 1 2 13 15; do
2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 done
2465 ac_signal=0
2466
2467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2468 rm -f -r conftest* confdefs.h
2469
2470 $as_echo "/* confdefs.h */" > confdefs.h
2471
2472 # Predefined preprocessor variables.
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_NAME "$PACKAGE_NAME"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_STRING "$PACKAGE_STRING"
2488 _ACEOF
2489
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492 _ACEOF
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_URL "$PACKAGE_URL"
2496 _ACEOF
2497
2498
2499 # Let the site file select an alternate cache file if it wants to.
2500 # Prefer an explicitly selected file to automatically selected ones.
2501 ac_site_file1=NONE
2502 ac_site_file2=NONE
2503 if test -n "$CONFIG_SITE"; then
2504 # We do not want a PATH search for config.site.
2505 case $CONFIG_SITE in #((
2506 -*) ac_site_file1=./$CONFIG_SITE;;
2507 */*) ac_site_file1=$CONFIG_SITE;;
2508 *) ac_site_file1=./$CONFIG_SITE;;
2509 esac
2510 elif test "x$prefix" != xNONE; then
2511 ac_site_file1=$prefix/share/config.site
2512 ac_site_file2=$prefix/etc/config.site
2513 else
2514 ac_site_file1=$ac_default_prefix/share/config.site
2515 ac_site_file2=$ac_default_prefix/etc/config.site
2516 fi
2517 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2518 do
2519 test "x$ac_site_file" = xNONE && continue
2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523 sed 's/^/| /' "$ac_site_file" >&5
2524 . "$ac_site_file" \
2525 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 as_fn_error $? "failed to load site script $ac_site_file
2528 See \`config.log' for more details" "$LINENO" 5; }
2529 fi
2530 done
2531
2532 if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special files
2534 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2535 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537 $as_echo "$as_me: loading cache $cache_file" >&6;}
2538 case $cache_file in
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2541 esac
2542 fi
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 >$cache_file
2547 fi
2548
2549 gt_needs="$gt_needs "
2550 # Check that the precious variables saved in the cache have kept the same
2551 # value.
2552 ac_cache_corrupted=false
2553 for ac_var in $ac_precious_vars; do
2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555 eval ac_new_set=\$ac_env_${ac_var}_set
2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557 eval ac_new_val=\$ac_env_${ac_var}_value
2558 case $ac_old_set,$ac_new_set in
2559 set,)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562 ac_cache_corrupted=: ;;
2563 ,set)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2567 ,);;
2568 *)
2569 if test "x$ac_old_val" != "x$ac_new_val"; then
2570 # differences in whitespace do not lead to failure.
2571 ac_old_val_w=`echo x $ac_old_val`
2572 ac_new_val_w=`echo x $ac_new_val`
2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576 ac_cache_corrupted=:
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580 eval $ac_var=\$ac_old_val
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2583 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2585 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2586 fi;;
2587 esac
2588 # Pass precious variables to config.status.
2589 if test "$ac_new_set" = set; then
2590 case $ac_new_val in
2591 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592 *) ac_arg=$ac_var=$ac_new_val ;;
2593 esac
2594 case " $ac_configure_args " in
2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597 esac
2598 fi
2599 done
2600 if $ac_cache_corrupted; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2605 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606 fi
2607 ## -------------------- ##
2608 ## Main body of script. ##
2609 ## -------------------- ##
2610
2611 ac_ext=c
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616
2617
2618 PACKAGE=w3m
2619 VERSION=0.5.3
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE "$PACKAGE"
2622 _ACEOF
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define VERSION "$VERSION"
2626 _ACEOF
2627
2628
2629
2630
2631
2632 W3M=w3m
2633 $as_echo "#define W3M w3m" >>confdefs.h
2634
2635
2636
2637 W3M_LANG=${LC_ALL:-$LANG}
2638 ac_config_headers="$ac_config_headers config.h"
2639
2640 ac_ext=cpp
2641 ac_cpp='$CXXCPP $CPPFLAGS'
2642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2645 if test -z "$CXX"; then
2646 if test -n "$CCC"; then
2647 CXX=$CCC
2648 else
2649 if test -n "$ac_tool_prefix"; then
2650 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2651 do
2652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_CXX+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test -n "$CXX"; then
2660 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 CXX=$ac_cv_prog_CXX
2680 if test -n "$CXX"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2682 $as_echo "$CXX" >&6; }
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689 test -n "$CXX" && break
2690 done
2691 fi
2692 if test -z "$CXX"; then
2693 ac_ct_CXX=$CXX
2694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2695 do
2696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$ac_ct_CXX"; then
2704 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_ac_ct_CXX="$ac_prog"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2724 if test -n "$ac_ct_CXX"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2726 $as_echo "$ac_ct_CXX" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733 test -n "$ac_ct_CXX" && break
2734 done
2735
2736 if test "x$ac_ct_CXX" = x; then
2737 CXX="g++"
2738 else
2739 case $cross_compiling:$ac_tool_warned in
2740 yes:)
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2743 ac_tool_warned=yes ;;
2744 esac
2745 CXX=$ac_ct_CXX
2746 fi
2747 fi
2748
2749 fi
2750 fi
2751 # Provide some information about the compiler.
2752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2753 set X $ac_compile
2754 ac_compiler=$2
2755 for ac_option in --version -v -V -qversion; do
2756 { { ac_try="$ac_compiler $ac_option >&5"
2757 case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760 esac
2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762 $as_echo "$ac_try_echo"; } >&5
2763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2764 ac_status=$?
2765 if test -s conftest.err; then
2766 sed '10a\
2767 ... rest of stderr output deleted ...
2768 10q' conftest.err >conftest.er1
2769 cat conftest.er1 >&5
2770 fi
2771 rm -f conftest.er1 conftest.err
2772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2773 test $ac_status = 0; }
2774 done
2775
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2778
2779 int
2780 main ()
2781 {
2782
2783 ;
2784 return 0;
2785 }
2786 _ACEOF
2787 ac_clean_files_save=$ac_clean_files
2788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2789 # Try to create an executable without -o first, disregard a.out.
2790 # It will help us diagnose broken compilers, and finding out an intuition
2791 # of exeext.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2793 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2794 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2795
2796 # The possible output files:
2797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2798
2799 ac_rmfiles=
2800 for ac_file in $ac_files
2801 do
2802 case $ac_file in
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805 esac
2806 done
2807 rm -f $ac_rmfiles
2808
2809 if { { ac_try="$ac_link_default"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_link_default") 2>&5
2817 ac_status=$?
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; }; then :
2820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2823 # so that the user can short-circuit this test for compilers unknown to
2824 # Autoconf.
2825 for ac_file in $ac_files ''
2826 do
2827 test -f "$ac_file" || continue
2828 case $ac_file in
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2830 ;;
2831 [ab].out )
2832 # We found the default executable, but exeext='' is most
2833 # certainly right.
2834 break;;
2835 *.* )
2836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2837 then :; else
2838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2839 fi
2840 # We set ac_cv_exeext here because the later test for it is not
2841 # safe: cross compilers may not add the suffix if given an `-o'
2842 # argument, so we may need to know it at that point already.
2843 # Even if this section looks crufty: it has the advantage of
2844 # actually working.
2845 break;;
2846 * )
2847 break;;
2848 esac
2849 done
2850 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851
2852 else
2853 ac_file=''
2854 fi
2855 if test -z "$ac_file"; then :
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 $as_echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2863 as_fn_error 77 "C++ compiler cannot create executables
2864 See \`config.log' for more details" "$LINENO" 5; }
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2867 $as_echo "yes" >&6; }
2868 fi
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2870 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2872 $as_echo "$ac_file" >&6; }
2873 ac_exeext=$ac_cv_exeext
2874
2875 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2876 ac_clean_files=$ac_clean_files_save
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2878 $as_echo_n "checking for suffix of executables... " >&6; }
2879 if { { ac_try="$ac_link"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_link") 2>&5
2887 ac_status=$?
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; then :
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2893 # `rm'.
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2896 case $ac_file in
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899 break;;
2900 * ) break;;
2901 esac
2902 done
2903 else
2904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details" "$LINENO" 5; }
2908 fi
2909 rm -f conftest conftest$ac_cv_exeext
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2911 $as_echo "$ac_cv_exeext" >&6; }
2912
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2915 ac_exeext=$EXEEXT
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2918 #include <stdio.h>
2919 int
2920 main ()
2921 {
2922 FILE *f = fopen ("conftest.out", "w");
2923 return ferror (f) || fclose (f) != 0;
2924
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 ac_clean_files="$ac_clean_files conftest.out"
2930 # Check that the compiler produces executables we can run. If not, either
2931 # the compiler is broken, or we cross compile.
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2933 $as_echo_n "checking whether we are cross compiling... " >&6; }
2934 if test "$cross_compiling" != yes; then
2935 { { ac_try="$ac_link"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941 $as_echo "$ac_try_echo"; } >&5
2942 (eval "$ac_link") 2>&5
2943 ac_status=$?
2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945 test $ac_status = 0; }
2946 if { ac_try='./conftest$ac_cv_exeext'
2947 { { case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_try") 2>&5
2954 ac_status=$?
2955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2956 test $ac_status = 0; }; }; then
2957 cross_compiling=no
2958 else
2959 if test "$cross_compiling" = maybe; then
2960 cross_compiling=yes
2961 else
2962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964 as_fn_error $? "cannot run C++ compiled programs.
2965 If you meant to cross compile, use \`--host'.
2966 See \`config.log' for more details" "$LINENO" 5; }
2967 fi
2968 fi
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2971 $as_echo "$cross_compiling" >&6; }
2972
2973 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2974 ac_clean_files=$ac_clean_files_save
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2976 $as_echo_n "checking for suffix of object files... " >&6; }
2977 if ${ac_cv_objext+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981 /* end confdefs.h. */
2982
2983 int
2984 main ()
2985 {
2986
2987 ;
2988 return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.o conftest.obj
2992 if { { ac_try="$ac_compile"
2993 case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_compile") 2>&5
3000 ac_status=$?
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }; then :
3003 for ac_file in conftest.o conftest.obj conftest.*; do
3004 test -f "$ac_file" || continue;
3005 case $ac_file in
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3007 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3008 break;;
3009 esac
3010 done
3011 else
3012 $as_echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 as_fn_error $? "cannot compute suffix of object files: cannot compile
3018 See \`config.log' for more details" "$LINENO" 5; }
3019 fi
3020 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3023 $as_echo "$ac_cv_objext" >&6; }
3024 OBJEXT=$ac_cv_objext
3025 ac_objext=$OBJEXT
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3027 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3028 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3033
3034 int
3035 main ()
3036 {
3037 #ifndef __GNUC__
3038 choke me
3039 #endif
3040
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 if ac_fn_cxx_try_compile "$LINENO"; then :
3046 ac_compiler_gnu=yes
3047 else
3048 ac_compiler_gnu=no
3049 fi
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3052
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3055 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3056 if test $ac_compiler_gnu = yes; then
3057 GXX=yes
3058 else
3059 GXX=
3060 fi
3061 ac_test_CXXFLAGS=${CXXFLAGS+set}
3062 ac_save_CXXFLAGS=$CXXFLAGS
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3064 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3065 if ${ac_cv_prog_cxx_g+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3069 ac_cxx_werror_flag=yes
3070 ac_cv_prog_cxx_g=no
3071 CXXFLAGS="-g"
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 if ac_fn_cxx_try_compile "$LINENO"; then :
3084 ac_cv_prog_cxx_g=yes
3085 else
3086 CXXFLAGS=""
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089
3090 int
3091 main ()
3092 {
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 if ac_fn_cxx_try_compile "$LINENO"; then :
3099
3100 else
3101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3102 CXXFLAGS="-g"
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3105
3106 int
3107 main ()
3108 {
3109
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 if ac_fn_cxx_try_compile "$LINENO"; then :
3115 ac_cv_prog_cxx_g=yes
3116 fi
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 fi
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 fi
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3123 fi
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3125 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3126 if test "$ac_test_CXXFLAGS" = set; then
3127 CXXFLAGS=$ac_save_CXXFLAGS
3128 elif test $ac_cv_prog_cxx_g = yes; then
3129 if test "$GXX" = yes; then
3130 CXXFLAGS="-g -O2"
3131 else
3132 CXXFLAGS="-g"
3133 fi
3134 else
3135 if test "$GXX" = yes; then
3136 CXXFLAGS="-O2"
3137 else
3138 CXXFLAGS=
3139 fi
3140 fi
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146
3147 for ac_prog in gawk mawk nawk awk
3148 do
3149 # Extract the first word of "$ac_prog", so it can be a program name with args.
3150 set dummy $ac_prog; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_AWK+:} false; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$AWK"; then
3157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_AWK="$ac_prog"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 AWK=$ac_cv_prog_AWK
3177 if test -n "$AWK"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3179 $as_echo "$AWK" >&6; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 test -n "$AWK" && break
3187 done
3188
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_CC+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3215 fi
3216 done
3217 done
3218 IFS=$as_save_IFS
3219
3220 fi
3221 fi
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231
3232 fi
3233 if test -z "$ac_cv_prog_CC"; then
3234 ac_ct_CC=$CC
3235 # Extract the first word of "gcc", so it can be a program name with args.
3236 set dummy gcc; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if test -n "$ac_ct_CC"; then
3243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_ac_ct_CC="gcc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263 if test -n "$ac_ct_CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3265 $as_echo "$ac_ct_CC" >&6; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271 if test "x$ac_ct_CC" = x; then
3272 CC=""
3273 else
3274 case $cross_compiling:$ac_tool_warned in
3275 yes:)
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278 ac_tool_warned=yes ;;
3279 esac
3280 CC=$ac_ct_CC
3281 fi
3282 else
3283 CC="$ac_cv_prog_CC"
3284 fi
3285
3286 if test -z "$CC"; then
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3289 set dummy ${ac_tool_prefix}cc; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_CC+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC="${ac_tool_prefix}cc"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3308 fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 fi
3314 fi
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325 fi
3326 fi
3327 if test -z "$CC"; then
3328 # Extract the first word of "cc", so it can be a program name with args.
3329 set dummy cc; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if ${ac_cv_prog_CC+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 else
3338 ac_prog_rejected=no
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3347 ac_prog_rejected=yes
3348 continue
3349 fi
3350 ac_cv_prog_CC="cc"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354 done
3355 done
3356 IFS=$as_save_IFS
3357
3358 if test $ac_prog_rejected = yes; then
3359 # We found a bogon in the path, so make sure we never use it.
3360 set dummy $ac_cv_prog_CC
3361 shift
3362 if test $# != 0; then
3363 # We chose a different compiler from the bogus one.
3364 # However, it has the same basename, so the bogon will be chosen
3365 # first if we set CC to just the basename; use the full file name.
3366 shift
3367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3368 fi
3369 fi
3370 fi
3371 fi
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382 fi
3383 if test -z "$CC"; then
3384 if test -n "$ac_tool_prefix"; then
3385 for ac_prog in cl.exe
3386 do
3387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_CC+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417 $as_echo "$CC" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 fi
3422
3423
3424 test -n "$CC" && break
3425 done
3426 fi
3427 if test -z "$CC"; then
3428 ac_ct_CC=$CC
3429 for ac_prog in cl.exe
3430 do
3431 # Extract the first word of "$ac_prog", so it can be a program name with args.
3432 set dummy $ac_prog; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_CC="$ac_prog"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 $as_echo "$ac_ct_CC" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468 test -n "$ac_ct_CC" && break
3469 done
3470
3471 if test "x$ac_ct_CC" = x; then
3472 CC=""
3473 else
3474 case $cross_compiling:$ac_tool_warned in
3475 yes:)
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3478 ac_tool_warned=yes ;;
3479 esac
3480 CC=$ac_ct_CC
3481 fi
3482 fi
3483
3484 fi
3485
3486
3487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details" "$LINENO" 5; }
3491
3492 # Provide some information about the compiler.
3493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3494 set X $ac_compile
3495 ac_compiler=$2
3496 for ac_option in --version -v -V -qversion; do
3497 { { ac_try="$ac_compiler $ac_option >&5"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3505 ac_status=$?
3506 if test -s conftest.err; then
3507 sed '10a\
3508 ... rest of stderr output deleted ...
3509 10q' conftest.err >conftest.er1
3510 cat conftest.er1 >&5
3511 fi
3512 rm -f conftest.er1 conftest.err
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }
3515 done
3516
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3518 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3519 if ${ac_cv_c_compiler_gnu+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529 choke me
3530 #endif
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_compiler_gnu=yes
3538 else
3539 ac_compiler_gnu=no
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3546 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3547 if test $ac_compiler_gnu = yes; then
3548 GCC=yes
3549 else
3550 GCC=
3551 fi
3552 ac_test_CFLAGS=${CFLAGS+set}
3553 ac_save_CFLAGS=$CFLAGS
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3556 if ${ac_cv_prog_cc_g+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3561 ac_cv_prog_cc_g=no
3562 CFLAGS="-g"
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_g=yes
3576 else
3577 CFLAGS=""
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590
3591 else
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 CFLAGS="-g"
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_g=yes
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3616 $as_echo "$ac_cv_prog_cc_g" >&6; }
3617 if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619 elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3621 CFLAGS="-g -O2"
3622 else
3623 CFLAGS="-g"
3624 fi
3625 else
3626 if test "$GCC" = yes; then
3627 CFLAGS="-O2"
3628 else
3629 CFLAGS=
3630 fi
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634 if ${ac_cv_prog_cc_c89+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 ac_cv_prog_cc_c89=no
3638 ac_save_CC=$CC
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <stdarg.h>
3642 #include <stdio.h>
3643 struct stat;
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3648 char **p;
3649 int i;
3650 {
3651 return p[i];
3652 }
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3654 {
3655 char *s;
3656 va_list v;
3657 va_start (v,p);
3658 s = g (p, va_arg (v,int));
3659 va_end (v);
3660 return s;
3661 }
3662
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3674 #define FOO(x) 'x'
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 int argc;
3682 char **argv;
3683 int
3684 main ()
3685 {
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 do
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c89=$ac_arg
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3703
3704 fi
3705 # AC_CACHE_VAL
3706 case "x$ac_cv_prog_cc_c89" in
3707 x)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3710 xno)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3713 *)
3714 CC="$CC $ac_cv_prog_cc_c89"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3716 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3717 esac
3718 if test "x$ac_cv_prog_cc_c89" != xno; then :
3719
3720 fi
3721
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3734 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3735 # On Suns, sometimes $CPP names a directory.
3736 if test -n "$CPP" && test -d "$CPP"; then
3737 CPP=
3738 fi
3739 if test -z "$CPP"; then
3740 if ${ac_cv_prog_CPP+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 # Double quotes because CPP needs to be expanded
3744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745 do
3746 ac_preproc_ok=false
3747 for ac_c_preproc_warn_flag in '' yes
3748 do
3749 # Use a header file that comes with gcc, so configuring glibc
3750 # with a fresh cross-compiler works.
3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752 # <limits.h> exists even on freestanding compilers.
3753 # On the NeXT, cc -E runs the code through the compiler's parser,
3754 # not just through cpp. "Syntax error" is here to catch this case.
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #ifdef __STDC__
3758 # include <limits.h>
3759 #else
3760 # include <assert.h>
3761 #endif
3762 Syntax error
3763 _ACEOF
3764 if ac_fn_c_try_cpp "$LINENO"; then :
3765
3766 else
3767 # Broken: fails on valid input.
3768 continue
3769 fi
3770 rm -f conftest.err conftest.i conftest.$ac_ext
3771
3772 # OK, works on sane cases. Now check whether nonexistent headers
3773 # can be detected and how.
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776 #include <ac_nonexistent.h>
3777 _ACEOF
3778 if ac_fn_c_try_cpp "$LINENO"; then :
3779 # Broken: success on invalid input.
3780 continue
3781 else
3782 # Passes both tests.
3783 ac_preproc_ok=:
3784 break
3785 fi
3786 rm -f conftest.err conftest.i conftest.$ac_ext
3787
3788 done
3789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3790 rm -f conftest.i conftest.err conftest.$ac_ext
3791 if $ac_preproc_ok; then :
3792 break
3793 fi
3794
3795 done
3796 ac_cv_prog_CPP=$CPP
3797
3798 fi
3799 CPP=$ac_cv_prog_CPP
3800 else
3801 ac_cv_prog_CPP=$CPP
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3804 $as_echo "$CPP" >&6; }
3805 ac_preproc_ok=false
3806 for ac_c_preproc_warn_flag in '' yes
3807 do
3808 # Use a header file that comes with gcc, so configuring glibc
3809 # with a fresh cross-compiler works.
3810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3811 # <limits.h> exists even on freestanding compilers.
3812 # On the NeXT, cc -E runs the code through the compiler's parser,
3813 # not just through cpp. "Syntax error" is here to catch this case.
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816 #ifdef __STDC__
3817 # include <limits.h>
3818 #else
3819 # include <assert.h>
3820 #endif
3821 Syntax error
3822 _ACEOF
3823 if ac_fn_c_try_cpp "$LINENO"; then :
3824
3825 else
3826 # Broken: fails on valid input.
3827 continue
3828 fi
3829 rm -f conftest.err conftest.i conftest.$ac_ext
3830
3831 # OK, works on sane cases. Now check whether nonexistent headers
3832 # can be detected and how.
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835 #include <ac_nonexistent.h>
3836 _ACEOF
3837 if ac_fn_c_try_cpp "$LINENO"; then :
3838 # Broken: success on invalid input.
3839 continue
3840 else
3841 # Passes both tests.
3842 ac_preproc_ok=:
3843 break
3844 fi
3845 rm -f conftest.err conftest.i conftest.$ac_ext
3846
3847 done
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.i conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then :
3851
3852 else
3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3856 See \`config.log' for more details" "$LINENO" 5; }
3857 fi
3858
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864
3865 ac_aux_dir=
3866 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3867 if test -f "$ac_dir/install-sh"; then
3868 ac_aux_dir=$ac_dir
3869 ac_install_sh="$ac_aux_dir/install-sh -c"
3870 break
3871 elif test -f "$ac_dir/install.sh"; then
3872 ac_aux_dir=$ac_dir
3873 ac_install_sh="$ac_aux_dir/install.sh -c"
3874 break
3875 elif test -f "$ac_dir/shtool"; then
3876 ac_aux_dir=$ac_dir
3877 ac_install_sh="$ac_aux_dir/shtool install -c"
3878 break
3879 fi
3880 done
3881 if test -z "$ac_aux_dir"; then
3882 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3883 fi
3884
3885 # These three variables are undocumented and unsupported,
3886 # and are intended to be withdrawn in a future Autoconf release.
3887 # They can cause serious problems if a builder's source tree is in a directory
3888 # whose full name contains unusual characters.
3889 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3890 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3891 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3892
3893
3894 # Find a good install program. We prefer a C program (faster),
3895 # so one script is as good as another. But avoid the broken or
3896 # incompatible versions:
3897 # SysV /etc/install, /usr/sbin/install
3898 # SunOS /usr/etc/install
3899 # IRIX /sbin/install
3900 # AIX /bin/install
3901 # AmigaOS /C/install, which installs bootblocks on floppy discs
3902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3905 # OS/2's system install, which has a completely different semantic
3906 # ./install, which can be erroneously created by make from ./install.sh.
3907 # Reject install programs that cannot install multiple files.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3909 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3910 if test -z "$INSTALL"; then
3911 if ${ac_cv_path_install+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 # Account for people who put trailing slashes in PATH elements.
3920 case $as_dir/ in #((
3921 ./ | .// | /[cC]/* | \
3922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3923 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3924 /usr/ucb/* ) ;;
3925 *)
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3928 # by default.
3929 for ac_prog in ginstall scoinst install; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3935 :
3936 elif test $ac_prog = install &&
3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3939 :
3940 else
3941 rm -rf conftest.one conftest.two conftest.dir
3942 echo one > conftest.one
3943 echo two > conftest.two
3944 mkdir conftest.dir
3945 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3946 test -s conftest.one && test -s conftest.two &&
3947 test -s conftest.dir/conftest.one &&
3948 test -s conftest.dir/conftest.two
3949 then
3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3951 break 3
3952 fi
3953 fi
3954 fi
3955 done
3956 done
3957 ;;
3958 esac
3959
3960 done
3961 IFS=$as_save_IFS
3962
3963 rm -rf conftest.one conftest.two conftest.dir
3964
3965 fi
3966 if test "${ac_cv_path_install+set}" = set; then
3967 INSTALL=$ac_cv_path_install
3968 else
3969 # As a last resort, use the slow shell script. Don't cache a
3970 # value for INSTALL within a source directory, because that will
3971 # break other packages using the cache if that directory is
3972 # removed, or if the value is a relative name.
3973 INSTALL=$ac_install_sh
3974 fi
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3977 $as_echo "$INSTALL" >&6; }
3978
3979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3980 # It thinks the first close brace ends the variable substitution.
3981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3982
3983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3984
3985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3988 $as_echo_n "checking whether ln -s works... " >&6; }
3989 LN_S=$as_ln_s
3990 if test "$LN_S" = "ln -s"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992 $as_echo "yes" >&6; }
3993 else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3995 $as_echo "no, using $LN_S" >&6; }
3996 fi
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3999 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4000 set x ${MAKE-make}
4001 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4002 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 cat >conftest.make <<\_ACEOF
4006 SHELL = /bin/sh
4007 all:
4008 @echo '@@@%%%=$(MAKE)=@@@%%%'
4009 _ACEOF
4010 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4011 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4012 *@@@%%%=?*=@@@%%%*)
4013 eval ac_cv_prog_make_${ac_make}_set=yes;;
4014 *)
4015 eval ac_cv_prog_make_${ac_make}_set=no;;
4016 esac
4017 rm -f conftest.make
4018 fi
4019 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 $as_echo "yes" >&6; }
4022 SET_MAKE=
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4026 SET_MAKE="MAKE=${MAKE-make}"
4027 fi
4028
4029 if test -n "$ac_tool_prefix"; then
4030 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4031 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if ${ac_cv_prog_RANLIB+:} false; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if test -n "$RANLIB"; then
4038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051 done
4052 done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 RANLIB=$ac_cv_prog_RANLIB
4058 if test -n "$RANLIB"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4060 $as_echo "$RANLIB" >&6; }
4061 else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066
4067 fi
4068 if test -z "$ac_cv_prog_RANLIB"; then
4069 ac_ct_RANLIB=$RANLIB
4070 # Extract the first word of "ranlib", so it can be a program name with args.
4071 set dummy ranlib; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 if test -n "$ac_ct_RANLIB"; then
4078 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_ac_ct_RANLIB="ranlib"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4090 fi
4091 done
4092 done
4093 IFS=$as_save_IFS
4094
4095 fi
4096 fi
4097 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4098 if test -n "$ac_ct_RANLIB"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4100 $as_echo "$ac_ct_RANLIB" >&6; }
4101 else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4106 if test "x$ac_ct_RANLIB" = x; then
4107 RANLIB=":"
4108 else
4109 case $cross_compiling:$ac_tool_warned in
4110 yes:)
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4113 ac_tool_warned=yes ;;
4114 esac
4115 RANLIB=$ac_ct_RANLIB
4116 fi
4117 else
4118 RANLIB="$ac_cv_prog_RANLIB"
4119 fi
4120
4121 for ac_prog in perl
4122 do
4123 # Extract the first word of "$ac_prog", so it can be a program name with args.
4124 set dummy $ac_prog; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if ${ac_cv_path_PERL+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 case $PERL in
4131 [\\/]* | ?:[\\/]*)
4132 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4133 ;;
4134 *)
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 ;;
4151 esac
4152 fi
4153 PERL=$ac_cv_path_PERL
4154 if test -n "$PERL"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4156 $as_echo "$PERL" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 fi
4161
4162
4163 test -n "$PERL" && break
4164 done
4165 test -n "$PERL" || PERL="/usr/local/bin/perl"
4166
4167 for ac_prog in nkf
4168 do
4169 # Extract the first word of "$ac_prog", so it can be a program name with args.
4170 set dummy $ac_prog; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_path_NKF+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 case $NKF in
4177 [\\/]* | ?:[\\/]*)
4178 ac_cv_path_NKF="$NKF" # Let the user override the test with a path.
4179 ;;
4180 *)
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_path_NKF="$as_dir/$ac_word$ac_exec_ext"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192 done
4193 done
4194 IFS=$as_save_IFS
4195
4196 ;;
4197 esac
4198 fi
4199 NKF=$ac_cv_path_NKF
4200 if test -n "$NKF"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NKF" >&5
4202 $as_echo "$NKF" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209 test -n "$NKF" && break
4210 done
4211 test -n "$NKF" || NKF="/usr/local/bin/nkf"
4212
4213 for ac_prog in man
4214 do
4215 # Extract the first word of "$ac_prog", so it can be a program name with args.
4216 set dummy $ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_path_MAN+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 case $MAN in
4223 [\\/]* | ?:[\\/]*)
4224 ac_cv_path_MAN="$MAN" # Let the user override the test with a path.
4225 ;;
4226 *)
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234 ac_cv_path_MAN="$as_dir/$ac_word$ac_exec_ext"
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4237 fi
4238 done
4239 done
4240 IFS=$as_save_IFS
4241
4242 ;;
4243 esac
4244 fi
4245 MAN=$ac_cv_path_MAN
4246 if test -n "$MAN"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN" >&5
4248 $as_echo "$MAN" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255 test -n "$MAN" && break
4256 done
4257 test -n "$MAN" || MAN="/usr/bin/man"
4258
4259
4260
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4262 $as_echo_n "checking for X... " >&6; }
4263
4264
4265 # Check whether --with-x was given.
4266 if test "${with_x+set}" = set; then :
4267 withval=$with_x;
4268 fi
4269
4270 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4271 if test "x$with_x" = xno; then
4272 # The user explicitly disabled X.
4273 have_x=disabled
4274 else
4275 case $x_includes,$x_libraries in #(
4276 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4277 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 # One or both of the vars are not set, and there is no cached value.
4281 ac_x_includes=no ac_x_libraries=no
4282 rm -f -r conftest.dir
4283 if mkdir conftest.dir; then
4284 cd conftest.dir
4285 cat >Imakefile <<'_ACEOF'
4286 incroot:
4287 @echo incroot='${INCROOT}'
4288 usrlibdir:
4289 @echo usrlibdir='${USRLIBDIR}'
4290 libdir:
4291 @echo libdir='${LIBDIR}'
4292 _ACEOF
4293 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4294 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4295 for ac_var in incroot usrlibdir libdir; do
4296 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4297 done
4298 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4299 for ac_extension in a so sl dylib la dll; do
4300 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4301 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4302 ac_im_usrlibdir=$ac_im_libdir; break
4303 fi
4304 done
4305 # Screen out bogus values from the imake configuration. They are
4306 # bogus both because they are the default anyway, and because
4307 # using them would break gcc on systems where it needs fixed includes.
4308 case $ac_im_incroot in
4309 /usr/include) ac_x_includes= ;;
4310 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4311 esac
4312 case $ac_im_usrlibdir in
4313 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4314 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4315 esac
4316 fi
4317 cd ..
4318 rm -f -r conftest.dir
4319 fi
4320
4321 # Standard set of common directories for X headers.
4322 # Check X11 before X11Rn because it is often a symlink to the current release.
4323 ac_x_header_dirs='
4324 /usr/X11/include
4325 /usr/X11R7/include
4326 /usr/X11R6/include
4327 /usr/X11R5/include
4328 /usr/X11R4/include
4329
4330 /usr/include/X11
4331 /usr/include/X11R7
4332 /usr/include/X11R6
4333 /usr/include/X11R5
4334 /usr/include/X11R4
4335
4336 /usr/local/X11/include
4337 /usr/local/X11R7/include
4338 /usr/local/X11R6/include
4339 /usr/local/X11R5/include
4340 /usr/local/X11R4/include
4341
4342 /usr/local/include/X11
4343 /usr/local/include/X11R7
4344 /usr/local/include/X11R6
4345 /usr/local/include/X11R5
4346 /usr/local/include/X11R4
4347
4348 /usr/X386/include
4349 /usr/x386/include
4350 /usr/XFree86/include/X11
4351
4352 /usr/include
4353 /usr/local/include
4354 /usr/unsupported/include
4355 /usr/athena/include
4356 /usr/local/x11r5/include
4357 /usr/lpp/Xamples/include
4358
4359 /usr/openwin/include
4360 /usr/openwin/share/include'
4361
4362 if test "$ac_x_includes" = no; then
4363 # Guess where to find include files, by looking for Xlib.h.
4364 # First, try using that file with no special directory specified.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #include <X11/Xlib.h>
4368 _ACEOF
4369 if ac_fn_c_try_cpp "$LINENO"; then :
4370 # We can compile using X headers with no special include directory.
4371 ac_x_includes=
4372 else
4373 for ac_dir in $ac_x_header_dirs; do
4374 if test -r "$ac_dir/X11/Xlib.h"; then
4375 ac_x_includes=$ac_dir
4376 break
4377 fi
4378 done
4379 fi
4380 rm -f conftest.err conftest.i conftest.$ac_ext
4381 fi # $ac_x_includes = no
4382
4383 if test "$ac_x_libraries" = no; then
4384 # Check for the libraries.
4385 # See if we find them without any special options.
4386 # Don't add to $LIBS permanently.
4387 ac_save_LIBS=$LIBS
4388 LIBS="-lX11 $LIBS"
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <X11/Xlib.h>
4392 int
4393 main ()
4394 {
4395 XrmInitialize ()
4396 ;
4397 return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_link "$LINENO"; then :
4401 LIBS=$ac_save_LIBS
4402 # We can link X programs with no special library path.
4403 ac_x_libraries=
4404 else
4405 LIBS=$ac_save_LIBS
4406 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4407 do
4408 # Don't even attempt the hair of trying to link an X program!
4409 for ac_extension in a so sl dylib la dll; do
4410 if test -r "$ac_dir/libX11.$ac_extension"; then
4411 ac_x_libraries=$ac_dir
4412 break 2
4413 fi
4414 done
4415 done
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext \
4418 conftest$ac_exeext conftest.$ac_ext
4419 fi # $ac_x_libraries = no
4420
4421 case $ac_x_includes,$ac_x_libraries in #(
4422 no,* | *,no | *\'*)
4423 # Didn't find X, or a directory has "'" in its name.
4424 ac_cv_have_x="have_x=no";; #(
4425 *)
4426 # Record where we found X for the cache.
4427 ac_cv_have_x="have_x=yes\
4428 ac_x_includes='$ac_x_includes'\
4429 ac_x_libraries='$ac_x_libraries'"
4430 esac
4431 fi
4432 ;; #(
4433 *) have_x=yes;;
4434 esac
4435 eval "$ac_cv_have_x"
4436 fi # $with_x != no
4437
4438 if test "$have_x" != yes; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4440 $as_echo "$have_x" >&6; }
4441 no_x=yes
4442 else
4443 # If each of the values was on the command line, it overrides each guess.
4444 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4445 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4446 # Update the cache value to reflect the command line values.
4447 ac_cv_have_x="have_x=yes\
4448 ac_x_includes='$x_includes'\
4449 ac_x_libraries='$x_libraries'"
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4451 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4452 fi
4453
4454 if test "$no_x" = yes; then
4455 # Not all programs may use this symbol, but it does not hurt to define it.
4456
4457 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4458
4459 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4460 else
4461 if test -n "$x_includes"; then
4462 X_CFLAGS="$X_CFLAGS -I$x_includes"
4463 fi
4464
4465 # It would also be nice to do this for all -L options, not just this one.
4466 if test -n "$x_libraries"; then
4467 X_LIBS="$X_LIBS -L$x_libraries"
4468 # For Solaris; some versions of Sun CC require a space after -R and
4469 # others require no space. Words are not sufficient . . . .
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4471 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4472 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4473 ac_xsave_c_werror_flag=$ac_c_werror_flag
4474 ac_c_werror_flag=yes
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477
4478 int
4479 main ()
4480 {
4481
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 if ac_fn_c_try_link "$LINENO"; then :
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 X_LIBS="$X_LIBS -R$x_libraries"
4490 else
4491 LIBS="$ac_xsave_LIBS -R $x_libraries"
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494
4495 int
4496 main ()
4497 {
4498
4499 ;
4500 return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_c_try_link "$LINENO"; then :
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4505 $as_echo "yes" >&6; }
4506 X_LIBS="$X_LIBS -R $x_libraries"
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4509 $as_echo "neither works" >&6; }
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext \
4512 conftest$ac_exeext conftest.$ac_ext
4513 fi
4514 rm -f core conftest.err conftest.$ac_objext \
4515 conftest$ac_exeext conftest.$ac_ext
4516 ac_c_werror_flag=$ac_xsave_c_werror_flag
4517 LIBS=$ac_xsave_LIBS
4518 fi
4519
4520 # Check for system-dependent libraries X programs must link with.
4521 # Do this before checking for the system-independent R6 libraries
4522 # (-lICE), since we may need -lsocket or whatever for X linking.
4523
4524 if test "$ISC" = yes; then
4525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4526 else
4527 # Martyn Johnson says this is needed for Ultrix, if the X
4528 # libraries were built with DECnet support. And Karl Berry says
4529 # the Alpha needs dnet_stub (dnet does not exist).
4530 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533
4534 /* Override any GCC internal prototype to avoid an error.
4535 Use char because int might match the return type of a GCC
4536 builtin and then its argument prototype would still apply. */
4537 #ifdef __cplusplus
4538 extern "C"
4539 #endif
4540 char XOpenDisplay ();
4541 int
4542 main ()
4543 {
4544 return XOpenDisplay ();
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_link "$LINENO"; then :
4550
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4553 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4554 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 ac_check_lib_save_LIBS=$LIBS
4558 LIBS="-ldnet $LIBS"
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561
4562 /* Override any GCC internal prototype to avoid an error.
4563 Use char because int might match the return type of a GCC
4564 builtin and then its argument prototype would still apply. */
4565 #ifdef __cplusplus
4566 extern "C"
4567 #endif
4568 char dnet_ntoa ();
4569 int
4570 main ()
4571 {
4572 return dnet_ntoa ();
4573 ;
4574 return 0;
4575 }
4576 _ACEOF
4577 if ac_fn_c_try_link "$LINENO"; then :
4578 ac_cv_lib_dnet_dnet_ntoa=yes
4579 else
4580 ac_cv_lib_dnet_dnet_ntoa=no
4581 fi
4582 rm -f core conftest.err conftest.$ac_objext \
4583 conftest$ac_exeext conftest.$ac_ext
4584 LIBS=$ac_check_lib_save_LIBS
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4587 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4588 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4590 fi
4591
4592 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4594 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4595 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 ac_check_lib_save_LIBS=$LIBS
4599 LIBS="-ldnet_stub $LIBS"
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602
4603 /* Override any GCC internal prototype to avoid an error.
4604 Use char because int might match the return type of a GCC
4605 builtin and then its argument prototype would still apply. */
4606 #ifdef __cplusplus
4607 extern "C"
4608 #endif
4609 char dnet_ntoa ();
4610 int
4611 main ()
4612 {
4613 return dnet_ntoa ();
4614 ;
4615 return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_link "$LINENO"; then :
4619 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4620 else
4621 ac_cv_lib_dnet_stub_dnet_ntoa=no
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext \
4624 conftest$ac_exeext conftest.$ac_ext
4625 LIBS=$ac_check_lib_save_LIBS
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4628 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4629 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4630 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4631 fi
4632
4633 fi
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext \
4636 conftest$ac_exeext conftest.$ac_ext
4637 LIBS="$ac_xsave_LIBS"
4638
4639 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
4640 # to get the SysV transport functions.
4641 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4642 # needs -lnsl.
4643 # The nsl library prevents programs from opening the X display
4644 # on Irix 5.2, according to T.E. Dickey.
4645 # The functions gethostbyname, getservbyname, and inet_addr are
4646 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4647 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4648 if test "x$ac_cv_func_gethostbyname" = xyes; then :
4649
4650 fi
4651
4652 if test $ac_cv_func_gethostbyname = no; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4654 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4655 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 ac_check_lib_save_LIBS=$LIBS
4659 LIBS="-lnsl $LIBS"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662
4663 /* Override any GCC internal prototype to avoid an error.
4664 Use char because int might match the return type of a GCC
4665 builtin and then its argument prototype would still apply. */
4666 #ifdef __cplusplus
4667 extern "C"
4668 #endif
4669 char gethostbyname ();
4670 int
4671 main ()
4672 {
4673 return gethostbyname ();
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_link "$LINENO"; then :
4679 ac_cv_lib_nsl_gethostbyname=yes
4680 else
4681 ac_cv_lib_nsl_gethostbyname=no
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4688 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4689 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4691 fi
4692
4693 if test $ac_cv_lib_nsl_gethostbyname = no; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4695 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4696 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_check_lib_save_LIBS=$LIBS
4700 LIBS="-lbsd $LIBS"
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703
4704 /* Override any GCC internal prototype to avoid an error.
4705 Use char because int might match the return type of a GCC
4706 builtin and then its argument prototype would still apply. */
4707 #ifdef __cplusplus
4708 extern "C"
4709 #endif
4710 char gethostbyname ();
4711 int
4712 main ()
4713 {
4714 return gethostbyname ();
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 if ac_fn_c_try_link "$LINENO"; then :
4720 ac_cv_lib_bsd_gethostbyname=yes
4721 else
4722 ac_cv_lib_bsd_gethostbyname=no
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext \
4725 conftest$ac_exeext conftest.$ac_ext
4726 LIBS=$ac_check_lib_save_LIBS
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4729 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4730 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
4731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4732 fi
4733
4734 fi
4735 fi
4736
4737 # [email protected] says without -lsocket,
4738 # socket/setsockopt and other routines are undefined under SCO ODT
4739 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4740 # on later versions), says Simon Leinen: it contains gethostby*
4741 # variants that don't use the name server (or something). -lsocket
4742 # must be given before -lnsl if both are needed. We assume that
4743 # if connect needs -lnsl, so does gethostbyname.
4744 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4745 if test "x$ac_cv_func_connect" = xyes; then :
4746
4747 fi
4748
4749 if test $ac_cv_func_connect = no; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4751 $as_echo_n "checking for connect in -lsocket... " >&6; }
4752 if ${ac_cv_lib_socket_connect+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_check_lib_save_LIBS=$LIBS
4756 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759
4760 /* Override any GCC internal prototype to avoid an error.
4761 Use char because int might match the return type of a GCC
4762 builtin and then its argument prototype would still apply. */
4763 #ifdef __cplusplus
4764 extern "C"
4765 #endif
4766 char connect ();
4767 int
4768 main ()
4769 {
4770 return connect ();
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 if ac_fn_c_try_link "$LINENO"; then :
4776 ac_cv_lib_socket_connect=yes
4777 else
4778 ac_cv_lib_socket_connect=no
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext \
4781 conftest$ac_exeext conftest.$ac_ext
4782 LIBS=$ac_check_lib_save_LIBS
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4785 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4786 if test "x$ac_cv_lib_socket_connect" = xyes; then :
4787 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4788 fi
4789
4790 fi
4791
4792 # Guillermo Gomez says -lposix is necessary on A/UX.
4793 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
4794 if test "x$ac_cv_func_remove" = xyes; then :
4795
4796 fi
4797
4798 if test $ac_cv_func_remove = no; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4800 $as_echo_n "checking for remove in -lposix... " >&6; }
4801 if ${ac_cv_lib_posix_remove+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_check_lib_save_LIBS=$LIBS
4805 LIBS="-lposix $LIBS"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808
4809 /* Override any GCC internal prototype to avoid an error.
4810 Use char because int might match the return type of a GCC
4811 builtin and then its argument prototype would still apply. */
4812 #ifdef __cplusplus
4813 extern "C"
4814 #endif
4815 char remove ();
4816 int
4817 main ()
4818 {
4819 return remove ();
4820 ;
4821 return 0;
4822 }
4823 _ACEOF
4824 if ac_fn_c_try_link "$LINENO"; then :
4825 ac_cv_lib_posix_remove=yes
4826 else
4827 ac_cv_lib_posix_remove=no
4828 fi
4829 rm -f core conftest.err conftest.$ac_objext \
4830 conftest$ac_exeext conftest.$ac_ext
4831 LIBS=$ac_check_lib_save_LIBS
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4834 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4835 if test "x$ac_cv_lib_posix_remove" = xyes; then :
4836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4837 fi
4838
4839 fi
4840
4841 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4842 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4843 if test "x$ac_cv_func_shmat" = xyes; then :
4844
4845 fi
4846
4847 if test $ac_cv_func_shmat = no; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4849 $as_echo_n "checking for shmat in -lipc... " >&6; }
4850 if ${ac_cv_lib_ipc_shmat+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 ac_check_lib_save_LIBS=$LIBS
4854 LIBS="-lipc $LIBS"
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857
4858 /* Override any GCC internal prototype to avoid an error.
4859 Use char because int might match the return type of a GCC
4860 builtin and then its argument prototype would still apply. */
4861 #ifdef __cplusplus
4862 extern "C"
4863 #endif
4864 char shmat ();
4865 int
4866 main ()
4867 {
4868 return shmat ();
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 if ac_fn_c_try_link "$LINENO"; then :
4874 ac_cv_lib_ipc_shmat=yes
4875 else
4876 ac_cv_lib_ipc_shmat=no
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext \
4879 conftest$ac_exeext conftest.$ac_ext
4880 LIBS=$ac_check_lib_save_LIBS
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4883 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4884 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
4885 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4886 fi
4887
4888 fi
4889 fi
4890
4891 # Check for libraries that X11R6 Xt/Xaw programs need.
4892 ac_save_LDFLAGS=$LDFLAGS
4893 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4894 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4895 # check for ICE first), but we must link in the order -lSM -lICE or
4896 # we get undefined symbols. So assume we have SM if we have ICE.
4897 # These have to be linked with before -lX11, unlike the other
4898 # libraries we check for below, so use a different variable.
4899 # John Interrante, Karl Berry
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4901 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4902 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 ac_check_lib_save_LIBS=$LIBS
4906 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909
4910 /* Override any GCC internal prototype to avoid an error.
4911 Use char because int might match the return type of a GCC
4912 builtin and then its argument prototype would still apply. */
4913 #ifdef __cplusplus
4914 extern "C"
4915 #endif
4916 char IceConnectionNumber ();
4917 int
4918 main ()
4919 {
4920 return IceConnectionNumber ();
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_c_try_link "$LINENO"; then :
4926 ac_cv_lib_ICE_IceConnectionNumber=yes
4927 else
4928 ac_cv_lib_ICE_IceConnectionNumber=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext \
4931 conftest$ac_exeext conftest.$ac_ext
4932 LIBS=$ac_check_lib_save_LIBS
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4935 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4936 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
4937 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4938 fi
4939
4940 LDFLAGS=$ac_save_LDFLAGS
4941
4942 fi
4943
4944 # Make sure we can run config.sub.
4945 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4946 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4949 $as_echo_n "checking build system type... " >&6; }
4950 if ${ac_cv_build+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 ac_build_alias=$build_alias
4954 test "x$ac_build_alias" = x &&
4955 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4956 test "x$ac_build_alias" = x &&
4957 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4958 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4959 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4960
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4963 $as_echo "$ac_cv_build" >&6; }
4964 case $ac_cv_build in
4965 *-*-*) ;;
4966 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4967 esac
4968 build=$ac_cv_build
4969 ac_save_IFS=$IFS; IFS='-'
4970 set x $ac_cv_build
4971 shift
4972 build_cpu=$1
4973 build_vendor=$2
4974 shift; shift
4975 # Remember, the first character of IFS is used to create $*,
4976 # except with old shells:
4977 build_os=$*
4978 IFS=$ac_save_IFS
4979 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4983 $as_echo_n "checking host system type... " >&6; }
4984 if ${ac_cv_host+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test "x$host_alias" = x; then
4988 ac_cv_host=$ac_cv_build
4989 else
4990 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4991 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4992 fi
4993
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4996 $as_echo "$ac_cv_host" >&6; }
4997 case $ac_cv_host in
4998 *-*-*) ;;
4999 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5000 esac
5001 host=$ac_cv_host
5002 ac_save_IFS=$IFS; IFS='-'
5003 set x $ac_cv_host
5004 shift
5005 host_cpu=$1
5006 host_vendor=$2
5007 shift; shift
5008 # Remember, the first character of IFS is used to create $*,
5009 # except with old shells:
5010 host_os=$*
5011 IFS=$ac_save_IFS
5012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5013
5014
5015
5016
5017
5018
5019 AUXBIN_TARGETS=
5020
5021
5022
5023 W3M_TARGET=$target
5024 cat >>confdefs.h <<_ACEOF
5025 #define W3M_TARGET $W3M_TARGET
5026 _ACEOF
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038 WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m17n support is enabled" >&5
5040 $as_echo_n "checking if m17n support is enabled... " >&6; }
5041 # Check whether --enable-m17n was given.
5042 if test "${enable_m17n+set}" = set; then :
5043 enableval=$enable_m17n;
5044 else
5045 enable_m17n="yes"
5046 fi
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_m17n" >&5
5049 $as_echo "$enable_m17n" >&6; }
5050 if test x"$enable_m17n" = xno; then
5051 w3m_lang="en"
5052 WCTARGET=""
5053 WCCFLAGS=""
5054 wcinclude=""
5055 wclib=""
5056 display_charset='WC_CES_US_ASCII'
5057 system_charset='WC_CES_US_ASCII'
5058 document_charset='WC_CES_US_ASCII'
5059 else
5060 $as_echo "#define USE_M17N 1" >>confdefs.h
5061
5062 WCTARGET="libwc/libwc.a"
5063 WCCFLAGS='-I$(srcdir) -I$(srcdir)/..'
5064 wcinclude='-I$(srcdir)/libwc'
5065 wclib="-L./libwc -lwc"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Unicode support is enabled" >&5
5067 $as_echo_n "checking if Unicode support is enabled... " >&6; }
5068 # Check whether --enable-unicode was given.
5069 if test "${enable_unicode+set}" = set; then :
5070 enableval=$enable_unicode;
5071 else
5072 enable_unicode="yes"
5073 fi
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unicode" >&5
5076 $as_echo "$enable_unicode" >&6; }
5077 if test x"$enable_m17n" = xyes; then
5078 charset=US-ASCII
5079 else
5080 charset=$enable_m17n
5081 fi
5082 if test x"$enable_unicode" = xyes; then
5083 WCCFLAGS="-DUSE_UNICODE $WCCFLAGS"
5084 if test x"$charset" = xUS-ASCII; then
5085 charset=UTF-8
5086 fi
5087 $as_echo "#define USE_UNICODE 1" >>confdefs.h
5088
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if message l10n" >&5
5091 $as_echo_n "checking if message l10n... " >&6; }
5092 # Check whether --enable-messagel10n was given.
5093 if test "${enable_messagel10n+set}" = set; then :
5094 enableval=$enable_messagel10n;
5095 else
5096 enable_messagel10n="no"
5097 fi
5098
5099 if test x$enable_messagel10n = xyes; then
5100 enable_messagel10n="ja";
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_messagel10n" >&5
5103 $as_echo "$enable_messagel10n" >&6; }
5104 if test x$enable_messagel10n = xno; then
5105 :
5106 else
5107 POSUBST="\$(top_srcdir)/posubst"
5108 POLANG="$enable_messagel10n"
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if japanese support is enabled" >&5
5111 $as_echo_n "checking if japanese support is enabled... " >&6; }
5112 # Check whether --enable-japanese was given.
5113 if test "${enable_japanese+set}" = set; then :
5114 enableval=$enable_japanese;
5115 else
5116 enable_japanese="no"
5117 fi
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_japanese" >&5
5120 $as_echo "$enable_japanese" >&6; }
5121 if test x"$enable_japanese" = xno; then
5122 w3m_lang="en"
5123 else
5124 w3m_lang="ja"
5125 case "$enable_japanese" in
5126 E*) charset=EUC-JP;;
5127 S*) charset=Shift_JIS;;
5128 J*) charset=ISO-2022-JP;;
5129 U*) charset=UTF-8;;
5130 esac
5131 fi
5132 display_charset=$charset
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which charset is used for display" >&5
5134 $as_echo_n "checking which charset is used for display... " >&6; }
5135
5136 # Check whether --with-charset was given.
5137 if test "${with_charset+set}" = set; then :
5138 withval=$with_charset; test x"with_charset" = xyes || display_charset="$with_charset"
5139 fi
5140
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $display_charset" >&5
5142 $as_echo "$display_charset" >&6; }
5143 display_charset=`awk '$1 == "'$display_charset'" {print $2}' $srcdir/charset-list`
5144 case "$display_charset" in
5145 WC_CES_ISO_2022_JP*)
5146 system_charset=WC_CES_EUC_JP
5147 document_charset=WC_CES_EUC_JP
5148 ;;
5149 WC_CES_SHIFT_JIS)
5150 system_charset=$display_charset
5151 # for auto-detect
5152 document_charset=WC_CES_EUC_JP
5153 ;;
5154 WC_CES_ISO_2022_CN|WC_CES_HZ_GB_2312)
5155 system_charset=WC_CES_EUC_CN
5156 document_charset=WC_CES_EUC_CN
5157 ;;
5158 WC_CES_BIG5)
5159 system_charset=$display_charset
5160 # for auto-detect
5161 document_charset=WC_CES_EUC_TW
5162 ;;
5163 WC_CES_ISO_2022_KR)
5164 system_charset=WC_CES_EUC_KR
5165 document_charset=WC_CES_EUC_KR
5166 ;;
5167 *)
5168 system_charset=$display_charset
5169 document_charset=$display_charset
5170 ;;
5171 esac
5172 fi
5173 W3M_LANGDEF=`echo $w3m_lang | tr 'a-z' 'A-Z'`
5174 W3M_LANG=$W3M_LANGDEF
5175 cat >>confdefs.h <<_ACEOF
5176 #define W3M_LANG $W3M_LANG
5177 _ACEOF
5178
5179 cat >>confdefs.h <<_ACEOF
5180 #define WCTARGET "$WCTARGET"
5181 _ACEOF
5182
5183 cat >>confdefs.h <<_ACEOF
5184 #define WCCFLAGS "$WCCFLAGS"
5185 _ACEOF
5186
5187 CFLAGS="$CFLAGS $wcinclude"
5188 W3M_LIBS="$W3M_LIBS $wclib"
5189 cat >>confdefs.h <<_ACEOF
5190 #define DISPLAY_CHARSET $display_charset
5191 _ACEOF
5192
5193 cat >>confdefs.h <<_ACEOF
5194 #define SYSTEM_CHARSET $system_charset
5195 _ACEOF
5196
5197 cat >>confdefs.h <<_ACEOF
5198 #define DOCUMENT_CHARSET $document_charset
5199 _ACEOF
5200
5201 if test x$enable_messagel10n = xno; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5203 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5204 if test -z "$MKDIR_P"; then
5205 if ${ac_cv_path_mkdir+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_prog in mkdir gmkdir; do
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5217 'mkdir (GNU coreutils) '* | \
5218 'mkdir (coreutils) '* | \
5219 'mkdir (fileutils) '4.1*)
5220 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5221 break 3;;
5222 esac
5223 done
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229
5230 test -d ./--version && rmdir ./--version
5231 if test "${ac_cv_path_mkdir+set}" = set; then
5232 MKDIR_P="$ac_cv_path_mkdir -p"
5233 else
5234 # As a last resort, use the slow shell script. Don't cache a
5235 # value for MKDIR_P within a source directory, because that will
5236 # break other packages using the cache if that directory is
5237 # removed, or if the value is a relative name.
5238 MKDIR_P="$ac_install_sh -d"
5239 fi
5240 fi
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5242 $as_echo "$MKDIR_P" >&6; }
5243
5244 mkdir_p="$MKDIR_P"
5245 case $mkdir_p in
5246 [\\/$]* | ?:[\\/]*) ;;
5247 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5248 esac
5249
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5252 $as_echo_n "checking whether NLS is requested... " >&6; }
5253 # Check whether --enable-nls was given.
5254 if test "${enable_nls+set}" = set; then :
5255 enableval=$enable_nls; USE_NLS=$enableval
5256 else
5257 USE_NLS=yes
5258 fi
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5261 $as_echo "$USE_NLS" >&6; }
5262
5263
5264
5265
5266 GETTEXT_MACRO_VERSION=0.18
5267
5268
5269
5270
5271 # Prepare PATH_SEPARATOR.
5272 # The user is always right.
5273 if test "${PATH_SEPARATOR+set}" != set; then
5274 echo "#! /bin/sh" >conf$$.sh
5275 echo "exit 0" >>conf$$.sh
5276 chmod +x conf$$.sh
5277 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5278 PATH_SEPARATOR=';'
5279 else
5280 PATH_SEPARATOR=:
5281 fi
5282 rm -f conf$$.sh
5283 fi
5284
5285 # Find out how to test for executable files. Don't use a zero-byte file,
5286 # as systems may use methods other than mode bits to determine executability.
5287 cat >conf$$.file <<_ASEOF
5288 #! /bin/sh
5289 exit 0
5290 _ASEOF
5291 chmod +x conf$$.file
5292 if test -x conf$$.file >/dev/null 2>&1; then
5293 ac_executable_p="test -x"
5294 else
5295 ac_executable_p="test -f"
5296 fi
5297 rm -f conf$$.file
5298
5299 # Extract the first word of "msgfmt", so it can be a program name with args.
5300 set dummy msgfmt; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_path_MSGFMT+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 case "$MSGFMT" in
5307 [\\/]* | ?:[\\/]*)
5308 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5309 ;;
5310 *)
5311 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5312 for ac_dir in $PATH; do
5313 IFS="$ac_save_IFS"
5314 test -z "$ac_dir" && ac_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5317 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5318 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5319 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5320 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5321 break 2
5322 fi
5323 fi
5324 done
5325 done
5326 IFS="$ac_save_IFS"
5327 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5328 ;;
5329 esac
5330 fi
5331 MSGFMT="$ac_cv_path_MSGFMT"
5332 if test "$MSGFMT" != ":"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5334 $as_echo "$MSGFMT" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5341 set dummy gmsgfmt; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_path_GMSGFMT+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 case $GMSGFMT in
5348 [\\/]* | ?:[\\/]*)
5349 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5350 ;;
5351 *)
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5368 ;;
5369 esac
5370 fi
5371 GMSGFMT=$ac_cv_path_GMSGFMT
5372 if test -n "$GMSGFMT"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5374 $as_echo "$GMSGFMT" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379
5380
5381
5382 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5383 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5384 *) MSGFMT_015=$MSGFMT ;;
5385 esac
5386
5387 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5388 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5389 *) GMSGFMT_015=$GMSGFMT ;;
5390 esac
5391
5392
5393
5394 # Prepare PATH_SEPARATOR.
5395 # The user is always right.
5396 if test "${PATH_SEPARATOR+set}" != set; then
5397 echo "#! /bin/sh" >conf$$.sh
5398 echo "exit 0" >>conf$$.sh
5399 chmod +x conf$$.sh
5400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5401 PATH_SEPARATOR=';'
5402 else
5403 PATH_SEPARATOR=:
5404 fi
5405 rm -f conf$$.sh
5406 fi
5407
5408 # Find out how to test for executable files. Don't use a zero-byte file,
5409 # as systems may use methods other than mode bits to determine executability.
5410 cat >conf$$.file <<_ASEOF
5411 #! /bin/sh
5412 exit 0
5413 _ASEOF
5414 chmod +x conf$$.file
5415 if test -x conf$$.file >/dev/null 2>&1; then
5416 ac_executable_p="test -x"
5417 else
5418 ac_executable_p="test -f"
5419 fi
5420 rm -f conf$$.file
5421
5422 # Extract the first word of "xgettext", so it can be a program name with args.
5423 set dummy xgettext; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_path_XGETTEXT+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 case "$XGETTEXT" in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5432 ;;
5433 *)
5434 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5435 for ac_dir in $PATH; do
5436 IFS="$ac_save_IFS"
5437 test -z "$ac_dir" && ac_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5440 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5441 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5442 (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
5443 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5444 break 2
5445 fi
5446 fi
5447 done
5448 done
5449 IFS="$ac_save_IFS"
5450 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5451 ;;
5452 esac
5453 fi
5454 XGETTEXT="$ac_cv_path_XGETTEXT"
5455 if test "$XGETTEXT" != ":"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5457 $as_echo "$XGETTEXT" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462
5463 rm -f messages.po
5464
5465 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5466 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5467 *) XGETTEXT_015=$XGETTEXT ;;
5468 esac
5469
5470
5471
5472 # Prepare PATH_SEPARATOR.
5473 # The user is always right.
5474 if test "${PATH_SEPARATOR+set}" != set; then
5475 echo "#! /bin/sh" >conf$$.sh
5476 echo "exit 0" >>conf$$.sh
5477 chmod +x conf$$.sh
5478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5479 PATH_SEPARATOR=';'
5480 else
5481 PATH_SEPARATOR=:
5482 fi
5483 rm -f conf$$.sh
5484 fi
5485
5486 # Find out how to test for executable files. Don't use a zero-byte file,
5487 # as systems may use methods other than mode bits to determine executability.
5488 cat >conf$$.file <<_ASEOF
5489 #! /bin/sh
5490 exit 0
5491 _ASEOF
5492 chmod +x conf$$.file
5493 if test -x conf$$.file >/dev/null 2>&1; then
5494 ac_executable_p="test -x"
5495 else
5496 ac_executable_p="test -f"
5497 fi
5498 rm -f conf$$.file
5499
5500 # Extract the first word of "msgmerge", so it can be a program name with args.
5501 set dummy msgmerge; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_path_MSGMERGE+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 case "$MSGMERGE" in
5508 [\\/]* | ?:[\\/]*)
5509 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5510 ;;
5511 *)
5512 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5513 for ac_dir in $PATH; do
5514 IFS="$ac_save_IFS"
5515 test -z "$ac_dir" && ac_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5518 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5519 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5520 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5521 break 2
5522 fi
5523 fi
5524 done
5525 done
5526 IFS="$ac_save_IFS"
5527 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5528 ;;
5529 esac
5530 fi
5531 MSGMERGE="$ac_cv_path_MSGMERGE"
5532 if test "$MSGMERGE" != ":"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5534 $as_echo "$MSGMERGE" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 test -n "$localedir" || localedir='${datadir}/locale'
5542
5543
5544 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5545
5546
5547 ac_config_commands="$ac_config_commands po-directories"
5548
5549
5550
5551 if test "X$prefix" = "XNONE"; then
5552 acl_final_prefix="$ac_default_prefix"
5553 else
5554 acl_final_prefix="$prefix"
5555 fi
5556 if test "X$exec_prefix" = "XNONE"; then
5557 acl_final_exec_prefix='${prefix}'
5558 else
5559 acl_final_exec_prefix="$exec_prefix"
5560 fi
5561 acl_save_prefix="$prefix"
5562 prefix="$acl_final_prefix"
5563 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5564 prefix="$acl_save_prefix"
5565
5566
5567 # Check whether --with-gnu-ld was given.
5568 if test "${with_gnu_ld+set}" = set; then :
5569 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5570 else
5571 with_gnu_ld=no
5572 fi
5573
5574 # Prepare PATH_SEPARATOR.
5575 # The user is always right.
5576 if test "${PATH_SEPARATOR+set}" != set; then
5577 echo "#! /bin/sh" >conf$$.sh
5578 echo "exit 0" >>conf$$.sh
5579 chmod +x conf$$.sh
5580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5581 PATH_SEPARATOR=';'
5582 else
5583 PATH_SEPARATOR=:
5584 fi
5585 rm -f conf$$.sh
5586 fi
5587 ac_prog=ld
5588 if test "$GCC" = yes; then
5589 # Check if gcc -print-prog-name=ld gives a path.
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5591 $as_echo_n "checking for ld used by GCC... " >&6; }
5592 case $host in
5593 *-*-mingw*)
5594 # gcc leaves a trailing carriage return which upsets mingw
5595 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5596 *)
5597 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5598 esac
5599 case $ac_prog in
5600 # Accept absolute paths.
5601 [\\/]* | [A-Za-z]:[\\/]*)
5602 re_direlt='/[^/][^/]*/\.\./'
5603 # Canonicalize the path of ld
5604 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5605 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5606 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5607 done
5608 test -z "$LD" && LD="$ac_prog"
5609 ;;
5610 "")
5611 # If it fails, then pretend we aren't using GCC.
5612 ac_prog=ld
5613 ;;
5614 *)
5615 # If it is relative, then search for the first ld in PATH.
5616 with_gnu_ld=unknown
5617 ;;
5618 esac
5619 elif test "$with_gnu_ld" = yes; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5621 $as_echo_n "checking for GNU ld... " >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5624 $as_echo_n "checking for non-GNU ld... " >&6; }
5625 fi
5626 if ${acl_cv_path_LD+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if test -z "$LD"; then
5630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5631 for ac_dir in $PATH; do
5632 test -z "$ac_dir" && ac_dir=.
5633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5634 acl_cv_path_LD="$ac_dir/$ac_prog"
5635 # Check to see if the program is GNU ld. I'd rather use --version,
5636 # but apparently some GNU ld's only accept -v.
5637 # Break only if it was the GNU/non-GNU ld that we prefer.
5638 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5639 *GNU* | *'with BFD'*)
5640 test "$with_gnu_ld" != no && break ;;
5641 *)
5642 test "$with_gnu_ld" != yes && break ;;
5643 esac
5644 fi
5645 done
5646 IFS="$ac_save_ifs"
5647 else
5648 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5649 fi
5650 fi
5651
5652 LD="$acl_cv_path_LD"
5653 if test -n "$LD"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5655 $as_echo "$LD" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5662 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5663 if ${acl_cv_prog_gnu_ld+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5667 case `$LD -v 2>&1 </dev/null` in
5668 *GNU* | *'with BFD'*)
5669 acl_cv_prog_gnu_ld=yes ;;
5670 *)
5671 acl_cv_prog_gnu_ld=no ;;
5672 esac
5673 fi
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5675 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5676 with_gnu_ld=$acl_cv_prog_gnu_ld
5677
5678
5679
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5682 $as_echo_n "checking for shared library run path origin... " >&6; }
5683 if ${acl_cv_rpath+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686
5687 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5688 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5689 . ./conftest.sh
5690 rm -f ./conftest.sh
5691 acl_cv_rpath=done
5692
5693 fi
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5695 $as_echo "$acl_cv_rpath" >&6; }
5696 wl="$acl_cv_wl"
5697 acl_libext="$acl_cv_libext"
5698 acl_shlibext="$acl_cv_shlibext"
5699 acl_libname_spec="$acl_cv_libname_spec"
5700 acl_library_names_spec="$acl_cv_library_names_spec"
5701 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5702 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5703 acl_hardcode_direct="$acl_cv_hardcode_direct"
5704 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5705 # Check whether --enable-rpath was given.
5706 if test "${enable_rpath+set}" = set; then :
5707 enableval=$enable_rpath; :
5708 else
5709 enable_rpath=yes
5710 fi
5711
5712
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5714 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5715 if ${ac_cv_path_GREP+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test -z "$GREP"; then
5719 ac_path_GREP_found=false
5720 # Loop through the user's path and test for each of PROGNAME-LIST
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5723 do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_prog in grep ggrep; do
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5729 as_fn_executable_p "$ac_path_GREP" || continue
5730 # Check for GNU ac_path_GREP and select it if it is found.
5731 # Check for GNU $ac_path_GREP
5732 case `"$ac_path_GREP" --version 2>&1` in
5733 *GNU*)
5734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5735 *)
5736 ac_count=0
5737 $as_echo_n 0123456789 >"conftest.in"
5738 while :
5739 do
5740 cat "conftest.in" "conftest.in" >"conftest.tmp"
5741 mv "conftest.tmp" "conftest.in"
5742 cp "conftest.in" "conftest.nl"
5743 $as_echo 'GREP' >> "conftest.nl"
5744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746 as_fn_arith $ac_count + 1 && ac_count=$as_val
5747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5748 # Best one so far, save it but keep looking for a better one
5749 ac_cv_path_GREP="$ac_path_GREP"
5750 ac_path_GREP_max=$ac_count
5751 fi
5752 # 10*(2^10) chars as input seems more than enough
5753 test $ac_count -gt 10 && break
5754 done
5755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5756 esac
5757
5758 $ac_path_GREP_found && break 3
5759 done
5760 done
5761 done
5762 IFS=$as_save_IFS
5763 if test -z "$ac_cv_path_GREP"; then
5764 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5765 fi
5766 else
5767 ac_cv_path_GREP=$GREP
5768 fi
5769
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5772 $as_echo "$ac_cv_path_GREP" >&6; }
5773 GREP="$ac_cv_path_GREP"
5774
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5777 $as_echo_n "checking for egrep... " >&6; }
5778 if ${ac_cv_path_EGREP+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5782 then ac_cv_path_EGREP="$GREP -E"
5783 else
5784 if test -z "$EGREP"; then
5785 ac_path_EGREP_found=false
5786 # Loop through the user's path and test for each of PROGNAME-LIST
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5789 do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_prog in egrep; do
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5795 as_fn_executable_p "$ac_path_EGREP" || continue
5796 # Check for GNU ac_path_EGREP and select it if it is found.
5797 # Check for GNU $ac_path_EGREP
5798 case `"$ac_path_EGREP" --version 2>&1` in
5799 *GNU*)
5800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5801 *)
5802 ac_count=0
5803 $as_echo_n 0123456789 >"conftest.in"
5804 while :
5805 do
5806 cat "conftest.in" "conftest.in" >"conftest.tmp"
5807 mv "conftest.tmp" "conftest.in"
5808 cp "conftest.in" "conftest.nl"
5809 $as_echo 'EGREP' >> "conftest.nl"
5810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5812 as_fn_arith $ac_count + 1 && ac_count=$as_val
5813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5814 # Best one so far, save it but keep looking for a better one
5815 ac_cv_path_EGREP="$ac_path_EGREP"
5816 ac_path_EGREP_max=$ac_count
5817 fi
5818 # 10*(2^10) chars as input seems more than enough
5819 test $ac_count -gt 10 && break
5820 done
5821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5822 esac
5823
5824 $ac_path_EGREP_found && break 3
5825 done
5826 done
5827 done
5828 IFS=$as_save_IFS
5829 if test -z "$ac_cv_path_EGREP"; then
5830 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5831 fi
5832 else
5833 ac_cv_path_EGREP=$EGREP
5834 fi
5835
5836 fi
5837 fi
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5839 $as_echo "$ac_cv_path_EGREP" >&6; }
5840 EGREP="$ac_cv_path_EGREP"
5841
5842
5843
5844
5845 acl_libdirstem=lib
5846 acl_libdirstem2=
5847 case "$host_os" in
5848 solaris*)
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5850 $as_echo_n "checking for 64-bit host... " >&6; }
5851 if ${gl_cv_solaris_64bit+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856
5857 #ifdef _LP64
5858 sixtyfour bits
5859 #endif
5860
5861 _ACEOF
5862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5863 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5864 gl_cv_solaris_64bit=yes
5865 else
5866 gl_cv_solaris_64bit=no
5867 fi
5868 rm -f conftest*
5869
5870
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5873 $as_echo "$gl_cv_solaris_64bit" >&6; }
5874 if test $gl_cv_solaris_64bit = yes; then
5875 acl_libdirstem=lib/64
5876 case "$host_cpu" in
5877 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5878 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5879 esac
5880 fi
5881 ;;
5882 *)
5883 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5884 if test -n "$searchpath"; then
5885 acl_save_IFS="${IFS= }"; IFS=":"
5886 for searchdir in $searchpath; do
5887 if test -d "$searchdir"; then
5888 case "$searchdir" in
5889 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5890 */../ | */.. )
5891 # Better ignore directories of this form. They are misleading.
5892 ;;
5893 *) searchdir=`cd "$searchdir" && pwd`
5894 case "$searchdir" in
5895 */lib64 ) acl_libdirstem=lib64 ;;
5896 esac ;;
5897 esac
5898 fi
5899 done
5900 IFS="$acl_save_IFS"
5901 fi
5902 ;;
5903 esac
5904 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917 use_additional=yes
5918
5919 acl_save_prefix="$prefix"
5920 prefix="$acl_final_prefix"
5921 acl_save_exec_prefix="$exec_prefix"
5922 exec_prefix="$acl_final_exec_prefix"
5923
5924 eval additional_includedir=\"$includedir\"
5925 eval additional_libdir=\"$libdir\"
5926
5927 exec_prefix="$acl_save_exec_prefix"
5928 prefix="$acl_save_prefix"
5929
5930
5931 # Check whether --with-libiconv-prefix was given.
5932 if test "${with_libiconv_prefix+set}" = set; then :
5933 withval=$with_libiconv_prefix;
5934 if test "X$withval" = "Xno"; then
5935 use_additional=no
5936 else
5937 if test "X$withval" = "X"; then
5938
5939 acl_save_prefix="$prefix"
5940 prefix="$acl_final_prefix"
5941 acl_save_exec_prefix="$exec_prefix"
5942 exec_prefix="$acl_final_exec_prefix"
5943
5944 eval additional_includedir=\"$includedir\"
5945 eval additional_libdir=\"$libdir\"
5946
5947 exec_prefix="$acl_save_exec_prefix"
5948 prefix="$acl_save_prefix"
5949
5950 else
5951 additional_includedir="$withval/include"
5952 additional_libdir="$withval/$acl_libdirstem"
5953 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5954 && ! test -d "$withval/$acl_libdirstem"; then
5955 additional_libdir="$withval/$acl_libdirstem2"
5956 fi
5957 fi
5958 fi
5959
5960 fi
5961
5962 LIBICONV=
5963 LTLIBICONV=
5964 INCICONV=
5965 LIBICONV_PREFIX=
5966 HAVE_LIBICONV=
5967 rpathdirs=
5968 ltrpathdirs=
5969 names_already_handled=
5970 names_next_round='iconv '
5971 while test -n "$names_next_round"; do
5972 names_this_round="$names_next_round"
5973 names_next_round=
5974 for name in $names_this_round; do
5975 already_handled=
5976 for n in $names_already_handled; do
5977 if test "$n" = "$name"; then
5978 already_handled=yes
5979 break
5980 fi
5981 done
5982 if test -z "$already_handled"; then
5983 names_already_handled="$names_already_handled $name"
5984 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5985 eval value=\"\$HAVE_LIB$uppername\"
5986 if test -n "$value"; then
5987 if test "$value" = yes; then
5988 eval value=\"\$LIB$uppername\"
5989 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5990 eval value=\"\$LTLIB$uppername\"
5991 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5992 else
5993 :
5994 fi
5995 else
5996 found_dir=
5997 found_la=
5998 found_so=
5999 found_a=
6000 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6001 if test -n "$acl_shlibext"; then
6002 shrext=".$acl_shlibext" # typically: shrext=.so
6003 else
6004 shrext=
6005 fi
6006 if test $use_additional = yes; then
6007 dir="$additional_libdir"
6008 if test -n "$acl_shlibext"; then
6009 if test -f "$dir/$libname$shrext"; then
6010 found_dir="$dir"
6011 found_so="$dir/$libname$shrext"
6012 else
6013 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6014 ver=`(cd "$dir" && \
6015 for f in "$libname$shrext".*; do echo "$f"; done \
6016 | sed -e "s,^$libname$shrext\\\\.,," \
6017 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6018 | sed 1q ) 2>/dev/null`
6019 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6020 found_dir="$dir"
6021 found_so="$dir/$libname$shrext.$ver"
6022 fi
6023 else
6024 eval library_names=\"$acl_library_names_spec\"
6025 for f in $library_names; do
6026 if test -f "$dir/$f"; then
6027 found_dir="$dir"
6028 found_so="$dir/$f"
6029 break
6030 fi
6031 done
6032 fi
6033 fi
6034 fi
6035 if test "X$found_dir" = "X"; then
6036 if test -f "$dir/$libname.$acl_libext"; then
6037 found_dir="$dir"
6038 found_a="$dir/$libname.$acl_libext"
6039 fi
6040 fi
6041 if test "X$found_dir" != "X"; then
6042 if test -f "$dir/$libname.la"; then
6043 found_la="$dir/$libname.la"
6044 fi
6045 fi
6046 fi
6047 if test "X$found_dir" = "X"; then
6048 for x in $LDFLAGS $LTLIBICONV; do
6049
6050 acl_save_prefix="$prefix"
6051 prefix="$acl_final_prefix"
6052 acl_save_exec_prefix="$exec_prefix"
6053 exec_prefix="$acl_final_exec_prefix"
6054 eval x=\"$x\"
6055 exec_prefix="$acl_save_exec_prefix"
6056 prefix="$acl_save_prefix"
6057
6058 case "$x" in
6059 -L*)
6060 dir=`echo "X$x" | sed -e 's/^X-L//'`
6061 if test -n "$acl_shlibext"; then
6062 if test -f "$dir/$libname$shrext"; then
6063 found_dir="$dir"
6064 found_so="$dir/$libname$shrext"
6065 else
6066 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6067 ver=`(cd "$dir" && \
6068 for f in "$libname$shrext".*; do echo "$f"; done \
6069 | sed -e "s,^$libname$shrext\\\\.,," \
6070 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6071 | sed 1q ) 2>/dev/null`
6072 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6073 found_dir="$dir"
6074 found_so="$dir/$libname$shrext.$ver"
6075 fi
6076 else
6077 eval library_names=\"$acl_library_names_spec\"
6078 for f in $library_names; do
6079 if test -f "$dir/$f"; then
6080 found_dir="$dir"
6081 found_so="$dir/$f"
6082 break
6083 fi
6084 done
6085 fi
6086 fi
6087 fi
6088 if test "X$found_dir" = "X"; then
6089 if test -f "$dir/$libname.$acl_libext"; then
6090 found_dir="$dir"
6091 found_a="$dir/$libname.$acl_libext"
6092 fi
6093 fi
6094 if test "X$found_dir" != "X"; then
6095 if test -f "$dir/$libname.la"; then
6096 found_la="$dir/$libname.la"
6097 fi
6098 fi
6099 ;;
6100 esac
6101 if test "X$found_dir" != "X"; then
6102 break
6103 fi
6104 done
6105 fi
6106 if test "X$found_dir" != "X"; then
6107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6108 if test "X$found_so" != "X"; then
6109 if test "$enable_rpath" = no \
6110 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6111 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6112 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6113 else
6114 haveit=
6115 for x in $ltrpathdirs; do
6116 if test "X$x" = "X$found_dir"; then
6117 haveit=yes
6118 break
6119 fi
6120 done
6121 if test -z "$haveit"; then
6122 ltrpathdirs="$ltrpathdirs $found_dir"
6123 fi
6124 if test "$acl_hardcode_direct" = yes; then
6125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6126 else
6127 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6129 haveit=
6130 for x in $rpathdirs; do
6131 if test "X$x" = "X$found_dir"; then
6132 haveit=yes
6133 break
6134 fi
6135 done
6136 if test -z "$haveit"; then
6137 rpathdirs="$rpathdirs $found_dir"
6138 fi
6139 else
6140 haveit=
6141 for x in $LDFLAGS $LIBICONV; do
6142
6143 acl_save_prefix="$prefix"
6144 prefix="$acl_final_prefix"
6145 acl_save_exec_prefix="$exec_prefix"
6146 exec_prefix="$acl_final_exec_prefix"
6147 eval x=\"$x\"
6148 exec_prefix="$acl_save_exec_prefix"
6149 prefix="$acl_save_prefix"
6150
6151 if test "X$x" = "X-L$found_dir"; then
6152 haveit=yes
6153 break
6154 fi
6155 done
6156 if test -z "$haveit"; then
6157 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6158 fi
6159 if test "$acl_hardcode_minus_L" != no; then
6160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6161 else
6162 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6163 fi
6164 fi
6165 fi
6166 fi
6167 else
6168 if test "X$found_a" != "X"; then
6169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6170 else
6171 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6172 fi
6173 fi
6174 additional_includedir=
6175 case "$found_dir" in
6176 */$acl_libdirstem | */$acl_libdirstem/)
6177 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6178 if test "$name" = 'iconv'; then
6179 LIBICONV_PREFIX="$basedir"
6180 fi
6181 additional_includedir="$basedir/include"
6182 ;;
6183 */$acl_libdirstem2 | */$acl_libdirstem2/)
6184 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6185 if test "$name" = 'iconv'; then
6186 LIBICONV_PREFIX="$basedir"
6187 fi
6188 additional_includedir="$basedir/include"
6189 ;;
6190 esac
6191 if test "X$additional_includedir" != "X"; then
6192 if test "X$additional_includedir" != "X/usr/include"; then
6193 haveit=
6194 if test "X$additional_includedir" = "X/usr/local/include"; then
6195 if test -n "$GCC"; then
6196 case $host_os in
6197 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6198 esac
6199 fi
6200 fi
6201 if test -z "$haveit"; then
6202 for x in $CPPFLAGS $INCICONV; do
6203
6204 acl_save_prefix="$prefix"
6205 prefix="$acl_final_prefix"
6206 acl_save_exec_prefix="$exec_prefix"
6207 exec_prefix="$acl_final_exec_prefix"
6208 eval x=\"$x\"
6209 exec_prefix="$acl_save_exec_prefix"
6210 prefix="$acl_save_prefix"
6211
6212 if test "X$x" = "X-I$additional_includedir"; then
6213 haveit=yes
6214 break
6215 fi
6216 done
6217 if test -z "$haveit"; then
6218 if test -d "$additional_includedir"; then
6219 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6220 fi
6221 fi
6222 fi
6223 fi
6224 fi
6225 if test -n "$found_la"; then
6226 save_libdir="$libdir"
6227 case "$found_la" in
6228 */* | *\\*) . "$found_la" ;;
6229 *) . "./$found_la" ;;
6230 esac
6231 libdir="$save_libdir"
6232 for dep in $dependency_libs; do
6233 case "$dep" in
6234 -L*)
6235 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6236 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6237 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6238 haveit=
6239 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6240 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6241 if test -n "$GCC"; then
6242 case $host_os in
6243 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6244 esac
6245 fi
6246 fi
6247 if test -z "$haveit"; then
6248 haveit=
6249 for x in $LDFLAGS $LIBICONV; do
6250
6251 acl_save_prefix="$prefix"
6252 prefix="$acl_final_prefix"
6253 acl_save_exec_prefix="$exec_prefix"
6254 exec_prefix="$acl_final_exec_prefix"
6255 eval x=\"$x\"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6258
6259 if test "X$x" = "X-L$additional_libdir"; then
6260 haveit=yes
6261 break
6262 fi
6263 done
6264 if test -z "$haveit"; then
6265 if test -d "$additional_libdir"; then
6266 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6267 fi
6268 fi
6269 haveit=
6270 for x in $LDFLAGS $LTLIBICONV; do
6271
6272 acl_save_prefix="$prefix"
6273 prefix="$acl_final_prefix"
6274 acl_save_exec_prefix="$exec_prefix"
6275 exec_prefix="$acl_final_exec_prefix"
6276 eval x=\"$x\"
6277 exec_prefix="$acl_save_exec_prefix"
6278 prefix="$acl_save_prefix"
6279
6280 if test "X$x" = "X-L$additional_libdir"; then
6281 haveit=yes
6282 break
6283 fi
6284 done
6285 if test -z "$haveit"; then
6286 if test -d "$additional_libdir"; then
6287 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6288 fi
6289 fi
6290 fi
6291 fi
6292 ;;
6293 -R*)
6294 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6295 if test "$enable_rpath" != no; then
6296 haveit=
6297 for x in $rpathdirs; do
6298 if test "X$x" = "X$dir"; then
6299 haveit=yes
6300 break
6301 fi
6302 done
6303 if test -z "$haveit"; then
6304 rpathdirs="$rpathdirs $dir"
6305 fi
6306 haveit=
6307 for x in $ltrpathdirs; do
6308 if test "X$x" = "X$dir"; then
6309 haveit=yes
6310 break
6311 fi
6312 done
6313 if test -z "$haveit"; then
6314 ltrpathdirs="$ltrpathdirs $dir"
6315 fi
6316 fi
6317 ;;
6318 -l*)
6319 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6320 ;;
6321 *.la)
6322 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6323 ;;
6324 *)
6325 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6326 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6327 ;;
6328 esac
6329 done
6330 fi
6331 else
6332 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6333 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6334 fi
6335 fi
6336 fi
6337 done
6338 done
6339 if test "X$rpathdirs" != "X"; then
6340 if test -n "$acl_hardcode_libdir_separator"; then
6341 alldirs=
6342 for found_dir in $rpathdirs; do
6343 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6344 done
6345 acl_save_libdir="$libdir"
6346 libdir="$alldirs"
6347 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6348 libdir="$acl_save_libdir"
6349 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6350 else
6351 for found_dir in $rpathdirs; do
6352 acl_save_libdir="$libdir"
6353 libdir="$found_dir"
6354 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6355 libdir="$acl_save_libdir"
6356 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6357 done
6358 fi
6359 fi
6360 if test "X$ltrpathdirs" != "X"; then
6361 for found_dir in $ltrpathdirs; do
6362 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6363 done
6364 fi
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6397 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6398 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 gt_save_LIBS="$LIBS"
6402 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 #include <CoreFoundation/CFPreferences.h>
6406 int
6407 main ()
6408 {
6409 CFPreferencesCopyAppValue(NULL, NULL)
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_link "$LINENO"; then :
6415 gt_cv_func_CFPreferencesCopyAppValue=yes
6416 else
6417 gt_cv_func_CFPreferencesCopyAppValue=no
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421 LIBS="$gt_save_LIBS"
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6424 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6425 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6426
6427 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6428
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6431 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6432 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 gt_save_LIBS="$LIBS"
6436 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 #include <CoreFoundation/CFLocale.h>
6440 int
6441 main ()
6442 {
6443 CFLocaleCopyCurrent();
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 if ac_fn_c_try_link "$LINENO"; then :
6449 gt_cv_func_CFLocaleCopyCurrent=yes
6450 else
6451 gt_cv_func_CFLocaleCopyCurrent=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext \
6454 conftest$ac_exeext conftest.$ac_ext
6455 LIBS="$gt_save_LIBS"
6456 fi
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6458 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6459 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6460
6461 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6462
6463 fi
6464 INTL_MACOSX_LIBS=
6465 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6466 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6467 fi
6468
6469
6470
6471
6472
6473
6474 LIBINTL=
6475 LTLIBINTL=
6476 POSUB=
6477
6478 case " $gt_needs " in
6479 *" need-formatstring-macros "*) gt_api_version=3 ;;
6480 *" need-ngettext "*) gt_api_version=2 ;;
6481 *) gt_api_version=1 ;;
6482 esac
6483 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6484 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6485
6486 if test "$USE_NLS" = "yes"; then
6487 gt_use_preinstalled_gnugettext=no
6488
6489
6490 if test $gt_api_version -ge 3; then
6491 gt_revision_test_code='
6492 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6493 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6494 #endif
6495 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6496 '
6497 else
6498 gt_revision_test_code=
6499 fi
6500 if test $gt_api_version -ge 2; then
6501 gt_expression_test_code=' + * ngettext ("", "", 0)'
6502 else
6503 gt_expression_test_code=
6504 fi
6505
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6507 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6508 if eval \${$gt_func_gnugettext_libc+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 #include <libintl.h>
6514 $gt_revision_test_code
6515 extern int _nl_msg_cat_cntr;
6516 extern int *_nl_domain_bindings;
6517 int
6518 main ()
6519 {
6520 bindtextdomain ("", "");
6521 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6522 ;
6523 return 0;
6524 }
6525 _ACEOF
6526 if ac_fn_c_try_link "$LINENO"; then :
6527 eval "$gt_func_gnugettext_libc=yes"
6528 else
6529 eval "$gt_func_gnugettext_libc=no"
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext \
6532 conftest$ac_exeext conftest.$ac_ext
6533 fi
6534 eval ac_res=\$$gt_func_gnugettext_libc
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6536 $as_echo "$ac_res" >&6; }
6537
6538 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6539
6540
6541
6542
6543
6544 am_save_CPPFLAGS="$CPPFLAGS"
6545
6546 for element in $INCICONV; do
6547 haveit=
6548 for x in $CPPFLAGS; do
6549
6550 acl_save_prefix="$prefix"
6551 prefix="$acl_final_prefix"
6552 acl_save_exec_prefix="$exec_prefix"
6553 exec_prefix="$acl_final_exec_prefix"
6554 eval x=\"$x\"
6555 exec_prefix="$acl_save_exec_prefix"
6556 prefix="$acl_save_prefix"
6557
6558 if test "X$x" = "X$element"; then
6559 haveit=yes
6560 break
6561 fi
6562 done
6563 if test -z "$haveit"; then
6564 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6565 fi
6566 done
6567
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6570 $as_echo_n "checking for iconv... " >&6; }
6571 if ${am_cv_func_iconv+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574
6575 am_cv_func_iconv="no, consider installing GNU libiconv"
6576 am_cv_lib_iconv=no
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #include <stdlib.h>
6580 #include <iconv.h>
6581 int
6582 main ()
6583 {
6584 iconv_t cd = iconv_open("","");
6585 iconv(cd,NULL,NULL,NULL,NULL);
6586 iconv_close(cd);
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 am_cv_func_iconv=yes
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596 if test "$am_cv_func_iconv" != yes; then
6597 am_save_LIBS="$LIBS"
6598 LIBS="$LIBS $LIBICONV"
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 #include <stdlib.h>
6602 #include <iconv.h>
6603 int
6604 main ()
6605 {
6606 iconv_t cd = iconv_open("","");
6607 iconv(cd,NULL,NULL,NULL,NULL);
6608 iconv_close(cd);
6609 ;
6610 return 0;
6611 }
6612 _ACEOF
6613 if ac_fn_c_try_link "$LINENO"; then :
6614 am_cv_lib_iconv=yes
6615 am_cv_func_iconv=yes
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext \
6618 conftest$ac_exeext conftest.$ac_ext
6619 LIBS="$am_save_LIBS"
6620 fi
6621
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6624 $as_echo "$am_cv_func_iconv" >&6; }
6625 if test "$am_cv_func_iconv" = yes; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6627 $as_echo_n "checking for working iconv... " >&6; }
6628 if ${am_cv_func_iconv_works+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631
6632 am_save_LIBS="$LIBS"
6633 if test $am_cv_lib_iconv = yes; then
6634 LIBS="$LIBS $LIBICONV"
6635 fi
6636 if test "$cross_compiling" = yes; then :
6637 case "$host_os" in
6638 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6639 *) am_cv_func_iconv_works="guessing yes" ;;
6640 esac
6641 else
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644
6645 #include <iconv.h>
6646 #include <string.h>
6647 int main ()
6648 {
6649 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6650 returns. */
6651 {
6652 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6653 if (cd_utf8_to_88591 != (iconv_t)(-1))
6654 {
6655 static const char input[] = "\342\202\254"; /* EURO SIGN */
6656 char buf[10];
6657 const char *inptr = input;
6658 size_t inbytesleft = strlen (input);
6659 char *outptr = buf;
6660 size_t outbytesleft = sizeof (buf);
6661 size_t res = iconv (cd_utf8_to_88591,
6662 (char **) &inptr, &inbytesleft,
6663 &outptr, &outbytesleft);
6664 if (res == 0)
6665 return 1;
6666 }
6667 }
6668 /* Test against Solaris 10 bug: Failures are not distinguishable from
6669 successful returns. */
6670 {
6671 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6672 if (cd_ascii_to_88591 != (iconv_t)(-1))
6673 {
6674 static const char input[] = "\263";
6675 char buf[10];
6676 const char *inptr = input;
6677 size_t inbytesleft = strlen (input);
6678 char *outptr = buf;
6679 size_t outbytesleft = sizeof (buf);
6680 size_t res = iconv (cd_ascii_to_88591,
6681 (char **) &inptr, &inbytesleft,
6682 &outptr, &outbytesleft);
6683 if (res == 0)
6684 return 1;
6685 }
6686 }
6687 #if 0 /* This bug could be worked around by the caller. */
6688 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6689 {
6690 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6691 if (cd_88591_to_utf8 != (iconv_t)(-1))
6692 {
6693 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6694 char buf[50];
6695 const char *inptr = input;
6696 size_t inbytesleft = strlen (input);
6697 char *outptr = buf;
6698 size_t outbytesleft = sizeof (buf);
6699 size_t res = iconv (cd_88591_to_utf8,
6700 (char **) &inptr, &inbytesleft,
6701 &outptr, &outbytesleft);
6702 if ((int)res > 0)
6703 return 1;
6704 }
6705 }
6706 #endif
6707 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6708 provided. */
6709 if (/* Try standardized names. */
6710 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6711 /* Try IRIX, OSF/1 names. */
6712 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6713 /* Try AIX names. */
6714 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6715 /* Try HP-UX names. */
6716 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6717 return 1;
6718 return 0;
6719 }
6720 _ACEOF
6721 if ac_fn_c_try_run "$LINENO"; then :
6722 am_cv_func_iconv_works=yes
6723 else
6724 am_cv_func_iconv_works=no
6725 fi
6726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6727 conftest.$ac_objext conftest.beam conftest.$ac_ext
6728 fi
6729
6730 LIBS="$am_save_LIBS"
6731
6732 fi
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6734 $as_echo "$am_cv_func_iconv_works" >&6; }
6735 case "$am_cv_func_iconv_works" in
6736 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6737 *) am_func_iconv=yes ;;
6738 esac
6739 else
6740 am_func_iconv=no am_cv_lib_iconv=no
6741 fi
6742 if test "$am_func_iconv" = yes; then
6743
6744 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6745
6746 fi
6747 if test "$am_cv_lib_iconv" = yes; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6749 $as_echo_n "checking how to link with libiconv... " >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6751 $as_echo "$LIBICONV" >&6; }
6752 else
6753 CPPFLAGS="$am_save_CPPFLAGS"
6754 LIBICONV=
6755 LTLIBICONV=
6756 fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768 use_additional=yes
6769
6770 acl_save_prefix="$prefix"
6771 prefix="$acl_final_prefix"
6772 acl_save_exec_prefix="$exec_prefix"
6773 exec_prefix="$acl_final_exec_prefix"
6774
6775 eval additional_includedir=\"$includedir\"
6776 eval additional_libdir=\"$libdir\"
6777
6778 exec_prefix="$acl_save_exec_prefix"
6779 prefix="$acl_save_prefix"
6780
6781
6782 # Check whether --with-libintl-prefix was given.
6783 if test "${with_libintl_prefix+set}" = set; then :
6784 withval=$with_libintl_prefix;
6785 if test "X$withval" = "Xno"; then
6786 use_additional=no
6787 else
6788 if test "X$withval" = "X"; then
6789
6790 acl_save_prefix="$prefix"
6791 prefix="$acl_final_prefix"
6792 acl_save_exec_prefix="$exec_prefix"
6793 exec_prefix="$acl_final_exec_prefix"
6794
6795 eval additional_includedir=\"$includedir\"
6796 eval additional_libdir=\"$libdir\"
6797
6798 exec_prefix="$acl_save_exec_prefix"
6799 prefix="$acl_save_prefix"
6800
6801 else
6802 additional_includedir="$withval/include"
6803 additional_libdir="$withval/$acl_libdirstem"
6804 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6805 && ! test -d "$withval/$acl_libdirstem"; then
6806 additional_libdir="$withval/$acl_libdirstem2"
6807 fi
6808 fi
6809 fi
6810
6811 fi
6812
6813 LIBINTL=
6814 LTLIBINTL=
6815 INCINTL=
6816 LIBINTL_PREFIX=
6817 HAVE_LIBINTL=
6818 rpathdirs=
6819 ltrpathdirs=
6820 names_already_handled=
6821 names_next_round='intl '
6822 while test -n "$names_next_round"; do
6823 names_this_round="$names_next_round"
6824 names_next_round=
6825 for name in $names_this_round; do
6826 already_handled=
6827 for n in $names_already_handled; do
6828 if test "$n" = "$name"; then
6829 already_handled=yes
6830 break
6831 fi
6832 done
6833 if test -z "$already_handled"; then
6834 names_already_handled="$names_already_handled $name"
6835 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6836 eval value=\"\$HAVE_LIB$uppername\"
6837 if test -n "$value"; then
6838 if test "$value" = yes; then
6839 eval value=\"\$LIB$uppername\"
6840 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6841 eval value=\"\$LTLIB$uppername\"
6842 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6843 else
6844 :
6845 fi
6846 else
6847 found_dir=
6848 found_la=
6849 found_so=
6850 found_a=
6851 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6852 if test -n "$acl_shlibext"; then
6853 shrext=".$acl_shlibext" # typically: shrext=.so
6854 else
6855 shrext=
6856 fi
6857 if test $use_additional = yes; then
6858 dir="$additional_libdir"
6859 if test -n "$acl_shlibext"; then
6860 if test -f "$dir/$libname$shrext"; then
6861 found_dir="$dir"
6862 found_so="$dir/$libname$shrext"
6863 else
6864 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6865 ver=`(cd "$dir" && \
6866 for f in "$libname$shrext".*; do echo "$f"; done \
6867 | sed -e "s,^$libname$shrext\\\\.,," \
6868 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6869 | sed 1q ) 2>/dev/null`
6870 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6871 found_dir="$dir"
6872 found_so="$dir/$libname$shrext.$ver"
6873 fi
6874 else
6875 eval library_names=\"$acl_library_names_spec\"
6876 for f in $library_names; do
6877 if test -f "$dir/$f"; then
6878 found_dir="$dir"
6879 found_so="$dir/$f"
6880 break
6881 fi
6882 done
6883 fi
6884 fi
6885 fi
6886 if test "X$found_dir" = "X"; then
6887 if test -f "$dir/$libname.$acl_libext"; then
6888 found_dir="$dir"
6889 found_a="$dir/$libname.$acl_libext"
6890 fi
6891 fi
6892 if test "X$found_dir" != "X"; then
6893 if test -f "$dir/$libname.la"; then
6894 found_la="$dir/$libname.la"
6895 fi
6896 fi
6897 fi
6898 if test "X$found_dir" = "X"; then
6899 for x in $LDFLAGS $LTLIBINTL; do
6900
6901 acl_save_prefix="$prefix"
6902 prefix="$acl_final_prefix"
6903 acl_save_exec_prefix="$exec_prefix"
6904 exec_prefix="$acl_final_exec_prefix"
6905 eval x=\"$x\"
6906 exec_prefix="$acl_save_exec_prefix"
6907 prefix="$acl_save_prefix"
6908
6909 case "$x" in
6910 -L*)
6911 dir=`echo "X$x" | sed -e 's/^X-L//'`
6912 if test -n "$acl_shlibext"; then
6913 if test -f "$dir/$libname$shrext"; then
6914 found_dir="$dir"
6915 found_so="$dir/$libname$shrext"
6916 else
6917 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6918 ver=`(cd "$dir" && \
6919 for f in "$libname$shrext".*; do echo "$f"; done \
6920 | sed -e "s,^$libname$shrext\\\\.,," \
6921 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6922 | sed 1q ) 2>/dev/null`
6923 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6924 found_dir="$dir"
6925 found_so="$dir/$libname$shrext.$ver"
6926 fi
6927 else
6928 eval library_names=\"$acl_library_names_spec\"
6929 for f in $library_names; do
6930 if test -f "$dir/$f"; then
6931 found_dir="$dir"
6932 found_so="$dir/$f"
6933 break
6934 fi
6935 done
6936 fi
6937 fi
6938 fi
6939 if test "X$found_dir" = "X"; then
6940 if test -f "$dir/$libname.$acl_libext"; then
6941 found_dir="$dir"
6942 found_a="$dir/$libname.$acl_libext"
6943 fi
6944 fi
6945 if test "X$found_dir" != "X"; then
6946 if test -f "$dir/$libname.la"; then
6947 found_la="$dir/$libname.la"
6948 fi
6949 fi
6950 ;;
6951 esac
6952 if test "X$found_dir" != "X"; then
6953 break
6954 fi
6955 done
6956 fi
6957 if test "X$found_dir" != "X"; then
6958 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6959 if test "X$found_so" != "X"; then
6960 if test "$enable_rpath" = no \
6961 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6962 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6963 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6964 else
6965 haveit=
6966 for x in $ltrpathdirs; do
6967 if test "X$x" = "X$found_dir"; then
6968 haveit=yes
6969 break
6970 fi
6971 done
6972 if test -z "$haveit"; then
6973 ltrpathdirs="$ltrpathdirs $found_dir"
6974 fi
6975 if test "$acl_hardcode_direct" = yes; then
6976 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6977 else
6978 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6979 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6980 haveit=
6981 for x in $rpathdirs; do
6982 if test "X$x" = "X$found_dir"; then
6983 haveit=yes
6984 break
6985 fi
6986 done
6987 if test -z "$haveit"; then
6988 rpathdirs="$rpathdirs $found_dir"
6989 fi
6990 else
6991 haveit=
6992 for x in $LDFLAGS $LIBINTL; do
6993
6994 acl_save_prefix="$prefix"
6995 prefix="$acl_final_prefix"
6996 acl_save_exec_prefix="$exec_prefix"
6997 exec_prefix="$acl_final_exec_prefix"
6998 eval x=\"$x\"
6999 exec_prefix="$acl_save_exec_prefix"
7000 prefix="$acl_save_prefix"
7001
7002 if test "X$x" = "X-L$found_dir"; then
7003 haveit=yes
7004 break
7005 fi
7006 done
7007 if test -z "$haveit"; then
7008 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7009 fi
7010 if test "$acl_hardcode_minus_L" != no; then
7011 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7012 else
7013 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7014 fi
7015 fi
7016 fi
7017 fi
7018 else
7019 if test "X$found_a" != "X"; then
7020 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7021 else
7022 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7023 fi
7024 fi
7025 additional_includedir=
7026 case "$found_dir" in
7027 */$acl_libdirstem | */$acl_libdirstem/)
7028 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7029 if test "$name" = 'intl'; then
7030 LIBINTL_PREFIX="$basedir"
7031 fi
7032 additional_includedir="$basedir/include"
7033 ;;
7034 */$acl_libdirstem2 | */$acl_libdirstem2/)
7035 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7036 if test "$name" = 'intl'; then
7037 LIBINTL_PREFIX="$basedir"
7038 fi
7039 additional_includedir="$basedir/include"
7040 ;;
7041 esac
7042 if test "X$additional_includedir" != "X"; then
7043 if test "X$additional_includedir" != "X/usr/include"; then
7044 haveit=
7045 if test "X$additional_includedir" = "X/usr/local/include"; then
7046 if test -n "$GCC"; then
7047 case $host_os in
7048 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7049 esac
7050 fi
7051 fi
7052 if test -z "$haveit"; then
7053 for x in $CPPFLAGS $INCINTL; do
7054
7055 acl_save_prefix="$prefix"
7056 prefix="$acl_final_prefix"
7057 acl_save_exec_prefix="$exec_prefix"
7058 exec_prefix="$acl_final_exec_prefix"
7059 eval x=\"$x\"
7060 exec_prefix="$acl_save_exec_prefix"
7061 prefix="$acl_save_prefix"
7062
7063 if test "X$x" = "X-I$additional_includedir"; then
7064 haveit=yes
7065 break
7066 fi
7067 done
7068 if test -z "$haveit"; then
7069 if test -d "$additional_includedir"; then
7070 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7071 fi
7072 fi
7073 fi
7074 fi
7075 fi
7076 if test -n "$found_la"; then
7077 save_libdir="$libdir"
7078 case "$found_la" in
7079 */* | *\\*) . "$found_la" ;;
7080 *) . "./$found_la" ;;
7081 esac
7082 libdir="$save_libdir"
7083 for dep in $dependency_libs; do
7084 case "$dep" in
7085 -L*)
7086 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7087 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7088 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7089 haveit=
7090 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7091 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7092 if test -n "$GCC"; then
7093 case $host_os in
7094 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7095 esac
7096 fi
7097 fi
7098 if test -z "$haveit"; then
7099 haveit=
7100 for x in $LDFLAGS $LIBINTL; do
7101
7102 acl_save_prefix="$prefix"
7103 prefix="$acl_final_prefix"
7104 acl_save_exec_prefix="$exec_prefix"
7105 exec_prefix="$acl_final_exec_prefix"
7106 eval x=\"$x\"
7107 exec_prefix="$acl_save_exec_prefix"
7108 prefix="$acl_save_prefix"
7109
7110 if test "X$x" = "X-L$additional_libdir"; then
7111 haveit=yes
7112 break
7113 fi
7114 done
7115 if test -z "$haveit"; then
7116 if test -d "$additional_libdir"; then
7117 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7118 fi
7119 fi
7120 haveit=
7121 for x in $LDFLAGS $LTLIBINTL; do
7122
7123 acl_save_prefix="$prefix"
7124 prefix="$acl_final_prefix"
7125 acl_save_exec_prefix="$exec_prefix"
7126 exec_prefix="$acl_final_exec_prefix"
7127 eval x=\"$x\"
7128 exec_prefix="$acl_save_exec_prefix"
7129 prefix="$acl_save_prefix"
7130
7131 if test "X$x" = "X-L$additional_libdir"; then
7132 haveit=yes
7133 break
7134 fi
7135 done
7136 if test -z "$haveit"; then
7137 if test -d "$additional_libdir"; then
7138 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7139 fi
7140 fi
7141 fi
7142 fi
7143 ;;
7144 -R*)
7145 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7146 if test "$enable_rpath" != no; then
7147 haveit=
7148 for x in $rpathdirs; do
7149 if test "X$x" = "X$dir"; then
7150 haveit=yes
7151 break
7152 fi
7153 done
7154 if test -z "$haveit"; then
7155 rpathdirs="$rpathdirs $dir"
7156 fi
7157 haveit=
7158 for x in $ltrpathdirs; do
7159 if test "X$x" = "X$dir"; then
7160 haveit=yes
7161 break
7162 fi
7163 done
7164 if test -z "$haveit"; then
7165 ltrpathdirs="$ltrpathdirs $dir"
7166 fi
7167 fi
7168 ;;
7169 -l*)
7170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7171 ;;
7172 *.la)
7173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7174 ;;
7175 *)
7176 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7177 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7178 ;;
7179 esac
7180 done
7181 fi
7182 else
7183 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7185 fi
7186 fi
7187 fi
7188 done
7189 done
7190 if test "X$rpathdirs" != "X"; then
7191 if test -n "$acl_hardcode_libdir_separator"; then
7192 alldirs=
7193 for found_dir in $rpathdirs; do
7194 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7195 done
7196 acl_save_libdir="$libdir"
7197 libdir="$alldirs"
7198 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7199 libdir="$acl_save_libdir"
7200 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7201 else
7202 for found_dir in $rpathdirs; do
7203 acl_save_libdir="$libdir"
7204 libdir="$found_dir"
7205 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7206 libdir="$acl_save_libdir"
7207 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7208 done
7209 fi
7210 fi
7211 if test "X$ltrpathdirs" != "X"; then
7212 for found_dir in $ltrpathdirs; do
7213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7214 done
7215 fi
7216
7217
7218
7219
7220
7221
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7223 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7224 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 gt_save_CPPFLAGS="$CPPFLAGS"
7228 CPPFLAGS="$CPPFLAGS $INCINTL"
7229 gt_save_LIBS="$LIBS"
7230 LIBS="$LIBS $LIBINTL"
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 #include <libintl.h>
7234 $gt_revision_test_code
7235 extern int _nl_msg_cat_cntr;
7236 extern
7237 #ifdef __cplusplus
7238 "C"
7239 #endif
7240 const char *_nl_expand_alias (const char *);
7241 int
7242 main ()
7243 {
7244 bindtextdomain ("", "");
7245 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_link "$LINENO"; then :
7251 eval "$gt_func_gnugettext_libintl=yes"
7252 else
7253 eval "$gt_func_gnugettext_libintl=no"
7254 fi
7255 rm -f core conftest.err conftest.$ac_objext \
7256 conftest$ac_exeext conftest.$ac_ext
7257 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7258 LIBS="$LIBS $LIBICONV"
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <libintl.h>
7262 $gt_revision_test_code
7263 extern int _nl_msg_cat_cntr;
7264 extern
7265 #ifdef __cplusplus
7266 "C"
7267 #endif
7268 const char *_nl_expand_alias (const char *);
7269 int
7270 main ()
7271 {
7272 bindtextdomain ("", "");
7273 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7274 ;
7275 return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 LIBINTL="$LIBINTL $LIBICONV"
7280 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7281 eval "$gt_func_gnugettext_libintl=yes"
7282
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext \
7285 conftest$ac_exeext conftest.$ac_ext
7286 fi
7287 CPPFLAGS="$gt_save_CPPFLAGS"
7288 LIBS="$gt_save_LIBS"
7289 fi
7290 eval ac_res=\$$gt_func_gnugettext_libintl
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7292 $as_echo "$ac_res" >&6; }
7293 fi
7294
7295 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7296 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7297 && test "$PACKAGE" != gettext-runtime \
7298 && test "$PACKAGE" != gettext-tools; }; then
7299 gt_use_preinstalled_gnugettext=yes
7300 else
7301 LIBINTL=
7302 LTLIBINTL=
7303 INCINTL=
7304 fi
7305
7306
7307
7308 if test -n "$INTL_MACOSX_LIBS"; then
7309 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7310 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7311 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7312 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7313 fi
7314 fi
7315
7316 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7317 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7318
7319 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7320
7321 else
7322 USE_NLS=no
7323 fi
7324 fi
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7327 $as_echo_n "checking whether to use NLS... " >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7329 $as_echo "$USE_NLS" >&6; }
7330 if test "$USE_NLS" = "yes"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7332 $as_echo_n "checking where the gettext function comes from... " >&6; }
7333 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7334 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7335 gt_source="external libintl"
7336 else
7337 gt_source="libc"
7338 fi
7339 else
7340 gt_source="included intl directory"
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7343 $as_echo "$gt_source" >&6; }
7344 fi
7345
7346 if test "$USE_NLS" = "yes"; then
7347
7348 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7349 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7351 $as_echo_n "checking how to link with libintl... " >&6; }
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7353 $as_echo "$LIBINTL" >&6; }
7354
7355 for element in $INCINTL; do
7356 haveit=
7357 for x in $CPPFLAGS; do
7358
7359 acl_save_prefix="$prefix"
7360 prefix="$acl_final_prefix"
7361 acl_save_exec_prefix="$exec_prefix"
7362 exec_prefix="$acl_final_exec_prefix"
7363 eval x=\"$x\"
7364 exec_prefix="$acl_save_exec_prefix"
7365 prefix="$acl_save_prefix"
7366
7367 if test "X$x" = "X$element"; then
7368 haveit=yes
7369 break
7370 fi
7371 done
7372 if test -z "$haveit"; then
7373 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7374 fi
7375 done
7376
7377 fi
7378
7379
7380 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7381
7382
7383 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7384
7385 fi
7386
7387 POSUB=po
7388 fi
7389
7390
7391
7392 INTLLIBS="$LIBINTL"
7393
7394
7395
7396
7397
7398
7399 fi
7400
7401 NLSTARGET=""
7402 if test x"$USE_NLS" = xyes; then
7403 NLSTARGET="po"
7404 fi
7405
7406
7407
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if color escape sequence for kterm/pxvt is enabled" >&5
7410 $as_echo_n "checking if color escape sequence for kterm/pxvt is enabled... " >&6; }
7411 # Check whether --enable-color was given.
7412 if test "${enable_color+set}" = set; then :
7413 enableval=$enable_color;
7414 else
7415 enable_color="yes"
7416 fi
7417
7418 test x"$enable_color" = xyes && $as_echo "#define USE_COLOR 1" >>confdefs.h
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_color" >&5
7421 $as_echo "$enable_color" >&6; }
7422
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ANSI color escape sequence support is enabled" >&5
7424 $as_echo_n "checking if ANSI color escape sequence support is enabled... " >&6; }
7425 # Check whether --enable-ansi_color was given.
7426 if test "${enable_ansi_color+set}" = set; then :
7427 enableval=$enable_ansi_color;
7428 else
7429 enable_ansi_color="$enable_color"
7430 fi
7431
7432 test x"$enable_ansi_color" = xyes && $as_echo "#define USE_ANSI_COLOR 1" >>confdefs.h
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ansi_color" >&5
7435 $as_echo "$enable_ansi_color" >&6; }
7436
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if background color support is enabled" >&5
7438 $as_echo_n "checking if background color support is enabled... " >&6; }
7439 # Check whether --enable-bgcolor was given.
7440 if test "${enable_bgcolor+set}" = set; then :
7441 enableval=$enable_bgcolor;
7442 else
7443 enable_bgcolor="$enable_color"
7444 fi
7445
7446 test x"$enable_bgcolor" = xyes && $as_echo "#define USE_BG_COLOR 1" >>confdefs.h
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bgcolor" >&5
7449 $as_echo "$enable_bgcolor" >&6; }
7450
7451
7452
7453
7454
7455
7456
7457
7458 INSTALL_W3MIMGDISPLAY='${INSTALL_PROGRAM}'
7459 $as_echo "#define INSTALL_W3MIMGDISPLAY \$INSTALL_W3MIMGDISPLAY" >>confdefs.h
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if image is enabled" >&5
7474 $as_echo_n "checking if image is enabled... " >&6; }
7475 # Check whether --enable-image was given.
7476 if test "${enable_image+set}" = set; then :
7477 enableval=$enable_image;
7478 else
7479 enable_image="yes"
7480 fi
7481
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_image" >&5
7483 $as_echo "$enable_image" >&6; }
7484 if test x"$enable_image" != xno; then
7485 IMGOBJS=w3mimg.o
7486 if test x"$enable_image" = xyes; then
7487 enable_image=x11
7488 case "`uname -s`" in
7489 Linux|linux|LINUX|FreeBSD|freebsd|FREEBSD)
7490 if test -c /dev/fb0; then
7491 enable_image=x11,fb
7492 fi;;
7493 CYGWIN*)
7494 enable_image=x11,win;;
7495 esac
7496 fi
7497 save_ifs="$IFS"; IFS=",";
7498 set x $enable_image; shift
7499 IFS="$save_ifs"
7500 for img in "$@"; do
7501 case $img in
7502 x11) x11=yes;;
7503 fb) fb=yes;;
7504 fb+s) fb=yes
7505 $as_echo "#define W3MIMGDISPLAY_SETUID 1" >>confdefs.h
7506
7507 INSTALL_W3MIMGDISPLAY='${INSTALL} -o root -m 4755 -s'
7508 $as_echo "#define INSTALL_W3MIMGDISPLAY \$INSTALL_W3MIMGDISPLAY" >>confdefs.h
7509 ;;
7510 win) win=yes;;
7511 esac
7512 done
7513 enable_image=yes
7514 $as_echo "#define USE_IMAGE 1" >>confdefs.h
7515
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking image library" >&5
7517 $as_echo_n "checking image library... " >&6; }
7518
7519 # Check whether --with-imagelib was given.
7520 if test "${with_imagelib+set}" = set; then :
7521 withval=$with_imagelib;
7522 else
7523 with_imagelib="yes"
7524 fi
7525
7526 if test x"$with_imagelib" = xyes; then
7527 with_imagelib="gtk2 gdk-pixbuf imlib imlib2"
7528 fi
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_imagelib" >&5
7530 $as_echo "$with_imagelib" >&6; }
7531 with_imlib=no
7532 with_imlib2=no
7533 with_gdkpixbuf=no
7534 with_gtk2=no
7535 for imagelib in $with_imagelib
7536 do
7537 case "$imagelib" in
7538 imlib)
7539 with_imlib="yes"
7540 if test x"$IMLIB_CONFIG" = x; then
7541 IMLIB_CONFIG=imlib-config
7542 fi;;
7543 imlib2)
7544 with_imlib2="yes"
7545 if test x"$PKG_CONFIG" = x; then
7546 PKG_CONFIG=pkg-config
7547 fi;;
7548 gdk-pixbuf)
7549 with_gdkpixbuf="yes"
7550 if test x"$GDKPIXBUF_CONFIG" = x; then
7551 GDKPIXBUF_CONFIG=gdk-pixbuf-config
7552 fi;;
7553 gtk2)
7554 with_gtk2="yes"
7555 if test x"$PKG_CONFIG" = x; then
7556 PKG_CONFIG=pkg-config
7557 fi;;
7558 esac
7559 done
7560 IMGTARGETS=""
7561 IMGLINK='$(CC)'
7562 if test x"$with_gtk2" = xyes; then
7563 version="`$PKG_CONFIG --modversion gdk-pixbuf-2.0 2>/dev/null`"
7564 if test x"$version" != x; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5
7566 $as_echo_n "checking GdkPixbuf version... " >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
7568 $as_echo "$version" >&6; }
7569 set -- `echo "$version" | sed 's/[^0-9]/ /g'`
7570 if test "$1" -ne "2" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "0"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&5
7572 $as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&2;}
7573 have_gdkpixbuf="no"; have_gtk2="no"
7574 else
7575 have_gdkpixbuf="yes"; have_gtk2="yes"
7576 fi
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&5
7579 $as_echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&2;}
7580 have_gdkpixbuf="no"; have_gtk2="no"
7581 fi
7582 fi
7583 if test x"$with_gdkpixbuf" = xyes; then
7584 if test x"$have_gdkpixbuf" != xyes; then
7585 version="`$GDKPIXBUF_CONFIG --version 2>/dev/null`"
7586 if test x"$version" != x; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5
7588 $as_echo_n "checking GdkPixbuf version... " >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
7590 $as_echo "$version" >&6; }
7591 set -- `echo "$version" | sed 's/[^0-9]/ /g'`
7592 if test "$1" -ne "0" -o "$2" -lt "16" || test "$2" -eq "16" -a "$3" -lt "0"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&5
7594 $as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&2;}
7595 have_gdkpixbuf="no"
7596 else
7597 have_gdkpixbuf="yes"
7598 fi
7599 else
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&5
7601 $as_echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&2;}
7602 have_gdkpixbuf="no"
7603 fi
7604 fi
7605 fi
7606 if test x"$with_imlib" = xyes; then
7607 version="`$IMLIB_CONFIG --version 2>/dev/null`"
7608 if test x"$version" != x; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib version" >&5
7610 $as_echo_n "checking Imlib version... " >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
7612 $as_echo "$version" >&6; }
7613 set -- `echo "$version" | sed 's/[^0-9]/ /g'`
7614 if test "$1" -ne "1" -o "$2" -lt "9" || test "$2" -eq "9" -a "$3" -lt "8"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&5
7616 $as_echo "$as_me: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&2;}
7617 have_imlib="no"
7618 else
7619 have_imlib="yes"
7620 fi
7621 else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&5
7623 $as_echo "$as_me: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&2;}
7624 have_imlib="no"
7625 fi
7626 fi
7627 if test x"$with_imlib2" = xyes; then
7628 version="`$PKG_CONFIG --modversion imlib2 2>/dev/null`"
7629 if test x"$version" != x; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib2 version" >&5
7631 $as_echo_n "checking Imlib2 version... " >&6; }
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
7633 $as_echo "$version" >&6; }
7634 set -- `echo "$version" | sed 's/[^0-9]/ /g'`
7635 if test "$1" -ne "1" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "5"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&5
7637 $as_echo "$as_me: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&2;}
7638 have_imlib2="no"
7639 else
7640 have_imlib2="yes"
7641 fi
7642 else
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&5
7644 $as_echo "$as_me: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&2;}
7645 have_imlib2="no"
7646 fi
7647 fi
7648 if test x"$x11" = xyes; then
7649 if test x"$have_imlib2" = xyes; then
7650 $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
7651
7652 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
7653 IMGTARGETS="x11"
7654 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
7655
7656 IMGX11CFLAGS="`${PKG_CONFIG} --cflags`"
7657 IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs imlib2`"
7658 elif test x"$have_gtk2" = xyes; then
7659 $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
7660
7661 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
7662 IMGTARGETS="x11"
7663 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
7664
7665 $as_echo "#define USE_GTK2 1" >>confdefs.h
7666
7667 IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0`"
7668 IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0`"
7669 elif test x"$have_gdkpixbuf" = xyes; then
7670 $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
7671
7672 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
7673 IMGTARGETS="x11"
7674 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
7675
7676 IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
7677 IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib"
7678 elif test x"$have_imlib" = xyes; then
7679 $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
7680
7681 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
7682 IMGTARGETS="x11"
7683 $as_echo "#define USE_IMLIB 1" >>confdefs.h
7684
7685 IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`"
7686 IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`"
7687 IMGTARGETS="x11"
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with X11 support" >&5
7690 $as_echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;}
7691 fi
7692 fi
7693 if test x"$fb" = xyes; then
7694 if test x"$have_imlib2" = xyes; then
7695 $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
7696
7697 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
7698 IMGTARGETS="${IMGTARGETS} fb"
7699 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
7700
7701 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
7702 IMGFBCFLAGS="`${PKG_CONFIG} --cflags`"
7703 IMGFBLDFLAGS="`${PKG_CONFIG} --libs imlib2`"
7704 elif test x"$have_gtk2" = xyes; then
7705 $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
7706
7707 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
7708 IMGTARGETS="${IMGTARGETS} fb"
7709 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
7710
7711 $as_echo "#define USE_GTK2 1" >>confdefs.h
7712
7713 IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0`"
7714 IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0`"
7715 elif test x"$have_gdkpixbuf" = xyes; then
7716 $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
7717
7718 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
7719 IMGTARGETS="${IMGTARGETS} fb"
7720 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
7721
7722 IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
7723 IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`"
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with FB support" >&5
7726 $as_echo "$as_me: WARNING: unable to build w3mimgdisplay with FB support" >&2;}
7727 fi
7728 fi
7729 if test x"$win" = xyes; then
7730 $as_echo "#define USE_W3MIMG_WIN 1" >>confdefs.h
7731
7732 IMGOBJS="$IMGOBJS win/win_w3mimg.o"
7733 IMGTARGETS="${IMGTARGETS} win"
7734 IMGWINCFLAGS="-I/usr/include/w32api"
7735 IMGWINLDFLAGS="-lgdiplus -lgdi32 -luser32"
7736 IMGLINK='$(CXX)'
7737 fi
7738 $as_echo "#define IMGTARGETS \"\$IMGTARGETS\"" >>confdefs.h
7739
7740 $as_echo "#define IMGOBJS \"\$IMGOBJS\"" >>confdefs.h
7741
7742 $as_echo "#define IMGX11CFLAGS \"\$IMGX11CFLAGS\"" >>confdefs.h
7743
7744 $as_echo "#define IMGX11LDFLAGS \"\$IMGX11LDFLAGS\"" >>confdefs.h
7745
7746 $as_echo "#define IMGFBCFLAGS \"\$IMGFBCFLAGS\"" >>confdefs.h
7747
7748 $as_echo "#define IMGFBLDFLAGS \"\$IMGFBLDFLAGS\"" >>confdefs.h
7749
7750 $as_echo "#define IMGLINK \"\$IMGLINK\"" >>confdefs.h
7751
7752 $as_echo "#define IMGWINCFLAGS \"\$IMGWINCFLAGS\"" >>confdefs.h
7753
7754 $as_echo "#define IMGWINLDFLAGS \"\$IMGWINLDFLAGS\"" >>confdefs.h
7755
7756 fi
7757 if test x"$enable_image" != xno; then
7758 AUXBIN_TARGETS="$AUXBIN_TARGETS w3mimgdisplay\$(EXT)"
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X-Face is enabled" >&5
7761 $as_echo_n "checking if X-Face is enabled... " >&6; }
7762 # Check whether --enable-xface was given.
7763 if test "${enable_xface+set}" = set; then :
7764 enableval=$enable_xface;
7765 else
7766 enable_xface="$enable_image"
7767 fi
7768
7769 test x"$enable_xface" = xyes && $as_echo "#define USE_XFACE 1" >>confdefs.h
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xface" >&5
7772 $as_echo "$enable_xface" >&6; }
7773 # Extract the first word of "uncompface", so it can be a program name with args.
7774 set dummy uncompface; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_prog_uncompface+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 if test -n "$uncompface"; then
7781 ac_cv_prog_uncompface="$uncompface" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_prog_uncompface=""yes""
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794 done
7795 done
7796 IFS=$as_save_IFS
7797
7798 test -z "$ac_cv_prog_uncompface" && ac_cv_prog_uncompface=""no""
7799 fi
7800 fi
7801 uncompface=$ac_cv_prog_uncompface
7802 if test -n "$uncompface"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uncompface" >&5
7804 $as_echo "$uncompface" >&6; }
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811 test "$uncompface" = "no" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uncompface is not installed." >&5
7812 $as_echo "$as_me: WARNING: uncompface is not installed." >&2;}
7813
7814 fi
7815
7816
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default keymap" >&5
7818 $as_echo_n "checking default keymap... " >&6; }
7819 # Check whether --enable-keymap was given.
7820 if test "${enable_keymap+set}" = set; then :
7821 enableval=$enable_keymap;
7822 else
7823 enable_keymap="w3m"
7824 fi
7825
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_keymap" >&5
7827 $as_echo "$enable_keymap" >&6; }
7828 case x"$enable_keymap" in
7829 xw3m)
7830 KEYMAP_FILE="keybind";;
7831 xlynx)
7832 KEYMAP_FILE="keybind_lynx";;
7833 *)
7834 as_fn_error $? "keymap should be either w3m or lynx." "$LINENO" 5;;
7835 esac
7836
7837 HELP_FILE=w3mhelp-${enable_keymap}_$w3m_lang.html
7838 cat >>confdefs.h <<_ACEOF
7839 #define HELP_FILE "$HELP_FILE"
7840 _ACEOF
7841
7842
7843 cat >>confdefs.h <<_ACEOF
7844 #define KEYBIND $enable_keymap
7845 _ACEOF
7846
7847
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if popup menu is enabled" >&5
7849 $as_echo_n "checking if popup menu is enabled... " >&6; }
7850 # Check whether --enable-menu was given.
7851 if test "${enable_menu+set}" = set; then :
7852 enableval=$enable_menu;
7853 else
7854 enable_menu="yes"
7855 fi
7856
7857 test x"$enable_menu" = xyes && $as_echo "#define USE_MENU 1" >>confdefs.h
7858
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_menu" >&5
7860 $as_echo "$enable_menu" >&6; }
7861
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mouse operation enabled" >&5
7863 $as_echo_n "checking if mouse operation enabled... " >&6; }
7864 # Check whether --enable-mouse was given.
7865 if test "${enable_mouse+set}" = set; then :
7866 enableval=$enable_mouse;
7867 else
7868 enable_mouse="yes"
7869 fi
7870
7871 test x"$enable_mouse" = xyes && $as_echo "#define USE_MOUSE 1" >>confdefs.h
7872
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mouse" >&5
7874 $as_echo "$enable_mouse" >&6; }
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if URL history is enabled" >&5
7877 $as_echo_n "checking if URL history is enabled... " >&6; }
7878 # Check whether --enable-history was given.
7879 if test "${enable_history+set}" = set; then :
7880 enableval=$enable_history;
7881 else
7882 enable_history="yes"
7883 fi
7884
7885 test x"$enable_history" = xyes && $as_echo "#define USE_HISTORY 1" >>confdefs.h
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_history" >&5
7888 $as_echo "$enable_history" >&6; }
7889
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is enabled" >&5
7891 $as_echo_n "checking if alarm is enabled... " >&6; }
7892 # Check whether --enable-alarm was given.
7893 if test "${enable_alarm+set}" = set; then :
7894 enableval=$enable_alarm;
7895 else
7896 enable_alarm="yes"
7897 fi
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alarm" >&5
7900 $as_echo "$enable_alarm" >&6; }
7901 if test x"$enable_alarm" = xyes; then
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904 #include <unistd.h>
7905 #include <signal.h>
7906 int
7907 main ()
7908 {
7909 int sa = SIGALRM;
7910 void (*a) = alarm;
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 $as_echo "#define USE_ALARM 1" >>confdefs.h
7917
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 fi
7921
7922
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cookie is enabled" >&5
7924 $as_echo_n "checking if cookie is enabled... " >&6; }
7925 # Check whether --enable-cookie was given.
7926 if test "${enable_cookie+set}" = set; then :
7927 enableval=$enable_cookie;
7928 else
7929 enable_cookie="yes"
7930 fi
7931
7932 test x"$enable_cookie" = xyes && $as_echo "#define USE_COOKIE 1" >>confdefs.h
7933
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cookie" >&5
7935 $as_echo "$enable_cookie" >&6; }
7936
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nntp is enabled" >&5
7938 $as_echo_n "checking if nntp is enabled... " >&6; }
7939 # Check whether --enable-nntp was given.
7940 if test "${enable_nntp+set}" = set; then :
7941 enableval=$enable_nntp;
7942 else
7943 enable_nntp="yes"
7944 fi
7945
7946 test x"$enable_nntp" = xyes && $as_echo "#define USE_NNTP 1" >>confdefs.h
7947
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nntp" >&5
7949 $as_echo "$enable_nntp" >&6; }
7950
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Gopher is enabled" >&5
7952 $as_echo_n "checking if Gopher is enabled... " >&6; }
7953 # Check whether --enable-gopher was given.
7954 if test "${enable_gopher+set}" = set; then :
7955 enableval=$enable_gopher;
7956 else
7957 enable_gopher="yes"
7958 fi
7959
7960 test x"$enable_gopher" = xyes && $as_echo "#define USE_GOPHER 1" >>confdefs.h
7961
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gopher" >&5
7963 $as_echo "$enable_gopher" >&6; }
7964
7965
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dictionary lookup is enabled" >&5
7967 $as_echo_n "checking if dictionary lookup is enabled... " >&6; }
7968 # Check whether --enable-dict was given.
7969 if test "${enable_dict+set}" = set; then :
7970 enableval=$enable_dict;
7971 else
7972 enable_dict="yes"
7973 fi
7974
7975 test x"$enable_dict" = xyes && $as_echo "#define USE_DICT 1" >>confdefs.h
7976
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dict" >&5
7978 $as_echo "$enable_dict" >&6; }
7979
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if help cgi is enabled" >&5
7981 $as_echo_n "checking if help cgi is enabled... " >&6; }
7982 # Check whether --enable-help_cgi was given.
7983 if test "${enable_help_cgi+set}" = set; then :
7984 enableval=$enable_help_cgi;
7985 else
7986 enable_help_cgi="yes"
7987 fi
7988
7989 test x"$enable_help_cgi" = xyes && $as_echo "#define USE_HELP_CGI 1" >>confdefs.h
7990
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_help_cgi" >&5
7992 $as_echo "$enable_help_cgi" >&6; }
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external URI loader is enabled" >&5
7995 $as_echo_n "checking if external URI loader is enabled... " >&6; }
7996 # Check whether --enable-external_uri_loader was given.
7997 if test "${enable_external_uri_loader+set}" = set; then :
7998 enableval=$enable_external_uri_loader;
7999 else
8000 enable_external_uri_loader="yes"
8001 fi
8002
8003 test x"$enable_external_uri_loader" = xyes && $as_echo "#define USE_EXTERNAL_URI_LOADER 1" >>confdefs.h
8004
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_external_uri_loader" >&5
8006 $as_echo "$enable_external_uri_loader" >&6; }
8007
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if w3mmail is used" >&5
8009 $as_echo_n "checking if w3mmail is used... " >&6; }
8010 # Check whether --enable-w3mmailer was given.
8011 if test "${enable_w3mmailer+set}" = set; then :
8012 enableval=$enable_w3mmailer;
8013 else
8014 enable_w3mmailer="$enable_external_uri_loader"
8015 fi
8016
8017 test x"$enable_external_uri_loader" = xno && enable_w3mmailer=no
8018 test x"$enable_w3mmailer" = xyes && $as_echo "#define USE_W3MMAILER 1" >>confdefs.h
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_w3mmailer" >&5
8021 $as_echo "$enable_w3mmailer" >&6; }
8022
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if migemo is supported with" >&5
8025 $as_echo_n "checking if migemo is supported with... " >&6; }
8026
8027 # Check whether --with-migemo was given.
8028 if test "${with_migemo+set}" = set; then :
8029 withval=$with_migemo; test x"$with_migemo" = xyes || migemo_command="$with_migemo"
8030 else
8031 migemo_command=no
8032 fi
8033
8034 if test x"$with_migemo" = xyes; then
8035 if command -v migemo >/dev/null 2>&1; then
8036 migemo_command="migemo -t egrep"
8037 for f in \
8038 /usr/share/migemo/migemo-dict \
8039 /usr/local/share/migemo/migemo-dict; do
8040 if test -f "$f" -a -r "$f"; then break; fi
8041 done
8042 else
8043 migemo_command="cmigemo -q -d"
8044 for f in \
8045 /usr/local/share/migemo/utf-8/migemo-dict \
8046 /usr/local/share/cmigemo/utf-8/migemo-dict \
8047 /usr/share/migemo/utf-8/migemo-dict \
8048 /usr/share/cmigemo/utf-8/migemo-dict; do
8049 if test -f "$f" -a -r "$f"; then break; fi
8050 done
8051 fi
8052 migemo_command="$migemo_command $f"
8053 fi
8054 if test "${with_migemo+set}" = set -a "$with_migemo" != "no"; then
8055 $as_echo "#define USE_MIGEMO 1" >>confdefs.h
8056
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $migemo_command" >&5
8059 $as_echo "$migemo_command" >&6; }
8060 if test x"$migemo_command" = xno; then migemo_command=""; fi
8061 cat >>confdefs.h <<_ACEOF
8062 #define DEF_MIGEMO_COMMAND "$migemo_command"
8063 _ACEOF
8064
8065
8066 w3m_editor="/usr/bin/vi"
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which editor is used by default" >&5
8068 $as_echo_n "checking which editor is used by default... " >&6; }
8069
8070 # Check whether --with-editor was given.
8071 if test "${with_editor+set}" = set; then :
8072 withval=$with_editor; w3m_editor="$with_editor"
8073 fi
8074
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_editor" >&5
8076 $as_echo "$w3m_editor" >&6; }
8077 cat >>confdefs.h <<_ACEOF
8078 #define DEF_EDITOR "$w3m_editor"
8079 _ACEOF
8080
8081
8082 w3m_mailer="/usr/bin/mail"
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which mailer is used by default" >&5
8084 $as_echo_n "checking which mailer is used by default... " >&6; }
8085
8086 # Check whether --with-mailer was given.
8087 if test "${with_mailer+set}" = set; then :
8088 withval=$with_mailer; w3m_mailer="$with_mailer"
8089 fi
8090
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_mailer" >&5
8092 $as_echo "$w3m_mailer" >&6; }
8093 cat >>confdefs.h <<_ACEOF
8094 #define DEF_MAILER "$w3m_mailer"
8095 _ACEOF
8096
8097
8098 w3m_browser="/usr/bin/firefox"
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which external browser is used by default" >&5
8100 $as_echo_n "checking which external browser is used by default... " >&6; }
8101
8102 # Check whether --with-browser was given.
8103 if test "${with_browser+set}" = set; then :
8104 withval=$with_browser; w3m_browser="$with_browser"
8105 fi
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_browser" >&5
8108 $as_echo "$w3m_browser" >&6; }
8109 cat >>confdefs.h <<_ACEOF
8110 #define DEF_EXT_BROWSER "$w3m_browser"
8111 _ACEOF
8112
8113
8114 for lib in bsd BSD 44bsd socket nsl dld dl
8115 do
8116 lib=$lib
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$lib" >&5
8118 $as_echo_n "checking for -l$lib... " >&6; }
8119 extlib="not found"
8120 for dir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib /lib64 /usr/lib64
8121 do
8122 if test -f $dir/lib$lib.a -o -f $dir/lib$lib.so ; then
8123 LIBS="$LIBS -l$lib"
8124 extlib="found at $dir"
8125 break
8126 fi
8127 done
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extlib" >&5
8129 $as_echo "$extlib" >&6; }
8130 done
8131
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support is enabled" >&5
8133 $as_echo_n "checking if IPv6 support is enabled... " >&6; }
8134 # Check whether --enable-ipv6 was given.
8135 if test "${enable_ipv6+set}" = set; then :
8136 enableval=$enable_ipv6;
8137 else
8138 enable_ipv6="yes"
8139 fi
8140
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ipv6" >&5
8142 $as_echo "$enable_ipv6" >&6; }
8143
8144 if test x"$enable_ipv6" = xyes; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 API available" >&5
8146 $as_echo_n "checking if IPv6 API available... " >&6; }
8147
8148 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
8149 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
8150 enable_ipv6="yes"
8151 else
8152 enable_ipv6="no"
8153 fi
8154
8155 if test x"$enable_ipv6" = xno; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libinet6" >&5
8157 $as_echo_n "checking for libinet6... " >&6; }
8158 for dir in /usr/local/v6/lib /usr/local/lib /usr/lib
8159 do
8160 if test -f $dir/libinet6.a; then
8161 if test $dir != "/usr/lib"; then
8162 W3M_LIBS="$W3M_LIBS -L$dir"
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
8165 $as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
8166 if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 ac_check_lib_save_LIBS=$LIBS
8170 LIBS="-linet6 $LIBS"
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173
8174 /* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
8177 #ifdef __cplusplus
8178 extern "C"
8179 #endif
8180 char getaddrinfo ();
8181 int
8182 main ()
8183 {
8184 return getaddrinfo ();
8185 ;
8186 return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_link "$LINENO"; then :
8190 ac_cv_lib_inet6_getaddrinfo=yes
8191 else
8192 ac_cv_lib_inet6_getaddrinfo=no
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196 LIBS=$ac_check_lib_save_LIBS
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
8199 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
8200 if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
8201 enable_ipv6="yes"
8202 use_libinet6="found"; W3M_LIBS="$W3M_LIBS -linet6"; break
8203 else
8204 use_libinet6="not found"
8205 fi
8206
8207 fi
8208 done
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libinet6" >&5
8210 $as_echo "$use_libinet6" >&6; }
8211 fi
8212 if test x"$enable_ipv6" = xyes; then
8213
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_storage has an ss_family member" >&5
8215 $as_echo_n "checking if struct sockaddr_storage has an ss_family member... " >&6; }
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218
8219 #include <sys/types.h>
8220 #include <sys/socket.h>
8221
8222 int
8223 main ()
8224 {
8225
8226 struct sockaddr_storage ss;
8227 int i = ss.ss_family;
8228
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_compile "$LINENO"; then :
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8235 $as_echo "yes" >&6; }
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239
8240 #include <sys/types.h>
8241 #include <sys/socket.h>
8242
8243 int
8244 main ()
8245 {
8246
8247 struct sockaddr_storage ss;
8248 int i = ss.__ss_family;
8249
8250 ;
8251 return 0;
8252 }
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"; then :
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 $as_echo "#define HAVE_OLD_SS_FAMILY 1" >>confdefs.h
8258
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IPv6 support is disabled" >&5
8263 $as_echo "$as_me: WARNING: IPv6 support is disabled" >&2;}
8264 enable_ipv6="no"
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267
8268 fi
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 if test x"$enable_ipv6" = xyes; then
8272 $as_echo "#define INET6 1" >>confdefs.h
8273
8274 fi
8275 fi
8276
8277
8278
8279
8280
8281
8282 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8283 if test -n "$ac_tool_prefix"; then
8284 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8285 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 $as_echo_n "checking for $ac_word... " >&6; }
8288 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 case $PKG_CONFIG in
8292 [\\/]* | ?:[\\/]*)
8293 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8294 ;;
8295 *)
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8303 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8306 fi
8307 done
8308 done
8309 IFS=$as_save_IFS
8310
8311 ;;
8312 esac
8313 fi
8314 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8315 if test -n "$PKG_CONFIG"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8317 $as_echo "$PKG_CONFIG" >&6; }
8318 else
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323
8324 fi
8325 if test -z "$ac_cv_path_PKG_CONFIG"; then
8326 ac_pt_PKG_CONFIG=$PKG_CONFIG
8327 # Extract the first word of "pkg-config", so it can be a program name with args.
8328 set dummy pkg-config; ac_word=$2
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 $as_echo_n "checking for $ac_word... " >&6; }
8331 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 case $ac_pt_PKG_CONFIG in
8335 [\\/]* | ?:[\\/]*)
8336 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8337 ;;
8338 *)
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8346 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8349 fi
8350 done
8351 done
8352 IFS=$as_save_IFS
8353
8354 ;;
8355 esac
8356 fi
8357 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8358 if test -n "$ac_pt_PKG_CONFIG"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8360 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8364 fi
8365
8366 if test "x$ac_pt_PKG_CONFIG" = x; then
8367 PKG_CONFIG=""
8368 else
8369 case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373 ac_tool_warned=yes ;;
8374 esac
8375 PKG_CONFIG=$ac_pt_PKG_CONFIG
8376 fi
8377 else
8378 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8379 fi
8380
8381 fi
8382 if test -n "$PKG_CONFIG"; then
8383 _pkg_min_version=0.9.0
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8385 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8386 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8388 $as_echo "yes" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8392 PKG_CONFIG=""
8393 fi
8394 fi
8395
8396
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSL is supported" >&5
8398 $as_echo_n "checking if SSL is supported... " >&6; }
8399
8400 # Check whether --with-ssl was given.
8401 if test "${with_ssl+set}" = set; then :
8402 withval=$with_ssl;
8403 else
8404 with_ssl="yes"
8405 fi
8406
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
8408 $as_echo "$with_ssl" >&6; }
8409 if test x"$with_ssl" != xno; then
8410
8411 pkg_failed=no
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
8413 $as_echo_n "checking for SSL... " >&6; }
8414
8415 if test -n "$SSL_CFLAGS"; then
8416 pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
8417 elif test -n "$PKG_CONFIG"; then
8418 if test -n "$PKG_CONFIG" && \
8419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
8420 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
8421 ac_status=$?
8422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8423 test $ac_status = 0; }; then
8424 pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
8425 else
8426 pkg_failed=yes
8427 fi
8428 else
8429 pkg_failed=untried
8430 fi
8431 if test -n "$SSL_LIBS"; then
8432 pkg_cv_SSL_LIBS="$SSL_LIBS"
8433 elif test -n "$PKG_CONFIG"; then
8434 if test -n "$PKG_CONFIG" && \
8435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
8436 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
8437 ac_status=$?
8438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8439 test $ac_status = 0; }; then
8440 pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
8441 else
8442 pkg_failed=yes
8443 fi
8444 else
8445 pkg_failed=untried
8446 fi
8447
8448
8449
8450 if test $pkg_failed = yes; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453
8454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8455 _pkg_short_errors_supported=yes
8456 else
8457 _pkg_short_errors_supported=no
8458 fi
8459 if test $_pkg_short_errors_supported = yes; then
8460 SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1`
8461 else
8462 SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1`
8463 fi
8464 # Put the nasty error message in config.log where it belongs
8465 echo "$SSL_PKG_ERRORS" >&5
8466
8467
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library/header" >&5
8469 $as_echo_n "checking for SSL library/header... " >&6; }
8470 test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
8472 $as_echo "$with_ssl" >&6; }
8473 for dir in $with_ssl
8474 do
8475 if test -f "$dir/include/openssl/ssl.h"; then
8476 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl"
8477 if test "$dir" != "/usr"; then
8478 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
8479 fi
8480 elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then
8481 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
8482 fi
8483 if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
8484 SSL_LIBS="$SSL_LIBS -L$dir/lib"
8485 fi
8486 done
8487
8488 elif test $pkg_failed = untried; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8491
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library/header" >&5
8493 $as_echo_n "checking for SSL library/header... " >&6; }
8494 test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
8496 $as_echo "$with_ssl" >&6; }
8497 for dir in $with_ssl
8498 do
8499 if test -f "$dir/include/openssl/ssl.h"; then
8500 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl"
8501 if test "$dir" != "/usr"; then
8502 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
8503 fi
8504 elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then
8505 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
8506 fi
8507 if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
8508 SSL_LIBS="$SSL_LIBS -L$dir/lib"
8509 fi
8510 done
8511
8512 else
8513 SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
8514 SSL_LIBS=$pkg_cv_SSL_LIBS
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8516 $as_echo "yes" >&6; }
8517
8518 fi
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8520 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8521 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 ac_check_lib_save_LIBS=$LIBS
8525 LIBS="-lssl $SSL_LIBS -lcrypto $LIBS"
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528
8529 /* Override any GCC internal prototype to avoid an error.
8530 Use char because int might match the return type of a GCC
8531 builtin and then its argument prototype would still apply. */
8532 #ifdef __cplusplus
8533 extern "C"
8534 #endif
8535 char SSL_new ();
8536 int
8537 main ()
8538 {
8539 return SSL_new ();
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 ac_cv_lib_ssl_SSL_new=yes
8546 else
8547 ac_cv_lib_ssl_SSL_new=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8552 fi
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
8554 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
8555 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
8556 w3m_ssl="found"; CFLAGS="$CFLAGS $SSL_CFLAGS" W3M_LIBS="$W3M_LIBS $SSL_LIBS -lssl -lcrypto"
8557 else
8558 w3m_ssl="not found"
8559 fi
8560
8561
8562 if test x"$w3m_ssl" = xfound; then
8563 $as_echo "#define USE_SSL 1" >>confdefs.h
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSL certificate verification is enabled" >&5
8566 $as_echo_n "checking if SSL certificate verification is enabled... " >&6; }
8567 # Check whether --enable-sslverify was given.
8568 if test "${enable_sslverify+set}" = set; then :
8569 enableval=$enable_sslverify;
8570 else
8571 enable_sslverify="yes"
8572 fi
8573
8574 test x"$enable_sslverify" = xyes && $as_echo "#define USE_SSL_VERIFY 1" >>confdefs.h
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sslverify" >&5
8577 $as_echo "$enable_sslverify" >&6; }
8578 fi
8579 fi
8580
8581 w3m_cafile=""
8582 if test x"$enable_sslverify" = xyes; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CA file location" >&5
8584 $as_echo_n "checking for CA file location... " >&6; }
8585
8586 # Check whether --with-cafile was given.
8587 if test "${with_cafile+set}" = set; then :
8588 withval=$with_cafile;
8589 else
8590 with_cafile=no
8591 fi
8592
8593 if test x"$with_cafile" = xyes; then
8594 for f in /etc/ssl/certs/ca-certificates.crt \
8595 /etc/pki/tls/certs/ca-bundle.crt \
8596 /etc/ssl/ca-bundle.pem \
8597 /usr/ssl/certs/ca-bundle.crt \
8598 /usr/local/share/certs/ca-root-nss.crt \
8599 /etc/ssl/cert.pem \
8600 /etc/certs/ca-certificates.crt; do
8601 if test -f "$f" -a -r "$f"; then w3m_cafile="$f"; break; fi
8602 done
8603 elif test x"$with_cafile" != xno; then
8604 w3m_cafile="$with_cafile"
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_cafile" >&5
8607 $as_echo "$w3m_cafile" >&6; }
8608 fi
8609 cat >>confdefs.h <<_ACEOF
8610 #define DEF_CAFILE "$w3m_cafile"
8611 _ACEOF
8612
8613
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if digest auth is enabled" >&5
8615 $as_echo_n "checking if digest auth is enabled... " >&6; }
8616 # Check whether --enable-digest_auth was given.
8617 if test "${enable_digest_auth+set}" = set; then :
8618 enableval=$enable_digest_auth;
8619 else
8620 enable_digest_auth="yes"
8621 fi
8622
8623 if test x"$enable_digest_auth" = xyes -a x"$w3m_ssl" = xfound; then
8624 $as_echo "#define USE_DIGEST_AUTH 1" >>confdefs.h
8625
8626 else
8627 enable_digest_auth="no"
8628 fi
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_digest_auth" >&5
8630 $as_echo "$enable_digest_auth" >&6; }
8631
8632
8633 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
8634 if test "x$ac_cv_func_sqrt" = xyes; then :
8635
8636 else
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
8638 $as_echo_n "checking for sqrt in -lm... " >&6; }
8639 if ${ac_cv_lib_m_sqrt+:} false; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 ac_check_lib_save_LIBS=$LIBS
8643 LIBS="-lm $LIBS"
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646
8647 /* Override any GCC internal prototype to avoid an error.
8648 Use char because int might match the return type of a GCC
8649 builtin and then its argument prototype would still apply. */
8650 #ifdef __cplusplus
8651 extern "C"
8652 #endif
8653 char sqrt ();
8654 int
8655 main ()
8656 {
8657 return sqrt ();
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663 ac_cv_lib_m_sqrt=yes
8664 else
8665 ac_cv_lib_m_sqrt=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8669 LIBS=$ac_check_lib_save_LIBS
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
8672 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
8673 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
8674 cat >>confdefs.h <<_ACEOF
8675 #define HAVE_LIBM 1
8676 _ACEOF
8677
8678 LIBS="-lm $LIBS"
8679
8680 fi
8681
8682 fi
8683
8684 if test x"$enable_mouse" = xyes; then
8685
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
8687 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
8688 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 ac_check_lib_save_LIBS=$LIBS
8692 LIBS="-lgpm $LIBS"
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695
8696 /* Override any GCC internal prototype to avoid an error.
8697 Use char because int might match the return type of a GCC
8698 builtin and then its argument prototype would still apply. */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 char Gpm_Open ();
8703 int
8704 main ()
8705 {
8706 return Gpm_Open ();
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_link "$LINENO"; then :
8712 ac_cv_lib_gpm_Gpm_Open=yes
8713 else
8714 ac_cv_lib_gpm_Gpm_Open=no
8715 fi
8716 rm -f core conftest.err conftest.$ac_objext \
8717 conftest$ac_exeext conftest.$ac_ext
8718 LIBS=$ac_check_lib_save_LIBS
8719 fi
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8721 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
8722 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
8723 $as_echo "#define USE_GPM 1" >>confdefs.h
8724
8725 W3M_LIBS="$W3M_LIBS -lgpm"
8726 fi
8727
8728
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 #include <sys/consio.h>
8732 MOUSE_GETINFO
8733 _ACEOF
8734 if ac_fn_c_try_cpp "$LINENO"; then :
8735 $as_echo "#define USE_SYSMOUSE 1" >>confdefs.h
8736
8737 else
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 #include <machine/console.h>
8741 MOUSE_GETINFO
8742 _ACEOF
8743 if ac_fn_c_try_cpp "$LINENO"; then :
8744 $as_echo "#define USE_SYSMOUSE 1" >>confdefs.h
8745
8746 fi
8747 rm -f conftest.err conftest.i conftest.$ac_ext
8748 fi
8749 rm -f conftest.err conftest.i conftest.$ac_ext
8750 fi
8751
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking terminal library" >&5
8753 $as_echo_n "checking terminal library... " >&6; }
8754
8755 # Check whether --with-termlib was given.
8756 if test "${with_termlib+set}" = set; then :
8757 withval=$with_termlib;
8758 else
8759 with_termlib="yes"
8760 fi
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_termlib" >&5
8763 $as_echo "$with_termlib" >&6; }
8764 test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap tinfo ncurses curses"
8765 for lib in $with_termlib; do
8766 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_tgetent" | $as_tr_sh`
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l$lib" >&5
8768 $as_echo_n "checking for tgetent in -l$lib... " >&6; }
8769 if eval \${$as_ac_Lib+:} false; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 ac_check_lib_save_LIBS=$LIBS
8773 LIBS="-l$lib $LIBS"
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776
8777 /* Override any GCC internal prototype to avoid an error.
8778 Use char because int might match the return type of a GCC
8779 builtin and then its argument prototype would still apply. */
8780 #ifdef __cplusplus
8781 extern "C"
8782 #endif
8783 char tgetent ();
8784 int
8785 main ()
8786 {
8787 return tgetent ();
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_link "$LINENO"; then :
8793 eval "$as_ac_Lib=yes"
8794 else
8795 eval "$as_ac_Lib=no"
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 LIBS=$ac_check_lib_save_LIBS
8800 fi
8801 eval ac_res=\$$as_ac_Lib
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8803 $as_echo "$ac_res" >&6; }
8804 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8805 W3M_LIBS="$W3M_LIBS -l$lib"; break
8806 fi
8807
8808 done
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8811 $as_echo_n "checking for ANSI C header files... " >&6; }
8812 if ${ac_cv_header_stdc+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 #include <stdlib.h>
8818 #include <stdarg.h>
8819 #include <string.h>
8820 #include <float.h>
8821
8822 int
8823 main ()
8824 {
8825
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 if ac_fn_c_try_compile "$LINENO"; then :
8831 ac_cv_header_stdc=yes
8832 else
8833 ac_cv_header_stdc=no
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836
8837 if test $ac_cv_header_stdc = yes; then
8838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <string.h>
8842
8843 _ACEOF
8844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8845 $EGREP "memchr" >/dev/null 2>&1; then :
8846
8847 else
8848 ac_cv_header_stdc=no
8849 fi
8850 rm -f conftest*
8851
8852 fi
8853
8854 if test $ac_cv_header_stdc = yes; then
8855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <stdlib.h>
8859
8860 _ACEOF
8861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8862 $EGREP "free" >/dev/null 2>&1; then :
8863
8864 else
8865 ac_cv_header_stdc=no
8866 fi
8867 rm -f conftest*
8868
8869 fi
8870
8871 if test $ac_cv_header_stdc = yes; then
8872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8873 if test "$cross_compiling" = yes; then :
8874 :
8875 else
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 #include <ctype.h>
8879 #include <stdlib.h>
8880 #if ((' ' & 0x0FF) == 0x020)
8881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8883 #else
8884 # define ISLOWER(c) \
8885 (('a' <= (c) && (c) <= 'i') \
8886 || ('j' <= (c) && (c) <= 'r') \
8887 || ('s' <= (c) && (c) <= 'z'))
8888 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8889 #endif
8890
8891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8892 int
8893 main ()
8894 {
8895 int i;
8896 for (i = 0; i < 256; i++)
8897 if (XOR (islower (i), ISLOWER (i))
8898 || toupper (i) != TOUPPER (i))
8899 return 2;
8900 return 0;
8901 }
8902 _ACEOF
8903 if ac_fn_c_try_run "$LINENO"; then :
8904
8905 else
8906 ac_cv_header_stdc=no
8907 fi
8908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8909 conftest.$ac_objext conftest.beam conftest.$ac_ext
8910 fi
8911
8912 fi
8913 fi
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8915 $as_echo "$ac_cv_header_stdc" >&6; }
8916 if test $ac_cv_header_stdc = yes; then
8917
8918 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8919
8920 fi
8921
8922 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8923 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8924 inttypes.h stdint.h unistd.h
8925 do :
8926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8927 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8928 "
8929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8930 cat >>confdefs.h <<_ACEOF
8931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8932 _ACEOF
8933
8934 fi
8935
8936 done
8937
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library exists" >&5
8940 $as_echo_n "checking GC library exists... " >&6; }
8941
8942
8943 # Check whether --with-gc was given.
8944 if test "${with_gc+set}" = set; then :
8945 withval=$with_gc; test x"$with_gc" = xno && as_fn_error $? "You can not build w3m without GC" "$LINENO" 5
8946 else
8947 with_gc="yes"
8948 fi
8949
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
8951 $as_echo "$with_gc" >&6; }
8952 test x"$with_gc" = xyes && with_gc="/usr /usr/local ${HOME}"
8953 unset ac_cv_header_gc_h
8954 ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
8955 if test "x$ac_cv_header_gc_h" = xyes; then :
8956
8957 fi
8958
8959
8960 if test x"$ac_cv_header_gc_h" = xno; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC header location" >&5
8962 $as_echo_n "checking GC header location... " >&6; }
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
8964 $as_echo "$with_gc" >&6; }
8965 gcincludedir=no
8966 for dir in $with_gc; do
8967 for inc in include include/gc; do
8968 cppflags="$CPPFLAGS"
8969 CPPFLAGS="$CPPFLAGS -I$dir/$inc"
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $dir/$inc" >&5
8971 $as_echo_n "checking $dir/$inc... " >&6; }
8972 unset ac_cv_header_gc_h
8973 ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
8974 if test "x$ac_cv_header_gc_h" = xyes; then :
8975 gcincludedir="$dir/$inc"; CFLAGS="$CFLAGS -I$dir/$inc"; break
8976 fi
8977
8978
8979 CPPFLAGS="$cppflags"
8980 done
8981 if test x"$gcincludedir" != xno; then
8982 break;
8983 fi
8984 done
8985 if test x"$gcincludedir" = xno; then
8986 as_fn_error $? "gc.h not found" "$LINENO" 5
8987 fi
8988 fi
8989 unset ac_cv_lib_gc_GC_init
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_init in -lgc" >&5
8991 $as_echo_n "checking for GC_init in -lgc... " >&6; }
8992 if ${ac_cv_lib_gc_GC_init+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 ac_check_lib_save_LIBS=$LIBS
8996 LIBS="-lgc $LIBS"
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999
9000 /* Override any GCC internal prototype to avoid an error.
9001 Use char because int might match the return type of a GCC
9002 builtin and then its argument prototype would still apply. */
9003 #ifdef __cplusplus
9004 extern "C"
9005 #endif
9006 char GC_init ();
9007 int
9008 main ()
9009 {
9010 return GC_init ();
9011 ;
9012 return 0;
9013 }
9014 _ACEOF
9015 if ac_fn_c_try_link "$LINENO"; then :
9016 ac_cv_lib_gc_GC_init=yes
9017 else
9018 ac_cv_lib_gc_GC_init=no
9019 fi
9020 rm -f core conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5
9025 $as_echo "$ac_cv_lib_gc_GC_init" >&6; }
9026 if test "x$ac_cv_lib_gc_GC_init" = xyes; then :
9027 LIBGC="-lgc"
9028 fi
9029
9030 if test x"$ac_cv_lib_gc_GC_init" = xno; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library location" >&5
9032 $as_echo_n "checking GC library location... " >&6; }
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
9034 $as_echo "$with_gc" >&6; }
9035 gclibdir=no
9036 for dir in $with_gc; do
9037 ldflags="$LDFLAGS"
9038 LDFLAGS="$LDFLAGS -L$dir/lib"
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $dir" >&5
9040 $as_echo_n "checking $dir... " >&6; }
9041 unset ac_cv_lib_gc_GC_init
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_init in -lgc" >&5
9043 $as_echo_n "checking for GC_init in -lgc... " >&6; }
9044 if ${ac_cv_lib_gc_GC_init+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 ac_check_lib_save_LIBS=$LIBS
9048 LIBS="-lgc $LIBS"
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051
9052 /* Override any GCC internal prototype to avoid an error.
9053 Use char because int might match the return type of a GCC
9054 builtin and then its argument prototype would still apply. */
9055 #ifdef __cplusplus
9056 extern "C"
9057 #endif
9058 char GC_init ();
9059 int
9060 main ()
9061 {
9062 return GC_init ();
9063 ;
9064 return 0;
9065 }
9066 _ACEOF
9067 if ac_fn_c_try_link "$LINENO"; then :
9068 ac_cv_lib_gc_GC_init=yes
9069 else
9070 ac_cv_lib_gc_GC_init=no
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5
9077 $as_echo "$ac_cv_lib_gc_GC_init" >&6; }
9078 if test "x$ac_cv_lib_gc_GC_init" = xyes; then :
9079 gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break
9080 fi
9081
9082 LDFLAGS="$ldflags"
9083 done
9084 if test x"$gclibdir" = xno; then
9085 as_fn_error $? "libgc not found" "$LINENO" 5
9086 fi
9087 fi
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zError in -lz" >&5
9089 $as_echo_n "checking for zError in -lz... " >&6; }
9090 if ${ac_cv_lib_z_zError+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 ac_check_lib_save_LIBS=$LIBS
9094 LIBS="-lz $LIBS"
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097
9098 /* Override any GCC internal prototype to avoid an error.
9099 Use char because int might match the return type of a GCC
9100 builtin and then its argument prototype would still apply. */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 char zError ();
9105 int
9106 main ()
9107 {
9108 return zError ();
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 ac_cv_lib_z_zError=yes
9115 else
9116 ac_cv_lib_z_zError=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zError" >&5
9123 $as_echo "$ac_cv_lib_z_zError" >&6; }
9124 if test "x$ac_cv_lib_z_zError" = xyes; then :
9125 AUXBIN_TARGETS="$AUXBIN_TARGETS inflate\$(EXT)"
9126 fi
9127
9128
9129 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9130 #include <sys/socket.h>
9131 "
9132 if test "x$ac_cv_type_socklen_t" = xyes; then :
9133 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
9134
9135 fi
9136
9137
9138 $as_echo "#define AUXBIN_TARGETS \"\$AUXBIN_TARGETS\"" >>confdefs.h
9139
9140
9141
9142 case "$host_os" in
9143 *cygwin*|*os2-emx*|*mingw*)
9144 $as_echo "#define USE_BINMODE_STREAM 1" >>confdefs.h
9145
9146 ;;
9147 esac
9148
9149 ac_header_dirent=no
9150 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9151 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9153 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9154 if eval \${$as_ac_Header+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 #include <sys/types.h>
9160 #include <$ac_hdr>
9161
9162 int
9163 main ()
9164 {
9165 if ((DIR *) 0)
9166 return 0;
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_c_try_compile "$LINENO"; then :
9172 eval "$as_ac_Header=yes"
9173 else
9174 eval "$as_ac_Header=no"
9175 fi
9176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177 fi
9178 eval ac_res=\$$as_ac_Header
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9180 $as_echo "$ac_res" >&6; }
9181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9182 cat >>confdefs.h <<_ACEOF
9183 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9184 _ACEOF
9185
9186 ac_header_dirent=$ac_hdr; break
9187 fi
9188
9189 done
9190 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9191 if test $ac_header_dirent = dirent.h; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9193 $as_echo_n "checking for library containing opendir... " >&6; }
9194 if ${ac_cv_search_opendir+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 ac_func_search_save_LIBS=$LIBS
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char opendir ();
9208 int
9209 main ()
9210 {
9211 return opendir ();
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 for ac_lib in '' dir; do
9217 if test -z "$ac_lib"; then
9218 ac_res="none required"
9219 else
9220 ac_res=-l$ac_lib
9221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9222 fi
9223 if ac_fn_c_try_link "$LINENO"; then :
9224 ac_cv_search_opendir=$ac_res
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext
9228 if ${ac_cv_search_opendir+:} false; then :
9229 break
9230 fi
9231 done
9232 if ${ac_cv_search_opendir+:} false; then :
9233
9234 else
9235 ac_cv_search_opendir=no
9236 fi
9237 rm conftest.$ac_ext
9238 LIBS=$ac_func_search_save_LIBS
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9241 $as_echo "$ac_cv_search_opendir" >&6; }
9242 ac_res=$ac_cv_search_opendir
9243 if test "$ac_res" != no; then :
9244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9245
9246 fi
9247
9248 else
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9250 $as_echo_n "checking for library containing opendir... " >&6; }
9251 if ${ac_cv_search_opendir+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 ac_func_search_save_LIBS=$LIBS
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257
9258 /* Override any GCC internal prototype to avoid an error.
9259 Use char because int might match the return type of a GCC
9260 builtin and then its argument prototype would still apply. */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 char opendir ();
9265 int
9266 main ()
9267 {
9268 return opendir ();
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 for ac_lib in '' x; do
9274 if test -z "$ac_lib"; then
9275 ac_res="none required"
9276 else
9277 ac_res=-l$ac_lib
9278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9279 fi
9280 if ac_fn_c_try_link "$LINENO"; then :
9281 ac_cv_search_opendir=$ac_res
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext
9285 if ${ac_cv_search_opendir+:} false; then :
9286 break
9287 fi
9288 done
9289 if ${ac_cv_search_opendir+:} false; then :
9290
9291 else
9292 ac_cv_search_opendir=no
9293 fi
9294 rm conftest.$ac_ext
9295 LIBS=$ac_func_search_save_LIBS
9296 fi
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9298 $as_echo "$ac_cv_search_opendir" >&6; }
9299 ac_res=$ac_cv_search_opendir
9300 if test "$ac_res" != no; then :
9301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9302
9303 fi
9304
9305 fi
9306
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9308 $as_echo_n "checking for ANSI C header files... " >&6; }
9309 if ${ac_cv_header_stdc+:} false; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 #include <stdlib.h>
9315 #include <stdarg.h>
9316 #include <string.h>
9317 #include <float.h>
9318
9319 int
9320 main ()
9321 {
9322
9323 ;
9324 return 0;
9325 }
9326 _ACEOF
9327 if ac_fn_c_try_compile "$LINENO"; then :
9328 ac_cv_header_stdc=yes
9329 else
9330 ac_cv_header_stdc=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333
9334 if test $ac_cv_header_stdc = yes; then
9335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 #include <string.h>
9339
9340 _ACEOF
9341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9342 $EGREP "memchr" >/dev/null 2>&1; then :
9343
9344 else
9345 ac_cv_header_stdc=no
9346 fi
9347 rm -f conftest*
9348
9349 fi
9350
9351 if test $ac_cv_header_stdc = yes; then
9352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 #include <stdlib.h>
9356
9357 _ACEOF
9358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9359 $EGREP "free" >/dev/null 2>&1; then :
9360
9361 else
9362 ac_cv_header_stdc=no
9363 fi
9364 rm -f conftest*
9365
9366 fi
9367
9368 if test $ac_cv_header_stdc = yes; then
9369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9370 if test "$cross_compiling" = yes; then :
9371 :
9372 else
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375 #include <ctype.h>
9376 #include <stdlib.h>
9377 #if ((' ' & 0x0FF) == 0x020)
9378 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9379 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9380 #else
9381 # define ISLOWER(c) \
9382 (('a' <= (c) && (c) <= 'i') \
9383 || ('j' <= (c) && (c) <= 'r') \
9384 || ('s' <= (c) && (c) <= 'z'))
9385 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9386 #endif
9387
9388 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9389 int
9390 main ()
9391 {
9392 int i;
9393 for (i = 0; i < 256; i++)
9394 if (XOR (islower (i), ISLOWER (i))
9395 || toupper (i) != TOUPPER (i))
9396 return 2;
9397 return 0;
9398 }
9399 _ACEOF
9400 if ac_fn_c_try_run "$LINENO"; then :
9401
9402 else
9403 ac_cv_header_stdc=no
9404 fi
9405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9406 conftest.$ac_objext conftest.beam conftest.$ac_ext
9407 fi
9408
9409 fi
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9412 $as_echo "$ac_cv_header_stdc" >&6; }
9413 if test $ac_cv_header_stdc = yes; then
9414
9415 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9416
9417 fi
9418
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9420 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9421 if ${ac_cv_header_sys_wait_h+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 #include <sys/types.h>
9427 #include <sys/wait.h>
9428 #ifndef WEXITSTATUS
9429 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9430 #endif
9431 #ifndef WIFEXITED
9432 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9433 #endif
9434
9435 int
9436 main ()
9437 {
9438 int s;
9439 wait (&s);
9440 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9441 ;
9442 return 0;
9443 }
9444 _ACEOF
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 ac_cv_header_sys_wait_h=yes
9447 else
9448 ac_cv_header_sys_wait_h=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9453 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9454 if test $ac_cv_header_sys_wait_h = yes; then
9455
9456 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9457
9458 fi
9459
9460 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
9461 if test "x$ac_cv_header_termios_h" = xyes; then :
9462 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
9463
9464 else
9465 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
9466 if test "x$ac_cv_header_termio_h" = xyes; then :
9467 $as_echo "#define HAVE_TERMIO_H 1" >>confdefs.h
9468
9469 else
9470 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
9471 if test "x$ac_cv_header_sgtty_h" = xyes; then :
9472 $as_echo "#define HAVE_SGTTY_H 1" >>confdefs.h
9473
9474 fi
9475
9476
9477 fi
9478
9479
9480 fi
9481
9482
9483 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
9484 if test "x$ac_cv_header_float_h" = xyes; then :
9485 $as_echo "#define HAVE_FLOAT_H 1" >>confdefs.h
9486
9487 fi
9488
9489
9490 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
9491 if test "x$ac_cv_header_sys_select_h" = xyes; then :
9492 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
9493
9494 fi
9495
9496
9497 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
9498 if test "x$ac_cv_header_locale_h" = xyes; then :
9499 $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
9500
9501 fi
9502
9503
9504 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9505 if test "x$ac_cv_header_stdint_h" = xyes; then :
9506 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
9507
9508 fi
9509
9510
9511 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9512 if test "x$ac_cv_header_inttypes_h" = xyes; then :
9513 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9514
9515 fi
9516
9517
9518
9519 # The cast to long int works around a bug in the HP C Compiler
9520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9522 # This bug is HP SR number 8606223364.
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9524 $as_echo_n "checking size of long long... " >&6; }
9525 if ${ac_cv_sizeof_long_long+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9529
9530 else
9531 if test "$ac_cv_type_long_long" = yes; then
9532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9534 as_fn_error 77 "cannot compute sizeof (long long)
9535 See \`config.log' for more details" "$LINENO" 5; }
9536 else
9537 ac_cv_sizeof_long_long=0
9538 fi
9539 fi
9540
9541 fi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9543 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9544
9545
9546
9547 cat >>confdefs.h <<_ACEOF
9548 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9549 _ACEOF
9550
9551
9552
9553 for ac_func in strcasecmp strcasestr strchr memcpy strerror bcopy setpgrp chdir mkdtemp faccessat getcwd getwd readlink setenv putenv strtoll stroq atoll atoq symlink readlink lstat srand48 srandom getpassphrase waitpid setlocale
9554 do :
9555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9556 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9557 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9558 cat >>confdefs.h <<_ACEOF
9559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9560 _ACEOF
9561
9562 fi
9563 done
9564
9565 for ac_func in strftime
9566 do :
9567 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9568 if test "x$ac_cv_func_strftime" = xyes; then :
9569 cat >>confdefs.h <<_ACEOF
9570 #define HAVE_STRFTIME 1
9571 _ACEOF
9572
9573 else
9574 # strftime is in -lintl on SCO UNIX.
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9576 $as_echo_n "checking for strftime in -lintl... " >&6; }
9577 if ${ac_cv_lib_intl_strftime+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 ac_check_lib_save_LIBS=$LIBS
9581 LIBS="-lintl $LIBS"
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 char strftime ();
9592 int
9593 main ()
9594 {
9595 return strftime ();
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601 ac_cv_lib_intl_strftime=yes
9602 else
9603 ac_cv_lib_intl_strftime=no
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9610 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9611 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9612 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9613
9614 LIBS="-lintl $LIBS"
9615 fi
9616
9617 fi
9618 done
9619
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
9621 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
9622 if ${ac_cv_func_wait3_rusage+:} false; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 if test "$cross_compiling" = yes; then :
9626 ac_cv_func_wait3_rusage=no
9627 else
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 $ac_includes_default
9631 #include <sys/time.h>
9632 #include <sys/resource.h>
9633 #include <sys/wait.h>
9634 /* HP-UX has wait3 but does not fill in rusage at all. */
9635 int
9636 main ()
9637 {
9638 struct rusage r;
9639 int i;
9640 /* Use a field that we can force nonzero --
9641 voluntary context switches.
9642 For systems like NeXT and OSF/1 that don't set it,
9643 also use the system CPU time. And page faults (I/O) for Linux. */
9644 r.ru_nvcsw = 0;
9645 r.ru_stime.tv_sec = 0;
9646 r.ru_stime.tv_usec = 0;
9647 r.ru_majflt = r.ru_minflt = 0;
9648 switch (fork ())
9649 {
9650 case 0: /* Child. */
9651 sleep(1); /* Give up the CPU. */
9652 _exit(0);
9653 break;
9654 case -1: /* What can we do? */
9655 _exit(0);
9656 break;
9657 default: /* Parent. */
9658 wait3(&i, 0, &r);
9659 /* Avoid "text file busy" from rm on fast HP-UX machines. */
9660 sleep(2);
9661 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
9662 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
9663 }
9664 }
9665 _ACEOF
9666 if ac_fn_c_try_run "$LINENO"; then :
9667 ac_cv_func_wait3_rusage=yes
9668 else
9669 ac_cv_func_wait3_rusage=no
9670 fi
9671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9672 conftest.$ac_objext conftest.beam conftest.$ac_ext
9673 fi
9674
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
9677 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
9678 if test $ac_cv_func_wait3_rusage = yes; then
9679
9680 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
9681
9682 fi
9683
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
9685 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
9686 if ${ac_cv_func_setpgrp_void+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 if test "$cross_compiling" = yes; then :
9690 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 $ac_includes_default
9695 int
9696 main ()
9697 {
9698 /* If this system has a BSD-style setpgrp which takes arguments,
9699 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
9700 exit successfully. */
9701 return setpgrp (1,1) != -1;
9702 ;
9703 return 0;
9704 }
9705 _ACEOF
9706 if ac_fn_c_try_run "$LINENO"; then :
9707 ac_cv_func_setpgrp_void=no
9708 else
9709 ac_cv_func_setpgrp_void=yes
9710 fi
9711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9712 conftest.$ac_objext conftest.beam conftest.$ac_ext
9713 fi
9714
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
9717 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
9718 if test $ac_cv_func_setpgrp_void = yes; then
9719
9720 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
9721
9722 fi
9723
9724 case "$host_os" in
9725 *cygwin*)
9726 ;;
9727 *)
9728
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9730 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9731 if ${am_cv_langinfo_codeset+:} false; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 #include <langinfo.h>
9737 int
9738 main ()
9739 {
9740 char* cs = nl_langinfo(CODESET); return !cs;
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746 am_cv_langinfo_codeset=yes
9747 else
9748 am_cv_langinfo_codeset=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752
9753 fi
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9755 $as_echo "$am_cv_langinfo_codeset" >&6; }
9756 if test $am_cv_langinfo_codeset = yes; then
9757
9758 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9759
9760 fi
9761
9762 ;;
9763 esac
9764
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9766 $as_echo_n "checking for sigsetjmp... " >&6; }
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include <setjmp.h>
9770 #include <stdlib.h>
9771 int
9772 main ()
9773 {
9774 jmp_buf env;
9775 if (sigsetjmp(env, 1) != 0) { exit(0); } siglongjmp(env, 1);
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 if ac_fn_c_try_compile "$LINENO"; then :
9781 have_sigsetjmp="yes"; $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9782
9783 else
9784 have_sigsetjmp="no"
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sigsetjmp" >&5
9788 $as_echo "$have_sigsetjmp" >&6; }
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9790 $as_echo_n "checking return type of signal handlers... " >&6; }
9791 if ${ac_cv_type_signal+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796 #include <sys/types.h>
9797 #include <signal.h>
9798
9799 int
9800 main ()
9801 {
9802 return *(signal (0, 0)) (0) == 1;
9803 ;
9804 return 0;
9805 }
9806 _ACEOF
9807 if ac_fn_c_try_compile "$LINENO"; then :
9808 ac_cv_type_signal=int
9809 else
9810 ac_cv_type_signal=void
9811 fi
9812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813 fi
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9815 $as_echo "$ac_cv_type_signal" >&6; }
9816
9817 cat >>confdefs.h <<_ACEOF
9818 #define RETSIGTYPE $ac_cv_type_signal
9819 _ACEOF
9820
9821
9822
9823
9824 if test x"$ac_cv_type_signal" = xvoid; then
9825 $as_echo "#define SIGNAL_RETURN return" >>confdefs.h
9826
9827 else
9828 $as_echo "#define SIGNAL_RETURN return 0" >>confdefs.h
9829
9830 fi
9831
9832
9833 HELP_DIR="$datadir/$PACKAGE"
9834 $as_echo "#define HELP_DIR \"\$HELP_DIR\"" >>confdefs.h
9835
9836
9837 RC_DIR="~/.$PACKAGE"
9838 $as_echo "#define RC_DIR \"\$RC_DIR\"" >>confdefs.h
9839
9840
9841 DOCDIRS="doc:en_English doc-jp:ja_Japanese doc-de:de_German"
9842 cat >>confdefs.h <<_ACEOF
9843 #define DOCDIRS "$DOCDIRS"
9844 _ACEOF
9845
9846
9847
9848 cvsver=`$AWK '\$1 ~ /Id:/ { print \$3}' $srcdir/ChangeLog`
9849 ymdver=`sed -e 's/ .*//;s/-//g;q' $srcdir/ChangeLog`
9850 sed -e 's/define CURRENT_VERSION "\(.*\)YYYYMMDD/define CURRENT_VERSION "\1'$ymdver'/;s/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c
9851 CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c`
9852 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/w3mman.de.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"
9853
9854 cat >confcache <<\_ACEOF
9855 # This file is a shell script that caches the results of configure
9856 # tests run on this system so they can be shared between configure
9857 # scripts and configure runs, see configure's option --config-cache.
9858 # It is not useful on other systems. If it contains results you don't
9859 # want to keep, you may remove or edit it.
9860 #
9861 # config.status only pays attention to the cache file if you give it
9862 # the --recheck option to rerun configure.
9863 #
9864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9866 # following values.
9867
9868 _ACEOF
9869
9870 # The following way of writing the cache mishandles newlines in values,
9871 # but we know of no workaround that is simple, portable, and efficient.
9872 # So, we kill variables containing newlines.
9873 # Ultrix sh set writes to stderr and can't be redirected directly,
9874 # and sets the high bit in the cache file unless we assign to the vars.
9875 (
9876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9877 eval ac_val=\$$ac_var
9878 case $ac_val in #(
9879 *${as_nl}*)
9880 case $ac_var in #(
9881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9883 esac
9884 case $ac_var in #(
9885 _ | IFS | as_nl) ;; #(
9886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9887 *) { eval $ac_var=; unset $ac_var;} ;;
9888 esac ;;
9889 esac
9890 done
9891
9892 (set) 2>&1 |
9893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9894 *${as_nl}ac_space=\ *)
9895 # `set' does not quote correctly, so add quotes: double-quote
9896 # substitution turns \\\\ into \\, and sed turns \\ into \.
9897 sed -n \
9898 "s/'/'\\\\''/g;
9899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9900 ;; #(
9901 *)
9902 # `set' quotes correctly as required by POSIX, so do not add quotes.
9903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9904 ;;
9905 esac |
9906 sort
9907 ) |
9908 sed '
9909 /^ac_cv_env_/b end
9910 t clear
9911 :clear
9912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9913 t end
9914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9915 :end' >>confcache
9916 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9917 if test -w "$cache_file"; then
9918 if test "x$cache_file" != "x/dev/null"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9920 $as_echo "$as_me: updating cache $cache_file" >&6;}
9921 if test ! -f "$cache_file" || test -h "$cache_file"; then
9922 cat confcache >"$cache_file"
9923 else
9924 case $cache_file in #(
9925 */* | ?:*)
9926 mv -f confcache "$cache_file"$$ &&
9927 mv -f "$cache_file"$$ "$cache_file" ;; #(
9928 *)
9929 mv -f confcache "$cache_file" ;;
9930 esac
9931 fi
9932 fi
9933 else
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9935 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9936 fi
9937 fi
9938 rm -f confcache
9939
9940 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9941 # Let make expand exec_prefix.
9942 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9943
9944 DEFS=-DHAVE_CONFIG_H
9945
9946 ac_libobjs=
9947 ac_ltlibobjs=
9948 U=
9949 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9950 # 1. Remove the extension, and $U if already installed.
9951 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9952 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9953 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9954 # will be set to the directory where LIBOBJS objects are built.
9955 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9956 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9957 done
9958 LIBOBJS=$ac_libobjs
9959
9960 LTLIBOBJS=$ac_ltlibobjs
9961
9962
9963
9964 : "${CONFIG_STATUS=./config.status}"
9965 ac_write_fail=0
9966 ac_clean_files_save=$ac_clean_files
9967 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9969 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9970 as_write_fail=0
9971 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9972 #! $SHELL
9973 # Generated by $as_me.
9974 # Run this file to recreate the current configuration.
9975 # Compiler output produced by configure, useful for debugging
9976 # configure, is in config.log if it exists.
9977
9978 debug=false
9979 ac_cs_recheck=false
9980 ac_cs_silent=false
9981
9982 SHELL=\${CONFIG_SHELL-$SHELL}
9983 export SHELL
9984 _ASEOF
9985 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9986 ## -------------------- ##
9987 ## M4sh Initialization. ##
9988 ## -------------------- ##
9989
9990 # Be more Bourne compatible
9991 DUALCASE=1; export DUALCASE # for MKS sh
9992 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9993 emulate sh
9994 NULLCMD=:
9995 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9996 # is contrary to our usage. Disable this feature.
9997 alias -g '${1+"$@"}'='"$@"'
9998 setopt NO_GLOB_SUBST
9999 else
10000 case `(set -o) 2>/dev/null` in #(
10001 *posix*) :
10002 set -o posix ;; #(
10003 *) :
10004 ;;
10005 esac
10006 fi
10007
10008
10009 as_nl='
10010 '
10011 export as_nl
10012 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10013 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10015 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10016 # Prefer a ksh shell builtin over an external printf program on Solaris,
10017 # but without wasting forks for bash or zsh.
10018 if test -z "$BASH_VERSION$ZSH_VERSION" \
10019 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10020 as_echo='print -r --'
10021 as_echo_n='print -rn --'
10022 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10023 as_echo='printf %s\n'
10024 as_echo_n='printf %s'
10025 else
10026 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10027 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10028 as_echo_n='/usr/ucb/echo -n'
10029 else
10030 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10031 as_echo_n_body='eval
10032 arg=$1;
10033 case $arg in #(
10034 *"$as_nl"*)
10035 expr "X$arg" : "X\\(.*\\)$as_nl";
10036 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10037 esac;
10038 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10039 '
10040 export as_echo_n_body
10041 as_echo_n='sh -c $as_echo_n_body as_echo'
10042 fi
10043 export as_echo_body
10044 as_echo='sh -c $as_echo_body as_echo'
10045 fi
10046
10047 # The user is always right.
10048 if test "${PATH_SEPARATOR+set}" != set; then
10049 PATH_SEPARATOR=:
10050 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10051 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10052 PATH_SEPARATOR=';'
10053 }
10054 fi
10055
10056
10057 # IFS
10058 # We need space, tab and new line, in precisely that order. Quoting is
10059 # there to prevent editors from complaining about space-tab.
10060 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10061 # splitting by setting IFS to empty value.)
10062 IFS=" "" $as_nl"
10063
10064 # Find who we are. Look in the path if we contain no directory separator.
10065 as_myself=
10066 case $0 in #((
10067 *[\\/]* ) as_myself=$0 ;;
10068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in $PATH
10070 do
10071 IFS=$as_save_IFS
10072 test -z "$as_dir" && as_dir=.
10073 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10074 done
10075 IFS=$as_save_IFS
10076
10077 ;;
10078 esac
10079 # We did not find ourselves, most probably we were run as `sh COMMAND'
10080 # in which case we are not to be found in the path.
10081 if test "x$as_myself" = x; then
10082 as_myself=$0
10083 fi
10084 if test ! -f "$as_myself"; then
10085 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10086 exit 1
10087 fi
10088
10089 # Unset variables that we do not need and which cause bugs (e.g. in
10090 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10091 # suppresses any "Segmentation fault" message there. '((' could
10092 # trigger a bug in pdksh 5.2.14.
10093 for as_var in BASH_ENV ENV MAIL MAILPATH
10094 do eval test x\${$as_var+set} = xset \
10095 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10096 done
10097 PS1='$ '
10098 PS2='> '
10099 PS4='+ '
10100
10101 # NLS nuisances.
10102 LC_ALL=C
10103 export LC_ALL
10104 LANGUAGE=C
10105 export LANGUAGE
10106
10107 # CDPATH.
10108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10109
10110
10111 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10112 # ----------------------------------------
10113 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10114 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10115 # script with STATUS, using 1 if that was 0.
10116 as_fn_error ()
10117 {
10118 as_status=$1; test $as_status -eq 0 && as_status=1
10119 if test "$4"; then
10120 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10121 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10122 fi
10123 $as_echo "$as_me: error: $2" >&2
10124 as_fn_exit $as_status
10125 } # as_fn_error
10126
10127
10128 # as_fn_set_status STATUS
10129 # -----------------------
10130 # Set $? to STATUS, without forking.
10131 as_fn_set_status ()
10132 {
10133 return $1
10134 } # as_fn_set_status
10135
10136 # as_fn_exit STATUS
10137 # -----------------
10138 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10139 as_fn_exit ()
10140 {
10141 set +e
10142 as_fn_set_status $1
10143 exit $1
10144 } # as_fn_exit
10145
10146 # as_fn_unset VAR
10147 # ---------------
10148 # Portably unset VAR.
10149 as_fn_unset ()
10150 {
10151 { eval $1=; unset $1;}
10152 }
10153 as_unset=as_fn_unset
10154 # as_fn_append VAR VALUE
10155 # ----------------------
10156 # Append the text in VALUE to the end of the definition contained in VAR. Take
10157 # advantage of any shell optimizations that allow amortized linear growth over
10158 # repeated appends, instead of the typical quadratic growth present in naive
10159 # implementations.
10160 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10161 eval 'as_fn_append ()
10162 {
10163 eval $1+=\$2
10164 }'
10165 else
10166 as_fn_append ()
10167 {
10168 eval $1=\$$1\$2
10169 }
10170 fi # as_fn_append
10171
10172 # as_fn_arith ARG...
10173 # ------------------
10174 # Perform arithmetic evaluation on the ARGs, and store the result in the
10175 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10176 # must be portable across $(()) and expr.
10177 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10178 eval 'as_fn_arith ()
10179 {
10180 as_val=$(( $* ))
10181 }'
10182 else
10183 as_fn_arith ()
10184 {
10185 as_val=`expr "$@" || test $? -eq 1`
10186 }
10187 fi # as_fn_arith
10188
10189
10190 if expr a : '\(a\)' >/dev/null 2>&1 &&
10191 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10192 as_expr=expr
10193 else
10194 as_expr=false
10195 fi
10196
10197 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10198 as_basename=basename
10199 else
10200 as_basename=false
10201 fi
10202
10203 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10204 as_dirname=dirname
10205 else
10206 as_dirname=false
10207 fi
10208
10209 as_me=`$as_basename -- "$0" ||
10210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10211 X"$0" : 'X\(//\)$' \| \
10212 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10213 $as_echo X/"$0" |
10214 sed '/^.*\/\([^/][^/]*\)\/*$/{
10215 s//\1/
10216 q
10217 }
10218 /^X\/\(\/\/\)$/{
10219 s//\1/
10220 q
10221 }
10222 /^X\/\(\/\).*/{
10223 s//\1/
10224 q
10225 }
10226 s/.*/./; q'`
10227
10228 # Avoid depending upon Character Ranges.
10229 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10230 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10231 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10232 as_cr_digits='0123456789'
10233 as_cr_alnum=$as_cr_Letters$as_cr_digits
10234
10235 ECHO_C= ECHO_N= ECHO_T=
10236 case `echo -n x` in #(((((
10237 -n*)
10238 case `echo 'xy\c'` in
10239 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10240 xy) ECHO_C='\c';;
10241 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10242 ECHO_T=' ';;
10243 esac;;
10244 *)
10245 ECHO_N='-n';;
10246 esac
10247
10248 rm -f conf$$ conf$$.exe conf$$.file
10249 if test -d conf$$.dir; then
10250 rm -f conf$$.dir/conf$$.file
10251 else
10252 rm -f conf$$.dir
10253 mkdir conf$$.dir 2>/dev/null
10254 fi
10255 if (echo >conf$$.file) 2>/dev/null; then
10256 if ln -s conf$$.file conf$$ 2>/dev/null; then
10257 as_ln_s='ln -s'
10258 # ... but there are two gotchas:
10259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10261 # In both cases, we have to default to `cp -pR'.
10262 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10263 as_ln_s='cp -pR'
10264 elif ln conf$$.file conf$$ 2>/dev/null; then
10265 as_ln_s=ln
10266 else
10267 as_ln_s='cp -pR'
10268 fi
10269 else
10270 as_ln_s='cp -pR'
10271 fi
10272 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10273 rmdir conf$$.dir 2>/dev/null
10274
10275
10276 # as_fn_mkdir_p
10277 # -------------
10278 # Create "$as_dir" as a directory, including parents if necessary.
10279 as_fn_mkdir_p ()
10280 {
10281
10282 case $as_dir in #(
10283 -*) as_dir=./$as_dir;;
10284 esac
10285 test -d "$as_dir" || eval $as_mkdir_p || {
10286 as_dirs=
10287 while :; do
10288 case $as_dir in #(
10289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10290 *) as_qdir=$as_dir;;
10291 esac
10292 as_dirs="'$as_qdir' $as_dirs"
10293 as_dir=`$as_dirname -- "$as_dir" ||
10294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10295 X"$as_dir" : 'X\(//\)[^/]' \| \
10296 X"$as_dir" : 'X\(//\)$' \| \
10297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10298 $as_echo X"$as_dir" |
10299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10300 s//\1/
10301 q
10302 }
10303 /^X\(\/\/\)[^/].*/{
10304 s//\1/
10305 q
10306 }
10307 /^X\(\/\/\)$/{
10308 s//\1/
10309 q
10310 }
10311 /^X\(\/\).*/{
10312 s//\1/
10313 q
10314 }
10315 s/.*/./; q'`
10316 test -d "$as_dir" && break
10317 done
10318 test -z "$as_dirs" || eval "mkdir $as_dirs"
10319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10320
10321
10322 } # as_fn_mkdir_p
10323 if mkdir -p . 2>/dev/null; then
10324 as_mkdir_p='mkdir -p "$as_dir"'
10325 else
10326 test -d ./-p && rmdir ./-p
10327 as_mkdir_p=false
10328 fi
10329
10330
10331 # as_fn_executable_p FILE
10332 # -----------------------
10333 # Test if FILE is an executable regular file.
10334 as_fn_executable_p ()
10335 {
10336 test -f "$1" && test -x "$1"
10337 } # as_fn_executable_p
10338 as_test_x='test -x'
10339 as_executable_p=as_fn_executable_p
10340
10341 # Sed expression to map a string onto a valid CPP name.
10342 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10343
10344 # Sed expression to map a string onto a valid variable name.
10345 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10346
10347
10348 exec 6>&1
10349 ## ----------------------------------- ##
10350 ## Main body of $CONFIG_STATUS script. ##
10351 ## ----------------------------------- ##
10352 _ASEOF
10353 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10354
10355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10356 # Save the log message, to keep $0 and so on meaningful, and to
10357 # report actual input values of CONFIG_FILES etc. instead of their
10358 # values after options handling.
10359 ac_log="
10360 This file was extended by w3m $as_me 0.5.3, which was
10361 generated by GNU Autoconf 2.69. Invocation command line was
10362
10363 CONFIG_FILES = $CONFIG_FILES
10364 CONFIG_HEADERS = $CONFIG_HEADERS
10365 CONFIG_LINKS = $CONFIG_LINKS
10366 CONFIG_COMMANDS = $CONFIG_COMMANDS
10367 $ $0 $@
10368
10369 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10370 "
10371
10372 _ACEOF
10373
10374 case $ac_config_files in *"
10375 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10376 esac
10377
10378 case $ac_config_headers in *"
10379 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10380 esac
10381
10382
10383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10384 # Files that config.status was made for.
10385 config_files="$ac_config_files"
10386 config_headers="$ac_config_headers"
10387 config_commands="$ac_config_commands"
10388
10389 _ACEOF
10390
10391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10392 ac_cs_usage="\
10393 \`$as_me' instantiates files and other configuration actions
10394 from templates according to the current configuration. Unless the files
10395 and actions are specified as TAGs, all are instantiated by default.
10396
10397 Usage: $0 [OPTION]... [TAG]...
10398
10399 -h, --help print this help, then exit
10400 -V, --version print version number and configuration settings, then exit
10401 --config print configuration, then exit
10402 -q, --quiet, --silent
10403 do not print progress messages
10404 -d, --debug don't remove temporary files
10405 --recheck update $as_me by reconfiguring in the same conditions
10406 --file=FILE[:TEMPLATE]
10407 instantiate the configuration file FILE
10408 --header=FILE[:TEMPLATE]
10409 instantiate the configuration header FILE
10410
10411 Configuration files:
10412 $config_files
10413
10414 Configuration headers:
10415 $config_headers
10416
10417 Configuration commands:
10418 $config_commands
10419
10420 Report bugs to the package provider."
10421
10422 _ACEOF
10423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10424 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10425 ac_cs_version="\\
10426 w3m config.status 0.5.3
10427 configured by $0, generated by GNU Autoconf 2.69,
10428 with options \\"\$ac_cs_config\\"
10429
10430 Copyright (C) 2012 Free Software Foundation, Inc.
10431 This config.status script is free software; the Free Software Foundation
10432 gives unlimited permission to copy, distribute and modify it."
10433
10434 ac_pwd='$ac_pwd'
10435 srcdir='$srcdir'
10436 INSTALL='$INSTALL'
10437 MKDIR_P='$MKDIR_P'
10438 AWK='$AWK'
10439 test -n "\$AWK" || AWK=awk
10440 _ACEOF
10441
10442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10443 # The default lists apply if the user does not specify any file.
10444 ac_need_defaults=:
10445 while test $# != 0
10446 do
10447 case $1 in
10448 --*=?*)
10449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10451 ac_shift=:
10452 ;;
10453 --*=)
10454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10455 ac_optarg=
10456 ac_shift=:
10457 ;;
10458 *)
10459 ac_option=$1
10460 ac_optarg=$2
10461 ac_shift=shift
10462 ;;
10463 esac
10464
10465 case $ac_option in
10466 # Handling of the options.
10467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10468 ac_cs_recheck=: ;;
10469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10470 $as_echo "$ac_cs_version"; exit ;;
10471 --config | --confi | --conf | --con | --co | --c )
10472 $as_echo "$ac_cs_config"; exit ;;
10473 --debug | --debu | --deb | --de | --d | -d )
10474 debug=: ;;
10475 --file | --fil | --fi | --f )
10476 $ac_shift
10477 case $ac_optarg in
10478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10479 '') as_fn_error $? "missing file argument" ;;
10480 esac
10481 as_fn_append CONFIG_FILES " '$ac_optarg'"
10482 ac_need_defaults=false;;
10483 --header | --heade | --head | --hea )
10484 $ac_shift
10485 case $ac_optarg in
10486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10487 esac
10488 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10489 ac_need_defaults=false;;
10490 --he | --h)
10491 # Conflict between --help and --header
10492 as_fn_error $? "ambiguous option: \`$1'
10493 Try \`$0 --help' for more information.";;
10494 --help | --hel | -h )
10495 $as_echo "$ac_cs_usage"; exit ;;
10496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10498 ac_cs_silent=: ;;
10499
10500 # This is an error.
10501 -*) as_fn_error $? "unrecognized option: \`$1'
10502 Try \`$0 --help' for more information." ;;
10503
10504 *) as_fn_append ac_config_targets " $1"
10505 ac_need_defaults=false ;;
10506
10507 esac
10508 shift
10509 done
10510
10511 ac_configure_extra_args=
10512
10513 if $ac_cs_silent; then
10514 exec 6>/dev/null
10515 ac_configure_extra_args="$ac_configure_extra_args --silent"
10516 fi
10517
10518 _ACEOF
10519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10520 if \$ac_cs_recheck; then
10521 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10522 shift
10523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10524 CONFIG_SHELL='$SHELL'
10525 export CONFIG_SHELL
10526 exec "\$@"
10527 fi
10528
10529 _ACEOF
10530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10531 exec 5>>config.log
10532 {
10533 echo
10534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10535 ## Running $as_me. ##
10536 _ASBOX
10537 $as_echo "$ac_log"
10538 } >&5
10539
10540 _ACEOF
10541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10542 #
10543 # INIT-COMMANDS
10544 #
10545 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10546 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10547 # from automake < 1.5.
10548 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10549 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10550 LINGUAS="${LINGUAS-%UNSET%}"
10551
10552
10553 _ACEOF
10554
10555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10556
10557 # Handling of arguments.
10558 for ac_config_target in $ac_config_targets
10559 do
10560 case $ac_config_target in
10561 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10562 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10563 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10564 "posubst") CONFIG_FILES="$CONFIG_FILES posubst" ;;
10565 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10566 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10567 "scripts/dirlist.cgi") CONFIG_FILES="$CONFIG_FILES scripts/dirlist.cgi" ;;
10568 "scripts/w3mhelp.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mhelp.cgi" ;;
10569 "scripts/w3mmail.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mmail.cgi" ;;
10570 "scripts/xface2xpm") CONFIG_FILES="$CONFIG_FILES scripts/xface2xpm" ;;
10571 "scripts/multipart/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/multipart/Makefile" ;;
10572 "scripts/multipart/multipart.cgi") CONFIG_FILES="$CONFIG_FILES scripts/multipart/multipart.cgi" ;;
10573 "scripts/w3mman/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/Makefile" ;;
10574 "scripts/w3mman/w3mman") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman" ;;
10575 "scripts/w3mman/w3mman.1") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman.1" ;;
10576 "scripts/w3mman/w3mman.de.1") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman.de.1" ;;
10577 "scripts/w3mman/w3mman2html.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman2html.cgi" ;;
10578 "libwc/Makefile") CONFIG_FILES="$CONFIG_FILES libwc/Makefile" ;;
10579 "w3mimg/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/Makefile" ;;
10580 "w3mimg/fb/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/fb/Makefile" ;;
10581 "w3mimg/x11/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/x11/Makefile" ;;
10582 "w3mimg/win/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/win/Makefile" ;;
10583 "w3mhelp-w3m_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_en.html" ;;
10584 "w3mhelp-w3m_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_ja.html" ;;
10585 "w3mhelp-lynx_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_en.html" ;;
10586 "w3mhelp-lynx_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_ja.html" ;;
10587
10588 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10589 esac
10590 done
10591
10592
10593 # If the user did not use the arguments to specify the items to instantiate,
10594 # then the envvar interface is used. Set only those that are not.
10595 # We use the long form for the default assignment because of an extremely
10596 # bizarre bug on SunOS 4.1.3.
10597 if $ac_need_defaults; then
10598 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10599 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10600 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10601 fi
10602
10603 # Have a temporary directory for convenience. Make it in the build tree
10604 # simply because there is no reason against having it here, and in addition,
10605 # creating and moving files from /tmp can sometimes cause problems.
10606 # Hook for its removal unless debugging.
10607 # Note that there is a small window in which the directory will not be cleaned:
10608 # after its creation but before its name has been assigned to `$tmp'.
10609 $debug ||
10610 {
10611 tmp= ac_tmp=
10612 trap 'exit_status=$?
10613 : "${ac_tmp:=$tmp}"
10614 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10615 ' 0
10616 trap 'as_fn_exit 1' 1 2 13 15
10617 }
10618 # Create a (secure) tmp directory for tmp files.
10619
10620 {
10621 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10622 test -d "$tmp"
10623 } ||
10624 {
10625 tmp=./conf$$-$RANDOM
10626 (umask 077 && mkdir "$tmp")
10627 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10628 ac_tmp=$tmp
10629
10630 # Set up the scripts for CONFIG_FILES section.
10631 # No need to generate them if there are no CONFIG_FILES.
10632 # This happens for instance with `./config.status config.h'.
10633 if test -n "$CONFIG_FILES"; then
10634
10635
10636 ac_cr=`echo X | tr X '\015'`
10637 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10638 # But we know of no other shell where ac_cr would be empty at this
10639 # point, so we can use a bashism as a fallback.
10640 if test "x$ac_cr" = x; then
10641 eval ac_cr=\$\'\\r\'
10642 fi
10643 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10644 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10645 ac_cs_awk_cr='\\r'
10646 else
10647 ac_cs_awk_cr=$ac_cr
10648 fi
10649
10650 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10651 _ACEOF
10652
10653
10654 {
10655 echo "cat >conf$$subs.awk <<_ACEOF" &&
10656 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10657 echo "_ACEOF"
10658 } >conf$$subs.sh ||
10659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10660 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10661 ac_delim='%!_!# '
10662 for ac_last_try in false false false false false :; do
10663 . ./conf$$subs.sh ||
10664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10665
10666 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10667 if test $ac_delim_n = $ac_delim_num; then
10668 break
10669 elif $ac_last_try; then
10670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10671 else
10672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10673 fi
10674 done
10675 rm -f conf$$subs.sh
10676
10677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10678 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10679 _ACEOF
10680 sed -n '
10681 h
10682 s/^/S["/; s/!.*/"]=/
10683 p
10684 g
10685 s/^[^!]*!//
10686 :repl
10687 t repl
10688 s/'"$ac_delim"'$//
10689 t delim
10690 :nl
10691 h
10692 s/\(.\{148\}\)..*/\1/
10693 t more1
10694 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10695 p
10696 n
10697 b repl
10698 :more1
10699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10700 p
10701 g
10702 s/.\{148\}//
10703 t nl
10704 :delim
10705 h
10706 s/\(.\{148\}\)..*/\1/
10707 t more2
10708 s/["\\]/\\&/g; s/^/"/; s/$/"/
10709 p
10710 b
10711 :more2
10712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10713 p
10714 g
10715 s/.\{148\}//
10716 t delim
10717 ' <conf$$subs.awk | sed '
10718 /^[^""]/{
10719 N
10720 s/\n//
10721 }
10722 ' >>$CONFIG_STATUS || ac_write_fail=1
10723 rm -f conf$$subs.awk
10724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10725 _ACAWK
10726 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10727 for (key in S) S_is_set[key] = 1
10728 FS = ""
10729
10730 }
10731 {
10732 line = $ 0
10733 nfields = split(line, field, "@")
10734 substed = 0
10735 len = length(field[1])
10736 for (i = 2; i < nfields; i++) {
10737 key = field[i]
10738 keylen = length(key)
10739 if (S_is_set[key]) {
10740 value = S[key]
10741 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10742 len += length(value) + length(field[++i])
10743 substed = 1
10744 } else
10745 len += 1 + keylen
10746 }
10747
10748 print line
10749 }
10750
10751 _ACAWK
10752 _ACEOF
10753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10754 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10755 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10756 else
10757 cat
10758 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10759 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10760 _ACEOF
10761
10762 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10763 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10764 # trailing colons and then remove the whole line if VPATH becomes empty
10765 # (actually we leave an empty line to preserve line numbers).
10766 if test "x$srcdir" = x.; then
10767 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10768 h
10769 s///
10770 s/^/:/
10771 s/[ ]*$/:/
10772 s/:\$(srcdir):/:/g
10773 s/:\${srcdir}:/:/g
10774 s/:@srcdir@:/:/g
10775 s/^:*//
10776 s/:*$//
10777 x
10778 s/\(=[ ]*\).*/\1/
10779 G
10780 s/\n//
10781 s/^[^=]*=[ ]*$//
10782 }'
10783 fi
10784
10785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10786 fi # test -n "$CONFIG_FILES"
10787
10788 # Set up the scripts for CONFIG_HEADERS section.
10789 # No need to generate them if there are no CONFIG_HEADERS.
10790 # This happens for instance with `./config.status Makefile'.
10791 if test -n "$CONFIG_HEADERS"; then
10792 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10793 BEGIN {
10794 _ACEOF
10795
10796 # Transform confdefs.h into an awk script `defines.awk', embedded as
10797 # here-document in config.status, that substitutes the proper values into
10798 # config.h.in to produce config.h.
10799
10800 # Create a delimiter string that does not exist in confdefs.h, to ease
10801 # handling of long lines.
10802 ac_delim='%!_!# '
10803 for ac_last_try in false false :; do
10804 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10805 if test -z "$ac_tt"; then
10806 break
10807 elif $ac_last_try; then
10808 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10809 else
10810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10811 fi
10812 done
10813
10814 # For the awk script, D is an array of macro values keyed by name,
10815 # likewise P contains macro parameters if any. Preserve backslash
10816 # newline sequences.
10817
10818 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10819 sed -n '
10820 s/.\{148\}/&'"$ac_delim"'/g
10821 t rset
10822 :rset
10823 s/^[ ]*#[ ]*define[ ][ ]*/ /
10824 t def
10825 d
10826 :def
10827 s/\\$//
10828 t bsnl
10829 s/["\\]/\\&/g
10830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10831 D["\1"]=" \3"/p
10832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10833 d
10834 :bsnl
10835 s/["\\]/\\&/g
10836 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10837 D["\1"]=" \3\\\\\\n"\\/p
10838 t cont
10839 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10840 t cont
10841 d
10842 :cont
10843 n
10844 s/.\{148\}/&'"$ac_delim"'/g
10845 t clear
10846 :clear
10847 s/\\$//
10848 t bsnlc
10849 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10850 d
10851 :bsnlc
10852 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10853 b cont
10854 ' <confdefs.h | sed '
10855 s/'"$ac_delim"'/"\\\
10856 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10857
10858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10859 for (key in D) D_is_set[key] = 1
10860 FS = ""
10861 }
10862 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10863 line = \$ 0
10864 split(line, arg, " ")
10865 if (arg[1] == "#") {
10866 defundef = arg[2]
10867 mac1 = arg[3]
10868 } else {
10869 defundef = substr(arg[1], 2)
10870 mac1 = arg[2]
10871 }
10872 split(mac1, mac2, "(") #)
10873 macro = mac2[1]
10874 prefix = substr(line, 1, index(line, defundef) - 1)
10875 if (D_is_set[macro]) {
10876 # Preserve the white space surrounding the "#".
10877 print prefix "define", macro P[macro] D[macro]
10878 next
10879 } else {
10880 # Replace #undef with comments. This is necessary, for example,
10881 # in the case of _POSIX_SOURCE, which is predefined and required
10882 # on some systems where configure will not decide to define it.
10883 if (defundef == "undef") {
10884 print "/*", prefix defundef, macro, "*/"
10885 next
10886 }
10887 }
10888 }
10889 { print }
10890 _ACAWK
10891 _ACEOF
10892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10893 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10894 fi # test -n "$CONFIG_HEADERS"
10895
10896
10897 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10898 shift
10899 for ac_tag
10900 do
10901 case $ac_tag in
10902 :[FHLC]) ac_mode=$ac_tag; continue;;
10903 esac
10904 case $ac_mode$ac_tag in
10905 :[FHL]*:*);;
10906 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10907 :[FH]-) ac_tag=-:-;;
10908 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10909 esac
10910 ac_save_IFS=$IFS
10911 IFS=:
10912 set x $ac_tag
10913 IFS=$ac_save_IFS
10914 shift
10915 ac_file=$1
10916 shift
10917
10918 case $ac_mode in
10919 :L) ac_source=$1;;
10920 :[FH])
10921 ac_file_inputs=
10922 for ac_f
10923 do
10924 case $ac_f in
10925 -) ac_f="$ac_tmp/stdin";;
10926 *) # Look for the file first in the build tree, then in the source tree
10927 # (if the path is not absolute). The absolute path cannot be DOS-style,
10928 # because $ac_f cannot contain `:'.
10929 test -f "$ac_f" ||
10930 case $ac_f in
10931 [\\/$]*) false;;
10932 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10933 esac ||
10934 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10935 esac
10936 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10937 as_fn_append ac_file_inputs " '$ac_f'"
10938 done
10939
10940 # Let's still pretend it is `configure' which instantiates (i.e., don't
10941 # use $as_me), people would be surprised to read:
10942 # /* config.h. Generated by config.status. */
10943 configure_input='Generated from '`
10944 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10945 `' by configure.'
10946 if test x"$ac_file" != x-; then
10947 configure_input="$ac_file. $configure_input"
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10949 $as_echo "$as_me: creating $ac_file" >&6;}
10950 fi
10951 # Neutralize special characters interpreted by sed in replacement strings.
10952 case $configure_input in #(
10953 *\&* | *\|* | *\\* )
10954 ac_sed_conf_input=`$as_echo "$configure_input" |
10955 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10956 *) ac_sed_conf_input=$configure_input;;
10957 esac
10958
10959 case $ac_tag in
10960 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10962 esac
10963 ;;
10964 esac
10965
10966 ac_dir=`$as_dirname -- "$ac_file" ||
10967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10968 X"$ac_file" : 'X\(//\)[^/]' \| \
10969 X"$ac_file" : 'X\(//\)$' \| \
10970 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10971 $as_echo X"$ac_file" |
10972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10973 s//\1/
10974 q
10975 }
10976 /^X\(\/\/\)[^/].*/{
10977 s//\1/
10978 q
10979 }
10980 /^X\(\/\/\)$/{
10981 s//\1/
10982 q
10983 }
10984 /^X\(\/\).*/{
10985 s//\1/
10986 q
10987 }
10988 s/.*/./; q'`
10989 as_dir="$ac_dir"; as_fn_mkdir_p
10990 ac_builddir=.
10991
10992 case "$ac_dir" in
10993 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10994 *)
10995 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10996 # A ".." for each directory in $ac_dir_suffix.
10997 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10998 case $ac_top_builddir_sub in
10999 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11000 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11001 esac ;;
11002 esac
11003 ac_abs_top_builddir=$ac_pwd
11004 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11005 # for backward compatibility:
11006 ac_top_builddir=$ac_top_build_prefix
11007
11008 case $srcdir in
11009 .) # We are building in place.
11010 ac_srcdir=.
11011 ac_top_srcdir=$ac_top_builddir_sub
11012 ac_abs_top_srcdir=$ac_pwd ;;
11013 [\\/]* | ?:[\\/]* ) # Absolute name.
11014 ac_srcdir=$srcdir$ac_dir_suffix;
11015 ac_top_srcdir=$srcdir
11016 ac_abs_top_srcdir=$srcdir ;;
11017 *) # Relative name.
11018 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11019 ac_top_srcdir=$ac_top_build_prefix$srcdir
11020 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11021 esac
11022 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11023
11024
11025 case $ac_mode in
11026 :F)
11027 #
11028 # CONFIG_FILE
11029 #
11030
11031 case $INSTALL in
11032 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11033 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11034 esac
11035 ac_MKDIR_P=$MKDIR_P
11036 case $MKDIR_P in
11037 [\\/$]* | ?:[\\/]* ) ;;
11038 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11039 esac
11040 _ACEOF
11041
11042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11043 # If the template does not know about datarootdir, expand it.
11044 # FIXME: This hack should be removed a few years after 2.60.
11045 ac_datarootdir_hack=; ac_datarootdir_seen=
11046 ac_sed_dataroot='
11047 /datarootdir/ {
11048 p
11049 q
11050 }
11051 /@datadir@/p
11052 /@docdir@/p
11053 /@infodir@/p
11054 /@localedir@/p
11055 /@mandir@/p'
11056 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11057 *datarootdir*) ac_datarootdir_seen=yes;;
11058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11060 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11061 _ACEOF
11062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11063 ac_datarootdir_hack='
11064 s&@datadir@&$datadir&g
11065 s&@docdir@&$docdir&g
11066 s&@infodir@&$infodir&g
11067 s&@localedir@&$localedir&g
11068 s&@mandir@&$mandir&g
11069 s&\\\${datarootdir}&$datarootdir&g' ;;
11070 esac
11071 _ACEOF
11072
11073 # Neutralize VPATH when `$srcdir' = `.'.
11074 # Shell code in configure.ac might set extrasub.
11075 # FIXME: do we really want to maintain this feature?
11076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11077 ac_sed_extra="$ac_vpsub
11078 $extrasub
11079 _ACEOF
11080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11081 :t
11082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11083 s|@configure_input@|$ac_sed_conf_input|;t t
11084 s&@top_builddir@&$ac_top_builddir_sub&;t t
11085 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11086 s&@srcdir@&$ac_srcdir&;t t
11087 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11088 s&@top_srcdir@&$ac_top_srcdir&;t t
11089 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11090 s&@builddir@&$ac_builddir&;t t
11091 s&@abs_builddir@&$ac_abs_builddir&;t t
11092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11093 s&@INSTALL@&$ac_INSTALL&;t t
11094 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11095 $ac_datarootdir_hack
11096 "
11097 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11098 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11099
11100 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11101 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11102 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11103 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11105 which seems to be undefined. Please make sure it is defined" >&5
11106 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11107 which seems to be undefined. Please make sure it is defined" >&2;}
11108
11109 rm -f "$ac_tmp/stdin"
11110 case $ac_file in
11111 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11112 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11113 esac \
11114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11115 ;;
11116 :H)
11117 #
11118 # CONFIG_HEADER
11119 #
11120 if test x"$ac_file" != x-; then
11121 {
11122 $as_echo "/* $configure_input */" \
11123 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11124 } >"$ac_tmp/config.h" \
11125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11126 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11128 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11129 else
11130 rm -f "$ac_file"
11131 mv "$ac_tmp/config.h" "$ac_file" \
11132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11133 fi
11134 else
11135 $as_echo "/* $configure_input */" \
11136 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11137 || as_fn_error $? "could not create -" "$LINENO" 5
11138 fi
11139 ;;
11140
11141 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11142 $as_echo "$as_me: executing $ac_file commands" >&6;}
11143 ;;
11144 esac
11145
11146
11147 case $ac_file$ac_mode in
11148 "po-directories":C)
11149 for ac_file in $CONFIG_FILES; do
11150 # Support "outfile[:infile[:infile...]]"
11151 case "$ac_file" in
11152 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11153 esac
11154 # PO directories have a Makefile.in generated from Makefile.in.in.
11155 case "$ac_file" in */Makefile.in)
11156 # Adjust a relative srcdir.
11157 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11158 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11159 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11160 # In autoconf-2.13 it is called $ac_given_srcdir.
11161 # In autoconf-2.50 it is called $srcdir.
11162 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11163 case "$ac_given_srcdir" in
11164 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11165 /*) top_srcdir="$ac_given_srcdir" ;;
11166 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11167 esac
11168 # Treat a directory as a PO directory if and only if it has a
11169 # POTFILES.in file. This allows packages to have multiple PO
11170 # directories under different names or in different locations.
11171 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11172 rm -f "$ac_dir/POTFILES"
11173 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11174 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11175 POMAKEFILEDEPS="POTFILES.in"
11176 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11177 # on $ac_dir but don't depend on user-specified configuration
11178 # parameters.
11179 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11180 # The LINGUAS file contains the set of available languages.
11181 if test -n "$OBSOLETE_ALL_LINGUAS"; then
11182 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11183 fi
11184 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11185 # Hide the ALL_LINGUAS assigment from automake < 1.5.
11186 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11187 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11188 else
11189 # The set of available languages was given in configure.in.
11190 # Hide the ALL_LINGUAS assigment from automake < 1.5.
11191 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11192 fi
11193 # Compute POFILES
11194 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11195 # Compute UPDATEPOFILES
11196 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11197 # Compute DUMMYPOFILES
11198 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11199 # Compute GMOFILES
11200 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11201 case "$ac_given_srcdir" in
11202 .) srcdirpre= ;;
11203 *) srcdirpre='$(srcdir)/' ;;
11204 esac
11205 POFILES=
11206 UPDATEPOFILES=
11207 DUMMYPOFILES=
11208 GMOFILES=
11209 for lang in $ALL_LINGUAS; do
11210 POFILES="$POFILES $srcdirpre$lang.po"
11211 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11212 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11213 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11214 done
11215 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11216 # environment variable.
11217 INST_LINGUAS=
11218 if test -n "$ALL_LINGUAS"; then
11219 for presentlang in $ALL_LINGUAS; do
11220 useit=no
11221 if test "%UNSET%" != "$LINGUAS"; then
11222 desiredlanguages="$LINGUAS"
11223 else
11224 desiredlanguages="$ALL_LINGUAS"
11225 fi
11226 for desiredlang in $desiredlanguages; do
11227 # Use the presentlang catalog if desiredlang is
11228 # a. equal to presentlang, or
11229 # b. a variant of presentlang (because in this case,
11230 # presentlang can be used as a fallback for messages
11231 # which are not translated in the desiredlang catalog).
11232 case "$desiredlang" in
11233 "$presentlang"*) useit=yes;;
11234 esac
11235 done
11236 if test $useit = yes; then
11237 INST_LINGUAS="$INST_LINGUAS $presentlang"
11238 fi
11239 done
11240 fi
11241 CATALOGS=
11242 if test -n "$INST_LINGUAS"; then
11243 for lang in $INST_LINGUAS; do
11244 CATALOGS="$CATALOGS $lang.gmo"
11245 done
11246 fi
11247 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11248 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"
11249 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11250 if test -f "$f"; then
11251 case "$f" in
11252 *.orig | *.bak | *~) ;;
11253 *) cat "$f" >> "$ac_dir/Makefile" ;;
11254 esac
11255 fi
11256 done
11257 fi
11258 ;;
11259 esac
11260 done ;;
11261
11262 esac
11263 done # for ac_tag
11264
11265
11266 as_fn_exit 0
11267 _ACEOF
11268 ac_clean_files=$ac_clean_files_save
11269
11270 test $ac_write_fail = 0 ||
11271 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11272
11273
11274 # configure is writing to config.log, and then calls config.status.
11275 # config.status does its own redirection, appending to config.log.
11276 # Unfortunately, on DOS this fails, as config.log is still kept open
11277 # by configure, so config.status won't be able to write to it; its
11278 # output is simply discarded. So we exec the FD to /dev/null,
11279 # effectively closing config.log, so it can be properly (re)opened and
11280 # appended to by config.status. When coming back to configure, we
11281 # need to make the FD available again.
11282 if test "$no_create" != yes; then
11283 ac_cs_success=:
11284 ac_config_status_args=
11285 test "$silent" = yes &&
11286 ac_config_status_args="$ac_config_status_args --quiet"
11287 exec 5>/dev/null
11288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11289 exec 5>>config.log
11290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11291 # would make configure fail if this is the last instruction.
11292 $ac_cs_success || as_fn_exit 1
11293 fi
11294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11296 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11297 fi
11298
11299
11300 chmod +x posubst