2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="src/feature.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars='LTLIBOBJS
669 program_transform_name
682 enable_option_checking
692 with_afterimage_config
713 enable_selectionscrolling
726 ac_precious_vars='build_alias
742 # Initialize some variables set by options.
744 ac_init_version=false
745 ac_unrecognized_opts=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
756 program_transform_name=s,x,x,
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE}'
781 infodir='${datarootdir}/info'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
802 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 # Accept the important Cygnus configure options, so we can diagnose typos.
808 case $ac_dashdash$ac_option in
812 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
817 -build | --build | --buil | --bui | --bu)
818 ac_prev=build_alias ;;
819 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 build_alias=$ac_optarg ;;
822 -cache-file | --cache-file | --cache-fil | --cache-fi \
823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824 ac_prev=cache_file ;;
825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 cache_file=$ac_optarg ;;
830 cache_file=config.cache ;;
832 -datadir | --datadir | --datadi | --datad)
834 -datadir=* | --datadir=* | --datadi=* | --datad=*)
835 datadir=$ac_optarg ;;
837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838 | --dataroo | --dataro | --datar)
839 ac_prev=datarootdir ;;
840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842 datarootdir=$ac_optarg ;;
844 -disable-* | --disable-*)
845 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848 as_fn_error "invalid feature name: $ac_useropt"
849 ac_useropt_orig=$ac_useropt
850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856 ac_unrecognized_sep=', ';;
858 eval enable_$ac_useropt=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 -enable-* | --enable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error "invalid feature name: $ac_useropt"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
884 eval enable_$ac_useropt=\$ac_optarg ;;
886 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888 | --exec | --exe | --ex)
889 ac_prev=exec_prefix ;;
890 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892 | --exec=* | --exe=* | --ex=*)
893 exec_prefix=$ac_optarg ;;
895 -gas | --gas | --ga | --g)
896 # Obsolete; use --with-gas.
899 -help | --help | --hel | --he | -h)
901 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902 ac_init_help=recursive ;;
903 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904 ac_init_help=short ;;
906 -host | --host | --hos | --ho)
907 ac_prev=host_alias ;;
908 -host=* | --host=* | --hos=* | --ho=*)
909 host_alias=$ac_optarg ;;
911 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 htmldir=$ac_optarg ;;
917 -includedir | --includedir | --includedi | --included | --include \
918 | --includ | --inclu | --incl | --inc)
919 ac_prev=includedir ;;
920 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921 | --includ=* | --inclu=* | --incl=* | --inc=*)
922 includedir=$ac_optarg ;;
924 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927 infodir=$ac_optarg ;;
929 -libdir | --libdir | --libdi | --libd)
931 -libdir=* | --libdir=* | --libdi=* | --libd=*)
934 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935 | --libexe | --libex | --libe)
936 ac_prev=libexecdir ;;
937 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938 | --libexe=* | --libex=* | --libe=*)
939 libexecdir=$ac_optarg ;;
941 -localedir | --localedir | --localedi | --localed | --locale)
943 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944 localedir=$ac_optarg ;;
946 -localstatedir | --localstatedir | --localstatedi | --localstated \
947 | --localstate | --localstat | --localsta | --localst | --locals)
948 ac_prev=localstatedir ;;
949 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951 localstatedir=$ac_optarg ;;
953 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959 # Obsolete; use --without-fp.
962 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963 | --no-cr | --no-c | -n)
966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
970 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972 | --oldin | --oldi | --old | --ol | --o)
973 ac_prev=oldincludedir ;;
974 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977 oldincludedir=$ac_optarg ;;
979 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
984 -program-prefix | --program-prefix | --program-prefi | --program-pref \
985 | --program-pre | --program-pr | --program-p)
986 ac_prev=program_prefix ;;
987 -program-prefix=* | --program-prefix=* | --program-prefi=* \
988 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989 program_prefix=$ac_optarg ;;
991 -program-suffix | --program-suffix | --program-suffi | --program-suff \
992 | --program-suf | --program-su | --program-s)
993 ac_prev=program_suffix ;;
994 -program-suffix=* | --program-suffix=* | --program-suffi=* \
995 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996 program_suffix=$ac_optarg ;;
998 -program-transform-name | --program-transform-name \
999 | --program-transform-nam | --program-transform-na \
1000 | --program-transform-n | --program-transform- \
1001 | --program-transform | --program-transfor \
1002 | --program-transfo | --program-transf \
1003 | --program-trans | --program-tran \
1004 | --progr-tra | --program-tr | --program-t)
1005 ac_prev=program_transform_name ;;
1006 -program-transform-name=* | --program-transform-name=* \
1007 | --program-transform-nam=* | --program-transform-na=* \
1008 | --program-transform-n=* | --program-transform-=* \
1009 | --program-transform=* | --program-transfor=* \
1010 | --program-transfo=* | --program-transf=* \
1011 | --program-trans=* | --program-tran=* \
1012 | --progr-tra=* | --program-tr=* | --program-t=*)
1013 program_transform_name=$ac_optarg ;;
1015 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018 pdfdir=$ac_optarg ;;
1020 -psdir | --psdir | --psdi | --psd | --ps)
1022 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026 | -silent | --silent | --silen | --sile | --sil)
1029 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 sbindir=$ac_optarg ;;
1035 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037 | --sharedst | --shareds | --shared | --share | --shar \
1039 ac_prev=sharedstatedir ;;
1040 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 sharedstatedir=$ac_optarg ;;
1046 -site | --site | --sit)
1048 -site=* | --site=* | --sit=*)
1051 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054 srcdir=$ac_optarg ;;
1056 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057 | --syscon | --sysco | --sysc | --sys | --sy)
1058 ac_prev=sysconfdir ;;
1059 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061 sysconfdir=$ac_optarg ;;
1063 -target | --target | --targe | --targ | --tar | --ta | --t)
1064 ac_prev=target_alias ;;
1065 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066 target_alias=$ac_optarg ;;
1068 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1071 -version | --version | --versio | --versi | --vers | -V)
1072 ac_init_version=: ;;
1075 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error "invalid package name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1088 eval with_$ac_useropt=\$ac_optarg ;;
1090 -without-* | --without-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval with_$ac_useropt=no ;;
1107 # Obsolete; use --with-x.
1110 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1111 | --x-incl | --x-inc | --x-in | --x-i)
1112 ac_prev=x_includes ;;
1113 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1114 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1115 x_includes=$ac_optarg ;;
1117 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1118 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1119 ac_prev=x_libraries ;;
1120 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1121 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1122 x_libraries=$ac_optarg ;;
1124 -*) as_fn_error "unrecognized option: \`$ac_option'
1125 Try \`$0 --help' for more information."
1129 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130 # Reject names that are not valid shell variable names.
1131 case $ac_envvar in #(
1132 '' | [0-9]* | *[!_$as_cr_alnum]* )
1133 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1135 eval $ac_envvar=\$ac_optarg
1136 export $ac_envvar ;;
1139 # FIXME: should be removed in autoconf 3.0.
1140 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1141 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1143 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1149 if test -n "$ac_prev"; then
1150 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1151 as_fn_error "missing argument to $ac_option"
1154 if test -n "$ac_unrecognized_opts"; then
1155 case $enable_option_checking in
1157 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1158 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 # Check all directory arguments for consistency.
1163 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164 datadir sysconfdir sharedstatedir localstatedir includedir \
1165 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166 libdir localedir mandir
1168 eval ac_val=\$$ac_var
1169 # Remove trailing slashes.
1172 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173 eval $ac_var=\$ac_val;;
1175 # Be sure to have absolute directory names.
1177 [\\/$]* | ?:[\\/]* ) continue;;
1178 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 as_fn_error "working directory cannot be determined"
1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 as_fn_error "pwd does not report name of working directory"
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$as_myself" ||
1220 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$as_myself" : 'X\(//\)[^/]' \| \
1222 X"$as_myself" : 'X\(//\)$' \| \
1223 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1224 $as_echo X"$as_myself" |
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1247 ac_srcdir_defaulted=no
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1253 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 # Report the --help message.
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1281 \`configure' configures this package to adapt to many kinds of systems.
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1288 Defaults for the options are specified in brackets.
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1312 For better control, use the options below.
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1339 --x-includes=DIR X include files are in DIR
1340 --x-libraries=DIR X library files are in DIR
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 if test -n "$ac_init_help"; then
1358 --disable-option-checking ignore unrecognized --enable/--with options
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --enable-everything enable standard non-multichoice features
1362 NOTE: this option is order dependent
1363 --enable-assert enable assertions
1364 --enable-warnings turn on g++ warnings
1365 --enable-256-color enable 256-color support
1366 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1367 --enable-combining enable composition of base and combining characters
1368 --enable-xft enable xft support on systems that have it
1369 --enable-font-styles enable bold and italic support
1370 --enable-afterimage enable integration with libAfterImage for background images
1371 --enable-transparency enable transparent backgrounds
1372 --enable-fading enable colors fading when off focus
1373 --enable-rxvt-scroll enable rxvt style scrollbar
1374 --enable-next-scroll enable NeXT style scrollbar
1375 --enable-xterm-scroll enable Xterm style scrollbar
1376 --enable-perl enable embedded perl interpreter
1377 --enable-xim XIM (X Input Method) protocol support
1378 --disable-backspace-key disable handling of the backspace key
1379 --disable-delete-key disable handling of the delete key
1380 --disable-resources disable all resource checking
1381 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1382 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1383 --disable-swapscreen disable swap screen support
1384 --enable-iso14755 enable support for extended ISO 14755 modes
1385 --enable-frills enable support for rarely used features
1386 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1387 --enable-selectionscrolling enable scrolling during selections
1388 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1389 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1390 --enable-smart-resize enable smart growth/shrink behaviour
1391 --enable-text-blink enable blinking text
1392 --enable-pointer-blank enable pointer blanking when typing or inactive
1393 --enable-utmp enable utmp (utmpx) support
1394 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1395 --enable-lastlog enable lastlog support (requires --enable-utmp)
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-afterimage-config=DIR use libAfterImage config script in DIR
1401 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1402 --with-res-name=NAME use this as default resource name (default: urxvt)
1403 --with-res-class=CLASS use this as the resource class (default: URxvt)
1404 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1405 --with-term=NAME set the terminal to NAME (default: rxvt)
1406 --with-terminfo=PATH set the path to the terminfo tree to PATH
1407 --with-x use the X Window System
1409 Some influential environment variables:
1410 CC C compiler command
1411 CFLAGS C compiler flags
1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413 nonstandard directory <lib dir>
1414 LIBS libraries to pass to the linker, e.g. -l<library>
1415 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416 you have headers in a nonstandard directory <include dir>
1417 CXX C++ compiler command
1418 CXXFLAGS C++ compiler flags
1420 CXXCPP C++ preprocessor
1421 XMKMF Path to xmkmf, Makefile generator for X Window System
1423 Use these variables to override the choices made by `configure' or to help
1424 it to find libraries and programs with nonstandard names/locations.
1426 Report bugs to the package provider.
1431 if test "$ac_init_help" = "recursive"; then
1432 # If there are subdirs, report their specific --help.
1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434 test -d "$ac_dir" ||
1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 ac_abs_top_builddir=$ac_pwd
1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452 # for backward compatibility:
1453 ac_top_builddir=$ac_top_build_prefix
1456 .) # We are building in place.
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
1461 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
1473 if test -f "$ac_srcdir/configure.gnu"; then
1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476 elif test -f "$ac_srcdir/configure"; then
1478 $SHELL "$ac_srcdir/configure" --help=recursive
1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1490 generated by GNU Autoconf 2.65
1492 Copyright (C) 2009 Free Software Foundation, Inc.
1493 This configure script is free software; the Free Software Foundation
1494 gives unlimited permission to copy, distribute and modify it.
1499 ## ------------------------ ##
1500 ## Autoconf initialization. ##
1501 ## ------------------------ ##
1503 # ac_fn_c_try_compile LINENO
1504 # --------------------------
1505 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_compile ()
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext
1510 if { { ac_try="$ac_compile"
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_compile") 2>conftest.err
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest.$ac_objext; then :
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1537 as_fn_set_status $ac_retval
1539 } # ac_fn_c_try_compile
1541 # ac_fn_cxx_try_compile LINENO
1542 # ----------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_cxx_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_cxx_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_cxx_try_compile
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } >/dev/null && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612 as_fn_set_status $ac_retval
1616 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1621 ac_fn_c_check_header_mongrel ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628 $as_echo_n "(cached) " >&6
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1634 # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1645 ac_header_compiler=no
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1658 if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1661 ac_header_preproc=no
1663 rm -f conftest.err conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1667 # So? What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1691 $as_echo_n "(cached) " >&6
1693 eval "$3=\$ac_header_compiler"
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 } # ac_fn_c_check_header_mongrel
1703 # ac_fn_c_try_run LINENO
1704 # ----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706 # that executables *can* be run.
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1737 ac_retval=$ac_status
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 as_fn_set_status $ac_retval
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1762 if ac_fn_c_try_compile "$LINENO"; then :
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 } # ac_fn_c_check_header_compile
1776 # ac_fn_c_try_link LINENO
1777 # -----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext conftest$ac_exeext
1783 if { { ac_try="$ac_link"
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>conftest.err
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest$ac_exeext && {
1802 test "$cross_compiling" = yes ||
1803 $as_test_x conftest$ac_exeext
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814 # interfere with the next link command; also delete a directory that is
1815 # left behind by Apple's compiler. We do this before executing the actions.
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 as_fn_set_status $ac_retval
1820 } # ac_fn_c_try_link
1822 # ac_fn_cxx_try_link LINENO
1823 # -------------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_cxx_try_link ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext conftest$ac_exeext
1829 if { { ac_try="$ac_link"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_cxx_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest$ac_exeext && {
1848 test "$cross_compiling" = yes ||
1849 $as_test_x conftest$ac_exeext
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860 # interfere with the next link command; also delete a directory that is
1861 # left behind by Apple's compiler. We do this before executing the actions.
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_cxx_try_link
1868 # ac_fn_cxx_check_func LINENO FUNC VAR
1869 # ------------------------------------
1870 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1871 ac_fn_cxx_check_func ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877 $as_echo_n "(cached) " >&6
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883 #define $2 innocuous_$2
1885 /* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1891 # include <limits.h>
1893 # include <assert.h>
1898 /* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1905 /* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908 #if defined __stub_$2 || defined __stub___$2
1920 if ac_fn_cxx_try_link "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 } # ac_fn_cxx_check_func
1935 # ac_fn_cxx_try_cpp LINENO
1936 # ------------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_cxx_try_cpp ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_cpp conftest.$ac_ext"
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } >/dev/null && {
1957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958 test ! -s conftest.err
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 as_fn_set_status $ac_retval
1970 } # ac_fn_cxx_try_cpp
1972 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1973 # ---------------------------------------------------------
1974 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975 # the include files in INCLUDES and setting the cache variable VAR
1977 ac_fn_cxx_check_header_mongrel ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 $as_echo_n "(cached) " >&6
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1990 # Is the header compilable?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992 $as_echo_n "checking $2 usability... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1998 if ac_fn_cxx_try_compile "$LINENO"; then :
1999 ac_header_compiler=yes
2001 ac_header_compiler=no
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005 $as_echo "$ac_header_compiler" >&6; }
2007 # Is the header present?
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009 $as_echo_n "checking $2 presence... " >&6; }
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2014 if ac_fn_cxx_try_cpp "$LINENO"; then :
2015 ac_header_preproc=yes
2017 ac_header_preproc=no
2019 rm -f conftest.err conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021 $as_echo "$ac_header_preproc" >&6; }
2023 # So? What about this header?
2024 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2035 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2039 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2047 $as_echo_n "(cached) " >&6
2049 eval "$3=\$ac_header_compiler"
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 } # ac_fn_cxx_check_header_mongrel
2059 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2060 # ---------------------------------------------
2061 # Tests whether TYPE exists after having included INCLUDES, setting cache
2062 # variable VAR accordingly.
2063 ac_fn_cxx_check_type ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 $as_echo_n "(cached) " >&6
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2084 if ac_fn_cxx_try_compile "$LINENO"; then :
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2097 if ac_fn_cxx_try_compile "$LINENO"; then :
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_cxx_check_type
2113 # ac_fn_c_find_intX_t LINENO BITS VAR
2114 # -----------------------------------
2115 # Finds a signed integer type with width BITS, setting cache variable VAR
2117 ac_fn_c_find_intX_t ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2121 $as_echo_n "checking for int$2_t... " >&6; }
2122 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 $as_echo_n "(cached) " >&6
2126 # Order is important - never check a type that is potentially smaller
2127 # than half of the expected target width.
2128 for ac_type in int$2_t 'int' 'long int' \
2129 'long long int' 'short int' 'signed char'; do
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 $ac_includes_default
2136 static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
2137 0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2144 if ac_fn_cxx_try_compile "$LINENO"; then :
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $ac_includes_default
2151 static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
2152 ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2153 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2160 if ac_fn_cxx_try_compile "$LINENO"; then :
2167 eval "$3=\$ac_type" ;;
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 if test "x$as_val" = x""no; then :
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2186 } # ac_fn_c_find_intX_t
2188 # ac_fn_c_find_uintX_t LINENO BITS VAR
2189 # ------------------------------------
2190 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2192 ac_fn_c_find_uintX_t ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2196 $as_echo_n "checking for uint$2_t... " >&6; }
2197 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198 $as_echo_n "(cached) " >&6
2201 # Order is important - never check a type that is potentially smaller
2202 # than half of the expected target width.
2203 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2204 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2207 $ac_includes_default
2211 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2218 if ac_fn_cxx_try_compile "$LINENO"; then :
2223 eval "$3=\$ac_type" ;;
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 if test "x$as_val" = x""no; then :
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 } # ac_fn_c_find_uintX_t
2242 # ac_fn_cxx_try_run LINENO
2243 # ------------------------
2244 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2245 # that executables *can* be run.
2246 ac_fn_cxx_try_run ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 if { { ac_try="$ac_link"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255 $as_echo "$ac_try_echo"; } >&5
2256 (eval "$ac_link") 2>&5
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2260 { { case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_try") 2>&5
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; }; }; then :
2272 $as_echo "$as_me: program exited with status $ac_status" >&5
2273 $as_echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2276 ac_retval=$ac_status
2278 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280 as_fn_set_status $ac_retval
2282 } # ac_fn_cxx_try_run
2283 cat >config.log <<_ACEOF
2284 This file contains any messages produced by compilers while
2285 running configure, to aid debugging if configure makes a mistake.
2287 It was created by $as_me, which was
2288 generated by GNU Autoconf 2.65. Invocation command line was
2300 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2306 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2309 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 $as_echo "PATH: $as_dir"
2340 # Keep a trace of the command line.
2341 # Strip out --no-create and --no-recursion so they do not pile up.
2342 # Strip out --silent because we don't want to record it for future runs.
2343 # Also quote any args containing shell meta-characters.
2344 # Make two passes to allow for proper duplicate-argument suppression.
2348 ac_must_keep_next=false
2354 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356 | -silent | --silent | --silen | --sile | --sil)
2359 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2362 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2364 as_fn_append ac_configure_args1 " '$ac_arg'"
2365 if test $ac_must_keep_next = true; then
2366 ac_must_keep_next=false # Got value, back to normal.
2369 *=* | --config-cache | -C | -disable-* | --disable-* \
2370 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372 | -with-* | --with-* | -without-* | --without-* | --x)
2373 case "$ac_configure_args0 " in
2374 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2377 -* ) ac_must_keep_next=true ;;
2380 as_fn_append ac_configure_args " '$ac_arg'"
2385 { ac_configure_args0=; unset ac_configure_args0;}
2386 { ac_configure_args1=; unset ac_configure_args1;}
2388 # When interrupted or exit'd, cleanup temporary files, and complete
2389 # config.log. We remove comments because anyway the quotes in there
2390 # would cause problems or look ugly.
2391 # WARNING: Use '\'' to represent an apostrophe within the trap.
2392 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393 trap 'exit_status=$?
2394 # Save into config.log some information that might help in debugging.
2399 ## ---------------- ##
2400 ## Cache variables. ##
2401 ## ---------------- ##
2404 # The following way of writing the cache mishandles newlines in values,
2406 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2407 eval ac_val=\$$ac_var
2411 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2412 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2415 _ | IFS | as_nl) ;; #(
2416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417 *) { eval $ac_var=; unset $ac_var;} ;;
2422 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2423 *${as_nl}ac_space=\ *)
2425 "s/'\''/'\''\\\\'\'''\''/g;
2426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2437 ## ----------------- ##
2438 ## Output variables. ##
2439 ## ----------------- ##
2442 for ac_var in $ac_subst_vars
2444 eval ac_val=\$$ac_var
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 $as_echo "$ac_var='\''$ac_val'\''"
2452 if test -n "$ac_subst_files"; then
2454 ## ------------------- ##
2455 ## File substitutions. ##
2456 ## ------------------- ##
2459 for ac_var in $ac_subst_files
2461 eval ac_val=\$$ac_var
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 $as_echo "$ac_var='\''$ac_val'\''"
2470 if test -s confdefs.h; then
2480 test "$ac_signal" != 0 &&
2481 $as_echo "$as_me: caught signal $ac_signal"
2482 $as_echo "$as_me: exit $exit_status"
2484 rm -f core *.core core.conftest.* &&
2485 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488 for ac_signal in 1 2 13 15; do
2489 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494 rm -f -r conftest* confdefs.h
2496 $as_echo "/* confdefs.h */" > confdefs.h
2498 # Predefined preprocessor variables.
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_NAME "$PACKAGE_NAME"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_STRING "$PACKAGE_STRING"
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_URL "$PACKAGE_URL"
2525 # Let the site file select an alternate cache file if it wants to.
2526 # Prefer an explicitly selected file to automatically selected ones.
2529 if test -n "$CONFIG_SITE"; then
2530 ac_site_file1=$CONFIG_SITE
2531 elif test "x$prefix" != xNONE; then
2532 ac_site_file1=$prefix/share/config.site
2533 ac_site_file2=$prefix/etc/config.site
2535 ac_site_file1=$ac_default_prefix/share/config.site
2536 ac_site_file2=$ac_default_prefix/etc/config.site
2538 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2540 test "x$ac_site_file" = xNONE && continue
2541 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2543 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2544 sed 's/^/| /' "$ac_site_file" >&5
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special files
2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557 *) . "./$cache_file";;
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2566 # Check that the precious variables saved in the cache have kept the same
2568 ac_cache_corrupted=false
2569 for ac_var in $ac_precious_vars; do
2570 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571 eval ac_new_set=\$ac_env_${ac_var}_set
2572 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573 eval ac_new_val=\$ac_env_${ac_var}_value
2574 case $ac_old_set,$ac_new_set in
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578 ac_cache_corrupted=: ;;
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2585 if test "x$ac_old_val" != "x$ac_new_val"; then
2586 # differences in whitespace do not lead to failure.
2587 ac_old_val_w=`echo x $ac_old_val`
2588 ac_new_val_w=`echo x $ac_new_val`
2589 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592 ac_cache_corrupted=:
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596 eval $ac_var=\$ac_old_val
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2599 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2601 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2604 # Pass precious variables to config.status.
2605 if test "$ac_new_set" = set; then
2607 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608 *) ac_arg=$ac_var=$ac_new_val ;;
2610 case " $ac_configure_args " in
2611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2612 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2616 if $ac_cache_corrupted; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2623 ## -------------------- ##
2624 ## Main body of script. ##
2625 ## -------------------- ##
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 ac_config_headers="$ac_config_headers config.h:config.h.in"
2640 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2641 for ac_t in install-sh install.sh shtool; do
2642 if test -f "$ac_dir/$ac_t"; then
2644 ac_install_sh="$ac_aux_dir/$ac_t -c"
2649 if test -z "$ac_aux_dir"; then
2650 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2653 # These three variables are undocumented and unsupported,
2654 # and are intended to be withdrawn in a future Autoconf release.
2655 # They can cause serious problems if a builder's source tree is in a directory
2656 # whose full name contains unusual characters.
2657 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2658 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2659 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2662 # Make sure we can run config.sub.
2663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2664 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2667 $as_echo_n "checking build system type... " >&6; }
2668 if test "${ac_cv_build+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
2671 ac_build_alias=$build_alias
2672 test "x$ac_build_alias" = x &&
2673 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2674 test "x$ac_build_alias" = x &&
2675 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2676 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2677 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2681 $as_echo "$ac_cv_build" >&6; }
2682 case $ac_cv_build in
2684 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2687 ac_save_IFS=$IFS; IFS='-'
2693 # Remember, the first character of IFS is used to create $*,
2694 # except with old shells:
2697 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2701 $as_echo_n "checking host system type... " >&6; }
2702 if test "${ac_cv_host+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2705 if test "x$host_alias" = x; then
2706 ac_cv_host=$ac_cv_build
2708 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2709 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2714 $as_echo "$ac_cv_host" >&6; }
2717 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2720 ac_save_IFS=$IFS; IFS='-'
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2734 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2735 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2738 echo "configuring for rxvt $VERSION"
2741 orig_CXXFLAGS="$CXXFLAGS"
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 if test -n "$CC"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2787 if test -z "$ac_cv_prog_CC"; then
2789 # Extract the first word of "gcc", so it can be a program name with args.
2790 set dummy gcc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2794 $as_echo_n "(cached) " >&6
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_ac_ct_CC="gcc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817 if test -n "$ac_ct_CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2819 $as_echo "$ac_ct_CC" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2825 if test "x$ac_ct_CC" = x; then
2828 case $cross_compiling:$ac_tool_warned in
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832 ac_tool_warned=yes ;;
2840 if test -z "$CC"; then
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}cc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_CC+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_CC="${ac_tool_prefix}cc"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2881 if test -z "$CC"; then
2882 # Extract the first word of "cc", so it can be a program name with args.
2883 set dummy cc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2901 ac_prog_rejected=yes
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy $ac_cv_prog_CC
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 for ac_prog in cl.exe
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2978 test -n "$CC" && break
2981 if test -z "$CC"; then
2983 for ac_prog in cl.exe
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_ac_ct_CC="$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3022 test -n "$ac_ct_CC" && break
3025 if test "x$ac_ct_CC" = x; then
3028 case $cross_compiling:$ac_tool_warned in
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3041 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error "no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." "$LINENO" 5; }
3046 # Provide some information about the compiler.
3047 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3050 for ac_option in --version -v -V -qversion; do
3051 { { ac_try="$ac_compiler $ac_option >&5"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3060 if test -s conftest.err; then
3062 ... rest of stderr output deleted ...
3063 10q' conftest.err >conftest.er1
3064 cat conftest.er1 >&5
3066 rm -f conftest.er1 conftest.err
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3082 ac_clean_files_save=$ac_clean_files
3083 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3084 # Try to create an executable without -o first, disregard a.out.
3085 # It will help us diagnose broken compilers, and finding out an intuition
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3088 $as_echo_n "checking whether the C compiler works... " >&6; }
3089 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091 # The possible output files:
3092 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3095 for ac_file in $ac_files
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3099 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104 if { { ac_try="$ac_link_default"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link_default") 2>&5
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }; then :
3115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3118 # so that the user can short-circuit this test for compilers unknown to
3120 for ac_file in $ac_files ''
3122 test -f "$ac_file" || continue
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3127 # We found the default executable, but exeext='' is most
3131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 # We set ac_cv_exeext here because the later test for it is not
3136 # safe: cross compilers may not add the suffix if given an `-o'
3137 # argument, so we may need to know it at that point already.
3138 # Even if this section looks crufty: it has the advantage of
3145 test "$ac_cv_exeext" = no && ac_cv_exeext=
3150 if test -z "$ac_file"; then :
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { as_fn_set_status 77
3159 as_fn_error "C compiler cannot create executables
3160 See \`config.log' for more details." "$LINENO" 5; }; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3166 $as_echo_n "checking for C compiler default output file name... " >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3168 $as_echo "$ac_file" >&6; }
3169 ac_exeext=$ac_cv_exeext
3171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3172 ac_clean_files=$ac_clean_files_save
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3174 $as_echo_n "checking for suffix of executables... " >&6; }
3175 if { { ac_try="$ac_link"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; then :
3186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
3190 for ac_file in conftest.exe conftest conftest.*; do
3191 test -f "$ac_file" || continue
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error "cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details." "$LINENO" 5; }
3205 rm -f conftest conftest$ac_cv_exeext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207 $as_echo "$ac_cv_exeext" >&6; }
3209 rm -f conftest.$ac_ext
3210 EXEEXT=$ac_cv_exeext
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3218 FILE *f = fopen ("conftest.out", "w");
3219 return ferror (f) || fclose (f) != 0;
3225 ac_clean_files="$ac_clean_files conftest.out"
3226 # Check that the compiler produces executables we can run. If not, either
3227 # the compiler is broken, or we cross compile.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229 $as_echo_n "checking whether we are cross compiling... " >&6; }
3230 if test "$cross_compiling" != yes; then
3231 { { ac_try="$ac_link"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242 if { ac_try='./conftest$ac_cv_exeext'
3243 { { case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_try") 2>&5
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; }; then
3255 if test "$cross_compiling" = maybe; then
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error "cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details." "$LINENO" 5; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3267 $as_echo "$cross_compiling" >&6; }
3269 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if test "${ac_cv_objext+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3287 rm -f conftest.o conftest.obj
3288 if { { ac_try="$ac_compile"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compile") 2>&5
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error "cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details." "$LINENO" 5; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319 $as_echo "$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3341 if ac_fn_c_try_compile "$LINENO"; then :
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352 if test $ac_compiler_gnu = yes; then
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361 if test "${ac_cv_prog_cc_g+set}" = set; then :
3362 $as_echo_n "(cached) " >&6
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3379 if ac_fn_c_try_compile "$LINENO"; then :
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 if ac_fn_c_try_compile "$LINENO"; then :
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3410 if ac_fn_c_try_compile "$LINENO"; then :
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3431 if test "$GCC" = yes; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3442 ac_cv_prog_cc_c89=no
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451 struct buf { int x; };
3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453 static char *e (p, i)
3459 static char *f (char * (*g) (char **, int), char **p, ...)
3464 s = g (p, va_arg (v,int));
3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470 function prototypes and stuff, but not '\xHH' hex character constants.
3471 These don't provoke an error unfortunately, instead are silently treated
3472 as 'x'. The following induces an error, until -std is added to get
3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474 array size at least. It's necessary to write '\x00'==0 to get something
3475 that's true only with -std. */
3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479 inside strings and character constants. */
3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 CC="$ac_save_CC $ac_arg"
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_cv_prog_cc_c89=$ac_arg
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 rm -f conftest.$ac_ext
3512 case "x$ac_cv_prog_cc_c89" in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515 $as_echo "none needed" >&6; } ;;
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518 $as_echo "unsupported" >&6; } ;;
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 ac_cpp='$CXXCPP $CPPFLAGS'
3536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539 if test -z "$CXX"; then
3540 if test -n "$CCC"; then
3543 if test -n "$ac_tool_prefix"; then
3544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CXX+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$CXX"; then
3554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 if test -n "$CXX"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3576 $as_echo "$CXX" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3583 test -n "$CXX" && break
3586 if test -z "$CXX"; then
3588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3590 # Extract the first word of "$ac_prog", so it can be a program name with args.
3591 set dummy $ac_prog; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$ac_ct_CXX"; then
3598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_ac_ct_CXX="$ac_prog"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3618 if test -n "$ac_ct_CXX"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3620 $as_echo "$ac_ct_CXX" >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3627 test -n "$ac_ct_CXX" && break
3630 if test "x$ac_ct_CXX" = x; then
3633 case $cross_compiling:$ac_tool_warned in
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3645 # Provide some information about the compiler.
3646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3649 for ac_option in --version -v -V -qversion; do
3650 { { ac_try="$ac_compiler $ac_option >&5"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3659 if test -s conftest.err; then
3661 ... rest of stderr output deleted ...
3662 10q' conftest.err >conftest.er1
3663 cat conftest.er1 >&5
3665 rm -f conftest.er1 conftest.err
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3671 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3672 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3689 if ac_fn_cxx_try_compile "$LINENO"; then :
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3699 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3700 if test $ac_compiler_gnu = yes; then
3705 ac_test_CXXFLAGS=${CXXFLAGS+set}
3706 ac_save_CXXFLAGS=$CXXFLAGS
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3708 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3709 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3712 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3713 ac_cxx_werror_flag=yes
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3727 if ac_fn_cxx_try_compile "$LINENO"; then :
3728 ac_cv_prog_cxx_g=yes
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3758 if ac_fn_cxx_try_compile "$LINENO"; then :
3759 ac_cv_prog_cxx_g=yes
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3769 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3770 if test "$ac_test_CXXFLAGS" = set; then
3771 CXXFLAGS=$ac_save_CXXFLAGS
3772 elif test $ac_cv_prog_cxx_g = yes; then
3773 if test "$GXX" = yes; then
3779 if test "$GXX" = yes; then
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3797 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3798 # On Suns, sometimes $CPP names a directory.
3799 if test -n "$CPP" && test -d "$CPP"; then
3802 if test -z "$CPP"; then
3803 if test "${ac_cv_prog_CPP+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3806 # Double quotes because CPP needs to be expanded
3807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3810 for ac_c_preproc_warn_flag in '' yes
3812 # Use a header file that comes with gcc, so configuring glibc
3813 # with a fresh cross-compiler works.
3814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3815 # <limits.h> exists even on freestanding compilers.
3816 # On the NeXT, cc -E runs the code through the compiler's parser,
3817 # not just through cpp. "Syntax error" is here to catch this case.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3821 # include <limits.h>
3823 # include <assert.h>
3827 if ac_fn_c_try_cpp "$LINENO"; then :
3830 # Broken: fails on valid input.
3833 rm -f conftest.err conftest.$ac_ext
3835 # OK, works on sane cases. Now check whether nonexistent headers
3836 # can be detected and how.
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <ac_nonexistent.h>
3841 if ac_fn_c_try_cpp "$LINENO"; then :
3842 # Broken: success on invalid input.
3845 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then :
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3867 $as_echo "$CPP" >&6; }
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3880 # include <limits.h>
3882 # include <assert.h>
3886 if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: fails on valid input.
3892 rm -f conftest.err conftest.$ac_ext
3894 # OK, works on sane cases. Now check whether nonexistent headers
3895 # can be detected and how.
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898 #include <ac_nonexistent.h>
3900 if ac_fn_c_try_cpp "$LINENO"; then :
3901 # Broken: success on invalid input.
3904 # Passes both tests.
3908 rm -f conftest.err conftest.$ac_ext
3911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3912 rm -f conftest.err conftest.$ac_ext
3913 if $ac_preproc_ok; then :
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3919 See \`config.log' for more details." "$LINENO" 5; }
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 # Find a good install program. We prefer a C program (faster),
3929 # so one script is as good as another. But avoid the broken or
3930 # incompatible versions:
3931 # SysV /etc/install, /usr/sbin/install
3932 # SunOS /usr/etc/install
3933 # IRIX /sbin/install
3935 # AmigaOS /C/install, which installs bootblocks on floppy discs
3936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3939 # OS/2's system install, which has a completely different semantic
3940 # ./install, which can be erroneously created by make from ./install.sh.
3941 # Reject install programs that cannot install multiple files.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3943 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3944 if test -z "$INSTALL"; then
3945 if test "${ac_cv_path_install+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 # Account for people who put trailing slashes in PATH elements.
3954 case $as_dir/ in #((
3955 ./ | .// | /[cC]/* | \
3956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3957 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3960 # OSF1 and SCO ODT 3.0 have their own names for install.
3961 # Don't use installbsd from OSF since it installs stuff as root
3963 for ac_prog in ginstall scoinst install; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3966 if test $ac_prog = install &&
3967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3968 # AIX install. It has an incompatible calling convention.
3970 elif test $ac_prog = install &&
3971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3972 # program-specific install script used by HP pwplus--don't use.
3975 rm -rf conftest.one conftest.two conftest.dir
3976 echo one > conftest.one
3977 echo two > conftest.two
3979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3980 test -s conftest.one && test -s conftest.two &&
3981 test -s conftest.dir/conftest.one &&
3982 test -s conftest.dir/conftest.two
3984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3997 rm -rf conftest.one conftest.two conftest.dir
4000 if test "${ac_cv_path_install+set}" = set; then
4001 INSTALL=$ac_cv_path_install
4003 # As a last resort, use the slow shell script. Don't cache a
4004 # value for INSTALL within a source directory, because that will
4005 # break other packages using the cache if that directory is
4006 # removed, or if the value is a relative name.
4007 INSTALL=$ac_install_sh
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4011 $as_echo "$INSTALL" >&6; }
4013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4014 # It thinks the first close brace ends the variable substitution.
4015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4025 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4026 if test "${ac_cv_path_GREP+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4029 if test -z "$GREP"; then
4030 ac_path_GREP_found=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4036 test -z "$as_dir" && as_dir=.
4037 for ac_prog in grep ggrep; do
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4040 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4041 # Check for GNU ac_path_GREP and select it if it is found.
4042 # Check for GNU $ac_path_GREP
4043 case `"$ac_path_GREP" --version 2>&1` in
4045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4048 $as_echo_n 0123456789 >"conftest.in"
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 $as_echo 'GREP' >> "conftest.nl"
4055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057 as_fn_arith $ac_count + 1 && ac_count=$as_val
4058 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_GREP="$ac_path_GREP"
4061 ac_path_GREP_max=$ac_count
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4069 $ac_path_GREP_found && break 3
4074 if test -z "$ac_cv_path_GREP"; then
4075 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4078 ac_cv_path_GREP=$GREP
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4083 $as_echo "$ac_cv_path_GREP" >&6; }
4084 GREP="$ac_cv_path_GREP"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4088 $as_echo_n "checking for egrep... " >&6; }
4089 if test "${ac_cv_path_EGREP+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4092 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4093 then ac_cv_path_EGREP="$GREP -E"
4095 if test -z "$EGREP"; then
4096 ac_path_EGREP_found=false
4097 # Loop through the user's path and test for each of PROGNAME-LIST
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 test -z "$as_dir" && as_dir=.
4103 for ac_prog in egrep; do
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4106 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4107 # Check for GNU ac_path_EGREP and select it if it is found.
4108 # Check for GNU $ac_path_EGREP
4109 case `"$ac_path_EGREP" --version 2>&1` in
4111 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4114 $as_echo_n 0123456789 >"conftest.in"
4117 cat "conftest.in" "conftest.in" >"conftest.tmp"
4118 mv "conftest.tmp" "conftest.in"
4119 cp "conftest.in" "conftest.nl"
4120 $as_echo 'EGREP' >> "conftest.nl"
4121 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4123 as_fn_arith $ac_count + 1 && ac_count=$as_val
4124 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4125 # Best one so far, save it but keep looking for a better one
4126 ac_cv_path_EGREP="$ac_path_EGREP"
4127 ac_path_EGREP_max=$ac_count
4129 # 10*(2^10) chars as input seems more than enough
4130 test $ac_count -gt 10 && break
4132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 $ac_path_EGREP_found && break 3
4140 if test -z "$ac_cv_path_EGREP"; then
4141 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4144 ac_cv_path_EGREP=$EGREP
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4150 $as_echo "$ac_cv_path_EGREP" >&6; }
4151 EGREP="$ac_cv_path_EGREP"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4155 $as_echo_n "checking for ANSI C header files... " >&6; }
4156 if test "${ac_cv_header_stdc+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_header_stdc=yes
4177 ac_cv_header_stdc=no
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 if test $ac_cv_header_stdc = yes; then
4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 $EGREP "memchr" >/dev/null 2>&1; then :
4192 ac_cv_header_stdc=no
4198 if test $ac_cv_header_stdc = yes; then
4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 $EGREP "free" >/dev/null 2>&1; then :
4209 ac_cv_header_stdc=no
4215 if test $ac_cv_header_stdc = yes; then
4216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217 if test "$cross_compiling" = yes; then :
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4224 #if ((' ' & 0x0FF) == 0x020)
4225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228 # define ISLOWER(c) \
4229 (('a' <= (c) && (c) <= 'i') \
4230 || ('j' <= (c) && (c) <= 'r') \
4231 || ('s' <= (c) && (c) <= 'z'))
4232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4240 for (i = 0; i < 256; i++)
4241 if (XOR (islower (i), ISLOWER (i))
4242 || toupper (i) != TOUPPER (i))
4247 if ac_fn_c_try_run "$LINENO"; then :
4250 ac_cv_header_stdc=no
4252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4253 conftest.$ac_objext conftest.beam conftest.$ac_ext
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4259 $as_echo "$ac_cv_header_stdc" >&6; }
4260 if test $ac_cv_header_stdc = yes; then
4262 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4266 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4273 eval as_val=\$$as_ac_Header
4274 if test "x$as_val" = x""yes; then :
4275 cat >>confdefs.h <<_ACEOF
4276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4285 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4286 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4293 if test "$MINIX" = yes; then
4295 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4298 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4301 $as_echo "#define _MINIX 1" >>confdefs.h
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4307 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4308 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4314 # define __EXTENSIONS__ 1
4315 $ac_includes_default
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_safe_to_define___extensions__=yes
4327 ac_cv_safe_to_define___extensions__=no
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4332 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4333 test $ac_cv_safe_to_define___extensions__ = yes &&
4334 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4336 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4338 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4340 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4342 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4348 $as_echo_n "checking for library containing strerror... " >&6; }
4349 if test "${ac_cv_search_strerror+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4352 ac_func_search_save_LIBS=$LIBS
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4356 /* Override any GCC internal prototype to avoid an error.
4357 Use char because int might match the return type of a GCC
4358 builtin and then its argument prototype would still apply. */
4371 for ac_lib in '' cposix; do
4372 if test -z "$ac_lib"; then
4373 ac_res="none required"
4376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4378 if ac_fn_c_try_link "$LINENO"; then :
4379 ac_cv_search_strerror=$ac_res
4381 rm -f core conftest.err conftest.$ac_objext \
4383 if test "${ac_cv_search_strerror+set}" = set; then :
4387 if test "${ac_cv_search_strerror+set}" = set; then :
4390 ac_cv_search_strerror=no
4393 LIBS=$ac_func_search_save_LIBS
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4396 $as_echo "$ac_cv_search_strerror" >&6; }
4397 ac_res=$ac_cv_search_strerror
4398 if test "$ac_res" != no; then :
4399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4404 ac_cpp='$CXXCPP $CPPFLAGS'
4405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4410 if test x$GCC = xyes && test x$GXX = xyes; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4412 $as_echo_n "checking for working libsupc++... " >&6; }
4416 LIBS="$LIBS -lsupc++"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 struct test { }; void f() try { throw new test; } catch (...) { throw; }
4430 if ac_fn_cxx_try_link "$LINENO"; then :
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4432 $as_echo "ok" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4436 $as_echo "no, making everything bigger and slower" >&6; }
4442 rm -f core conftest.err conftest.$ac_objext \
4443 conftest$ac_exeext conftest.$ac_ext
4449 if test -z "$orig_CXXFLAGS"; then
4450 if test x$GCC = xyes && test "x$GXX" = xyes; then
4451 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4463 if ac_fn_cxx_try_compile "$LINENO"; then :
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4483 ac_fn_cxx_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4484 if test "x$ac_cv_func_setlocale" = x""yes; then :
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
4488 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
4489 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4492 ac_check_lib_save_LIBS=$LIBS
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4497 /* Override any GCC internal prototype to avoid an error.
4498 Use char because int might match the return type of a GCC
4499 builtin and then its argument prototype would still apply. */
4507 return setlocale ();
4512 if ac_fn_cxx_try_link "$LINENO"; then :
4513 ac_cv_lib_xpg4_setlocale=yes
4515 ac_cv_lib_xpg4_setlocale=no
4517 rm -f core conftest.err conftest.$ac_objext \
4518 conftest$ac_exeext conftest.$ac_ext
4519 LIBS=$ac_check_lib_save_LIBS
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
4522 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
4523 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then :
4530 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4531 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4535 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4536 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4539 ac_check_lib_save_LIBS=$LIBS
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4544 /* Override any GCC internal prototype to avoid an error.
4545 Use char because int might match the return type of a GCC
4546 builtin and then its argument prototype would still apply. */
4550 char gethostbyname ();
4554 return gethostbyname ();
4559 if ac_fn_cxx_try_link "$LINENO"; then :
4560 ac_cv_lib_nsl_gethostbyname=yes
4562 ac_cv_lib_nsl_gethostbyname=no
4564 rm -f core conftest.err conftest.$ac_objext \
4565 conftest$ac_exeext conftest.$ac_ext
4566 LIBS=$ac_check_lib_save_LIBS
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4569 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4570 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4576 ac_fn_cxx_check_func "$LINENO" "socket" "ac_cv_func_socket"
4577 if test "x$ac_cv_func_socket" = x""yes; then :
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4581 $as_echo_n "checking for socket in -lsocket... " >&6; }
4582 if test "${ac_cv_lib_socket_socket+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4585 ac_check_lib_save_LIBS=$LIBS
4586 LIBS="-lsocket $LIBS"
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4590 /* Override any GCC internal prototype to avoid an error.
4591 Use char because int might match the return type of a GCC
4592 builtin and then its argument prototype would still apply. */
4605 if ac_fn_cxx_try_link "$LINENO"; then :
4606 ac_cv_lib_socket_socket=yes
4608 ac_cv_lib_socket_socket=no
4610 rm -f core conftest.err conftest.$ac_objext \
4611 conftest$ac_exeext conftest.$ac_ext
4612 LIBS=$ac_check_lib_save_LIBS
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4615 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4616 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
4617 LIBS="$LIBS -lsocket"
4624 support_inheritpixmap=yes
4626 support_keepscrolling=yes
4627 support_selectionscrolling=yes
4628 support_mousewheel=yes
4629 support_mouseslipwheel=yes
4630 support_text_blink=yes
4631 support_pointer_blank=yes
4632 support_scroll_rxvt=yes
4633 support_scroll_next=yes
4634 support_scroll_xterm=yes
4636 support_afterimage=yes
4637 support_afterstep=yes
4640 support_combining=yes
4641 support_8bitctrls=no
4642 support_iso14755=yes
4648 # Check whether --enable-everything was given.
4649 if test "${enable_everything+set}" = set; then :
4650 enableval=$enable_everything;
4651 if test x$enableval = xno; then
4653 support_inheritpixmap=no
4655 support_keepscrolling=no
4656 support_selectionscrolling=no
4658 support_mousewheel=no
4659 support_mouseslipwheel=no
4660 support_text_blink=no
4661 support_pointer_blank=no
4662 support_scroll_rxvt=no
4663 support_scroll_next=no
4664 support_scroll_xterm=no
4668 support_afterimage=no
4669 support_afterstep=no
4672 support_combining=no
4673 support_8bitctrls=no
4679 if test x$enableval = xyes; then
4681 support_inheritpixmap=yes
4683 support_keepscrolling=yes
4684 support_selectionscrolling=yes
4686 support_mousewheel=yes
4687 support_mouseslipwheel=yes
4688 support_text_blink=yes
4689 support_pointer_blank=yes
4690 support_scroll_rxvt=yes
4691 support_scroll_next=yes
4692 support_scroll_xterm=yes
4696 support_afterimage=yes
4697 support_afterstep=yes
4699 support_unicode3=yes
4700 support_combining=yes
4701 #support_8bitctrls=yes
4702 support_iso14755=yes
4712 # Check whether --enable-assert was given.
4713 if test "${enable_assert+set}" = set; then :
4714 enableval=$enable_assert; if test x$enableval = xyes; then
4719 if test x$ASSERTIONS = xno; then
4721 $as_echo "#define NDEBUG 1" >>confdefs.h
4726 # Check whether --enable-warnings was given.
4727 if test "${enable_warnings+set}" = set; then :
4728 enableval=$enable_warnings; if test x$enableval = xyes; then
4733 if test x$GXX = xyes; then
4734 if test $WARNINGS = yes; then
4735 save_CXXFLAGS="$CXXFLAGS"
4736 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4751 CXXFLAGS="$save_CXXFLAGS"
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 CXXFLAGS="$CXXFLAGS -w"
4759 support_256_color=no
4760 # Check whether --enable-256-color was given.
4761 if test "${enable_256_color+set}" = set; then :
4762 enableval=$enable_256_color; if test x$enableval = xyes; then
4763 support_256_color=yes
4767 if test x$support_256_color = xyes; then
4769 $as_echo "#define USE_256_COLORS 1" >>confdefs.h
4773 # Check whether --enable-unicode3 was given.
4774 if test "${enable_unicode3+set}" = set; then :
4775 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4776 support_unicode3=$enableval
4781 # Check whether --enable-combining was given.
4782 if test "${enable_combining+set}" = set; then :
4783 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4784 support_combining=$enableval
4789 # Check whether --enable-xft was given.
4790 if test "${enable_xft+set}" = set; then :
4791 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4792 support_xft=$enableval
4797 # Check whether --enable-font-styles was given.
4798 if test "${enable_font_styles+set}" = set; then :
4799 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4800 support_styles=$enableval
4805 # Check whether --enable-afterimage was given.
4806 if test "${enable_afterimage+set}" = set; then :
4807 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4808 support_afterimage=$enableval
4814 # Check whether --with-afterimage_config was given.
4815 if test "${with_afterimage_config+set}" = set; then :
4816 withval=$with_afterimage_config; if test "x$withval" != x; then
4817 afterimage_config=$withval/afterimage-config
4823 # Check whether --enable-transparency was given.
4824 if test "${enable_transparency+set}" = set; then :
4825 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4826 support_inheritpixmap=$enableval
4831 # Check whether --enable-fading was given.
4832 if test "${enable_fading+set}" = set; then :
4833 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4834 support_fading=$enableval
4839 # Check whether --enable-rxvt-scroll was given.
4840 if test "${enable_rxvt_scroll+set}" = set; then :
4841 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4842 support_scroll_rxvt=$enableval
4847 # Check whether --enable-next-scroll was given.
4848 if test "${enable_next_scroll+set}" = set; then :
4849 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4850 support_scroll_next=$enableval
4855 # Check whether --enable-xterm-scroll was given.
4856 if test "${enable_xterm_scroll+set}" = set; then :
4857 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4858 support_scroll_xterm=$enableval
4863 # Check whether --enable-perl was given.
4864 if test "${enable_perl+set}" = set; then :
4865 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4866 support_perl=$enableval
4872 # Check whether --with-codesets was given.
4873 if test "${with_codesets+set}" = set; then :
4874 withval=$with_codesets; codesets="$withval"
4878 # Check whether --enable-xim was given.
4879 if test "${enable_xim+set}" = set; then :
4880 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4881 support_xim=$enableval
4886 # Check whether --enable-backspace-key was given.
4887 if test "${enable_backspace_key+set}" = set; then :
4888 enableval=$enable_backspace_key; if test x$enableval = xno; then
4890 $as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4896 # Check whether --enable-delete-key was given.
4897 if test "${enable_delete_key+set}" = set; then :
4898 enableval=$enable_delete_key; if test x$enableval = xno; then
4900 $as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4906 # Check whether --enable-resources was given.
4907 if test "${enable_resources+set}" = set; then :
4908 enableval=$enable_resources; if test x$enableval = xno; then
4910 $as_echo "#define NO_RESOURCES 1" >>confdefs.h
4916 # Check whether --enable-8bitctrls was given.
4917 if test "${enable_8bitctrls+set}" = set; then :
4918 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4919 support_8bitctrls=$enableval
4925 # Check whether --enable-fallback was given.
4926 if test "${enable_fallback+set}" = set; then :
4927 enableval=$enable_fallback;
4928 test x$enableval = xyes && enableval=Rxvt
4929 test x$enableval = xno && enableval=
4930 RESFALLBACK="$enableval"
4935 if test x$RESFALLBACK != x; then
4937 cat >>confdefs.h <<_ACEOF
4938 #define RESFALLBACK "$RESFALLBACK"
4945 # Check whether --with-res-name was given.
4946 if test "${with_res_name+set}" = set; then :
4947 withval=$with_res_name; RESNAME="$withval"
4951 cat >>confdefs.h <<_ACEOF
4952 #define RESNAME "$RESNAME"
4958 # Check whether --with-res-class was given.
4959 if test "${with_res_class+set}" = set; then :
4960 withval=$with_res_class; RESCLASS="$withval"
4964 cat >>confdefs.h <<_ACEOF
4965 #define RESCLASS "$RESCLASS"
4971 # Check whether --with-name was given.
4972 if test "${with_name+set}" = set; then :
4973 withval=$with_name; RXVTNAME="$withval"
4977 cat >>confdefs.h <<_ACEOF
4978 #define RXVTNAME "$RXVTNAME"
4982 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4985 # Check whether --enable-swapscreen was given.
4986 if test "${enable_swapscreen+set}" = set; then :
4987 enableval=$enable_swapscreen; if test x$enableval = xno; then
4989 $as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
4995 # Check whether --enable-iso14755 was given.
4996 if test "${enable_iso14755+set}" = set; then :
4997 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4998 support_iso14755=$enableval
5003 # Check whether --enable-frills was given.
5004 if test "${enable_frills+set}" = set; then :
5005 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5006 support_frills=$enableval
5011 # Check whether --enable-keepscrolling was given.
5012 if test "${enable_keepscrolling+set}" = set; then :
5013 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5014 support_keepscrolling=$enableval
5019 # Check whether --enable-selectionscrolling was given.
5020 if test "${enable_selectionscrolling+set}" = set; then :
5021 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5022 support_selectionscrolling=$enableval
5027 # Check whether --enable-mousewheel was given.
5028 if test "${enable_mousewheel+set}" = set; then :
5029 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5030 support_mousewheel=$enableval
5035 # Check whether --enable-slipwheeling was given.
5036 if test "${enable_slipwheeling+set}" = set; then :
5037 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5038 support_mouseslipwheel=$enableval
5043 # Check whether --enable-smart-resize was given.
5044 if test "${enable_smart_resize+set}" = set; then :
5045 enableval=$enable_smart_resize; if test x$enableval = xyes; then
5047 $as_echo "#define SMART_RESIZE 1" >>confdefs.h
5053 # Check whether --enable-text-blink was given.
5054 if test "${enable_text_blink+set}" = set; then :
5055 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5056 support_text_blink=$enableval
5061 # Check whether --enable-pointer-blank was given.
5062 if test "${enable_pointer_blank+set}" = set; then :
5063 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5064 support_pointer_blank=$enableval
5070 # Check whether --with-term was given.
5071 if test "${with_term+set}" = set; then :
5072 withval=$with_term; if test x$withval != x; then
5074 cat >>confdefs.h <<_ACEOF
5075 #define TERMENV "$withval"
5083 # Check whether --with-terminfo was given.
5084 if test "${with_terminfo+set}" = set; then :
5085 withval=$with_terminfo; if test x$withval != x; then
5087 cat >>confdefs.h <<_ACEOF
5088 #define RXVT_TERMINFO "$withval"
5096 LIBEV_M4_AVOID_LIBRT=1
5099 ac_cpp='$CXXCPP $CPPFLAGS'
5100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5104 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5105 if test -z "$CXXCPP"; then
5106 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5109 # Double quotes because CXXCPP needs to be expanded
5110 for CXXCPP in "$CXX -E" "/lib/cpp"
5113 for ac_cxx_preproc_warn_flag in '' yes
5115 # Use a header file that comes with gcc, so configuring glibc
5116 # with a fresh cross-compiler works.
5117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5118 # <limits.h> exists even on freestanding compilers.
5119 # On the NeXT, cc -E runs the code through the compiler's parser,
5120 # not just through cpp. "Syntax error" is here to catch this case.
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5124 # include <limits.h>
5126 # include <assert.h>
5130 if ac_fn_cxx_try_cpp "$LINENO"; then :
5133 # Broken: fails on valid input.
5136 rm -f conftest.err conftest.$ac_ext
5138 # OK, works on sane cases. Now check whether nonexistent headers
5139 # can be detected and how.
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 #include <ac_nonexistent.h>
5144 if ac_fn_cxx_try_cpp "$LINENO"; then :
5145 # Broken: success on invalid input.
5148 # Passes both tests.
5152 rm -f conftest.err conftest.$ac_ext
5155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156 rm -f conftest.err conftest.$ac_ext
5157 if $ac_preproc_ok; then :
5162 ac_cv_prog_CXXCPP=$CXXCPP
5165 CXXCPP=$ac_cv_prog_CXXCPP
5167 ac_cv_prog_CXXCPP=$CXXCPP
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5170 $as_echo "$CXXCPP" >&6; }
5172 for ac_cxx_preproc_warn_flag in '' yes
5174 # Use a header file that comes with gcc, so configuring glibc
5175 # with a fresh cross-compiler works.
5176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5177 # <limits.h> exists even on freestanding compilers.
5178 # On the NeXT, cc -E runs the code through the compiler's parser,
5179 # not just through cpp. "Syntax error" is here to catch this case.
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5183 # include <limits.h>
5185 # include <assert.h>
5189 if ac_fn_cxx_try_cpp "$LINENO"; then :
5192 # Broken: fails on valid input.
5195 rm -f conftest.err conftest.$ac_ext
5197 # OK, works on sane cases. Now check whether nonexistent headers
5198 # can be detected and how.
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 #include <ac_nonexistent.h>
5203 if ac_fn_cxx_try_cpp "$LINENO"; then :
5204 # Broken: success on invalid input.
5207 # Passes both tests.
5211 rm -f conftest.err conftest.$ac_ext
5214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.err conftest.$ac_ext
5216 if $ac_preproc_ok; then :
5219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5221 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5222 See \`config.log' for more details." "$LINENO" 5; }
5226 ac_cpp='$CXXCPP $CPPFLAGS'
5227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5232 for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5235 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5236 eval as_val=\$$as_ac_Header
5237 if test "x$as_val" = x""yes; then :
5238 cat >>confdefs.h <<_ACEOF
5239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5247 for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5250 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5251 eval as_val=\$$as_ac_var
5252 if test "x$as_val" = x""yes; then :
5253 cat >>confdefs.h <<_ACEOF
5254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5261 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5262 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5266 if test $(uname) = Linux; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5268 $as_echo_n "checking for clock_gettime syscall... " >&6; }
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5272 #include <sys/syscall.h>
5277 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5282 if ac_fn_cxx_try_link "$LINENO"; then :
5283 ac_have_clock_syscall=1
5285 $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5288 $as_echo "yes" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5293 rm -f core conftest.err conftest.$ac_objext \
5294 conftest$ac_exeext conftest.$ac_ext
5296 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5298 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5299 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5302 ac_check_lib_save_LIBS=$LIBS
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5307 /* Override any GCC internal prototype to avoid an error.
5308 Use char because int might match the return type of a GCC
5309 builtin and then its argument prototype would still apply. */
5313 char clock_gettime ();
5317 return clock_gettime ();
5322 if ac_fn_cxx_try_link "$LINENO"; then :
5323 ac_cv_lib_rt_clock_gettime=yes
5325 ac_cv_lib_rt_clock_gettime=no
5327 rm -f core conftest.err conftest.$ac_objext \
5328 conftest$ac_exeext conftest.$ac_ext
5329 LIBS=$ac_check_lib_save_LIBS
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5332 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5333 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5334 cat >>confdefs.h <<_ACEOF
5335 #define HAVE_LIBRT 1
5342 unset ac_cv_func_clock_gettime
5343 for ac_func in clock_gettime
5345 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5346 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5347 cat >>confdefs.h <<_ACEOF
5348 #define HAVE_CLOCK_GETTIME 1
5359 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5360 if test "x$ac_cv_func_nanosleep" = x""yes; then :
5364 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5366 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
5367 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5370 ac_check_lib_save_LIBS=$LIBS
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5375 /* Override any GCC internal prototype to avoid an error.
5376 Use char because int might match the return type of a GCC
5377 builtin and then its argument prototype would still apply. */
5385 return nanosleep ();
5390 if ac_fn_cxx_try_link "$LINENO"; then :
5391 ac_cv_lib_rt_nanosleep=yes
5393 ac_cv_lib_rt_nanosleep=no
5395 rm -f core conftest.err conftest.$ac_objext \
5396 conftest$ac_exeext conftest.$ac_ext
5397 LIBS=$ac_check_lib_save_LIBS
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5400 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5401 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5402 cat >>confdefs.h <<_ACEOF
5403 #define HAVE_LIBRT 1
5410 unset ac_cv_func_nanosleep
5411 for ac_func in nanosleep
5413 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5414 if test "x$ac_cv_func_nanosleep" = x""yes; then :
5415 cat >>confdefs.h <<_ACEOF
5416 #define HAVE_NANOSLEEP 1
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
5428 $as_echo_n "checking for ceil in -lm... " >&6; }
5429 if test "${ac_cv_lib_m_ceil+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 ac_check_lib_save_LIBS=$LIBS
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5437 /* Override any GCC internal prototype to avoid an error.
5438 Use char because int might match the return type of a GCC
5439 builtin and then its argument prototype would still apply. */
5452 if ac_fn_cxx_try_link "$LINENO"; then :
5453 ac_cv_lib_m_ceil=yes
5457 rm -f core conftest.err conftest.$ac_objext \
5458 conftest$ac_exeext conftest.$ac_ext
5459 LIBS=$ac_check_lib_save_LIBS
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
5462 $as_echo "$ac_cv_lib_m_ceil" >&6; }
5463 if test "x$ac_cv_lib_m_ceil" = x""yes; then :
5464 cat >>confdefs.h <<_ACEOF
5476 # Extract the first word of "tic", so it can be a program name with args.
5477 set dummy tic; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if test "${ac_cv_path_TIC+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5485 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5508 if test -n "$TIC"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5510 $as_echo "$TIC" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5519 $as_echo_n "checking for X... " >&6; }
5522 # Check whether --with-x was given.
5523 if test "${with_x+set}" = set; then :
5527 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5528 if test "x$with_x" = xno; then
5529 # The user explicitly disabled X.
5532 case $x_includes,$x_libraries in #(
5533 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5534 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5537 # One or both of the vars are not set, and there is no cached value.
5538 ac_x_includes=no ac_x_libraries=no
5539 rm -f -r conftest.dir
5540 if mkdir conftest.dir; then
5542 cat >Imakefile <<'_ACEOF'
5544 @echo incroot='${INCROOT}'
5546 @echo usrlibdir='${USRLIBDIR}'
5548 @echo libdir='${LIBDIR}'
5550 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5551 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5552 for ac_var in incroot usrlibdir libdir; do
5553 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5555 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5556 for ac_extension in a so sl dylib la dll; do
5557 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5558 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5559 ac_im_usrlibdir=$ac_im_libdir; break
5562 # Screen out bogus values from the imake configuration. They are
5563 # bogus both because they are the default anyway, and because
5564 # using them would break gcc on systems where it needs fixed includes.
5565 case $ac_im_incroot in
5566 /usr/include) ac_x_includes= ;;
5567 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5569 case $ac_im_usrlibdir in
5570 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5571 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5575 rm -f -r conftest.dir
5578 # Standard set of common directories for X headers.
5579 # Check X11 before X11Rn because it is often a symlink to the current release.
5593 /usr/local/X11/include
5594 /usr/local/X11R7/include
5595 /usr/local/X11R6/include
5596 /usr/local/X11R5/include
5597 /usr/local/X11R4/include
5599 /usr/local/include/X11
5600 /usr/local/include/X11R7
5601 /usr/local/include/X11R6
5602 /usr/local/include/X11R5
5603 /usr/local/include/X11R4
5607 /usr/XFree86/include/X11
5611 /usr/unsupported/include
5613 /usr/local/x11r5/include
5614 /usr/lpp/Xamples/include
5616 /usr/openwin/include
5617 /usr/openwin/share/include'
5619 if test "$ac_x_includes" = no; then
5620 # Guess where to find include files, by looking for Xlib.h.
5621 # First, try using that file with no special directory specified.
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 #include <X11/Xlib.h>
5626 if ac_fn_cxx_try_cpp "$LINENO"; then :
5627 # We can compile using X headers with no special include directory.
5630 for ac_dir in $ac_x_header_dirs; do
5631 if test -r "$ac_dir/X11/Xlib.h"; then
5632 ac_x_includes=$ac_dir
5637 rm -f conftest.err conftest.$ac_ext
5638 fi # $ac_x_includes = no
5640 if test "$ac_x_libraries" = no; then
5641 # Check for the libraries.
5642 # See if we find them without any special options.
5643 # Don't add to $LIBS permanently.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <X11/Xlib.h>
5657 if ac_fn_cxx_try_link "$LINENO"; then :
5659 # We can link X programs with no special library path.
5663 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5665 # Don't even attempt the hair of trying to link an X program!
5666 for ac_extension in a so sl dylib la dll; do
5667 if test -r "$ac_dir/libX11.$ac_extension"; then
5668 ac_x_libraries=$ac_dir
5674 rm -f core conftest.err conftest.$ac_objext \
5675 conftest$ac_exeext conftest.$ac_ext
5676 fi # $ac_x_libraries = no
5678 case $ac_x_includes,$ac_x_libraries in #(
5680 # Didn't find X, or a directory has "'" in its name.
5681 ac_cv_have_x="have_x=no";; #(
5683 # Record where we found X for the cache.
5684 ac_cv_have_x="have_x=yes\
5685 ac_x_includes='$ac_x_includes'\
5686 ac_x_libraries='$ac_x_libraries'"
5692 eval "$ac_cv_have_x"
5695 if test "$have_x" != yes; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5697 $as_echo "$have_x" >&6; }
5700 # If each of the values was on the command line, it overrides each guess.
5701 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5702 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5703 # Update the cache value to reflect the command line values.
5704 ac_cv_have_x="have_x=yes\
5705 ac_x_includes='$x_includes'\
5706 ac_x_libraries='$x_libraries'"
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5708 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5711 if test "$no_x" = yes; then
5712 # Not all programs may use this symbol, but it does not hurt to define it.
5714 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5716 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5718 if test -n "$x_includes"; then
5719 X_CFLAGS="$X_CFLAGS -I$x_includes"
5722 # It would also be nice to do this for all -L options, not just this one.
5723 if test -n "$x_libraries"; then
5724 X_LIBS="$X_LIBS -L$x_libraries"
5725 # For Solaris; some versions of Sun CC require a space after -R and
5726 # others require no space. Words are not sufficient . . . .
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5728 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5729 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5730 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5731 ac_cxx_werror_flag=yes
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5743 if ac_fn_cxx_try_link "$LINENO"; then :
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746 X_LIBS="$X_LIBS -R$x_libraries"
5748 LIBS="$ac_xsave_LIBS -R $x_libraries"
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5760 if ac_fn_cxx_try_link "$LINENO"; then :
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5762 $as_echo "yes" >&6; }
5763 X_LIBS="$X_LIBS -R $x_libraries"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5766 $as_echo "neither works" >&6; }
5768 rm -f core conftest.err conftest.$ac_objext \
5769 conftest$ac_exeext conftest.$ac_ext
5771 rm -f core conftest.err conftest.$ac_objext \
5772 conftest$ac_exeext conftest.$ac_ext
5773 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5777 # Check for system-dependent libraries X programs must link with.
5778 # Do this before checking for the system-independent R6 libraries
5779 # (-lICE), since we may need -lsocket or whatever for X linking.
5781 if test "$ISC" = yes; then
5782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5784 # Martyn Johnson says this is needed for Ultrix, if the X
5785 # libraries were built with DECnet support. And Karl Berry says
5786 # the Alpha needs dnet_stub (dnet does not exist).
5787 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5791 /* Override any GCC internal prototype to avoid an error.
5792 Use char because int might match the return type of a GCC
5793 builtin and then its argument prototype would still apply. */
5797 char XOpenDisplay ();
5801 return XOpenDisplay ();
5806 if ac_fn_cxx_try_link "$LINENO"; then :
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5810 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5811 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5814 ac_check_lib_save_LIBS=$LIBS
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5819 /* Override any GCC internal prototype to avoid an error.
5820 Use char because int might match the return type of a GCC
5821 builtin and then its argument prototype would still apply. */
5829 return dnet_ntoa ();
5834 if ac_fn_cxx_try_link "$LINENO"; then :
5835 ac_cv_lib_dnet_dnet_ntoa=yes
5837 ac_cv_lib_dnet_dnet_ntoa=no
5839 rm -f core conftest.err conftest.$ac_objext \
5840 conftest$ac_exeext conftest.$ac_ext
5841 LIBS=$ac_check_lib_save_LIBS
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5844 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5845 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5846 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5849 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5851 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5852 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5855 ac_check_lib_save_LIBS=$LIBS
5856 LIBS="-ldnet_stub $LIBS"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5860 /* Override any GCC internal prototype to avoid an error.
5861 Use char because int might match the return type of a GCC
5862 builtin and then its argument prototype would still apply. */
5870 return dnet_ntoa ();
5875 if ac_fn_cxx_try_link "$LINENO"; then :
5876 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5878 ac_cv_lib_dnet_stub_dnet_ntoa=no
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5885 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5886 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LIBS="$ac_xsave_LIBS"
5896 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5897 # to get the SysV transport functions.
5898 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5900 # The nsl library prevents programs from opening the X display
5901 # on Irix 5.2, according to T.E. Dickey.
5902 # The functions gethostbyname, getservbyname, and inet_addr are
5903 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5904 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5905 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5909 if test $ac_cv_func_gethostbyname = no; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5911 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5912 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5915 ac_check_lib_save_LIBS=$LIBS
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5920 /* Override any GCC internal prototype to avoid an error.
5921 Use char because int might match the return type of a GCC
5922 builtin and then its argument prototype would still apply. */
5926 char gethostbyname ();
5930 return gethostbyname ();
5935 if ac_fn_cxx_try_link "$LINENO"; then :
5936 ac_cv_lib_nsl_gethostbyname=yes
5938 ac_cv_lib_nsl_gethostbyname=no
5940 rm -f core conftest.err conftest.$ac_objext \
5941 conftest$ac_exeext conftest.$ac_ext
5942 LIBS=$ac_check_lib_save_LIBS
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5945 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5946 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5950 if test $ac_cv_lib_nsl_gethostbyname = no; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5952 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5953 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 ac_check_lib_save_LIBS=$LIBS
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5961 /* Override any GCC internal prototype to avoid an error.
5962 Use char because int might match the return type of a GCC
5963 builtin and then its argument prototype would still apply. */
5967 char gethostbyname ();
5971 return gethostbyname ();
5976 if ac_fn_cxx_try_link "$LINENO"; then :
5977 ac_cv_lib_bsd_gethostbyname=yes
5979 ac_cv_lib_bsd_gethostbyname=no
5981 rm -f core conftest.err conftest.$ac_objext \
5982 conftest$ac_exeext conftest.$ac_ext
5983 LIBS=$ac_check_lib_save_LIBS
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5986 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5987 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5994 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5995 # socket/setsockopt and other routines are undefined under SCO ODT
5996 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5997 # on later versions), says Simon Leinen: it contains gethostby*
5998 # variants that don't use the name server (or something). -lsocket
5999 # must be given before -lnsl if both are needed. We assume that
6000 # if connect needs -lnsl, so does gethostbyname.
6001 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6002 if test "x$ac_cv_func_connect" = x""yes; then :
6006 if test $ac_cv_func_connect = no; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6008 $as_echo_n "checking for connect in -lsocket... " >&6; }
6009 if test "${ac_cv_lib_socket_connect+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6012 ac_check_lib_save_LIBS=$LIBS
6013 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6017 /* Override any GCC internal prototype to avoid an error.
6018 Use char because int might match the return type of a GCC
6019 builtin and then its argument prototype would still apply. */
6032 if ac_fn_cxx_try_link "$LINENO"; then :
6033 ac_cv_lib_socket_connect=yes
6035 ac_cv_lib_socket_connect=no
6037 rm -f core conftest.err conftest.$ac_objext \
6038 conftest$ac_exeext conftest.$ac_ext
6039 LIBS=$ac_check_lib_save_LIBS
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6042 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6043 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6044 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6049 # Guillermo Gomez says -lposix is necessary on A/UX.
6050 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6051 if test "x$ac_cv_func_remove" = x""yes; then :
6055 if test $ac_cv_func_remove = no; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6057 $as_echo_n "checking for remove in -lposix... " >&6; }
6058 if test "${ac_cv_lib_posix_remove+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6061 ac_check_lib_save_LIBS=$LIBS
6062 LIBS="-lposix $LIBS"
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6066 /* Override any GCC internal prototype to avoid an error.
6067 Use char because int might match the return type of a GCC
6068 builtin and then its argument prototype would still apply. */
6081 if ac_fn_cxx_try_link "$LINENO"; then :
6082 ac_cv_lib_posix_remove=yes
6084 ac_cv_lib_posix_remove=no
6086 rm -f core conftest.err conftest.$ac_objext \
6087 conftest$ac_exeext conftest.$ac_ext
6088 LIBS=$ac_check_lib_save_LIBS
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6091 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6092 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6098 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6099 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6100 if test "x$ac_cv_func_shmat" = x""yes; then :
6104 if test $ac_cv_func_shmat = no; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6106 $as_echo_n "checking for shmat in -lipc... " >&6; }
6107 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
6110 ac_check_lib_save_LIBS=$LIBS
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6115 /* Override any GCC internal prototype to avoid an error.
6116 Use char because int might match the return type of a GCC
6117 builtin and then its argument prototype would still apply. */
6130 if ac_fn_cxx_try_link "$LINENO"; then :
6131 ac_cv_lib_ipc_shmat=yes
6133 ac_cv_lib_ipc_shmat=no
6135 rm -f core conftest.err conftest.$ac_objext \
6136 conftest$ac_exeext conftest.$ac_ext
6137 LIBS=$ac_check_lib_save_LIBS
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6140 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6141 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6148 # Check for libraries that X11R6 Xt/Xaw programs need.
6149 ac_save_LDFLAGS=$LDFLAGS
6150 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6151 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6152 # check for ICE first), but we must link in the order -lSM -lICE or
6153 # we get undefined symbols. So assume we have SM if we have ICE.
6154 # These have to be linked with before -lX11, unlike the other
6155 # libraries we check for below, so use a different variable.
6156 # John Interrante, Karl Berry
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6158 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6159 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6162 ac_check_lib_save_LIBS=$LIBS
6163 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6167 /* Override any GCC internal prototype to avoid an error.
6168 Use char because int might match the return type of a GCC
6169 builtin and then its argument prototype would still apply. */
6173 char IceConnectionNumber ();
6177 return IceConnectionNumber ();
6182 if ac_fn_cxx_try_link "$LINENO"; then :
6183 ac_cv_lib_ICE_IceConnectionNumber=yes
6185 ac_cv_lib_ICE_IceConnectionNumber=no
6187 rm -f core conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext conftest.$ac_ext
6189 LIBS=$ac_check_lib_save_LIBS
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6192 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6193 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6194 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6197 LDFLAGS=$ac_save_LDFLAGS
6206 if test x$support_afterimage = xyes; then
6207 support_afterimage=no
6209 if test "x$afterimage_config" = "x" ; then
6210 # Extract the first word of "afterimage-config", so it can be a program name with args.
6211 set dummy afterimage-config; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_path_afterimage_config+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6217 case $afterimage_config in
6219 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6241 afterimage_config=$ac_cv_path_afterimage_config
6242 if test -n "$afterimage_config"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6244 $as_echo "$afterimage_config" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6252 if test "x$afterimage_config" != "xno" ; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6254 $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6255 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6256 if test -n "$xAFTERIMAGE_VERSION" ; then
6257 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6258 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6259 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6260 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6261 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6262 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6263 support_afterimage=yes
6264 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6265 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6266 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6270 if test "x$support_afterimage" = "xyes"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6272 $as_echo "$AFTERIMAGE_LIBS" >&6; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6291 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6292 eval as_val=\$$as_ac_Header
6293 if test "x$as_val" = x""yes; then :
6294 cat >>confdefs.h <<_ACEOF
6295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
6304 $as_echo_n "checking for XPointer... " >&6; }
6305 if test "${rxvt_cv_xpointer+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 #include <X11/Xlib.h>
6319 if ac_fn_cxx_try_compile "$LINENO"; then :
6320 rxvt_cv_xpointer=yes
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xpointer" >&5
6327 $as_echo "$rxvt_cv_xpointer" >&6; }
6328 if test x$rxvt_cv_xpointer = xyes; then
6330 $as_echo "#define HAVE_XPOINTER 1" >>confdefs.h
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6335 $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6336 if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6337 $as_echo_n "(cached) " >&6
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6342 #define XLIB_ILLEGAL_ACCESS
6343 #include <X11/Xlib.h>
6350 dpy->xdefaults = (char *)0;
6356 if ac_fn_cxx_try_compile "$LINENO"; then :
6357 rxvt_cv_xlib_illegal_access=yes
6359 rxvt_cv_xlib_illegal_access=no
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6365 $as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6366 if test x$rxvt_cv_xlib_illegal_access = xyes; then
6368 $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6372 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6373 if test "x$ac_cv_type_mode_t" = x""yes; then :
6377 cat >>confdefs.h <<_ACEOF
6383 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6384 if test "x$ac_cv_type_pid_t" = x""yes; then :
6388 cat >>confdefs.h <<_ACEOF
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6395 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6396 if test "${ac_cv_type_uid_t+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 #include <sys/types.h>
6404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6405 $EGREP "uid_t" >/dev/null 2>&1; then :
6406 ac_cv_type_uid_t=yes
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6414 $as_echo "$ac_cv_type_uid_t" >&6; }
6415 if test $ac_cv_type_uid_t = no; then
6417 $as_echo "#define uid_t int" >>confdefs.h
6420 $as_echo "#define gid_t int" >>confdefs.h
6424 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6425 case $ac_cv_c_int16_t in #(
6429 cat >>confdefs.h <<_ACEOF
6430 #define int16_t $ac_cv_c_int16_t
6435 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6436 case $ac_cv_c_uint16_t in #(
6441 cat >>confdefs.h <<_ACEOF
6442 #define uint16_t $ac_cv_c_uint16_t
6447 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6448 case $ac_cv_c_int32_t in #(
6452 cat >>confdefs.h <<_ACEOF
6453 #define int32_t $ac_cv_c_int32_t
6458 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6459 case $ac_cv_c_uint32_t in #(
6463 $as_echo "#define _UINT32_T 1" >>confdefs.h
6466 cat >>confdefs.h <<_ACEOF
6467 #define uint32_t $ac_cv_c_uint32_t
6473 for ac_func in unsetenv
6475 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6476 if test "x$ac_cv_func_unsetenv" = x""yes; then :
6477 cat >>confdefs.h <<_ACEOF
6478 #define HAVE_UNSETENV 1
6490 # Check whether --enable-utmp was given.
6491 if test "${enable_utmp+set}" = set; then :
6492 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6493 support_utmp=$enableval
6498 # Check whether --enable-wtmp was given.
6499 if test "${enable_wtmp+set}" = set; then :
6500 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6501 support_wtmp=$enableval
6506 # Check whether --enable-lastlog was given.
6507 if test "${enable_lastlog+set}" = set; then :
6508 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6509 support_lastlog=$enableval
6514 if test x$support_utmp = xyes; then
6516 $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6519 if test x$support_wtmp = xyes; then
6521 $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6524 if test x$support_lastlog = xyes; then
6526 $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6537 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6538 eval as_val=\$$as_ac_var
6539 if test "x$as_val" = x""yes; then :
6540 cat >>confdefs.h <<_ACEOF
6541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6548 for ac_header in lastlog.h
6550 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6551 if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6552 cat >>confdefs.h <<_ACEOF
6553 #define HAVE_LASTLOG_H 1
6562 for ac_header in utmp.h
6564 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6565 if test "x$ac_cv_header_utmp_h" = x""yes; then :
6566 cat >>confdefs.h <<_ACEOF
6567 #define HAVE_UTMP_H 1
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmp" >&5
6570 $as_echo_n "checking for struct utmp... " >&6; }
6571 if test "${pt_cv_struct_utmp+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <sys/types.h>
6586 if ac_fn_cxx_try_compile "$LINENO"; then :
6587 pt_cv_struct_utmp=yes
6589 pt_cv_struct_utmp=no
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp" >&5
6594 $as_echo "$pt_cv_struct_utmp" >&6; }
6595 if test x$pt_cv_struct_utmp = xyes; then
6597 $as_echo "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in utmp struct" >&5
6603 $as_echo_n "checking for ut_host in utmp struct... " >&6; }
6604 if test "${pt_cv_struct_utmp_host+set}" = set; then :
6605 $as_echo_n "(cached) " >&6
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609 #include <sys/types.h>
6614 struct utmp ut; ut.ut_host;
6619 if ac_fn_cxx_try_compile "$LINENO"; then :
6620 pt_cv_struct_utmp_host=yes
6622 pt_cv_struct_utmp_host=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_host" >&5
6627 $as_echo "$pt_cv_struct_utmp_host" >&6; }
6628 if test x$pt_cv_struct_utmp_host = xyes; then
6630 $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in utmp struct" >&5
6635 $as_echo_n "checking for ut_pid in utmp struct... " >&6; }
6636 if test "${pt_cv_struct_utmp_pid+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 #include <sys/types.h>
6646 struct utmp ut; ut.ut_pid;
6651 if ac_fn_cxx_try_compile "$LINENO"; then :
6652 pt_cv_struct_utmp_pid=yes
6654 pt_cv_struct_utmp_pid=no
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_pid" >&5
6659 $as_echo "$pt_cv_struct_utmp_pid" >&6; }
6660 if test x$pt_cv_struct_utmp_pid = xyes; then
6662 $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6671 for ac_header in utmpx.h
6673 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6674 if test "x$ac_cv_header_utmpx_h" = x""yes; then :
6675 cat >>confdefs.h <<_ACEOF
6676 #define HAVE_UTMPX_H 1
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmpx" >&5
6679 $as_echo_n "checking for struct utmpx... " >&6; }
6680 if test "${pt_cv_struct_utmpx+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 #include <sys/types.h>
6695 if ac_fn_cxx_try_compile "$LINENO"; then :
6696 pt_cv_struct_utmpx=yes
6698 pt_cv_struct_utmpx=no
6700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx" >&5
6703 $as_echo "$pt_cv_struct_utmpx" >&6; }
6704 if test x$pt_cv_struct_utmpx = xyes; then
6706 $as_echo "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host in utmpx struct" >&5
6712 $as_echo_n "checking for host in utmpx struct... " >&6; }
6713 if test "${pt_cv_struct_utmpx_host+set}" = set; then :
6714 $as_echo_n "(cached) " >&6
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #include <sys/types.h>
6723 struct utmpx utx; utx.ut_host;
6728 if ac_fn_cxx_try_compile "$LINENO"; then :
6729 pt_cv_struct_utmpx_host=yes
6731 pt_cv_struct_utmpx_host=no
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_host" >&5
6736 $as_echo "$pt_cv_struct_utmpx_host" >&6; }
6737 if test x$pt_cv_struct_utmpx_host = xyes; then
6739 $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for session in utmpx struct" >&5
6744 $as_echo_n "checking for session in utmpx struct... " >&6; }
6745 if test "${pt_cv_struct_utmpx_session+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <sys/types.h>
6755 struct utmpx utx; utx.ut_session;
6760 if ac_fn_cxx_try_compile "$LINENO"; then :
6761 pt_cv_struct_utmpx_session=yes
6763 pt_cv_struct_utmpx_session=no
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_session" >&5
6768 $as_echo "$pt_cv_struct_utmpx_session" >&6; }
6769 if test x$pt_cv_struct_utmpx_session = xyes; then
6771 $as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlog" >&5
6780 $as_echo_n "checking for struct lastlog... " >&6; }
6781 if test "${pt_cv_struct_lastlog+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6788 #ifdef HAVE_LASTLOG_H
6789 #include <lastlog.h>
6800 if ac_fn_cxx_try_compile "$LINENO"; then :
6801 pt_cv_struct_lastlog=yes
6803 pt_cv_struct_lastlog=no
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlog" >&5
6808 $as_echo "$pt_cv_struct_lastlog" >&6; }
6809 if test x$pt_cv_struct_lastlog = xyes; then
6811 $as_echo "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlogx" >&5
6816 $as_echo_n "checking for struct lastlogx... " >&6; }
6817 if test "${pt_cv_struct_lastlogx+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 #include <sys/types.h>
6824 #ifdef HAVE_LASTLOG_H
6825 #include <lastlog.h>
6836 if ac_fn_cxx_try_compile "$LINENO"; then :
6837 pt_cv_struct_lastlogx=yes
6839 pt_cv_struct_lastlogx=no
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlogx" >&5
6844 $as_echo "$pt_cv_struct_lastlogx" >&6; }
6845 if test x$pt_cv_struct_lastlogx = xyes; then
6847 $as_echo "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5
6853 $as_echo_n "checking where utmp is located... " >&6; }
6854 if test "${pt_cv_path_utmp+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6857 if test "$cross_compiling" = yes; then :
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5
6859 $as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6865 #include <sys/types.h>
6870 char **u, *utmplist[] = {
6871 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
6872 FILE *a, *f=fopen("conftestval", "w");
6875 fprintf(f, "%s\n", UTMP_FILE);
6879 fprintf(f, "%s\n", _PATH_UTMP);
6882 for (u = utmplist; *u; u++) {
6883 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
6884 fprintf(f, "%s\n", *u);
6891 if ac_fn_cxx_try_run "$LINENO"; then :
6892 pt_cv_path_utmp=`cat conftestval`
6896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6897 conftest.$ac_objext conftest.beam conftest.$ac_ext
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6902 $as_echo "$pt_cv_path_utmp" >&6; }
6903 if test x$pt_cv_path_utmp != x; then
6905 cat >>confdefs.h <<_ACEOF
6906 #define UTMP_FILE "$pt_cv_path_utmp"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmpx is located" >&5
6913 $as_echo_n "checking where utmpx is located... " >&6; }
6914 if test "${pt_cv_path_utmpx+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6917 if test "$cross_compiling" = yes; then :
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMPX_FILE in config.h manually" >&5
6919 $as_echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6925 #include <sys/types.h>
6928 #include <sys/stat.h>
6929 #ifdef HAVE_STRING_H
6934 char **u, *p, *utmplist[] = {
6941 "/var/adm/utmpx", "/etc/utmpx", NULL };
6942 FILE *a, *f=fopen("conftestval", "w");
6943 struct stat statu, statux;
6945 for (u = utmplist; *u; u++) {
6946 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
6947 if (stat(*u, &statux) < 0)
6950 p[strlen(p) - 1] = '\0';
6951 if (stat(p, &statu) >= 0
6952 && (statu.st_mtime - statux.st_mtime > 86400))
6954 fprintf(f, "%s\n", *u);
6961 if ac_fn_cxx_try_run "$LINENO"; then :
6962 pt_cv_path_utmpx=`cat conftestval`
6966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6967 conftest.$ac_objext conftest.beam conftest.$ac_ext
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmpx" >&5
6972 $as_echo "$pt_cv_path_utmpx" >&6; }
6973 if test x$pt_cv_path_utmpx != x; then
6975 cat >>confdefs.h <<_ACEOF
6976 #define UTMPX_FILE "$pt_cv_path_utmpx"
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5
6983 $as_echo_n "checking where wtmp is located... " >&6; }
6984 if test "${pt_cv_path_wtmp+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
6987 if test "$cross_compiling" = yes; then :
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5
6989 $as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6995 #include <sys/types.h>
7002 char **w, *wtmplist[] = {
7003 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
7004 FILE *a, *f=fopen("conftestval", "w");
7007 fprintf(f, "%s\n", WTMP_FILE);
7011 fprintf(f, "%s\n", _PATH_WTMP);
7014 for (w = wtmplist; *w; w++) {
7015 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7016 fprintf(f, "%s\n", *w);
7023 if ac_fn_cxx_try_run "$LINENO"; then :
7024 pt_cv_path_wtmp=`cat conftestval`
7028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7029 conftest.$ac_objext conftest.beam conftest.$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
7034 $as_echo "$pt_cv_path_wtmp" >&6; }
7035 if test x$pt_cv_path_wtmp != x; then
7037 cat >>confdefs.h <<_ACEOF
7038 #define WTMP_FILE "$pt_cv_path_wtmp"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5
7044 $as_echo_n "checking where wtmpx is located... " >&6; }
7045 if test "${pt_cv_path_wtmpx+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7048 if test "$cross_compiling" = yes; then :
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5
7050 $as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7062 char **w, *wtmplist[] = {
7063 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
7064 FILE *a, *f=fopen("conftestval", "w");
7067 fprintf(f, "%s\n", WTMPX_FILE);
7071 fprintf(f, "%s\n", _PATH_WTMPX);
7074 for (w = wtmplist; *w; w++) {
7075 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7076 fprintf(f, "%s\n", *w);
7083 if ac_fn_cxx_try_run "$LINENO"; then :
7084 pt_cv_path_wtmpx=`cat conftestval`
7088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7089 conftest.$ac_objext conftest.beam conftest.$ac_ext
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7094 $as_echo "$pt_cv_path_wtmpx" >&6; }
7095 if test x$pt_cv_path_wtmpx != x; then
7097 cat >>confdefs.h <<_ACEOF
7098 #define WTMPX_FILE "$pt_cv_path_wtmpx"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5
7104 $as_echo_n "checking where lastlog is located... " >&6; }
7105 if test "${pt_cv_path_lastlog+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7108 if test "$cross_compiling" = yes; then :
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5
7110 $as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7116 #include <sys/types.h>
7119 #elif defined(HAVE_UTMP_H)
7122 #ifdef HAVE_LASTLOG_H
7123 #include <lastlog.h>
7128 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
7129 FILE *a, *f=fopen("conftestval", "w");
7132 fprintf(f, "%s\n", LASTLOG_FILE);
7135 #ifdef _PATH_LASTLOG
7136 fprintf(f, "%s\n", _PATH_LASTLOG);
7139 for (w = lastloglist; *w; w++) {
7140 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7141 fprintf(f, "%s\n", *w);
7148 if ac_fn_cxx_try_run "$LINENO"; then :
7149 pt_cv_path_lastlog=`cat conftestval`
7153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7154 conftest.$ac_objext conftest.beam conftest.$ac_ext
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7159 $as_echo "$pt_cv_path_lastlog" >&6; }
7160 if test x$pt_cv_path_lastlog != x; then
7162 cat >>confdefs.h <<_ACEOF
7163 #define LASTLOG_FILE "$pt_cv_path_lastlog"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5
7169 $as_echo_n "checking where lastlogx is located... " >&6; }
7170 if test "${pt_cv_path_lastlogx+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7173 if test "$cross_compiling" = yes; then :
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
7175 $as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7187 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
7188 FILE *a, *f=fopen("conftestval", "w");
7190 #ifdef LASTLOGX_FILE
7191 fprintf(f, "%s\n", LASTLOGX_FILE);
7194 #ifdef _PATH_LASTLOGX
7195 fprintf(f, "%s\n", _PATH_LASTLOGX);
7198 for (w = wtmplist; *w; w++) {
7199 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7200 fprintf(f, "%s\n", *w);
7207 if ac_fn_cxx_try_run "$LINENO"; then :
7208 pt_cv_path_lastlogx=`cat conftestval`
7210 pt_cv_path_lastlogx=
7212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7213 conftest.$ac_objext conftest.beam conftest.$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7218 $as_echo "$pt_cv_path_lastlogx" >&6; }
7219 if test x$pt_cv_path_lastlogx != x; then
7221 cat >>confdefs.h <<_ACEOF
7222 #define LASTLOGX_FILE "$pt_cv_path_lastlogx"
7232 CFLAGS="$CFLAGS $X_CFLAGS"
7233 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7234 if test x$support_xim = xyes; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7236 $as_echo_n "checking for working Xlocale... " >&6; }
7237 if test "${rxvt_cv_func_xlocale+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7240 if test "$cross_compiling" = yes; then :
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #include <X11/Xlib.h>
7249 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7250 exit (XSupportsLocale() ? 0 : 1);
7254 if ac_fn_cxx_try_run "$LINENO"; then :
7255 rxvt_cv_func_xlocale=yes
7257 rxvt_cv_func_xlocale=no
7259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7260 conftest.$ac_objext conftest.beam conftest.$ac_ext
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7265 $as_echo "$rxvt_cv_func_xlocale" >&6; }
7266 if test x$rxvt_cv_func_xlocale = xyes; then
7268 $as_echo "#define USE_XIM 1" >>confdefs.h
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7271 $as_echo_n "checking for broken XIM callback... " >&6; }
7272 if test "${rxvt_cv_broken_ximcb+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7278 #include <X11/Xlib.h>
7280 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7284 cb.callback = im_destroy_cb;
7288 if ac_fn_cxx_try_compile "$LINENO"; then :
7289 rxvt_cv_broken_ximcb=yes
7291 rxvt_cv_broken_ximcb=no
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7296 $as_echo "$rxvt_cv_broken_ximcb" >&6; }
7298 if test x$rxvt_cv_broken_ximcb = xyes; then
7300 $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7307 $as_echo_n "checking for working X setlocale... " >&6; }
7308 if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7314 #include <X11/Xlocale.h>
7318 setlocale(LC_CTYPE, "");
7323 if ac_fn_cxx_try_link "$LINENO"; then :
7324 rxvt_cv_func_xsetlocale=yes
7326 rxvt_cv_func_xsetlocale=no
7328 rm -f core conftest.err conftest.$ac_objext \
7329 conftest$ac_exeext conftest.$ac_ext
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7332 $as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7333 if test x$rxvt_cv_func_xsetlocale = xyes; then
7335 $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7342 $as_echo_n "checking for working plain setlocale... " >&6; }
7343 if test "${rxvt_cv_func_setlocale+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7352 setlocale(LC_CTYPE, "");
7357 if ac_fn_cxx_try_link "$LINENO"; then :
7358 rxvt_cv_func_setlocale=yes
7360 rxvt_cv_func_setlocale=no
7362 rm -f core conftest.err conftest.$ac_objext \
7363 conftest$ac_exeext conftest.$ac_ext
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7366 $as_echo "$rxvt_cv_func_setlocale" >&6; }
7367 if test x$rxvt_cv_func_setlocale = xyes; then
7369 $as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7374 $as_echo_n "checking for working nl_langinfo... " >&6; }
7375 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 #include <langinfo.h>
7384 nl_langinfo(CODESET);
7389 if ac_fn_cxx_try_link "$LINENO"; then :
7390 rxvt_cv_func_nl_langinfo=yes
7392 rxvt_cv_func_nl_langinfo=no
7394 rm -f core conftest.err conftest.$ac_objext \
7395 conftest$ac_exeext conftest.$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7398 $as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7399 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7401 $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7407 $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7408 if test "${pt_cv_can_pass_fds+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7414 #include <cstddef> // broken bsds (is that redundant?) need this
7415 #include <sys/types.h>
7416 #include <sys/socket.h>
7417 #include <sys/uio.h>
7429 iov.iov_base = &data;
7434 msg.msg_control = buf;
7435 msg.msg_controllen = sizeof buf;
7437 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7438 cmsg->cmsg_level = SOL_SOCKET;
7439 cmsg->cmsg_type = SCM_RIGHTS;
7440 cmsg->cmsg_len = 100;
7442 *(int *)CMSG_DATA (cmsg) = 5;
7444 return sendmsg (3, &msg, 0);
7451 if ac_fn_cxx_try_link "$LINENO"; then :
7452 pt_cv_can_pass_fds=yes
7454 pt_cv_can_pass_fds=no
7456 rm -f core conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7460 $as_echo "$pt_cv_can_pass_fds" >&6; }
7461 if test x$pt_cv_can_pass_fds = xyes; then
7463 $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7466 as_fn_error "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7481 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7482 eval as_val=\$$as_ac_Header
7483 if test "x$as_val" = x""yes; then :
7484 cat >>confdefs.h <<_ACEOF
7485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7506 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7507 eval as_val=\$$as_ac_var
7508 if test "x$as_val" = x""yes; then :
7509 cat >>confdefs.h <<_ACEOF
7510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptym/clone" >&5
7520 $as_echo_n "checking for /dev/ptym/clone... " >&6; }
7521 if test -e /dev/ptym/clone; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523 $as_echo "yes" >&6; }
7525 $as_echo "#define HAVE_DEV_CLONE 1" >>confdefs.h
7528 $as_echo "#define CLONE_DEVICE \"/dev/ptym/clone\"" >>confdefs.h
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
7537 $as_echo_n "checking for /dev/ptc... " >&6; }
7538 if test -e /dev/ptc; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7540 $as_echo "yes" >&6; }
7542 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
7545 $as_echo "#define CLONE_DEVICE \"/dev/ptc\"" >>confdefs.h
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7557 $as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
7562 $as_echo_n "checking for /dev/ptmx... " >&6; }
7563 if test -e /dev/ptmx; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7565 $as_echo "yes" >&6; }
7567 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
7570 $as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7580 if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7582 $as_echo_n "checking for UNIX98 ptys... " >&6; }
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7589 grantpt(0);unlockpt(0);ptsname(0);
7594 if ac_fn_cxx_try_link "$LINENO"; then :
7597 $as_echo "#define UNIX98_PTY 1" >>confdefs.h
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600 $as_echo "yes" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7605 rm -f core conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7609 if test -z "$unix98_pty"; then
7610 for ac_func in openpty
7612 ac_fn_cxx_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
7613 if test "x$ac_cv_func_openpty" = x""yes; then :
7614 cat >>confdefs.h <<_ACEOF
7615 #define HAVE_OPENPTY 1
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
7620 $as_echo_n "checking for openpty in -lutil... " >&6; }
7621 if test "${ac_cv_lib_util_openpty+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7624 ac_check_lib_save_LIBS=$LIBS
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7629 /* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7644 if ac_fn_cxx_try_link "$LINENO"; then :
7645 ac_cv_lib_util_openpty=yes
7647 ac_cv_lib_util_openpty=no
7649 rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651 LIBS=$ac_check_lib_save_LIBS
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
7654 $as_echo "$ac_cv_lib_util_openpty" >&6; }
7655 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
7656 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7668 $as_echo_n "checking for tty group... " >&6; }
7669 if test "${pt_cv_tty_group+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7672 if test "$cross_compiling" = yes; then :
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7678 #include <sys/types.h>
7679 #include <sys/stat.h>
7688 gr = getgrnam("tty");
7692 && (stat(tty, &st)) == 0
7693 && st.st_gid == gr->gr_gid)
7699 if ac_fn_cxx_try_run "$LINENO"; then :
7704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7705 conftest.$ac_objext conftest.beam conftest.$ac_ext
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7710 $as_echo "$pt_cv_tty_group" >&6; }
7711 if test x$pt_cv_tty_group = xyes; then
7713 $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7717 if test x$support_xft = xyes; then
7718 # Extract the first word of "pkg-config", so it can be a program name with args.
7719 set dummy pkg-config; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7727 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7749 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7750 if test -n "$PKG_CONFIG"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7752 $as_echo "$PKG_CONFIG" >&6; }
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7759 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7760 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7761 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7763 # Extract the first word of "xft-config", so it can be a program name with args.
7764 set dummy xft-config; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7772 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7794 XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7795 if test -n "$XFT_CONFIG"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7797 $as_echo "$XFT_CONFIG" >&6; }
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7804 if test $XFT_CONFIG != no; then
7805 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7806 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7811 LIBS="$LIBS $X_LIBS"
7812 for ac_header in X11/Xft/Xft.h
7814 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7815 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
7816 cat >>confdefs.h <<_ACEOF
7817 #define HAVE_X11_XFT_XFT_H 1
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7827 $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7828 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7831 ac_check_lib_save_LIBS=$LIBS
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7836 /* Override any GCC internal prototype to avoid an error.
7837 Use char because int might match the return type of a GCC
7838 builtin and then its argument prototype would still apply. */
7842 char XftDrawString32 ();
7846 return XftDrawString32 ();
7851 if ac_fn_cxx_try_link "$LINENO"; then :
7852 ac_cv_lib_Xft_XftDrawString32=yes
7854 ac_cv_lib_Xft_XftDrawString32=no
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7861 $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7862 if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7870 if test x$support_xft = xyes; then
7872 $as_echo "#define XFT 1" >>confdefs.h
7876 if test x$support_styles = xyes; then
7878 $as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7881 if test x$support_iso14755 = xyes; then
7883 $as_echo "#define ISO_14755 1" >>confdefs.h
7886 if test x$support_8bitctrls = xyes; then
7888 $as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7891 if test x$support_fading = xyes; then
7893 $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7896 if test x$support_inheritpixmap = xyes; then
7898 $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7901 if test x$support_keepscrolling = xno; then
7903 $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7906 if test x$support_selectionscrolling = xyes; then
7908 $as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
7911 if test x$support_frills = xyes; then
7913 $as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
7916 if test x$support_mousewheel = xyes; then
7918 $as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
7921 if test x$support_mouseslipwheel = xyes; then
7923 $as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7926 if test x$support_afterimage = xyes; then
7928 $as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
7931 $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7938 $as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7941 if test x$support_scroll_rxvt = xyes; then
7943 $as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
7945 scrolltypes="$scrolltypes rxvt"
7947 if test x$support_scroll_next = xyes; then
7949 $as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
7951 scrolltypes="$scrolltypes next"
7953 if test x$support_scroll_xterm = xyes; then
7955 $as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
7957 scrolltypes="$scrolltypes xterm"
7959 if test x$support_pointer_blank = xyes; then
7961 $as_echo "#define POINTER_BLANK 1" >>confdefs.h
7964 if test x$support_text_blink = xyes; then
7966 $as_echo "#define TEXT_BLINK 1" >>confdefs.h
7969 if test x$support_unicode3 = xyes; then
7971 $as_echo "#define UNICODE_3 1" >>confdefs.h
7974 if test x$support_combining = xyes; then
7976 $as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
7979 if test x$codesets = xall; then
7980 codesets=jp,jp-ext,kr,zh,zh-ext
7983 $as_echo "#define ENCODING_EU 1" >>confdefs.h
7986 $as_echo "#define ENCODING_VN 1" >>confdefs.h
7988 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7991 $as_echo "#define ENCODING_JP 1" >>confdefs.h
7994 $as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
7997 $as_echo "#define ENCODING_KR 1" >>confdefs.h
8000 $as_echo "#define ENCODING_ZH 1" >>confdefs.h
8003 $as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
8009 if test x$support_perl = xyes; then
8010 # Extract the first word of "perl5", so it can be a program name with args.
8011 set dummy perl5; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if test "${ac_cv_path_PERL+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8019 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 PERL=$ac_cv_path_PERL
8041 if test -n "$PERL"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8043 $as_echo "$PERL" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8050 # Extract the first word of "perl", so it can be a program name with args.
8051 set dummy perl; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if test "${ac_cv_path_PERL+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8059 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8080 PERL=$ac_cv_path_PERL
8081 if test -n "$PERL"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8083 $as_echo "$PERL" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
8092 $as_echo_n "checking for $PERL suitability... " >&6; }
8093 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
8095 save_CXXFLAGS="$CXXFLAGS"
8097 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
8098 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8110 PerlInterpreter *perl = perl_alloc ();
8116 if ac_fn_cxx_try_link "$LINENO"; then :
8121 rm -f core conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8123 CXXFLAGS="$save_CXXFLAGS"
8126 if test x$rxvt_perl_link = xyes; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8128 $as_echo "ok" >&6; }
8130 $as_echo "#define ENABLE_PERL 1" >>confdefs.h
8134 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
8135 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
8136 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
8138 as_fn_error "no, unable to link" "$LINENO" 5
8141 as_fn_error "no working perl found, or perl not version >= 5.8" "$LINENO" 5
8163 test "$program_prefix" != NONE &&
8164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
8165 # Use a double $ so make ignores it.
8166 test "$program_suffix" != NONE &&
8167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8168 # Double any \ or $.
8169 # By default was `s,x,x', remove it if useless.
8170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
8171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8174 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
8176 cat >confcache <<\_ACEOF
8177 # This file is a shell script that caches the results of configure
8178 # tests run on this system so they can be shared between configure
8179 # scripts and configure runs, see configure's option --config-cache.
8180 # It is not useful on other systems. If it contains results you don't
8181 # want to keep, you may remove or edit it.
8183 # config.status only pays attention to the cache file if you give it
8184 # the --recheck option to rerun configure.
8186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8192 # The following way of writing the cache mishandles newlines in values,
8193 # but we know of no workaround that is simple, portable, and efficient.
8194 # So, we kill variables containing newlines.
8195 # Ultrix sh set writes to stderr and can't be redirected directly,
8196 # and sets the high bit in the cache file unless we assign to the vars.
8198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8199 eval ac_val=\$$ac_var
8203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8207 _ | IFS | as_nl) ;; #(
8208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8209 *) { eval $ac_var=; unset $ac_var;} ;;
8215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8216 *${as_nl}ac_space=\ *)
8217 # `set' does not quote correctly, so add quotes: double-quote
8218 # substitution turns \\\\ into \\, and sed turns \\ into \.
8221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8224 # `set' quotes correctly as required by POSIX, so do not add quotes.
8225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8239 if test -w "$cache_file"; then
8240 test "x$cache_file" != "x/dev/null" &&
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8242 $as_echo "$as_me: updating cache $cache_file" >&6;}
8243 cat confcache >$cache_file
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8246 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8252 # Let make expand exec_prefix.
8253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8255 DEFS=-DHAVE_CONFIG_H
8259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8260 # 1. Remove the extension, and $U if already installed.
8261 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8262 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8263 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8264 # will be set to the directory where LIBOBJS objects are built.
8265 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8266 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8270 LTLIBOBJS=$ac_ltlibobjs
8274 : ${CONFIG_STATUS=./config.status}
8276 ac_clean_files_save=$ac_clean_files
8277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8279 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8283 # Generated by $as_me.
8284 # Run this file to recreate the current configuration.
8285 # Compiler output produced by configure, useful for debugging
8286 # configure, is in config.log if it exists.
8292 SHELL=\${CONFIG_SHELL-$SHELL}
8295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8296 ## -------------------- ##
8297 ## M4sh Initialization. ##
8298 ## -------------------- ##
8300 # Be more Bourne compatible
8301 DUALCASE=1; export DUALCASE # for MKS sh
8302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8306 # is contrary to our usage. Disable this feature.
8307 alias -g '${1+"$@"}'='"$@"'
8308 setopt NO_GLOB_SUBST
8310 case `(set -o) 2>/dev/null` in #(
8322 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8323 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8326 # Prefer a ksh shell builtin over an external printf program on Solaris,
8327 # but without wasting forks for bash or zsh.
8328 if test -z "$BASH_VERSION$ZSH_VERSION" \
8329 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8330 as_echo='print -r --'
8331 as_echo_n='print -rn --'
8332 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8333 as_echo='printf %s\n'
8334 as_echo_n='printf %s'
8336 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8337 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8338 as_echo_n='/usr/ucb/echo -n'
8340 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8341 as_echo_n_body='eval
8345 expr "X$arg" : "X\\(.*\\)$as_nl";
8346 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8348 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8350 export as_echo_n_body
8351 as_echo_n='sh -c $as_echo_n_body as_echo'
8354 as_echo='sh -c $as_echo_body as_echo'
8357 # The user is always right.
8358 if test "${PATH_SEPARATOR+set}" != set; then
8360 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8361 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8368 # We need space, tab and new line, in precisely that order. Quoting is
8369 # there to prevent editors from complaining about space-tab.
8370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8371 # splitting by setting IFS to empty value.)
8374 # Find who we are. Look in the path if we contain no directory separator.
8376 *[\\/]* ) as_myself=$0 ;;
8377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir=.
8382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8388 # We did not find ourselves, most probably we were run as `sh COMMAND'
8389 # in which case we are not to be found in the path.
8390 if test "x$as_myself" = x; then
8393 if test ! -f "$as_myself"; then
8394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8398 # Unset variables that we do not need and which cause bugs (e.g. in
8399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8400 # suppresses any "Segmentation fault" message there. '((' could
8401 # trigger a bug in pdksh 5.2.14.
8402 for as_var in BASH_ENV ENV MAIL MAILPATH
8403 do eval test x\${$as_var+set} = xset \
8404 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8420 # as_fn_error ERROR [LINENO LOG_FD]
8421 # ---------------------------------
8422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8424 # script with status $?, using 1 if that was 0.
8427 as_status=$?; test $as_status -eq 0 && as_status=1
8429 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8432 $as_echo "$as_me: error: $1" >&2
8433 as_fn_exit $as_status
8437 # as_fn_set_status STATUS
8438 # -----------------------
8439 # Set $? to STATUS, without forking.
8443 } # as_fn_set_status
8447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8457 # Portably unset VAR.
8460 { eval $1=; unset $1;}
8462 as_unset=as_fn_unset
8463 # as_fn_append VAR VALUE
8464 # ----------------------
8465 # Append the text in VALUE to the end of the definition contained in VAR. Take
8466 # advantage of any shell optimizations that allow amortized linear growth over
8467 # repeated appends, instead of the typical quadratic growth present in naive
8469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8470 eval 'as_fn_append ()
8481 # as_fn_arith ARG...
8482 # ------------------
8483 # Perform arithmetic evaluation on the ARGs, and store the result in the
8484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8485 # must be portable across $(()) and expr.
8486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8487 eval 'as_fn_arith ()
8494 as_val=`expr "$@" || test $? -eq 1`
8499 if expr a : '\(a\)' >/dev/null 2>&1 &&
8500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8507 as_basename=basename
8512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8518 as_me=`$as_basename -- "$0" ||
8519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8520 X"$0" : 'X\(//\)$' \| \
8521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8523 sed '/^.*\/\([^/][^/]*\)\/*$/{
8537 # Avoid depending upon Character Ranges.
8538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8541 as_cr_digits='0123456789'
8542 as_cr_alnum=$as_cr_Letters$as_cr_digits
8544 ECHO_C= ECHO_N= ECHO_T=
8545 case `echo -n x` in #(((((
8547 case `echo 'xy\c'` in
8548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8557 rm -f conf$$ conf$$.exe conf$$.file
8558 if test -d conf$$.dir; then
8559 rm -f conf$$.dir/conf$$.file
8562 mkdir conf$$.dir 2>/dev/null
8564 if (echo >conf$$.file) 2>/dev/null; then
8565 if ln -s conf$$.file conf$$ 2>/dev/null; then
8567 # ... but there are two gotchas:
8568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8570 # In both cases, we have to default to `cp -p'.
8571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8573 elif ln conf$$.file conf$$ 2>/dev/null; then
8581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8582 rmdir conf$$.dir 2>/dev/null
8587 # Create "$as_dir" as a directory, including parents if necessary.
8592 -*) as_dir=./$as_dir;;
8594 test -d "$as_dir" || eval $as_mkdir_p || {
8598 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8599 *) as_qdir=$as_dir;;
8601 as_dirs="'$as_qdir' $as_dirs"
8602 as_dir=`$as_dirname -- "$as_dir" ||
8603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8604 X"$as_dir" : 'X\(//\)[^/]' \| \
8605 X"$as_dir" : 'X\(//\)$' \| \
8606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8607 $as_echo X"$as_dir" |
8608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8625 test -d "$as_dir" && break
8627 test -z "$as_dirs" || eval "mkdir $as_dirs"
8628 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8632 if mkdir -p . 2>/dev/null; then
8633 as_mkdir_p='mkdir -p "$as_dir"'
8635 test -d ./-p && rmdir ./-p
8639 if test -x / >/dev/null 2>&1; then
8642 if ls -dL / >/dev/null 2>&1; then
8649 if test -d "$1"; then
8655 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8656 ???[sx]*):;;*)false;;esac;fi
8660 as_executable_p=$as_test_x
8662 # Sed expression to map a string onto a valid CPP name.
8663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8665 # Sed expression to map a string onto a valid variable name.
8666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8670 ## ----------------------------------- ##
8671 ## Main body of $CONFIG_STATUS script. ##
8672 ## ----------------------------------- ##
8674 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8677 # Save the log message, to keep $0 and so on meaningful, and to
8678 # report actual input values of CONFIG_FILES etc. instead of their
8679 # values after options handling.
8681 This file was extended by $as_me, which was
8682 generated by GNU Autoconf 2.65. Invocation command line was
8684 CONFIG_FILES = $CONFIG_FILES
8685 CONFIG_HEADERS = $CONFIG_HEADERS
8686 CONFIG_LINKS = $CONFIG_LINKS
8687 CONFIG_COMMANDS = $CONFIG_COMMANDS
8690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8695 case $ac_config_files in *"
8696 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8699 case $ac_config_headers in *"
8700 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8705 # Files that config.status was made for.
8706 config_files="$ac_config_files"
8707 config_headers="$ac_config_headers"
8711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8713 \`$as_me' instantiates files and other configuration actions
8714 from templates according to the current configuration. Unless the files
8715 and actions are specified as TAGs, all are instantiated by default.
8717 Usage: $0 [OPTION]... [TAG]...
8719 -h, --help print this help, then exit
8720 -V, --version print version number and configuration settings, then exit
8721 --config print configuration, then exit
8722 -q, --quiet, --silent
8723 do not print progress messages
8724 -d, --debug don't remove temporary files
8725 --recheck update $as_me by reconfiguring in the same conditions
8726 --file=FILE[:TEMPLATE]
8727 instantiate the configuration file FILE
8728 --header=FILE[:TEMPLATE]
8729 instantiate the configuration header FILE
8731 Configuration files:
8734 Configuration headers:
8737 Report bugs to the package provider."
8740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8741 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8744 configured by $0, generated by GNU Autoconf 2.65,
8745 with options \\"\$ac_cs_config\\"
8747 Copyright (C) 2009 Free Software Foundation, Inc.
8748 This config.status script is free software; the Free Software Foundation
8749 gives unlimited permission to copy, distribute and modify it."
8754 test -n "\$AWK" || AWK=awk
8757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8758 # The default lists apply if the user does not specify any file.
8764 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8765 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8776 # Handling of the options.
8777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8779 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8780 $as_echo "$ac_cs_version"; exit ;;
8781 --config | --confi | --conf | --con | --co | --c )
8782 $as_echo "$ac_cs_config"; exit ;;
8783 --debug | --debu | --deb | --de | --d | -d )
8785 --file | --fil | --fi | --f )
8788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8790 as_fn_append CONFIG_FILES " '$ac_optarg'"
8791 ac_need_defaults=false;;
8792 --header | --heade | --head | --hea )
8795 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8797 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8798 ac_need_defaults=false;;
8800 # Conflict between --help and --header
8801 as_fn_error "ambiguous option: \`$1'
8802 Try \`$0 --help' for more information.";;
8803 --help | --hel | -h )
8804 $as_echo "$ac_cs_usage"; exit ;;
8805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8810 -*) as_fn_error "unrecognized option: \`$1'
8811 Try \`$0 --help' for more information." ;;
8813 *) as_fn_append ac_config_targets " $1"
8814 ac_need_defaults=false ;;
8820 ac_configure_extra_args=
8822 if $ac_cs_silent; then
8824 ac_configure_extra_args="$ac_configure_extra_args --silent"
8828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8829 if \$ac_cs_recheck; then
8830 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8832 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8833 CONFIG_SHELL='$SHELL'
8839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8843 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8844 ## Running $as_me. ##
8850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8855 # Handling of arguments.
8856 for ac_config_target in $ac_config_targets
8858 case $ac_config_target in
8859 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8860 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8861 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8862 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8864 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8869 # If the user did not use the arguments to specify the items to instantiate,
8870 # then the envvar interface is used. Set only those that are not.
8871 # We use the long form for the default assignment because of an extremely
8872 # bizarre bug on SunOS 4.1.3.
8873 if $ac_need_defaults; then
8874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8878 # Have a temporary directory for convenience. Make it in the build tree
8879 # simply because there is no reason against having it here, and in addition,
8880 # creating and moving files from /tmp can sometimes cause problems.
8881 # Hook for its removal unless debugging.
8882 # Note that there is a small window in which the directory will not be cleaned:
8883 # after its creation but before its name has been assigned to `$tmp'.
8887 trap 'exit_status=$?
8888 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8890 trap 'as_fn_exit 1' 1 2 13 15
8892 # Create a (secure) tmp directory for tmp files.
8895 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8896 test -n "$tmp" && test -d "$tmp"
8899 tmp=./conf$$-$RANDOM
8900 (umask 077 && mkdir "$tmp")
8901 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8903 # Set up the scripts for CONFIG_FILES section.
8904 # No need to generate them if there are no CONFIG_FILES.
8905 # This happens for instance with `./config.status config.h'.
8906 if test -n "$CONFIG_FILES"; then
8909 ac_cr=`echo X | tr X '\015'`
8910 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8911 # But we know of no other shell where ac_cr would be empty at this
8912 # point, so we can use a bashism as a fallback.
8913 if test "x$ac_cr" = x; then
8914 eval ac_cr=\$\'\\r\'
8916 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8917 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8923 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8928 echo "cat >conf$$subs.awk <<_ACEOF" &&
8929 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8932 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8933 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8935 for ac_last_try in false false false false false :; do
8936 . ./conf$$subs.sh ||
8937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8939 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8940 if test $ac_delim_n = $ac_delim_num; then
8942 elif $ac_last_try; then
8943 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8945 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8951 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8955 s/^/S["/; s/!.*/"]=/
8965 s/\(.\{148\}\)..*/\1/
8967 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8972 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8979 s/\(.\{148\}\)..*/\1/
8981 s/["\\]/\\&/g; s/^/"/; s/$/"/
8985 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8990 ' <conf$$subs.awk | sed '
8995 ' >>$CONFIG_STATUS || ac_write_fail=1
8996 rm -f conf$$subs.awk
8997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8999 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9000 for (key in S) S_is_set[key] = 1
9006 nfields = split(line, field, "@")
9008 len = length(field[1])
9009 for (i = 2; i < nfields; i++) {
9011 keylen = length(key)
9012 if (S_is_set[key]) {
9014 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9015 len += length(value) + length(field[++i])
9026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9027 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9028 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9031 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9032 || as_fn_error "could not setup config files machinery" "$LINENO" 5
9035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9037 # trailing colons and then remove the whole line if VPATH becomes empty
9038 # (actually we leave an empty line to preserve line numbers).
9039 if test "x$srcdir" = x.; then
9040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9044 s/^\([^=]*=[ ]*\):*/\1/
9050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9051 fi # test -n "$CONFIG_FILES"
9053 # Set up the scripts for CONFIG_HEADERS section.
9054 # No need to generate them if there are no CONFIG_HEADERS.
9055 # This happens for instance with `./config.status Makefile'.
9056 if test -n "$CONFIG_HEADERS"; then
9057 cat >"$tmp/defines.awk" <<\_ACAWK ||
9061 # Transform confdefs.h into an awk script `defines.awk', embedded as
9062 # here-document in config.status, that substitutes the proper values into
9063 # config.h.in to produce config.h.
9065 # Create a delimiter string that does not exist in confdefs.h, to ease
9066 # handling of long lines.
9068 for ac_last_try in false false :; do
9069 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9070 if test -z "$ac_t"; then
9072 elif $ac_last_try; then
9073 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9079 # For the awk script, D is an array of macro values keyed by name,
9080 # likewise P contains macro parameters if any. Preserve backslash
9081 # newline sequences.
9083 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9085 s/.\{148\}/&'"$ac_delim"'/g
9088 s/^[ ]*#[ ]*define[ ][ ]*/ /
9095 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9097 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9102 D["\1"]=" \3\\\\\\n"\\/p
9104 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9109 s/.\{148\}/&'"$ac_delim"'/g
9114 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9117 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9119 ' <confdefs.h | sed '
9120 s/'"$ac_delim"'/"\\\
9121 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9124 for (key in D) D_is_set[key] = 1
9127 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9129 split(line, arg, " ")
9130 if (arg[1] == "#") {
9134 defundef = substr(arg[1], 2)
9137 split(mac1, mac2, "(") #)
9139 prefix = substr(line, 1, index(line, defundef) - 1)
9140 if (D_is_set[macro]) {
9141 # Preserve the white space surrounding the "#".
9142 print prefix "define", macro P[macro] D[macro]
9145 # Replace #undef with comments. This is necessary, for example,
9146 # in the case of _POSIX_SOURCE, which is predefined and required
9147 # on some systems where configure will not decide to define it.
9148 if (defundef == "undef") {
9149 print "/*", prefix defundef, macro, "*/"
9157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9158 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9159 fi # test -n "$CONFIG_HEADERS"
9162 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9167 :[FHLC]) ac_mode=$ac_tag; continue;;
9169 case $ac_mode$ac_tag in
9171 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9172 :[FH]-) ac_tag=-:-;;
9173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9190 -) ac_f="$tmp/stdin";;
9191 *) # Look for the file first in the build tree, then in the source tree
9192 # (if the path is not absolute). The absolute path cannot be DOS-style,
9193 # because $ac_f cannot contain `:'.
9197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9199 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9201 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9202 as_fn_append ac_file_inputs " '$ac_f'"
9205 # Let's still pretend it is `configure' which instantiates (i.e., don't
9206 # use $as_me), people would be surprised to read:
9207 # /* config.h. Generated by config.status. */
9208 configure_input='Generated from '`
9209 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9211 if test x"$ac_file" != x-; then
9212 configure_input="$ac_file. $configure_input"
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9214 $as_echo "$as_me: creating $ac_file" >&6;}
9216 # Neutralize special characters interpreted by sed in replacement strings.
9217 case $configure_input in #(
9218 *\&* | *\|* | *\\* )
9219 ac_sed_conf_input=`$as_echo "$configure_input" |
9220 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9221 *) ac_sed_conf_input=$configure_input;;
9225 *:-:* | *:-) cat >"$tmp/stdin" \
9226 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9231 ac_dir=`$as_dirname -- "$ac_file" ||
9232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9233 X"$ac_file" : 'X\(//\)[^/]' \| \
9234 X"$ac_file" : 'X\(//\)$' \| \
9235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9236 $as_echo X"$ac_file" |
9237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9254 as_dir="$ac_dir"; as_fn_mkdir_p
9258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9261 # A ".." for each directory in $ac_dir_suffix.
9262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9263 case $ac_top_builddir_sub in
9264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9268 ac_abs_top_builddir=$ac_pwd
9269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9270 # for backward compatibility:
9271 ac_top_builddir=$ac_top_build_prefix
9274 .) # We are building in place.
9276 ac_top_srcdir=$ac_top_builddir_sub
9277 ac_abs_top_srcdir=$ac_pwd ;;
9278 [\\/]* | ?:[\\/]* ) # Absolute name.
9279 ac_srcdir=$srcdir$ac_dir_suffix;
9280 ac_top_srcdir=$srcdir
9281 ac_abs_top_srcdir=$srcdir ;;
9283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9284 ac_top_srcdir=$ac_top_build_prefix$srcdir
9285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9303 # If the template does not know about datarootdir, expand it.
9304 # FIXME: This hack should be removed a few years after 2.60.
9305 ac_datarootdir_hack=; ac_datarootdir_seen=
9316 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9317 *datarootdir*) ac_datarootdir_seen=yes;;
9318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9320 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9323 ac_datarootdir_hack='
9324 s&@datadir@&$datadir&g
9325 s&@docdir@&$docdir&g
9326 s&@infodir@&$infodir&g
9327 s&@localedir@&$localedir&g
9328 s&@mandir@&$mandir&g
9329 s&\\\${datarootdir}&$datarootdir&g' ;;
9333 # Neutralize VPATH when `$srcdir' = `.'.
9334 # Shell code in configure.ac might set extrasub.
9335 # FIXME: do we really want to maintain this feature?
9336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9337 ac_sed_extra="$ac_vpsub
9340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9343 s|@configure_input@|$ac_sed_conf_input|;t t
9344 s&@top_builddir@&$ac_top_builddir_sub&;t t
9345 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9346 s&@srcdir@&$ac_srcdir&;t t
9347 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9348 s&@top_srcdir@&$ac_top_srcdir&;t t
9349 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9350 s&@builddir@&$ac_builddir&;t t
9351 s&@abs_builddir@&$ac_abs_builddir&;t t
9352 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9353 s&@INSTALL@&$ac_INSTALL&;t t
9354 $ac_datarootdir_hack
9356 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9357 || as_fn_error "could not create $ac_file" "$LINENO" 5
9359 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9360 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9361 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9363 which seems to be undefined. Please make sure it is defined." >&5
9364 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9365 which seems to be undefined. Please make sure it is defined." >&2;}
9369 -) cat "$tmp/out" && rm -f "$tmp/out";;
9370 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9372 || as_fn_error "could not create $ac_file" "$LINENO" 5
9378 if test x"$ac_file" != x-; then
9380 $as_echo "/* $configure_input */" \
9381 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9382 } >"$tmp/config.h" \
9383 || as_fn_error "could not create $ac_file" "$LINENO" 5
9384 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9386 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9389 mv "$tmp/config.h" "$ac_file" \
9390 || as_fn_error "could not create $ac_file" "$LINENO" 5
9393 $as_echo "/* $configure_input */" \
9394 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9395 || as_fn_error "could not create -" "$LINENO" 5
9407 ac_clean_files=$ac_clean_files_save
9409 test $ac_write_fail = 0 ||
9410 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9413 # configure is writing to config.log, and then calls config.status.
9414 # config.status does its own redirection, appending to config.log.
9415 # Unfortunately, on DOS this fails, as config.log is still kept open
9416 # by configure, so config.status won't be able to write to it; its
9417 # output is simply discarded. So we exec the FD to /dev/null,
9418 # effectively closing config.log, so it can be properly (re)opened and
9419 # appended to by config.status. When coming back to configure, we
9420 # need to make the FD available again.
9421 if test "$no_create" != yes; then
9423 ac_config_status_args=
9424 test "$silent" = yes &&
9425 ac_config_status_args="$ac_config_status_args --quiet"
9427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9430 # would make configure fail if this is the last instruction.
9431 $ac_cs_success || as_fn_exit $?
9433 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9435 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9439 echo "Configuration:
9441 Rxvt version: $VERSION : $DATE
9442 Source code location: $srcdir
9443 Install path: ${prefix}/bin
9445 Compiler flags: $CXXFLAGS
9448 if test x$term != x; then
9449 echo " set TERM to: $term"
9451 if test x$terminfo != x; then
9452 echo " set TERMINFO to: $terminfo"
9454 echo " default resource name: $RESNAME"
9455 echo " resource class: $RESCLASS"
9456 if test x$RESFALLBACK != x; then
9457 echo " resource class fallback: $RESFALLBACK"
9460 echo " embedded perl: $support_perl"
9461 echo " libafterimage: $support_afterimage"
9463 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
9464 echo ".----------------------------------------------------------------."
9465 echo ". WARNING: --enable-xim was specified however the locale support ."
9466 echo ". functions could not be found. ."
9467 echo ". XIM is now being DISABLED! ."
9468 echo ".----------------------------------------------------------------."
9471 echo "*** Optionally check src/feature.h for further, rarely used options ***"